arXiv:2609.02798cs.CVSep 2026

Manuscript Offprint

arXiv:2609.02798

AutoCompass: Accurate Visual Localization on Public Maps by Learning from Weak Labels

Javier Tirado-Garín, Alan Savio Paul, Shuai Chen, Axel Barroso-Laguna, Tommaso Cavallari, Daniyar Turmukhambetov, Victor Adrian Prisacariu, Eric Brachmann

Javier Tirado-Garín¹*, Alan Savio Paul², Shuai Chen², Axel Barroso-Laguna², Tommaso Cavallari², Daniyar Turmukhambetov², Victor Adrian Prisacariu²,³, and Eric Brachmann²

¹I3A, Universidad de Zaragoza ²Niantic Spatial ³University of Oxford https://nianticspatial.github.io/autocompass/

Abstract. Neural map matchers estimate an image's 3-DoF pose relative to a 2D map. These models are trained on large-scale datasets of geo-referenced images, whose position and heading labels often contain noise that affects the trained models. To address this, we present AutoCompass, a supervision approach for training neural map matchers from inaccurate absolute pose labels. First, we show that heading labels are unnecessary: trained from raw GPS labels, models learn to predict accurate headings, automatically. Second, defining a tolerance region around raw GPS improves positional accuracy. Third, if available, our supervision uses relative poses between training images, obtained via SLAM or SfM, which provide a more accurate training signal. Across driving and egocentric benchmarks, AutoCompass consistently outperforms counterparts trained with the usual strong reliance on absolute pose labels.

Keywords: Visual Localization · Geo-Localization · Weak Supervision

1 Introduction

To go anywhere, first we must know where we are. To find ourselves, we consult maps, often aided by satellite positioning systems such as GPS. GPS tells us where we are, at least up to a few meters under favorable conditions. However, its performance declines when signals are obstructed or deliberately jammed. In such cases, we can practice our archaic skills of matching street names to maps.

Neural map matchers [36,83,84] offer an alternative: they infer a local bird's-eye-view (BEV) representation from an input image, and match it to a 2D map to estimate the 2D position and heading of the camera. Compared to GPS, they are unaffected by multipath interference and signal jamming, and can be more accurate in urban environments, especially when estimates are fused sequentially. Neural map matchers are also scalable: once trained, they rely on 2D maps, which providers, such as OpenStreetMap [73], make freely available for much of the planet. This contrasts with 6-degree-of-freedom (DoF) visual localization [6,13,

  • Work done during an internship at Niantic Spatial.

Figure

Fig. 1: Geo-localization datasets can be noisy. Pseudo ground-truth (GT) poses of a training sequence from the MGL dataset [83] are offset by several meters: images captured on a sidewalk have poses inside a building. Methods trained with strong supervision, e.g. [83], learn and replicate these errors, while our proposed AutoCompass is robust to them. We instead treat the GT as weak labels, modeling the unknown true pose as lying anywhere within a neighborhood of the GT label. We also learn from relative poses, which can be obtained from SLAM or SfM and are thus more accurate.

81], which typically relies on memory-intensive maps built from densely captured images, incurring high storage and computational costs at city scale and beyond.

However, one crucial limitation of neural map matchers is their reliance on large-scale geo-referenced training data. Prior work has leveraged hundreds of thousands of images annotated with absolute global positions and headings [83]. At this scale, annotation must be automated, making it inherently susceptible to noise and inaccuracies. A common strategy is to reconstruct local image clusters using Structure-from-Motion (SfM) [75, 88, 96, 101], and to fuse them with raw GPS measurements, assuming that random errors cancel out. Such pipelines do not address systematic biases and can be unreliable when image clusters are small, poorly conditioned, or sparsely connected. Consequently, publicly available geo-referenced image datasets inevitably contain pose inaccuracies, which negatively impact models trained on them (see example in Fig. 1).

With AutoCompass, we reduce neural map matchers' dependence on accurate geo-referenced camera pose labels for training. We first remove the need for heading labels: we find that the inductive bias of existing architectures is enough for accurate heading predictions to emerge. Next, to be robust to GT inaccuracies, we only assume that the true image position lies within a tolerance region of up to 20 m around the GPS coordinates. This makes our approach robust, e.g., to GPS errors of the magnitude commonly observed with receivers in egocentric devices [34, 57]. Finally, we find that relative camera poses, despite providing only local (and thus weaker) constraints, significantly improve the accuracy of the downstream learned absolute pose distribution. While geo-referencing at scale remains as a challenging problem, relative poses can be reliably estimated via SfM or Simultaneous Localization And Mapping (SLAM) [3, 12, 21, 27, 33, 69, 70].

Despite relying on weaker supervision than previous approaches, AutoCompass comes out on top in terms of accuracy, due to the aforementioned issues with geo-referenced pseudo ground-truth. AutoCompass is agnostic to the underlying architecture and can be applied to existing architectures without modification. We summarize our contributions as follows:

  • An absolute pose loss that adds significant error tolerance to geo-referenced position labels, and does not require any geo-referenced heading labels.
  • Using our absolute pose loss, we demonstrate that a neural map matcher can be trained from unoptimized GPS position labels, alone.
  • Various relative pose losses tailored to practical scenarios, e.g. non-metric poses or approximately geo-referenced ones. These losses significantly improve the accuracy of existing single-image supervised approaches

Our evaluation across multiple datasets shows that neural map matchers, trained with our proposed supervision, even when using only raw GPS labels, outperform baselines trained with strong supervision on geo-referenced image poses. Using relative pose supervision, AutoCompass sets a new state of the art in visual localization on 2D public maps.

References (100)

Couldn't load all references. Reload the page to try again.