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 · DOI

Abstract

Visual localization via Scene Coordinate Regression (SCR) is often hampered by non-static or uninformative image regions. We introduce Error-Guided Feature Selection (EGFS), an iterative training framework that leverages reprojection errors as prompts for the Segment Anything Model (SAM). This approach automatically identifies and prioritizes stable, high-quality landmarks, filtering out noise from dynamic objects and textureless surfaces. EGFS demonstrates superior accuracy on standard benchmarks while maintaining a compact model size suitable for edge devices.

Introduction

Visual localization—determining 6-DoF pose from a single image—is critical for autonomous systems like AR/VR and self-driving cars. SCR models predict 3D coordinates for every pixel, but their performance is often degraded by "bad" data, such as pedestrians, vehicles, or blank walls. These regions introduce noise that leads to training instability and reduced accuracy. EGFS addresses this by acting as a smart filter for the model's attention during training.

Error-Guided Feature Selection (EGFS)

EGFS addresses data quality through a smart filtering mechanism. The process begins with a baseline model trained on random samples. Subsequently, the system identifies pixels with the lowest reprojection errors—the discrepancy between predicted and actual 2D positions of 3D points.

Visualization of input image (a), reprojection error map (b), and confidence map (c) used to seed the selection process.

These low-error pixels serve as "point prompts" for a lightweight Segment Anything Model (EfficientViT-SAM-L0). SAM expands these points into masks covering semantically related, stable regions. A learned confidence map further prunes these masks to ensure only the most reliable areas are used for subsequent training iterations.

Semantic Agnosticism and Efficiency

Unlike methods relying on pre-defined semantic labels, EGFS is semantically agnostic. It uses the error signal itself to determine feature utility, allowing it to adapt to scene-specific stability. This selective training avoids the need for massive model ensembles, achieving high accuracy with a small 4.5MB footprint.

Experimental Results

The method was evaluated on the Cambridge Landmarks (outdoor) and Indoor6 (indoor) datasets.

  • Cambridge Landmarks: EGFS achieved an average error of 15cm / 0.3°, outperforming the ACE (quad) ensemble (17cm / 0.3°) despite using significantly fewer parameters.
  • Indoor6: EGFS showed a massive leap, reaching 56.1% accuracy (within a 5cm/5° threshold) compared to just 35.6% for the standard ACE model.

Conclusion

EGFS provides a robust and efficient framework for SCR by dynamically focusing on high-quality scene features. While it introduces SAM overhead during training, the resulting models are highly optimized for inference on edge devices. Future work will address performance in extremely sparse or repetitive environments where initial error signals may be less reliable.

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