Abstract
Traditional visual localization systems rely heavily on high-dimensional visual descriptors to match 2D image keypoints to 3D map points. While effective, these descriptors impose significant storage burdens, raise privacy concerns, and complicate map maintenance. This paper introduces GoMatch, a novel framework that achieves robust visual localization using only geometric information. By representing points as bearing vectors and employing an attention-based neural network, GoMatch eliminates the need for visual descriptors entirely. Our experiments demonstrate that GoMatch reduces storage requirements by approximately 98% compared to descriptor-based methods and significantly outperforms existing geometric-only baselines in real-world scenarios.
Introduction
Visual localization—the process of estimating a camera's 6-DoF pose within a known 3D environment—is a fundamental component of autonomous robotics, augmented reality, and navigation systems. The standard pipeline typically involves matching 2D keypoints from a query image to 3D points in a Structure-from-Motion (SfM) map. Historically, this matching process has been driven by visual descriptors like SIFT or SuperPoint.
However, the reliance on visual features introduces three critical challenges. First, storage scalability: city-scale maps can require terabytes of data to store descriptors for millions of points. Second, maintenance overhead: any update to the descriptor algorithm necessitates a complete re-processing of the 3D map. Third, privacy: visual descriptors can potentially be inverted to reconstruct the original scene images, posing a security risk during client-server communication. GoMatch addresses these issues by asking: can we achieve accurate localization using only the spatial coordinates of points?
Methodology
GoMatch is designed to find correspondences between 2D keypoints and 3D map points without any access to image patches or visual features. The architecture focuses on three core innovations to overcome the noise and outliers inherent in real-world geometric data.
Bearing Vector Representation
Matching 2D pixel coordinates directly to 3D world coordinates is a difficult cross-modal task. GoMatch simplifies this by projecting 3D points into "co-visible" reference views as bearing vectors—unit vectors pointing from the camera center toward the point. This transformation converts the problem into an intra-modal task: matching directions to directions, which effectively nullifies the impact of varying camera intrinsics.
Attention-Based Feature Refinement
Previous geometric matchers often processed points in isolation, making them highly sensitive to noise. GoMatch utilizes a Transformer-inspired architecture with self-attention and cross-attention layers. Self-attention allows keypoints within the same set to communicate, capturing the relative spatial arrangement (the "shape") of the point cloud. Cross-attention allows the 2D and 3D sets to exchange information, building a rich geometric context that helps the model distinguish between similar local configurations.
Robust Matching and Outlier Rejection
To handle the messy nature of real-world data, where many detected keypoints may not exist in the 3D map, GoMatch incorporates a dedicated outlier rejection layer. This layer predicts a confidence score for each potential match. The final assignment is solved using the Sinkhorn algorithm, which ensures a globally consistent set of matches by enforcing one-to-one constraints.
Experimental Results
Storage Efficiency
The most immediate benefit of GoMatch is the reduction in map size. On the MegaDepth dataset, a traditional SIFT-based map requires approximately 133 GB. By storing only geometric coordinates, GoMatch reduces this requirement to just 3.45 GB—a reduction of over 97%.
Localization Performance
GoMatch was evaluated against standard benchmarks, including Cambridge Landmarks (outdoor) and 7-Scenes (indoor). Compared to the previous state-of-the-art geometric matcher, BPnPNet, GoMatch achieved a significant reduction in median pose error:
- Cambridge Landmarks: Error reduced by 10.67 meters.
- 7-Scenes: Error reduced by 1.43 meters.
Robustness and Generalization
One of the most striking findings is the model's robustness to outliers. GoMatch maintains high accuracy even when up to 50% of the keypoints are noise, a threshold where previous geometric methods typically fail. Furthermore, a model trained exclusively on outdoor data (MegaDepth) generalized remarkably well to indoor environments (7-Scenes), suggesting that geometric patterns are more universal and less scene-dependent than visual features.
Conclusion and Future Work
GoMatch demonstrates that geometry is indeed "almost enough" for visual localization. By bypassing visual descriptors, the framework offers a privacy-preserving, storage-efficient, and maintenance-friendly alternative to traditional pipelines. While currently slightly less accurate than top-tier visual-based methods like SuperGlue, GoMatch represents a significant leap for geometric-only matching. Future research will explore combining GoMatch with advanced scene compression to enable city-scale localization on resource-constrained mobile devices.
Summary updated