Abstract
Visual Place Recognition (VPR) aims to determine the geographic location of a query image by retrieving its most visually similar counterpart from a geo-tagged reference database. Recently, the emergence of the powerful visual foundation model, DINOv2, has significantly improved VPR performance due to its exceptional feature generalization. However, increased model complexity and computational overhead often impede deployment on resource-constrained devices. To address this, we propose $D^{2}$-VPR, a distillation- and deformable-based framework that retains the strong feature extraction capabilities of visual foundation models while significantly reducing model parameters. Our approach utilizes a two-stage training strategy with a Distillation Recovery Module (DRM) to align feature spaces and a Top-Down-attention-based Deformable Aggregator (TDDA) to adaptively adjust Regions of Interest (ROI). Experiments show our method achieves competitive performance while reducing parameter count by approximately 64.2% compared to state-of-the-art models like CricaVPR.
Introduction: Addressing the Performance-Efficiency Gap
Visual Place Recognition is a challenging task due to extreme appearance variations caused by lighting, weather, and seasonal changes. While foundation models like DINOv2 have revolutionized the field by generalizing across these shifts, their massive size (e.g., 86M to 300M+ parameters) makes them unsuitable for mobile robotics or edge devices. Simply using smaller backbones typically results in a significant accuracy drop. $D^2$-VPR bridges this gap by enabling a lightweight student model to inherit the robust feature representations of a large teacher model.
Methodology: The $D^2$-VPR Framework
The $D^2$-VPR framework employs a two-pronged strategy to optimize the performance-efficiency trade-off.
Two-Stage Training and Distillation Recovery
To transfer knowledge effectively, we utilize a two-stage training process:
- Stage 1 (Distillation): A large teacher model (CricaVPR) guides the training of a smaller student model (DINOv2-small). To minimize information loss, we introduce the Distillation Recovery Module (DRM). This module fuses hierarchical features from all four stages of the student backbone, ensuring the student retains the rich multi-scale information present in the foundation model.
- Stage 2 (Fine-tuning): The student model is refined for the specific VPR task using Multi-Similarity Loss, a metric learning objective that optimizes the distance between query and database images.
Top-Down-attention-based Deformable Aggregator (TDDA)
Standard VPR models often use rigid grid-based pooling, which fails to capture the irregular shapes of urban landmarks. Our proposed TDDA uses the global semantic context (the "class token") to dynamically deform pooling regions. This "top-down" guidance allows the model to adaptively focus on stable, recognizable regions of interest, making the final image descriptor more robust to viewpoint shifts.
Experimental Evaluation
We evaluated $D^2$-VPR on several diverse benchmarks, including Pitts30k/250k for urban viewpoint changes, MSLS-val for long-term suburban variations, and Nordland for extreme seasonal changes. The model was trained on the GSV-Cities dataset.
Key Results and Efficiency Analysis
$D^2$-VPR demonstrates a superior balance between accuracy and model size:
- Parameter Efficiency: Our model uses only 38.2M parameters, representing a 64.2% reduction compared to CricaVPR (106.8M) while maintaining nearly identical performance.
- State-of-the-Art Performance: On MSLS-val, $D^2$-VPR achieved 91.6% Recall@1, outperforming significantly larger models such as SALAD and Sela-global. On the Nordland dataset, it achieved 86.6% R@1, proving its robustness against seasonal variations.
Conclusion and Future Work
$D^2$-VPR successfully brings the power of massive visual foundation models to a lightweight architecture. By combining multi-stage feature alignment via DRM with the adaptive attention of TDDA, we achieve state-of-the-art results with a fraction of the parameters. While the model is highly parameter-efficient, future work will focus on optimizing the inference latency of the deformable aggregator to improve real-time performance on standard hardware.
Summary updated