Reprojection Errors as Prompts for Efficient Scene Coordinate Regression

Ting-Ru Liu, Hsuan-Kung Yang, Jou-Min Liu, Chun-Wei Huang, Tsung-Chih Chiang, Quan Kong, Norimasa Kobori, Chun-Yi Lee

Introduction

Visual localization—the task of estimating a camera's precise 6DoF pose within a known environment—is fundamental to applications in augmented reality (AR), robotics, and autonomous navigation. Scene Coordinate Regression (SCR) has emerged as a leading approach, where a neural network is trained to map 2D image pixels directly to their corresponding 3D coordinates in the scene. While effective, standard SCR methods often struggle with "noisy" data during training, leading to suboptimal performance and wasted computational effort.

The Challenge: Noisy Training Data

Traditional SCR frameworks typically supervise the network using every pixel in an image. However, not all pixels are equally useful for localization. Two primary categories of "bad" pixels hinder model convergence:

  1. Dynamic Objects: Pedestrians, vehicles, and other moving elements provide transient 3D coordinates that do not persist across different sessions.
  2. Textureless Regions: Features like blank walls or clear skies lack the unique visual descriptors necessary for accurate coordinate regression.

While robust estimation techniques like RANSAC can filter these regions during inference, training on them introduces instability. The model attempts to learn inconsistent or ambiguous mappings, which degrades the accuracy of stable landmarks.

Error-Guided Feature Selection (EGFS)

To address these limitations, this paper introduces Error-Guided Feature Selection (EGFS). Instead of relying on manual annotations or pre-defined semantic classes, EGFS uses the model's own performance as a self-supervised signal to identify reliable regions.

Overview of the EGFS pipeline: (a) Input image, (b) Reprojection error map, (c) Confidence map, (d) Point prompts for SAM, (e) Initial SAM mask, (f) Refined mask, (g-h) 3D point cloud visualizations.

The EGFS pipeline operates through an iterative refinement loop:

  • Initial Training: A baseline model (based on the ACE architecture) is trained on the full image to establish a performance baseline.
  • Reprojection Error Analysis: The system calculates the distance between the projected 3D coordinate predicted by the model and the actual 2D pixel location. Low reprojection error indicates regions the model has already begun to learn reliably.
  • SAM-Based Masking: Pixels with the lowest errors serve as "point prompts" for the Segment Anything Model (SAM). SAM generalizes these points into semantically coherent masks, capturing entire stable structures like building facades. This provides the network with better spatial context than isolated pixels.
  • Confidence Refinement: A dedicated confidence head predicts pixel reliability, further pruning the SAM masks to exclude uncertain areas.
  • Focused Retraining: The model is retrained exclusively on the pixels within these refined masks, allowing it to concentrate its capacity on high-quality landmarks.

A key insight of this work is that semantic stability is scene-dependent. While general-purpose semantic segmentation might label all vegetation as "unstable," EGFS recognizes that a specific tree in a static courtyard might be a more reliable landmark than a distant, blurry building.

Experimental Results

The researchers evaluated EGFS on the Cambridge Landmarks (outdoor) and Indoor6 (indoor) benchmarks. The results demonstrate significant improvements over existing SCR methods that do not use external 3D models.

Outdoor Performance (Cambridge Landmarks)

On the King's College scene, EGFS reduced the median localization error to 14cm / 0.3°, a 50% improvement over the ACE baseline's 28cm / 0.4°. This highlights the method's ability to ignore dynamic elements and focus on permanent architectural features.

Indoor Performance (Indoor6)

Indoor environments are notoriously difficult due to repetitive textures and blank surfaces. On "Indoor6 scene1," EGFS increased the percentage of poses with less than 5cm error from 26.0% (ACE) to 46.4%. An ensemble version of the model achieved a category-leading average accuracy of 61.2%.

Conclusion and Efficiency

A major advantage of EGFS is its efficiency. By focusing on a sparse set of high-quality features, the model achieves state-of-the-art results with a footprint of only 4.5MB. This small size makes it ideal for deployment on mobile and edge devices where memory and compute are limited. While the method requires an initial bootstrapping phase, it represents a significant step toward self-supervised, scene-adaptive visual localization.

Summary updated

BibTeX
@inproceedings{liu2024reprojection,
  author = {Ting-Ru Liu and Hsuan-Kung Yang and Jou-Min Liu and Chun-Wei Huang and Tsung-Chih Chiang and Quan Kong and Norimasa Kobori and Chun-Yi Lee},
  title = {{Reprojection Errors as Prompts for Efficient Scene Coordinate Regression}},
  booktitle = {European Conference on Computer Vision},
  year = {2024},
  doi = {10.1007/978-3-031-73404-5\_17},
}
Figure