Reloc-VGGT: Visual Re-localization with Geometry Grounded Transformer
Tianchen Deng, Wenhua Wu, Kunzhen Wu, Guangming Wang, Siting Zhu, Shenghai Yuan, Xun Chen, Guole Shen, Zhe Liu, Hesheng Wang
TL;DR
Reloc-VGGT tackles visual re-localization by injecting multi-view spatial cues through an early fusion with a 3D foundation model and a pose tokenizer. It introduces learnable Fourier pose embeddings and a camera-token projection to align 3D pose tokens with 2D patch tokens, paired with a sparse mask attention mechanism that reduces $O(n^2)$ global attention to $O(5n-5)$ for scalable inference. Trained on approximately eight million posed image pairs, the approach achieves state-of-the-art or competitive results across indoor and outdoor relocalization benchmarks, including strong generalization to unseen environments. The work demonstrates that combining multi-view geometry with efficient transformer-based fusion enables robust, real-time visual localization at scale.
Abstract
Visual localization has traditionally been formulated as a pair-wise pose regression problem. Existing approaches mainly estimate relative poses between two images and employ a late-fusion strategy to obtain absolute pose estimates. However, the late motion average is often insufficient for effectively integrating spatial information, and its accuracy degrades in complex environments. In this paper, we present the first visual localization framework that performs multi-view spatial integration through an early-fusion mechanism, enabling robust operation in both structured and unstructured environments. Our framework is built upon the VGGT backbone, which encodes multi-view 3D geometry, and we introduce a pose tokenizer and projection module to more effectively exploit spatial relationships from multiple database views. Furthermore, we propose a novel sparse mask attention strategy that reduces computational cost by avoiding the quadratic complexity of global attention, thereby enabling real-time performance at scale. Trained on approximately eight million posed image pairs, Reloc-VGGT demonstrates strong accuracy and remarkable generalization ability. Extensive experiments across diverse public datasets consistently validate the effectiveness and efficiency of our approach, delivering high-quality camera pose estimates in real time while maintaining robustness to unseen environments. Our code and models will be publicly released upon acceptance.https://github.com/dtc111111/Reloc-VGGT.
