ClusVPR: Efficient Visual Place Recognition With Clustering-Based Weighted Transformer

Yifan Xu, Pourya Shamsolmoali, Masoumeh Zareapoor, Jie Yang

Abstract

Visual Place Recognition (VPR) is a critical task for autonomous navigation, yet it remains challenging due to environmental changes and visual redundancy. This paper introduces ClusVPR, a framework designed to enhance VPR efficiency and accuracy. By employing a Clustering-based Weighted Transformer (CWTNet), the model prioritizes unique landmarks over redundant image regions. Additionally, an Optimized-VLAD (OptLAD) layer reduces parameter complexity, while a Pyramid Self-Supervised (PSS) strategy improves robustness to scale variations. ClusVPR achieves state-of-the-art results on major benchmarks with significantly fewer parameters than traditional NetVLAD-based models.

Introduction

Visual Place Recognition (VPR) enables robots and autonomous vehicles to determine their location by comparing current visual input with a database of known locations. However, real-world environments present significant hurdles. First, scenes often contain redundant textures (e.g., repetitive building facades) or dynamic distractions (e.g., vehicles and pedestrians) that do not contribute to stable localization. Second, standard deep learning architectures face a trade-off: Convolutional Neural Networks (CNNs) may overlook fine-grained local details, while Vision Transformers (ViTs) incur high computational costs by treating all image patches with equal importance. ClusVPR addresses these issues by intelligently weighting visual features based on their uniqueness and informational density.

Methodology

The ClusVPR architecture consists of three primary components designed for feature extraction, aggregation, and robust training.

The ClusVPR framework overview, highlighting CNN feature extraction, the CWTNet aggregation module, and the OptLAD layer.

CWTNet (Clustering-based Weighted Transformer Network)

Standard self-attention mechanisms often struggle with visual redundancy. CWTNet introduces a k-nearest neighbor (KNN) clustering approach to evaluate the density of image tokens. By assigning higher weights to unique, representative features and lower weights to dense, redundant ones, the network effectively filters out noise and focuses on discriminative landmarks.

OptLAD (Optimized-VLAD)

While NetVLAD is a standard for feature aggregation, its high parameter count can be prohibitive. OptLAD optimizes this process by partitioning high-dimensional feature vectors into uniform groups before aggregation. This "split-and-merge" approach significantly reduces the parameters required for dimensionality reduction (such as PCA) without sacrificing performance.

Pyramid Self-Supervised (PSS) Strategy

To overcome the limitations of noisy GPS labels in large-scale datasets, ClusVPR utilizes a PSS strategy. This approach decomposes images into multi-scale patches and employs a teacher-student learning paradigm. The model learns to identify discriminative patches across different scales, enhancing its robustness to perspective changes and occlusions.

Key Results and Discussion

ClusVPR was evaluated on several benchmark datasets, including MSLS, Pitts30k/250k, and Tokyo 24/7.

  • Superior Accuracy: On the MSLS validation set, ClusVPR achieved a Recall@1 of 82.7%, outperforming previous state-of-the-art models like Patch-NetVLAD (80.3%).
  • Massive Efficiency Gains: The model is remarkably lightweight. Traditional NetVLAD-based architectures often require nearly 149M parameters, whereas ClusVPR achieves superior accuracy with only 53.12M parameters—approximately one-third of the size.
  • Qualitative Robustness: Visualization of attention maps demonstrates that ClusVPR successfully ignores transient objects like cars and focuses on stable structural elements like building corners and signage, even during challenging day-to-night transitions.
Qualitative comparison of attention maps between ClusVPR (Ours), GPM, and NetVLAD. ClusVPR shows superior focus on stable landmarks across various lighting conditions.

Conclusion

ClusVPR represents a significant step forward in efficient Visual Place Recognition. By integrating clustering-based weighting and optimized feature aggregation, it achieves a superior balance between accuracy and computational footprint. Future research may explore the direct integration of these clustering mechanisms into backbone architectures to further streamline the VPR pipeline.

Summary updated

BibTeX
@article{xu2023clusvpr,
  author = {Yifan Xu and Pourya Shamsolmoali and Masoumeh Zareapoor and Jie Yang},
  title = {{ClusVPR: Efficient Visual Place Recognition With Clustering-Based Weighted Transformer}},
  journal = {IEEE Trans. Artif. Intell.},
  year = {2023},
}
Figure