Skip to main content
QUICK REVIEW

[Paper Review] TransVPR: Transformer-based place recognition with multi-level attention aggregation

Ruotong Wang, Yanqing Shen|arXiv (Cornell University)|Jan 6, 2022
Robotics and Sensor-Based LocalizationEngineering5 citations
TL;DR

TransVPR proposes a vision Transformer-based model for visual place recognition that leverages multi-level self-attention maps to dynamically aggregate task-relevant features, combining them to generate robust global representations and using filtered output tokens as key-patch descriptors for spatial re-ranking. It achieves state-of-the-art performance with a 5.8% absolute improvement in Recall@1 over the best baseline, while maintaining low computational cost and enabling end-to-end training with image-level supervision.

ABSTRACT

Visual place recognition is a challenging task for applications such as autonomous driving navigation and mobile robot localization. Distracting elements presenting in complex scenes often lead to deviations in the perception of visual place. To address this problem, it is crucial to integrate information from only task-relevant regions into image representations. In this paper, we introduce a novel holistic place recognition model, TransVPR, based on vision Transformers. It benefits from the desirable property of the self-attention operation in Transformers which can naturally aggregate task-relevant features. Attentions from multiple levels of the Transformer, which focus on different regions of interest, are further combined to generate a global image representation. In addition, the output tokens from Transformer layers filtered by the fused attention mask are considered as key-patch descriptors, which are used to perform spatial matching to re-rank the candidates retrieved by the global image features. The whole model allows end-to-end training with a single objective and image-level supervision. TransVPR achieves state-of-the-art performance on several real-world benchmarks while maintaining low computational time and storage requirements.

Motivation & Objective

  • To address the challenge of visual place recognition in complex scenes where distracting elements degrade performance.
  • To improve feature robustness by selectively aggregating task-relevant regions using self-attention mechanisms in Transformers.
  • To jointly learn global image representations and patch-level descriptors within a unified, end-to-end trainable architecture.
  • To achieve high accuracy and efficiency in real-world benchmarks through multi-level attention aggregation and spatial re-ranking.
  • To eliminate the need for weak supervision or keypoint annotations by relying solely on image-level supervision.

Proposed method

  • The model uses a vision Transformer encoder to extract hierarchical features from input images.
  • Multi-level self-attention maps from different Transformer layers are fused to generate a global image representation that emphasizes semantically meaningful regions.
  • Output tokens from each Transformer layer are filtered using the fused attention mask to produce key-patch descriptors for spatial matching.
  • The global feature is computed as a weighted sum of patch tokens using the fused attention map, enhancing focus on relevant regions.
  • Patch-level descriptors are used in a RANSAC-based spatial matching step to re-rank candidates retrieved by global features.
  • All components are trained end-to-end with a single contrastive loss objective using only image-level supervision.

Experimental results

Research questions

  • RQ1Can multi-level attention aggregation in vision Transformers improve robustness in visual place recognition under complex and distracting visual conditions?
  • RQ2How does fusing attention maps from different Transformer layers affect the quality of global image representations and patch descriptors?
  • RQ3Can filtered output tokens from multiple Transformer layers serve as effective key-patch descriptors for spatial re-ranking without explicit keypoint supervision?
  • RQ4Does the proposed end-to-end, image-level supervised approach outperform existing methods that rely on weak supervision or separate training stages?
  • RQ5What is the impact of using individual attention maps versus fused multi-level attention on recognition accuracy and generalization?

Key findings

  • TransVPR achieves a 5.8% absolute improvement in Recall@1 over the best baseline method, DELG, on benchmark datasets.
  • The model outperforms state-of-the-art methods including Patch-NetVLAD, NetVLAD, and DELG across multiple real-world benchmarks.
  • Fusing attention maps from low-, mid-, and high-level features leads to superior global representation learning compared to using individual or single-level attention maps.
  • Patch descriptors extracted from any Transformer layer (except the last) perform similarly and significantly outperform raw patch descriptors from the first layer.
  • The performance degrades slightly when using descriptors from the final Transformer layer, suggesting that excessive contextual aggregation may reduce locality.
  • Re-ranking with key-patch descriptors significantly improves performance, especially on the Nordland dataset, which suffers from severe perceptual aliasing.

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.