Improving Feature-based Visual Localization by Geometry-Aided Matching

Hailin Yu, Youji Feng, Weicai Ye, Mingxuan Jiang, Hujun Bao, Guofeng ZhangarXiv 2022 · DOI

Abstract

Visual localization is a critical component for autonomous systems, yet traditional appearance-based matching often struggles with repetitive patterns and extreme environmental changes. We introduce Geometry-Aided Matching (GAM), a method that integrates geometric context into the matching process. By utilizing a Bipartite Matching Network (BMNet) and a Hungarian Pooling layer, GAM effectively resolves ambiguities and enforces global consistency. Experimental results demonstrate that GAM achieves state-of-the-art performance on major benchmarks while being up to six times faster than leading competitors.

Introduction

Visual localization involves estimating the 6-degree-of-freedom (6DoF) pose of a camera by establishing correspondences between 2D image keypoints and a 3D scene model. Standard methods rely on Nearest Neighbor (NN) searches in descriptor space. However, this approach is prone to failure in urban environments where buildings exhibit repetitive architectural features (e.g., windows, columns) or when lighting conditions shift dramatically between day and night.

The Geometry-Aided Matching (GAM) Framework

To overcome the limitations of pure appearance-based matching, GAM shifts the focus toward geometric consistency. The pipeline begins with $k$NN Ratio Matching, which identifies multiple candidate 3D points for each 2D keypoint. While this increases the probability of including the correct match, it also introduces significant noise.

Overview of the GAM pipeline, showing the transition from ambiguous kNN matching to geometrically consistent correspondences and a qualitative comparison with traditional methods.

The core of GAM is the Bipartite Matching Network (BMNet). BMNet processes potential matches by embedding 2D and 3D coordinates through dedicated sub-networks (U-Net and V-Net) and predicting inlier probabilities via an edge-processing network (E-Net). This allows the system to evaluate matches based on their spatial context rather than just their visual appearance.

Hungarian Pooling and Global Consistency

A significant challenge in geometric matching is the "conflict problem," where multiple matches for a single point may have similar geometric consistency scores. To resolve this, the authors introduced Hungarian Pooling.

The Bipartite Matching process uses a neural network to predict weights, followed by a Maximum-Weight Matching step to enforce one-to-one constraints.

This layer implements the Hungarian algorithm within the neural network architecture to enforce a strict one-to-one matching constraint. By optimizing the global matching configuration, Hungarian Pooling effectively "breaks ties" between competing candidates, ensuring that each 2D point is matched to the most geometrically plausible 3D point.

Experimental Evaluation

GAM was evaluated on several challenging datasets, including Cambridge Landmarks and Aachen Day-Night.

  • Efficiency: GAM is remarkably efficient, performing 6x faster than the HLoc + SuperGlue pipeline on the Cambridge Landmarks dataset.
  • Robustness: On the Aachen Day-Night benchmark, GAM significantly outperformed standard NN matching, particularly in night-time queries where appearance descriptors are least reliable. At a 0.25m accuracy threshold, GAM reached 73.5% recall, a substantial jump from the 54.1% achieved by traditional methods.

Conclusion

Geometry-Aided Matching represents a significant step forward in visual localization. By moving beyond appearance and leveraging the inherent geometric structure of the world, GAM provides a robust, fast, and accurate solution for real-world localization challenges. Future work will focus on adapting the system for dynamic environments and tighter integration with real-time SLAM frameworks.

Summary updated

BibTeX
@misc{yu2022improving,
  author = {Hailin Yu and Youji Feng and Weicai Ye and Mingxuan Jiang and Hujun Bao and Guofeng Zhang},
  title = {{Improving Feature-based Visual Localization by Geometry-Aided Matching}},
  year = {2022},
  eprint = {2211.08712},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2211.08712},
}
Figure