Regressing Transformers for Data-efficient Visual Place Recognition

Maria Leyva-Vallina, Nicola Strisciuglio, Nicolai Petkov · DOI

Introduction

Visual Place Recognition (VPR) is a fundamental challenge in autonomous navigation, essentially answering the question "where am I?" by identifying the location of a query image within a known database. Traditionally, this has been framed as an image retrieval problem solved through contrastive learning or classification. However, these methods often suffer from label noise—where images of the same location with minimal overlap are forced into the same category—and require computationally expensive "hard-pair mining" to achieve high performance.

A Regression-Based Approach

This research introduces a paradigm shift by treating VPR as a regression task rather than a binary classification problem. Instead of simply determining if two images represent the same place, the proposed model learns to predict the physical field-of-view (FoV) overlap between them.

The proposed regression framework maps latent space distance directly to physical camera overlap (ψ), providing a continuous measure of similarity across varying conditions.

The architecture utilizes a Siamese network with a hybrid Vision Transformer (ViT-R50) backbone. The core innovation lies in the loss function: Mean Squared Error (MSE) is used to minimize the difference between the Euclidean distance of image descriptors in latent space and the value $(1 - \psi)$, where $\psi$ represents the graded similarity or FoV overlap. By learning this continuous relationship, the model avoids the pitfalls of binary labels and eliminates the need for complex mining strategies or expensive post-processing re-ranking steps.

Experimental Setup and Datasets

The effectiveness of the regression-based Transformer was evaluated on several prominent VPR benchmarks:

  • MSLS (Mapillary Street Level Sequences): A massive dataset comprising 1.6 million images across 30 cities. It serves as the primary training ground, providing the necessary camera poses and intrinsic parameters to calculate ground-truth FoV overlap labels.
  • Pittsburgh30k: A standard benchmark used to assess the model's ability to generalize to entirely new urban environments.
  • Tokyo 24/7: A challenging dataset characterized by extreme illumination changes (e.g., day vs. night), testing the robustness of the learned descriptors.

Key Insights and Results

The regression framework yields several significant advantages:

  1. Physical Meaning of Latent Distance: In this model, the distance between descriptors has a direct physical interpretation. A specific distance value corresponds to a predicted percentage of shared visual information between two camera views.
  2. Extreme Data Efficiency: One of the most notable findings is the speed of convergence. While traditional contrastive methods often require extensive training over massive datasets, the regression-based ViT achieves state-of-the-art performance within just 10,000 to 20,000 iterations.
  3. Structural Robustness: Analysis of attention maps reveals that the regression-trained model naturally prioritizes permanent structural elements like buildings and skylines, while ignoring transient features such as vehicles. This focus enhances its reliability in dynamic environments.
  4. Superior Performance: On the MSLS validation set, the ViT-R50-MSE model achieved a Recall@5 of 91.1%, significantly outperforming standard NetVLAD (80.8%). It also demonstrated excellent generalization, reaching 94.7% Recall@5 on Pittsburgh30k and 88.9% on Tokyo 24/7 without city-specific fine-tuning.

Conclusion and Future Work

By reimagining Visual Place Recognition as a regression task, this work demonstrates that Transformers can achieve high accuracy and data efficiency without the complexity of traditional retrieval pipelines. While the current approach requires datasets with precise camera parameters for training, the benefits in terms of speed and robustness are substantial. Future research may explore extending this regression framework to other computer vision domains where similarity is inherently continuous rather than binary, and investigating its application in full 6-DoF pose estimation.

Summary updated

BibTeX
@inproceedings{leyvavallina2024regressing,
  author = {Maria Leyva-Vallina and Nicola Strisciuglio and Nicolai Petkov},
  title = {{Regressing Transformers for Data-efficient Visual Place Recognition}},
  booktitle = {IEEE International Conference on Robotics and Automation},
  year = {2024},
  url = {https://openreview.net/forum?id=UjmEGiq2D5},
}
Figure