Abstract
Autonomous vehicles require precise initial pose estimation to bootstrap high-precision localization algorithms, especially in environments where Global Navigation Satellite System (GNSS) signals are unreliable. We present APR-Transformer, a novel deep-learning architecture for Absolute Pose Regression (APR). APR-Transformer utilizes a modality-adaptive design with Transformer-based backends to predict 3D position and orientation from diverse sensor inputs, including camera images and LiDAR scans. Our approach features a dual-branch architecture that separately optimizes for translation and rotation, utilizing learned positional encodings to maintain spatial context. Experimental results across multiple benchmarks, including the new BeIntelli dataset, show that APR-Transformer achieves state-of-the-art accuracy, with a median error of 0.40m on the DeepLoc dataset. Furthermore, the model's integration into the Autoware.universe stack demonstrates its readiness for real-time autonomous driving applications.
Introduction
High-precision localization is a cornerstone of autonomous driving, yet many standard algorithms like NDT scan matching or SLAM suffer from the "kidnapped robot" problem—they require an accurate initial pose to function. While GNSS typically provides this, it is frequently unavailable in "urban canyons," tunnels, or under bridges. Absolute Pose Regression (APR) has emerged as a promising alternative, directly predicting coordinates from a single sensor frame. However, previous APR models often lacked the robustness required for complex, dynamic urban environments. APR-Transformer addresses these challenges by leveraging the attention mechanisms of Transformers to focus on stable environmental features.
Methodology
APR-Transformer is designed as a modality-adaptive architecture that can be tailored to various sensor inputs while maintaining a unified Transformer-based backend.
Architectural Components
- Backbones: The model employs specialized feature extractors based on the input type. EfficientNet is used for camera images and 2D LiDAR "Bird’s Eye View" (BEV) histograms, while PointNet++ is utilized for raw 3D LiDAR point clouds.
- Dual-Branch Transformer: To optimize for different geometric properties, the architecture splits into two distinct branches. Each branch contains its own Transformer encoder-decoder to query features specifically for 3D position ($x$) or quaternion-based orientation ($q$).
- Learned Encodings: Spatial relationships are preserved through learned positional encodings, allowing the Transformer to contextualize features within the sensor's field of view.
- Geometric Loss: A specialized loss function automatically balances the weights between translation and rotation errors during training, ensuring stable convergence.
Experimental Setup and Datasets
The model was evaluated on three major benchmarks:
- DeepLoc: An urban outdoor dataset with sub-centimeter ground truth.
- Oxford Robot-Car: A multi-modal dataset spanning various weather and traffic conditions over a year.
- APR-BeIntelli: A new custom dataset captured in Berlin featuring highly dynamic scenes. Ground truth was generated via LiDAR-based SLAM (LIO-SAM), making the training process entirely independent of GNSS.
Results and Discussion
APR-Transformer demonstrated significant improvements over baseline models. On the DeepLoc dataset, it achieved a median pose error of 0.40m, outperforming VLocNET (0.68m). On the Oxford Robot-Car "LOOP" route, the camera-based model achieved a median position error of 2.34m and an orientation error of 1.04°.
A key finding was that images and 2D BEV LiDAR histograms significantly outperformed raw 3D points in high-traffic areas. For instance, on the BeIntelli dataset, the image-based model (7.48m error) was vastly more accurate than the raw 3D point model (126.75m error). This suggests that semantic information—such as lane markings and building shapes—is crucial for the model to ignore dynamic obstacles like moving vehicles.
Conclusion
APR-Transformer provides a robust, GNSS-independent solution for initial pose estimation. By utilizing a dual-branch Transformer architecture and modality-specific backbones, it achieves high accuracy in complex urban environments. Its successful integration into the Autoware.universe stack confirms its feasibility for real-time deployment in autonomous vehicle pipelines. Future work will focus on multi-modal sensor fusion and exploring deeper backbones to further refine localization precision.
Summary updated