EigenPlaces: Training Viewpoint Robust Models for Visual Place Recognition

Gabriele Moreno Berton, Gabriele Trivigno, Barbara Caputo, Carlo Masone

TL;DR

This paper introduces EigenPlaces, a novel training paradigm for Visual Place Recognition (VPR) that explicitly addresses the challenge of viewpoint changes. By cleverly clustering training data to represent diverse views of the same locations, EigenPlaces trains models that are significantly more robust to viewpoint shifts, outperforming state-of-the-art methods while requiring less computational resources.

What Problem Does This Paper Address?

Visual Place Recognition (VPR) aims to identify the location of an image using its visual features, typically by matching it against a large database of geotagged images. A persistent and significant challenge in VPR is recognizing places when the query image is captured from a different viewpoint than the database images. Existing methods often struggle with this, leading to failed retrievals. While some approaches try to mitigate this through post-processing (like spatial verification), they are only effective if the initial retrieval stage successfully finds at least one relevant image. This paper argues for tackling viewpoint robustness directly during the training of the VPR model itself.

Methods

The core innovation of EigenPlaces lies in its training methodology. Instead of relying on traditional positive/negative mining or grouping images by similar viewpoints, EigenPlaces creates training "classes" where each class contains images of the same place but from different viewpoints.

Here's how it works:

  1. Map Partitioning: The geographical map is divided into a grid of cells (e.g., 15x15 meters). These cells are then grouped into non-overlapping subsets to form potential classes.
  2. Focal Point Estimation: Within each cell, the algorithm estimates a "focal point" that represents a point of interest (like a building facade). This is achieved by analyzing the spatial distribution of images within the cell using Singular Value Decomposition (SVD). The first principal component often indicates the direction of a road, and the second principal component, perpendicular to it, points towards potential points of interest. A focal distance parameter D is used to precisely locate this focal point.
  3. Viewpoint Clustering: Images within a cell are then grouped based on their orientation towards this estimated focal point. This creates clusters of images depicting the same scene from various angles.
  4. Loss Function: A Large Margin Cosine Loss (CosFace) is employed, with separate components for "lateral" (viewpoint-robust) and "frontal" (forward-facing) views. This dual-component loss helps the model learn descriptors that are invariant to perspective changes.

This approach allows the model to learn global descriptors that are inherently robust to viewpoint variations without requiring explicit viewpoint annotations during training.

Datasets

The authors conducted extensive experiments on a large number of publicly available datasets, categorizing them into:

  • Multi-view datasets: These contain images with significant variations in orientation relative to the direction of travel. Examples include AmsterTime, Eynsham, Pitts30k, Pitts250k, Tokyo 24/7, San Francisco Landmark, SF-XL (test v1 & v2).
  • Frontal-view datasets: These primarily consist of images captured while moving forward. Examples include MSLS, Nordland, St Lucia, and various SVOX datasets (Night, Overcast, Rain, Snow, Sun).

They also leverage existing datasets like Pitts30k and SF-XL for training and evaluation.

Key Insights and Ideas

  • Viewpoint Robustness is Key: The paper strongly emphasizes that viewpoint variation is a critical bottleneck in VPR, and addressing it directly during training is more effective than post-processing.
  • Self-Supervised Viewpoint Clustering: The method cleverly infers viewpoint diversity from image coordinates alone, avoiding the need for manual annotations of viewpoints or points of interest. This makes the approach scalable.
  • Focal Point as a Proxy for "Place": By identifying a focal point (likely a building facade) and grouping images that "look at" it, EigenPlaces effectively creates training data that forces the model to learn viewpoint-invariant features for that specific place.
  • Dual Loss for Comprehensive Robustness: The combination of lateral and frontal loss components allows the model to handle both general viewpoint shifts and specific frontal-view scenarios effectively.
  • Efficiency Gains: The proposed training method not only improves accuracy but also leads to smaller descriptors and reduced GPU memory requirements during training.

Key Results

EigenPlaces demonstrates strong performance across a wide range of datasets:

  • State-of-the-Art Performance: EigenPlaces outperforms previous state-of-the-art methods on the majority of multi-view datasets, particularly those with significant viewpoint changes.
  • Efficiency: The method requires 60% less GPU memory for training and uses 50% smaller descriptors compared to some leading methods like MixVPR.
  • Qualitative Improvements: Figure 19 visually showcases EigenPlaces' ability to correctly retrieve images from challenging viewpoints, where other methods fail. The similarity matrices in Figure 7 also show that EigenPlaces maintains higher cosine similarity between embeddings of images from the same place but different viewpoints.
  • Balanced Performance: While MixVPR sometimes edges out EigenPlaces on purely frontal-view datasets, EigenPlaces offers a better overall balance and superior performance on the more challenging multi-view scenarios.

Limitations and Future Work

  • Dataset Dependency: The method's effectiveness relies on the assumption that images within a cell are somewhat aligned along a road, and that points of interest are located on the sides of these roads. This might not hold true in all scenarios, such as at complex crossroads.
  • Focal Distance Tuning: While the paper explores focal distance, optimal values might still require some tuning per dataset or scenario.
  • Future Work: The authors suggest that further exploration into how different datasets highlight model capabilities and weaknesses is valuable. The provided codebase allows for easy comparison with other baselines, facilitating future research. The paper also hints at the potential for further improvements by combining EigenPlaces with other techniques.

Summary updated

BibTeX
@inproceedings{berton2023eigenplaces,
  author = {Gabriele Moreno Berton and Gabriele Trivigno and Barbara Caputo and Carlo Masone},
  title = {{EigenPlaces: Training Viewpoint Robust Models for Visual Place Recognition}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2023},
  url = {https://openreview.net/forum?id=sLosLx3HHM},
}
Figure