KeyLoc: Keypoints, Not Gaussians, as Landmarks for Visual Relocalization

Wenlei Yang1, Alessio Mazzucchelli2,3, Elisa Ricci4,2, Gabriele Costante5, Yiming Wang2, Simone Felicioni4

1Politecnico di Milano 2Fondazione Bruno Kessler 3Universitat Politècnica de Catalunya
4University of Trento 5University of Perugia

Estimated Camera Trajectories

7-Scenes Cambridge Landmarks

Estimated poses of all test images, coloured by translation error (cyan: accurate, magenta: ≥ 2× the recall threshold). KeyLoc stays accurate where the rendering-based baselines drift.

Ours render query QueryOurs
Query vs. Ours (7.0 cm, 0.40°)
ULF-Loc render query QueryULF-Loc
Query vs. ULF-Loc (41.27 m, 60.82°)

Cambridge Landmarks · St Mary's Church

KeyLoc recovers accurate camera poses where rendering-based localization drifts: drag the slider, the render at our pose stays aligned with the query photo.

Abstract

Visual relocalization methods based on 3D Gaussian Splatting typically follow a coarse-to-fine pipeline, whose coarse stage matches query keypoints to Gaussian landmarks. We find that Gaussian landmarks are limited in three ways: their centers may not coincide with the 3D points seen by keypoints (placement), aggregating features across inconsistent views weakens them (descriptors), and fixed budgets miss useful keypoints (coverage). KeyLoc instead builds landmarks directly from training-view keypoints and estimates the pose by keypoint–landmark matching, with no map rendering. On four datasets, KeyLoc alone rivals or outperforms full coarse-to-fine pipelines while being the fastest at inference.

Method Overview

7-Scenes Cambridge Landmarks

KeyLoc builds its landmark map from the training views (the actual runs, counts from their logs). Initialization: views are processed one at a time; keypoints are associated to existing landmarks they re-observe or start new ones (lifted with the rendered depth). Refinement: robust multi-view triangulation of every track. Selection: unstable landmarks are removed. At query time, the image is localized directly against these landmarks, with no rendering.

Comparisons to Baseline Methods

For each baseline, a query where it fails badly while KeyLoc stays accurate (one Cambridge Landmarks, one 7-Scenes scene). Each slider: query photo vs. the map rendered at the estimated pose (translation / rotation error in brackets).

Ours render query QueryOurs
Query vs. Ours (8.5 cm, 0.11°)
ULF-Loc render query QueryULF-Loc
Query vs. ULF-Loc (8.45 m, 6.35°)

Cambridge Landmarks · Great Court

Ours render query QueryOurs
Query vs. Ours (7.9 mm, 0.25°)
ULF-Loc render query QueryULF-Loc
Query vs. ULF-Loc (92.8 cm, 2.67°)

7-Scenes · Stairs

Video Results

Test sequences frame by frame: the query, and the map rendered at the pose of each method. Cyan lines are the query's edges drawn on the renders; a green border means the pose is within the recall threshold, red that it is not. The curve below tracks the translation error of each method.

BibTeX

@article{yang2026keyloc,
  title   = {KeyLoc: Keypoints, Not Gaussians, as Landmarks for Visual Relocalization},
  author  = {Yang, Wenlei and Mazzucchelli, Alessio and Ricci, Elisa and Costante, Gabriele and Wang, Yiming and Felicioni, Simone},
  journal = {arXiv preprint},
  year    = {2026}
}