Abstract
Visual Place Recognition (VPR) remains a significant challenge due to environmental variations across seasons, weather, and lighting. Traditional two-stage pipelines achieve robustness through computationally expensive local feature re-ranking. StructVPR proposes an alternative: distilling structural knowledge from semantic segmentation models directly into a global RGB feature extractor. By selectively weighting training samples based on the relative performance of the RGB student and the segmentation teacher, StructVPR achieves state-of-the-art retrieval accuracy with the speed of a single-stage global retrieval method.
Introduction
Visual Place Recognition (VPR) is the process of identifying a previously visited location by matching a query image against a database. This task is complicated by dynamic objects and drastic appearance changes caused by environmental factors. Standard solutions often rely on a "two-stage" approach: a fast global retrieval followed by a slow, geometrically-constrained re-ranking step.
The authors of StructVPR argue that the structural information typically used in re-ranking can be embedded directly into global features. However, they observe that while semantic segmentation (SEG) is robust to appearance changes, it is not a perfect teacher; in some scenarios, raw RGB features are more reliable. This observation motivates a weighted distillation approach that focuses on the most beneficial "knowledge" from the teacher.
Methodology
The StructVPR framework, featuring structural knowledge extraction, group partitioning for sample weighting, and weighted knowledge distillation. Source, p. 3
StructVPR utilizes cross-modal Knowledge Distillation (KD) to transfer structural awareness from a segmentation-based teacher to an RGB-based student.
Structural Knowledge Extraction
To avoid noise from fine-grained segmentation, the authors introduce Segmentation Label Map Encoding (SLME). This process clusters over 150 semantic classes into six broad categories (e.g., static objects, vegetation, dynamic objects). Manual weights are assigned to these categories to prioritize stable landmarks like buildings while ignoring transient elements like pedestrians.
Weighted Knowledge Distillation
The core innovation is the Weighted KD framework. Unlike standard KD, which treats all teacher outputs as ground truth, StructVPR partitions the training set into four groups based on the retrieval performance of the RGB and SEG branches. The distillation loss is weighted to emphasize samples where the teacher excels and the student struggles. Conversely, samples where the teacher performs poorly are down-weighted to prevent the student from learning incorrect structural representations.
Inference
During inference, the segmentation branch and the distillation modules are discarded. The system uses only the trained RGB student network for feature extraction, ensuring high computational efficiency.
Experiments and Results
The model was evaluated on the MSLS, Pittsburgh 30k, and Nordland datasets, demonstrating significant performance gains:
- Performance: On the MSLS validation set, StructVPR achieved an 83.0% Recall@1 using only global retrieval. This represents a 12.2% absolute improvement over previous state-of-the-art global methods like TransVPR.
- Efficiency: StructVPR's feature extraction takes only 2.25 ms per image, making it 5x to 16x faster than heavy two-stage extractors like Patch-NetVLAD.
- State-of-the-Art: When combined with a re-ranking backend (SP-SuperGlue), StructVPR reached 88.4% Recall@1 on MSLS, setting a new benchmark for the field.
Conclusion
StructVPR demonstrates that structural knowledge can be effectively baked into global RGB features through selective distillation. By acknowledging that the teacher model is not universally superior and weighting samples accordingly, the framework achieves a superior balance between retrieval accuracy and inference speed. Future work may involve automating the semantic grouping process to further optimize the structural priors.
Summary updated