GPVK-VL: Geometry-Preserving Virtual Keyframes for Visual Localization under Large Viewpoint Changes

Yunxuan Li, Lei Fan, Xiaoying Xing, Jianxiong Zhou, Ying WuCVPR 2025

Abstract

Visual localization systems frequently struggle with large viewpoint changes, such as when a robot traverses a corridor in the opposite direction of its mapping phase. GPVK-VL addresses this by synthesizing a dense database of "virtual keyframes" using 2D Gaussian Splatting (2DGS) combined with confidence-aware geometric priors. By prioritizing geometric accuracy over photorealism through mesh extraction and uncertainty-weighted supervision, GPVK-VL enables robust camera pose estimation in challenging environments where traditional feature matching fails.

Problem Statement: The Viewpoint Gap

Visual localization is fundamental for autonomous navigation and augmented reality, typically relying on matching query images against a database of reference keyframes. However, standard systems are highly sensitive to perspective shifts. In scenarios like one-way corridors or rooms viewed from opposite corners, the visual appearance of the scene changes so drastically that traditional feature descriptors cannot find sufficient matches.

Standard localization pipelines fail when the query view (red) significantly differs from the reference keyframes (blue), resulting in feature matching and pose estimation errors.

While Novel View Synthesis (NVS) could theoretically bridge this gap by generating intermediate views, most NVS methods focus on photorealistic rendering. This often results in "hallucinated" textures or warped geometry that, while visually pleasing, are metrically incorrect and lead to failed pose estimation.

Methodology: GPVK-VL

The GPVK-VL pipeline operates in two stages: an offline database construction phase and an online localization phase.

Offline Database Building

The core of the approach is a geometry-preserving scene representation. The authors utilize 2D Gaussian Splatting (2DGS), representing the scene as a collection of surfels. To ensure the reconstruction is geometrically sound, they incorporate depth maps and surface normals from pre-trained models (Dust3r and DSINE).

A key innovation is the use of confidence-aware priors. Rather than treating all external geometric data as ground truth, the system weights the loss functions based on the confidence scores provided by the depth and normal estimators. This prevents noisy predictions from degrading the 3D structure. Furthermore, the authors extract a 3D mesh from the Gaussians to act as a structural regularizer, ensuring that virtual views rendered from extreme angles remain coherent. Finally, virtual cameras are automatically placed throughout the navigable space to create a comprehensive database of keyframes.

Online Localization

During the online phase, the synthesized virtual keyframes are treated as standard reference images. The system employs global retrieval (e.g., NetVLAD) to find relevant virtual keyframes and local feature matching (e.g., SuperGlue) to estimate the precise camera pose.

Experimental Results

The authors evaluated GPVK-VL on a new custom dataset featuring extreme viewpoint disparities in indoor scenes, as well as standard benchmarks like ScanNet and 7Scenes.

GPVK-VL produces geometrically consistent virtual views that allow for successful feature matching even under extreme perspective shifts.

Key findings include:

  • Superior Robustness: In challenging corridor scenes, GPVK-VL achieved success rates of 59-89% (at 5cm/2° thresholds), significantly outperforming the state-of-the-art HLoc toolbox, which often failed (25-34% success).
  • Geometric Fidelity: Using the Geometrically-Correct Feature Matching Ratio (GC-FMR), the authors demonstrated that their virtual keyframes provide more reliable inlier matches than other NVS methods like ZeroNVS, which tend to warp structural elements.
  • Generalization: The method maintains high performance on standard localization benchmarks, proving it is a versatile enhancement for existing pipelines.

Conclusion

GPVK-VL demonstrates that for visual localization, geometric integrity is more critical than photorealism. By leveraging confidence-aware priors and structural regularization, the method effectively closes the loop in environments with large viewpoint changes, solving long-standing issues like the "corridor problem" in structure-based localization. Future work will focus on improving the scalability of mesh extraction and optimizing storage for large-scale environments.

Summary updated

BibTeX
@inproceedings{li2025gpvk,
  author = {Yunxuan Li and Lei Fan and Xiaoying Xing and Jianxiong Zhou and Ying Wu},
  title = {{GPVK-VL: Geometry-Preserving Virtual Keyframes for Visual Localization under Large Viewpoint Changes}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2025},
  doi = {10.1109/cvpr52734.2025.01559},
}
Figure