Adaptive-Attentive Geolocalization from few queries: a hybrid approach

Gabriele Moreno Berton, Valerio Paolicelli, Carlo Masone, Barbara Caputo

Abstract

We address the task of cross-domain visual place recognition, where the goal is to geolocalize a given query image against a labeled gallery, in the case where the query and the gallery belong to different visual domains. To achieve this, we focus on building a domain robust deep network by leveraging over an attention mechanism combined with few-shot unsupervised domain adaptation techniques, where we use a small number of unlabeled target domain images to learn about the target distribution. With our method, we are able to outperform the current state of the art while using two orders of magnitude less target domain images. Finally we propose a new large-scale dataset for cross-domain visual place recognition, called SVOX. The pytorch code is available at https://github.com/valeriopaolicelli/AdAGeo.

Introduction

Visual Place Recognition (VPR) is a fundamental task for autonomous navigation, involving the matching of a query image to a large, geotagged gallery. While current systems perform well under consistent environmental conditions, they often fail when faced with significant "domain shifts"—variations in weather, lighting, or season. For instance, matching a query taken on a snowy night against a gallery of sunny daytime images remains a formidable challenge.

Traditional solutions to this problem typically require extensive labeled datasets for every new environment, an approach that is often impractical for real-world deployments. This research introduces AdAGeo (Adaptive-Attentive Geolocalization), a framework designed for Few-Shot Unsupervised Domain Adaptation. AdAGeo aims to achieve environmental robustness using only a handful of unlabeled images from the target domain.

The AdAGeo Framework

The AdAGeo architecture operates in two distinct phases to bridge the gap between source and target domains.

The AdAGeo architecture: Phase 1 focuses on domain-driven data augmentation, while Phase 2 employs a hybrid retrieval network with attention and domain adaptation modules.

Phase 1: Domain-Driven Data Augmentation (DDDA)

In the first phase, the system utilizes a pair of autoencoders to learn a mapping from the source domain (the gallery) to the target domain (the query environment). Remarkably, with as few as five unlabeled target images, the model can "translate" gallery images into "pseudo-target" images. This allows the system to hallucinate how a known street would appear under different conditions, such as rain or night.

Phase 2: Hybrid Retrieval Network

The second phase involves a multi-component network designed for robust feature extraction:

  • Attention Mechanism: Utilizing a backbone pretrained on the Places365 dataset, the network employs an attention layer to focus on structurally stable landmarks (e.g., buildings) while ignoring transient elements like cars or vegetation.
  • Domain Adaptation (DA) Module: An adversarial branch featuring a Gradient Reversal Layer (GRL) forces the encoder to produce domain-agnostic embeddings, ensuring that image representations remain consistent regardless of environmental style.
  • Aggregation: The resulting attentive features are aggregated via a NetVLAD layer into a compact vector suitable for efficient retrieval.

Experimental Setup and Datasets

The study introduces SVOX (Street View Oxford), a large-scale dataset specifically designed for cross-domain VPR. SVOX pairs Google Street View images (source domain) with queries from the Oxford RobotCar dataset (target domain).

Spatial distribution of the SVOX and RobotCar datasets across training, validation, and test sets.

The evaluation covers five distinct target scenarios from the Oxford RobotCar dataset: Snow, Rain, Sun, Night, and Overcast.

Results and Discussion

AdAGeo demonstrates significant improvements over existing state-of-the-art methods in both accuracy and data efficiency.

  • Performance Gains: Using a ResNet18 backbone, AdAGeo achieved an average Recall@1 of 49.8% across all domains, a substantial increase from the 33.2% baseline.
  • Efficiency: The framework outperformed previous methods while requiring 100x fewer target domain images, highlighting the effectiveness of the few-shot approach.
  • Extreme Domain Robustness: The most dramatic improvements were observed in challenging conditions. In "Night" scenarios, accuracy rose from 1.6% to 10.5%, and in "Sun" conditions, it increased from 17.7% to 29.6%.
  • Ablation Study: Results indicate that the generative (DDDA), attentive (Att), and adversarial (DA) modules provide complementary benefits, with the best performance achieved when all three are combined.

Conclusion

AdAGeo provides a scalable and efficient solution for cross-domain VPR by combining generative augmentation with domain-invariant feature learning. While the current generative module produces some visual artifacts, the resulting "pseudo-target" images are highly effective for training. Future work will focus on improving the fidelity of style transfer and addressing the remaining performance gaps in extreme shifts like night-to-day localization.

Summary updated

BibTeX
@article{berton2022adaptive,
  author = {Gabriele Moreno Berton and Valerio Paolicelli and Carlo Masone and Barbara Caputo},
  title = {{Adaptive-Attentive Geolocalization from few queries: a hybrid approach}},
  journal = {Frontiers of Computer Science},
  year = {2022},
  doi = {10.3389/fcomp.2022.841817},
}
Figure