Abstract
Visual Place Recognition (VPR) is a critical task for autonomous systems, typically solved using a hierarchical approach: initial global retrieval followed by geometric re-ranking. While effective, traditional re-ranking relies on RANSAC, which is computationally slow and non-differentiable, preventing end-to-end optimization. This paper introduces DHE-VPR, a framework that replaces RANSAC with a fast, differentiable transformer-based Deep Homography Estimation (DHE) network. By making the re-ranking stage learnable, the system achieves state-of-the-art accuracy across multiple benchmarks while running over 10 times faster than existing two-stage methods.
Introduction
Visual Place Recognition (VPR) involves determining the location of a query image by matching it against a database. This task is complicated by perceptual aliasing—where different locations look similar—and environmental variations such as seasonal changes or lighting shifts.
To balance efficiency and precision, current state-of-the-art methods utilize a two-stage pipeline:
- Retrieval: A global descriptor is used to identify the top-$k$ candidate images.
- Re-ranking: Local features are matched between the query and candidates to verify geometric consistency.
Traditionally, the second step employs RANSAC (Random Sample Consensus) to estimate a homography. However, RANSAC's iterative nature makes it a bottleneck for real-time applications. Furthermore, because RANSAC is non-differentiable, the feature extraction backbone cannot be optimized specifically for the geometric verification task.
Methods
The proposed DHE-VPR architecture leverages a Compact Convolutional Transformer (CCT) backbone to extract dense feature maps, which feed into two distinct branches.
Hierarchical Architecture
The Global Branch applies Generalized Mean (GeM) pooling to the feature maps to generate a global descriptor for initial candidate retrieval. The Local Branch utilizes the DHE network for rapid geometric verification.
Deep Homography Estimation (DHE) Network
The DHE network replaces traditional RANSAC-based verification. It takes feature maps from both the query and a candidate image to compute a similarity map. This map is processed by a transformer-based regression module that directly outputs a homography matrix ($H$). The final similarity score for re-ranking is determined by counting "inliers"—points that align within a specific threshold under the predicted homography.
Learnable Geometric Verification via REI Loss
A key innovation is the Re-projection Error of Inliers (REI) loss. Since VPR datasets lack ground-truth homographies, the authors use RANSAC during training to identify a set of "true" inliers. The DHE network is then trained to minimize the re-projection error of these specific points. This differentiability allows the backbone to be jointly fine-tuned, learning local features that are inherently more robust for spatial matching.
Experimental Results
The model was evaluated on several standard VPR benchmarks, including MSLS, Pitts30k, Nordland, and St. Lucia.
Performance and Speed
DHE-VPR demonstrates a significant advantage in processing speed. On the Pitts30k dataset, it achieved a total matching time of 0.104s, compared to 3.018s for TransVPR and 11.144s for Patch-NetVLAD-p. Despite this speedup, it maintained superior accuracy, achieving the best Recall@5 across all tested datasets.
Robustness to Environmental Changes
On the Nordland dataset, which features extreme seasonal variations, DHE-VPR showed a 20.6% absolute increase in Recall@1 compared to global retrieval alone. This highlights the effectiveness of the learnable geometric check in filtering out false positives caused by seasonal aliasing.
Conclusion
DHE-VPR represents a significant step forward in hierarchical VPR by making geometric verification both fast and differentiable. While the current model assumes a mostly planar scene—a common characteristic of urban environments—it may face challenges in complex 3D scenes with significant parallax. Future research will focus on removing the dependency on RANSAC during the training phase and extending the framework to handle non-planar geometries.
Summary updated