ACE-G: Improving Generalization of Scene Coordinate Regression Through Query Pre-Training
Leonard Bruns, Axel Barroso-Laguna, Tommaso Cavallari, Áron Monszpart, Sowmya Munukutla, Victor Adrian Prisacariu, Eric Brachmann
TL;DR
ACE-G tackles the generalization gap in scene coordinate regression by decoupling a scene-agnostic transformer-based coordinate regressor from a scene-specific map code. It introduces a dual pre-training regime that alternates between mapping (train both the regressor and map codes) and query (train only the regressor with fixed codes) to promote cross-scene generalization, and validates this with large-scale multi-scene pre-training and novel-scene mapping. The approach, built on a DINOv2-based image encoder and cross-attention transformer, achieves robust pose estimation across challenging indoor and outdoor datasets and outperforms several SCR baselines, while maintaining modest map-code sizes and reasonable mapping times. This framework advances practical, scalable learning-based relocalization by enabling generalization to unseen views and varying conditions, reducing reliance on per-scene optimization and expensive global reconstructions.
Abstract
Scene coordinate regression (SCR) has established itself as a promising learning-based approach to visual relocalization. After mere minutes of scene-specific training, SCR models estimate camera poses of query images with high accuracy. Still, SCR methods fall short of the generalization capabilities of more classical feature-matching approaches. When imaging conditions of query images, such as lighting or viewpoint, are too different from the training views, SCR models fail. Failing to generalize is an inherent limitation of previous SCR frameworks, since their training objective is to encode the training views in the weights of the coordinate regressor itself. The regressor essentially overfits to the training views, by design. We propose to separate the coordinate regressor and the map representation into a generic transformer and a scene-specific map code. This separation allows us to pre-train the transformer on tens of thousands of scenes. More importantly, it allows us to train the transformer to generalize from mapping images to unseen query images during pre-training. We demonstrate on multiple challenging relocalization datasets that our method, ACE-G, leads to significantly increased robustness while keeping the computational footprint attractive.
