Skip to main content
QUICK REVIEW

[Paper Review] Rethinking Visual Geo-localization for Large-Scale Applications

Gabriele Berton, Carlo Masone|arXiv (Cornell University)|Apr 5, 2022
Advanced Image and Video Retrieval TechniquesComputer Science13 citations
TL;DR

This paper proposes CosPlace, a novel training method for visual geo-localization that replaces computationally expensive contrastive learning with a lightweight classification-based approach, enabling efficient training on massive datasets like SF-XL. CosPlace achieves state-of-the-art performance with 8x smaller descriptors and 80% less GPU memory, significantly improving scalability and generalization for city-scale applications.

ABSTRACT

Visual Geo-localization (VG) is the task of estimating the position where a given photo was taken by comparing it with a large database of images of known locations. To investigate how existing techniques would perform on a real-world city-wide VG application, we build San Francisco eXtra Large, a new dataset covering a whole city and providing a wide range of challenging cases, with a size 30x bigger than the previous largest dataset for visual geo-localization. We find that current methods fail to scale to such large datasets, therefore we design a new highly scalable training technique, called CosPlace, which casts the training as a classification problem avoiding the expensive mining needed by the commonly used contrastive learning. We achieve state-of-the-art performance on a wide range of datasets and find that CosPlace is robust to heavy domain changes. Moreover, we show that, compared to the previous state-of-the-art, CosPlace requires roughly 80% less GPU memory at train time, and it achieves better results with 8x smaller descriptors, paving the way for city-wide real-world visual geo-localization. Dataset, code and trained models are available for research purposes at https://github.com/gmberton/CosPlace.

Motivation & Objective

  • Address the lack of representative, large-scale datasets for real-world visual geo-localization applications.
  • Overcome the scalability limitations of current contrastive learning methods that rely on expensive negative mining in large training databases.
  • Develop a training paradigm that enables effective use of massive, city-wide image collections for both training and inference.
  • Enable efficient, high-performance visual geo-localization with minimal computational resources and robust generalization across domains.

Proposed method

  • Propose CosPlace, a training method that frames visual geo-localization as a multi-class classification problem using geo-location and heading-based grouping.
  • Define classes based on spatial cells and heading bins to create structured, discriminative training labels without requiring negative mining.
  • Use a contrastive loss surrogate via cross-entropy on grouped classes, enabling end-to-end training with standard optimization.
  • Leverage a backbone network (e.g., ResNet) with global average pooling to produce compact, discriminative descriptors.
  • Apply cosine similarity for retrieval at inference, using the learned descriptors to match queries to the nearest database image.
  • Train on the newly introduced San Francisco eXtra Large (SF-XL) dataset, which covers the entire city with dense, multi-domain image collection.

Experimental results

Research questions

  • RQ1Can a classification-based training approach outperform contrastive learning in large-scale visual geo-localization without expensive mining?
  • RQ2How does the performance of a model trained with CosPlace scale when using massive, city-wide datasets like SF-XL?
  • RQ3To what extent does CosPlace generalize to other datasets and domains, especially under domain shift?
  • RQ4What is the trade-off between descriptor size, inference speed, and accuracy when using CosPlace compared to existing methods?
  • RQ5How does the inclusion of heading labels affect performance and training efficiency in the proposed framework?

Key findings

  • CosPlace achieves state-of-the-art performance on multiple benchmarks, including 90.9% recall@1 on Pitts250k when using a 512-D descriptor.
  • A 512-D CosPlace model outperforms the previous SOTA (SFRS) while using 8x smaller descriptors and requiring 80% less GPU memory during training.
  • The method generalizes robustly across domains, achieving 98.8% recall@1 on St. Lucia and 81.8% on MSLS, even when trained solely on SF-XL.
  • CosPlace enables 8x faster inference with 512-D descriptors compared to 4096-D SFRS and 64x faster than 32k-D NetVLAD on large-scale datasets.
  • The use of heading-based grouping in CosPlace significantly improves performance, as ablation shows a 10% drop in recall@1 when heading labels are removed.
  • CosPlace is effective across various backbones, including ResNets and Transformers, and outperforms VGG-16-based models without architectural modifications.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.