TL;DR
This paper introduces SelaVPR++, an improved method for visual place recognition (VPR) that efficiently adapts large pre-trained foundation models. It achieves state-of-the-art performance with significantly reduced training time, memory usage, and retrieval latency by employing novel memory-efficient adapters and a two-stage retrieval strategy using compact binary features.
What Problem Does This Paper Address?
Visual place recognition (VPR), the task of identifying a location from an image, is crucial for applications like robot navigation and augmented reality. While pre-trained foundation models (like those trained on ImageNet or similar large datasets) show promise for VPR, directly fine-tuning them is computationally expensive and can lead to "catastrophic forgetting" of their general knowledge. Previous adaptation methods, like SelaVPR, improved efficiency but still suffered from high training costs and slow re-ranking due to reliance on local features. This paper addresses the need for a VPR system that is not only highly accurate but also extremely efficient in terms of training resources, memory footprint, and real-time retrieval speed, especially for large-scale applications.
Methods
SelaVPR++ builds upon the previous SelaVPR by introducing several key innovations:
- Memory-Efficient MultiConv Adaptation: Instead of inserting adapters directly into the foundation model's transformer blocks, SelaVPR++ uses parallel "side adapter networks." This design avoids backpropagating gradients through the entire frozen backbone, drastically reducing training time and GPU memory. The adapters themselves are "MultiConv" (Multi-scale Convolution) adapters, which not only refine features but also capture spatial interactions between image patches and introduce multi-scale local priors, improving feature discriminability.
- Efficient Two-Stage VPR Paradigm: To overcome the latency and storage costs of traditional two-stage VPR (which uses global features for initial retrieval and local features for re-ranking), SelaVPR++ employs a novel approach. It uses compact, low-dimensional binary features (generated via deep hashing) for fast initial retrieval of candidate images. Then, it uses robust, high-dimensional floating-point global features for re-ranking. This eliminates the need for local feature matching entirely.
- Similarity-Constrained Deep Hashing: To generate the compact binary features, the authors propose a deep hashing method. This method incorporates a "similarity-constrained quantization loss" to preserve feature similarity and uses "straight-through estimation" (STE) to enable end-to-end training.
- Unified Training Strategy: The paper also proposes merging several common VPR datasets (GSV-Cities, SF-XL, Pitts30k, and MSLS) into a unified protocol for more robust model training, addressing variations in dataset annotation and training procedures.
Datasets
The paper uses several standard VPR datasets for training and evaluation:
- Training: GSV-Cities, SF-XL, Pitts30k, and MSLS. The authors propose a unified training protocol for these datasets.
- Evaluation: Pitts30k, Tokyo24/7, MSLS (val and challenge), and Nordland. Supplementary datasets like SPED, Eynsham, and SVOX are also used.
Key Insights and Ideas
- Decoupling Adaptation from Backbone: By using parallel adapter networks, SelaVPR++ effectively decouples the adaptation process from the frozen backbone. This is a crucial step for achieving memory and time efficiency during training.
- MultiConv Adapters for Spatial Awareness: The MultiConv adapters are key to capturing richer feature representations by considering spatial relationships between image patches, which vanilla adapters often miss.
- Binary Features for Speed, Float for Accuracy: The two-stage approach cleverly leverages the strengths of both binary (speed, low storage) and floating-point (accuracy) features, achieving a significant speedup without sacrificing performance.
- Unified Datasets for Robustness: Merging diverse datasets into a single training protocol leads to more robust models that generalize better across different environments and conditions.
Key Results
- Performance: SelaVPR++ achieves state-of-the-art results, ranking 1st on the MSLS challenge leaderboard and outperforming previous methods by a large margin across multiple datasets.
- Efficiency:
- Training Time: Significantly reduced compared to full fine-tuning and even partial fine-tuning.
- GPU Memory: Uses substantially less GPU memory during training (e.g., 11.5% of full fine-tuning for DINOv2-large).
- Retrieval Latency: Achieves a remarkable 6000x speedup over TransVPR and 60x speedup over one-stage methods using 4096-dim global descriptors. The initial retrieval using binary features is over an order of magnitude faster than using L2 distance on floating-point features.
Limitations and Future Work
- Corner Cases: The paper acknowledges that SelaVPR++ can still struggle with extreme viewpoint or illumination changes, or in natural scenes lacking discriminative landmarks.
- Geographical Density: For cases where query and database images are from very close locations but exceed the predefined distance threshold, all methods, including SelaVPR++, fail. The authors suggest increasing the geographical density of image collection in the database.
- Future Work: The authors suggest increasing descriptor dimensionality as a potential solution for challenging corner cases, implying a trade-off between dimensionality, performance, and efficiency. They also highlight the scalability and plug-and-play nature of their MultiConv adapters.
Summary updated