Reloc3r: Large-Scale Training of Relative Camera Pose Regression for Generalizable, Fast, and Accurate Visual Localization

Siyan Dong, Shuzhe Wang, Shaohui Liu, Lulu Cai, Qingnan Fan, Juho Kannala, Yanchao Yang

Introduction: Solving the Localization Trilemma

Visual localization—the task of determining a camera's precise position and orientation within an environment—is fundamental to robotics, autonomous driving, and augmented reality. Historically, methods have struggled with a "trilemma" between accuracy, speed, and generalization. Structure-from-Motion (SfM) techniques are accurate but slow; Absolute Pose Regression (APR) is fast but scene-specific; and Relative Pose Regression (RPR) generalizes well but has traditionally lacked precision.

Reloc3r addresses these challenges by scaling up RPR. It introduces a high-speed, generalizable framework that uses a symmetric Transformer-based network to regress relative camera poses. By training on a massive dataset of 8 million image pairs and employing a minimalist motion averaging step, it achieves state-of-the-art accuracy while maintaining real-time performance.

Methodology: Symmetric Architecture and Motion Averaging

Reloc3r’s design is centered on two main components: a symmetric Relative Pose Regression Network and a robust Motion Averaging Module.

Extracted figure from page 4 of Reloc3r: Large-Scale Training of Relative Camera Pose Regression for Generalizable, Fast, and Accurate Visual Localization

Symmetric ViT Architecture

The network utilizes a Vision Transformer (ViT) encoder-decoder structure. Unlike traditional asymmetric models, Reloc3r is fully symmetric: both query and database images are processed through shared weights. The network simultaneously predicts the pose of Image A relative to B and B relative to A. This symmetry eliminates biases related to image ordering and significantly reduces the model's memory footprint.

Direction-Only Training

To handle the diverse scales of different datasets (e.g., indoor vs. outdoor aerial), the model is trained to predict the direction of translation as an angle rather than an absolute metric distance. This approach simplifies the optimization landscape, making training more stable across varied environments.

Minimalist Motion Averaging

For absolute localization, the system retrieves the top-K most similar images from a database. It regresses relative poses for each and applies non-trainable geometric operations: median rotation averaging and least-squares triangulation for the camera center. This avoids computationally heavy estimators like RANSAC, ensuring the system remains lean and fast.

Training at Scale

A key insight of Reloc3r is that pose regressors, much like Large Language Models, benefit immensely from massive data exposure. The authors compiled a training set of approximately 8 million image pairs from seven diverse sources, including ScanNet++, MegaDepth, and RealEstate10K. This scale allows the model to learn robust geometric representations that generalize to completely unseen environments, as demonstrated by its performance on the ACID dataset.

Key Results and Performance

Reloc3r sets a new benchmark for regression-based localization, particularly in its ability to balance speed and accuracy.

Extracted figure from page 1 of Reloc3r: Large-Scale Training of Relative Camera Pose Regression for Generalizable, Fast, and Accurate Visual Localization
  • Real-Time Speed: The Reloc3r-512 variant operates at 24 FPS, making it suitable for live applications.
  • Efficiency: The Reloc3r-224 model matches the accuracy of state-of-the-art models like ROMA while being 20 times faster.
  • Accuracy: On the ScanNet1500 benchmark, Reloc3r-512 achieved an AUC@5° of 34.79, significantly outperforming previous RPR methods such as Map-free.
  • Emergent Properties: Visualizations reveal that the internal cross-attention layers "learn" to find corresponding points between images, effectively discovering feature matching without explicit supervision.

Conclusion and Future Work

Reloc3r demonstrates that relative pose regression can be a viable, high-performance solution for general-purpose visual localization when scaled appropriately. While it faces challenges in cases of collinearity—where camera centers lie on a straight line—its speed and generalization capabilities mark a significant step forward. Future research may focus on integrating more sophisticated retrieval techniques to mitigate geometric degeneracies while preserving real-time efficiency.

BibTeX
@inproceedings{dong2025reloc,
  author = {Siyan Dong and Shuzhe Wang and Shaohui Liu and Lulu Cai and Qingnan Fan and Juho Kannala and Yanchao Yang},
  title = {{Reloc3r: Large-Scale Training of Relative Camera Pose Regression for Generalizable, Fast, and Accurate Visual Localization}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2025},
  doi = {10.1109/cvpr52734.2025.01560},
}