Abstract
Visual relocalization is a fundamental task in computer vision, essential for applications in augmented reality (AR) and autonomous navigation. While Scene Coordinate Regression (SCR) offers a compact and private alternative to traditional sparse feature matching, its adoption has been hindered by the prohibitive time required to train scene-specific models. This paper presents Accelerated Coordinate Encoding (ACE), a framework that reduces mapping time from hours to minutes. By utilizing a scene-agnostic feature extractor and a novel gradient decorrelation strategy, ACE achieves state-of-the-art accuracy with a 300x speedup in training time and a minimal 4MB memory footprint.
1. Introduction
Visual relocalization—the process of estimating the precise position and orientation of a camera from a single image—serves as the "inner loop" for modern spatial computing. Historically, this has been approached via two paradigms: sparse feature matching and scene coordinate regression (SCR). Sparse feature matching relies on 3D point clouds, which are accurate but storage-intensive and computationally expensive to build. Conversely, SCR models use neural networks to map pixels directly to 3D coordinates. While SCR models are lightweight (often only a few megabytes) and preserve privacy by not storing raw images, they typically require hours or days of scene-specific training, making them impractical for real-time user-generated content.
Accelerated Coordinate Encoding (ACE) addresses this "mapping delay," enabling a scene to be mapped in approximately five minutes—the length of a coffee break—without sacrificing the accuracy or efficiency of the SCR approach.
2. Methodology
ACE achieves its performance through a fundamental rethink of the SCR training pipeline, focusing on three core innovations:
2.1 Network Splitting
Rather than training a monolithic network for every new environment, ACE decouples the architecture into two parts: a fixed, scene-agnostic backbone and a tiny, scene-specific MLP head. The backbone is pre-trained on a large-scale dataset of diverse environments to extract general-purpose features. During the mapping of a new scene, only the MLP head (consisting of 8 layers of 1x1 convolutions) is optimized. This significantly reduces the number of trainable parameters.
2.2 Gradient Decorrelation
In standard SCR training, models process images sequentially, leading to highly correlated gradients because adjacent pixels in a frame share similar visual information. ACE introduces a "gradient decorrelation" step: it spends the first minute of the process passing all mapping images through the fixed backbone and storing the resulting features in a buffer. This buffer is then shuffled, allowing the MLP to be trained on random features sampled from across the entire scene simultaneously. This approach leads to significantly more stable and rapid convergence.
2.3 Curriculum Training
To handle the noise inherent in real-world data, such as motion blur or dynamic objects, ACE employs a robust reprojection loss with a dynamic threshold. The training begins with a "loose" threshold to capture the general structure of the environment and gradually "tightens" the threshold to refine the model's precision, effectively filtering out outliers during the optimization process.
3. Experimental Evaluation
3.1 Datasets
The authors evaluated ACE across several standard benchmarks and a new real-world dataset:
- 7Scenes & 12Scenes: Standard indoor benchmarks for relocalization.
- Cambridge Landmarks: A large-scale outdoor dataset.
- Wayspots: A new dataset introduced by the authors, consisting of real-world phone scans that reflect the challenges of user-generated mapping.
3.2 Performance and Efficiency
ACE demonstrates a dramatic improvement in training efficiency. On an NVIDIA T4 GPU, ACE completes scene mapping in 5 minutes, compared to 15 hours for previous state-of-the-art baselines like DSAC*. This represents a 300x speedup. Despite this speed, accuracy remains high; on the 7Scenes benchmark, ACE achieved 97.1% accuracy (frames within 5cm/5°), matching or exceeding the performance of models that take significantly longer to train.
Furthermore, the resulting model is highly compressed, requiring only 4MB of storage—a 7x reduction compared to previous SCR methods. For complex outdoor environments, the authors utilized a "Poker" ensemble—a collection of four ACE models that vote on the final pose—to maintain high accuracy at scale.
4. Discussion and Limitations
ACE proves that gradient decorrelation via feature shuffling is a powerful alternative to providing explicit depth maps (RGB-D) during training. By treating MLPs as efficient scene compressors, ACE makes large-scale AR deployments commercially viable by reducing the cost of cloud-based mapping to pennies per scene.
However, limitations remain. ACE still requires ground truth poses (from SLAM or SfM) for the initial mapping phase and can struggle with significant dynamic changes in an environment. Future work may explore "early stopping" mechanisms to further reduce training time for simple environments and the integration of buffer creation with real-time training to provide an instantaneous user experience.
5. Conclusion
Accelerated Coordinate Encoding represents a significant shift in visual relocalization. By prioritizing training efficiency and gradient stability, ACE removes the primary barrier to the widespread adoption of Scene Coordinate Regression, enabling high-precision, low-latency mapping for the next generation of autonomous and augmented reality systems.
Summary updated