Introduction
Visual localization—the ability of a device, such as a robot or AR headset, to determine its precise position and orientation from a single image—is a cornerstone of spatial computing. Modern deep learning models achieve high accuracy in this task, but they typically assume a "stationary" world where all training data for all scenes is available simultaneously.
In real-world applications, a robot explores environments sequentially. Training a model on a new room (e.g., a living room) after it has learned a previous one (e.g., a kitchen) often leads to catastrophic forgetting. The new gradients overwrite the weights learned for the previous environment, rendering the model ineffective in the original scene. While joint training on all data solves this, it is computationally expensive and storage-intensive, making it impractical for edge devices.
Methods
The authors frame visual localization as a Continual Learning (CL) task using an Experience Replay approach. Instead of storing the entire history of images, the model maintains a small "buffer" of past observations to "rehearse" while learning new scenes.
The Buff-CS Strategy
Standard replay methods like Reservoir Sampling (random) or Class-Balancing (equal images per scene) are often insufficient for localization. Localization requires images that cover the entire geometry of a room, not just a diverse set of visual features. The authors propose Buff-CS (Coverage Score Buffering), which prioritizes images based on their 3D spatial coverage:
- Spatial Awareness: The system calculates a "Coverage Score" based on the 3D scene coordinates visible in each frame.
- Novelty Detection: Images that capture parts of the environment poorly represented in the current buffer are prioritized for storage.
- Efficiency: To minimize overhead, the system uses coarse hierarchical coordinate labels as a proxy for dense 3D spatial coverage.
Datasets
The approach was evaluated on three integrated benchmarks:
- i7S: Based on the 7Scenes dataset (7 indoor environments).
- i12S: Based on the 12Scenes dataset (12 larger indoor rooms).
- i19S: A combined "mega-dataset" of 19 scenes, representing a significant challenge for sequential learning.
Key Insights
- Spatial Diversity is Critical: In localization, spatial diversity in the buffer is more important than simple class diversity. A buffer must represent the entire physical layout of a scene to prevent forgetting.
- Catastrophic Forgetting is Total: Without buffering, accuracy on previously learned scenes drops to near 0% almost immediately upon starting a new task.
- Coarse Geometry Suffices: High-fidelity 3D maps are not required for memory management; coarse hierarchical labels effectively ensure spatial spread.
Key Results
Buff-CS consistently outperformed Reservoir and Class-balance sampling across all datasets. On the i7S dataset with a small buffer of 256 images, Buff-CS achieved 72.0% accuracy, compared to 69.3% for Reservoir sampling.
In the most difficult i19S setup, Buff-CS maintained significantly higher accuracy than baselines, demonstrating superior scalability. Furthermore, the approach is highly memory-efficient, requiring only 1.9 GB to 2.8 GB of storage for the i19S dataset, compared to approximately 35 GB required for traditional joint training.
Conclusion and Future Work
While Buff-CS significantly narrows the gap, a performance difference remains between continual learning and joint training. Future research may focus on extending these methods to outdoor environments with dynamic lighting, exploring adaptive buffer sizes based on scene complexity, and developing self-supervised coverage scores to remove the dependency on ground truth 3D coordinates during the buffering phase.
Summary updated