Abstract
Scene Coordinate Regression (SCR) offers a compact and efficient alternative to traditional feature-matching for visual localization, yet it traditionally struggles to scale to large, complex environments due to perceptual aliasing. We present GLACE (Global Local Accelerated Coordinate Encoding), a novel SCR framework that overcomes these limitations using a single, compact neural network. By integrating global image context with a unique feature diffusion technique and a multi-modal position decoder, GLACE achieves state-of-the-art performance on city-scale benchmarks without the need for expensive 3D models or network ensembles.
Introduction
Visual localization—the process of determining a camera's precise position and orientation—is a cornerstone of robotics and AR/VR. Scene Coordinate Regression (SCR) has emerged as a popular method because it "bakes" the map of an environment directly into the weights of a neural network. Instead of matching descriptors against a massive 3D point cloud, the network analyzes an image patch and directly predicts its 3D coordinates.
However, SCR has historically faced a "scaling wall." While highly accurate in small, room-scale settings, it often fails in large-scale outdoor scenes or multi-room buildings where different locations look identical (perceptual aliasing). To address this, previous research relied on 3D models for supervision or memory-intensive ensembles of multiple networks. GLACE breaks this wall using a single, compact network (~10-13 MB) capable of handling city-scale environments.
Methodology
GLACE introduces three key innovations to the standard SCR pipeline to enable large-scale scalability:
1. Global-Local Encoding
Standard SCR typically only considers local image patches, which lacks the context needed to distinguish between similar-looking areas. GLACE retrieves a global descriptor for the entire image using a pre-trained R2Former model and concatenates it with local patch features. This provides the "where am I generally" context necessary to disambiguate local observations.
2. Feature Diffusion
To prevent the network from overfitting to specific training images, the authors introduce "Feature Diffusion." By injecting Gaussian noise into the global features during training, the network is forced to group together observations from different viewpoints that share co-visibility. This technique effectively teaches the network to perform implicit triangulation without requiring explicit 3D models.
3. Multi-modal Position Decoder
Previous state-of-the-art methods predicted 3D coordinates as an offset from a single central point, a strategy that fails as scenes grow in complexity. GLACE utilizes K-Means to identify multiple "cluster centers" across the environment. The network then predicts a weighted combination of these centers, allowing a single model to represent complex, multi-room, or street-level geometries with high precision.
Experimental Results
The authors evaluated GLACE on several standard benchmarks, including the indoor 7 Scenes and 12 Scenes datasets, the outdoor Cambridge Landmarks, and the city-scale Aachen Day dataset.
Key findings include:
- Cambridge Landmarks: GLACE achieved a 17% lower median position error than "Poker" (an ensemble of four ACE models), despite maintaining a smaller total model size.
- Indoor Scaling: In an "Integrated Rooms" test combining all 12 Scenes into a single map, GLACE maintained 99.5% accuracy, whereas standard single-model approaches saw significant performance degradation.
- City-Scale Performance: On the Aachen Day dataset, GLACE outperformed ensembles of 50 ACE models while remaining significantly faster and more memory-efficient.
Discussion and Limitations
GLACE demonstrates that co-visibility is a critical factor in large-scale SCR. By using global features and jittering them via diffusion, the model learns spatial relationships more effectively than previous methods. Furthermore, the shift from unimodal to multi-modal decoders allows the network to "jump" between different areas of a map without losing accuracy.
However, some limitations remain. GLACE currently requires posed images for training and was primarily tested on daytime datasets; SCR methods generally struggle with extreme lighting changes (e.g., day-to-night) without specific training data. Additionally, the use of a global feature extractor adds a small amount of computational overhead compared to purely local SCR methods.
Conclusion
GLACE represents a significant advancement in visual localization, proving that a single, compact neural network can scale to city-sized environments. By combining global context with innovative training and decoding strategies, GLACE provides a robust, efficient alternative to traditional 3D-model-based localization pipelines.
Summary updated