[Paper Review] Towards Seamless Adaptation of Pre-trained Models for Visual Place Recognition
The paper proposes SelaVPR, a hybrid global-local adaptation of pre-trained foundation models for visual place recognition, using lightweight adapters and mutual nearest neighbor local loss to enable fast, accurate two-stage VPR with minimal fine-tuning.
Recent studies show that vision models pre-trained in generic visual learning tasks with large-scale data can provide useful feature representations for a wide range of visual perception problems. However, few attempts have been made to exploit pre-trained foundation models in visual place recognition (VPR). Due to the inherent difference in training objectives and data between the tasks of model pre-training and VPR, how to bridge the gap and fully unleash the capability of pre-trained models for VPR is still a key issue to address. To this end, we propose a novel method to realize seamless adaptation of pre-trained models for VPR. Specifically, to obtain both global and local features that focus on salient landmarks for discriminating places, we design a hybrid adaptation method to achieve both global and local adaptation efficiently, in which only lightweight adapters are tuned without adjusting the pre-trained model. Besides, to guide effective adaptation, we propose a mutual nearest neighbor local feature loss, which ensures proper dense local features are produced for local matching and avoids time-consuming spatial verification in re-ranking. Experimental results show that our method outperforms the state-of-the-art methods with less training data and training time, and uses about only 3% retrieval runtime of the two-stage VPR methods with RANSAC-based spatial verification. It ranks 1st on the MSLS challenge leaderboard (at the time of submission). The code is released at https://github.com/Lu-Feng/SelaVPR.
Motivation & Objective
- Bridge the gap between pre-training and visual place recognition (VPR) tasks by adapting foundation models without full fine-tuning.
- Produce both global and local features to support fast retrieval and accurate re-ranking in VPR.
- Eliminate expensive spatial verification in re-ranking by leveraging dense local features for direct cross-matching.
- Demonstrate data-efficient training and real-time retrieval capabilities across major VPR benchmarks.
Proposed method
- Introduce global adaptation: add serial adapter after MHA and parallel adapter to MLP in each transformer block to focus on discriminative landmarks.
- Introduce local adaptation: up-convolutional layers after the backbone to produce a dense local feature map for re-ranking.
- Use GeM pooling on the feature map to obtain a global feature for candidate retrieval.
- Compute local matches via mutual nearest neighbor across query/candidate local features and use the count of matches as the re-ranking score (no spatial verification).
- Train with a joint loss: global triplet loss Lg plus a mutual nearest neighbor local feature loss Ll with weight lambda to optimize local features for re-ranking.
- Base architecture uses a frozen DINOv2 ViT-L/14 backbone with lightweight adapters (parameter-efficient transfer learning).
Experimental results
Research questions
- RQ1Can lightweight adapters enable seamless adaptation of pre-trained foundation models for VPR without full fine-tuning?
- RQ2Does a hybrid global-local adaptation improve both global retrieval and local re-ranking for VPR?
- RQ3Can mutual nearest neighbor local feature loss produce effective dense local features suitable for re-ranking without RANSAC?
- RQ4How does SelaVPR perform compared to state-of-the-art VPR methods on standard benchmarks and in terms of runtime?
Key findings
- SelaVPR achieves state-of-the-art results on multiple VPR benchmarks, ranking 1st on the MSLS challenge leaderboard at submission time.
- SelaVPR(global) outperforms many one-stage methods in global retrieval, achieving strong R@5 and R@10 across datasets.
- The full SelaVPR (global + local adaptation) provides substantial gains, with notable R@1 improvements on Tokyo24/7 and Pitts30k after re-ranking.
- Local adaptation yields large R@1 gains on Tokyo24/7, highlighting the benefit of dense local features in challenging conditions.
- SelaVPR enables re-ranking without spatial verification, achieving retrieval runtimes as low as ~3% of RANSAC-based two-stage methods and under 4% total runtime in Pitts30k-test.
- Ablation studies show the necessity of both global and local adaptations and that parameter-efficient tuning preserves transferability while boosting performance.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.