Abstract
Outdoor visual localization remains a significant challenge due to drastic appearance changes across seasons, weather, and lighting conditions. This paper proposes a semantic pose verification step that utilizes self-supervised contrastive learning on semantic segmentation masks. By training a ResNet-18 encoder with SimCLR, the system learns a robust "structural fingerprint" of scenes, allowing for accurate re-ranking of image retrieval candidates. Evaluation on the Pittsburgh dataset shows that this approach achieves a Top-1 recall of 0.90, outperforming standard RGB-based retrieval and naive pixel-wise semantic comparisons.
Introduction
Visual localization—the task of determining a camera's precise position and orientation—is a cornerstone of autonomous driving and augmented reality. However, "long-term" localization is notoriously difficult because standard methods rely on RGB features (colors and textures) that change constantly. A city street looks fundamentally different at noon in the summer than it does at midnight in the winter.
While semantic information (identifying stable elements like "buildings," "roads," and "sky") is much more stable over time, comparing semantic masks is non-trivial. Cameras are rarely in the exact same spot, meaning simple pixel-by-pixel comparisons often fail due to viewpoint shifts. This research seeks a way to measure "semantic similarity" that is flexible enough to handle these geometric offsets.
Methodology
The authors propose a multi-stage pipeline designed to bridge the gap between initial coarse retrieval and precise pose verification:
- Initial Retrieval: A state-of-the-art RGB-based method (SFRS) finds the top 10 most likely matches from a database of panoramic images.
- Semantic Segmentation: Semantic masks are generated for both the query image and the database candidates using a pre-trained segmentation model. This transforms transient visual data into a stable structural layout.
- Contrastive Learning (The Core Innovation): Instead of comparing pixels directly, the authors train a ResNet-18 encoder using SimCLR, a self-supervised contrastive learning framework. The goal is to teach the network to produce similar feature vectors for masks of the same scene (even if cropped or rotated) and different vectors for different scenes.
- Pose Verification: The similarity scores from this semantic encoder are merged with the original RGB scores to re-rank the candidates.
Key Insights and Results
The study reveals that a trained CNN effectively captures scene layouts, making it more tolerant to viewpoint offsets than naive pixel-wise comparisons. A critical finding was the "Reverse-U" relationship regarding data augmentation: a crop ratio of 0.6 was identified as the optimal "sweet spot" for learning discriminative features. If crops are too similar, the task is too easy; if they are too different, the model cannot find commonalities.
Quantitatively, the semantic verification step increased the Top-1 recall to 0.90, a 2% absolute improvement over the state-of-the-art RGB-only method. Notably, the purely self-supervised model performed on par with fine-tuned versions, proving that the contrastive approach effectively captures the essence of scene geometry without requiring manual labels.
Limitations and Future Work
Despite the performance boost, the system's accuracy is capped by the quality of the initial semantic segmentation. If the segmentation model fails (e.g., in extremely low light), the verification step struggles. Additionally, running masks through an encoder adds computational latency compared to pure RGB retrieval. Future directions include extending this work to compute semantic similarity directly from panoramic views, which could further improve localization in areas with limited field-of-view overlap.
Summary updated