Refinement for Absolute Pose Regression with Neural Feature Synthesis

Shuai Chen, Yash Bhalgat, Xinghui Li, Jiawang Bian, Kejie Li, Zirui Wang, Victor Adrian Prisacariu · DOI

Abstract

Camera relocalization is a fundamental task in robotics and augmented reality, traditionally divided between high-accuracy geometry-based methods and high-speed Absolute Pose Regression (APR) techniques. While APRs offer efficiency, they often lack the geometric constraints necessary for high-precision localization. This paper introduces NeFeS (Neural Feature Synthesizer), a test-time refinement pipeline that bridges this gap. By utilizing an implicit 3D representation to render dense features and aligning them with query images through feature-metric loss, NeFeS significantly enhances the accuracy of existing APR models, achieving state-of-the-art results on standard benchmarks while maintaining a significant speed advantage over previous refinement methods.

Introduction

Determining the precise position and orientation of a camera within a known 3D scene—camera relocalization—is essential for autonomous navigation and immersive digital experiences. Current methodologies generally fall into two categories: geometry-based methods and Absolute Pose Regression (APR). Geometry-based approaches are highly accurate but computationally intensive, often requiring complex feature matching and dense 3D point clouds. Conversely, APRs use a single neural network to regress the 6-DoF pose directly from an image. While fast and lightweight, APRs operate as "black boxes" that ignore the underlying 3D structure of the scene, leading to lower accuracy and poor generalization.

NeFeS addresses these limitations by injecting 3D geometric constraints into the APR process during the inference phase. By treating the scene as an implicit 3D field, the system can refine initial pose estimates through a differentiable render-and-compare loop.

Methodology: The Neural Feature Synthesizer

The core of the proposed approach is the Neural Feature Synthesizer (NeFeS), an implicit 3D representation similar to Neural Radiance Fields (NeRF). NeFeS encodes the scene's geometry and feature descriptors into a Multi-Layer Perceptron (MLP). The refinement process follows a structured pipeline:

  1. Initial Estimation: A standard APR (e.g., DFNet or PoseNet) provides a coarse initial pose estimate from a query image.
  2. Synthesis: NeFeS renders a synthetic feature map from the viewpoint of the initial pose estimate.
  3. Feature Extraction: A feature extractor pulls deep descriptors from the actual query image.
  4. Feature-Metric Refinement: The system calculates the cosine similarity between the rendered and query features. Because the pipeline is fully differentiable, the resulting error is backpropagated to update either the predicted pose parameters or the weights of the APR network itself.

Robustness and Optimization

To handle the complexities of real-world environments, the authors introduced several key modules:

  • Exposure-adaptive ACT: This module adjusts for lighting discrepancies between training and testing data using luminance histograms, ensuring the synthesizer remains accurate across different times of day.
  • Feature Fusion: By blending rendered colors and features, the system creates a robust descriptor that is less sensitive to sensor noise and environmental artifacts.
  • Spatial Normalization: The authors found that normalizing features across the spatial dimension (pixels) rather than the channel dimension preserves local geometric consistency, leading to more stable convergence.

Experimental Evaluation

The NeFeS framework was evaluated on two gold-standard benchmarks: Cambridge Landmarks (large-scale outdoor) and Microsoft 7-Scenes (classic indoor).

Performance Gains

The refinement pipeline demonstrated substantial improvements across all tested APR architectures:

  • 7-Scenes: The method achieved a 59%+ improvement in average scene accuracy compared to the baseline DFNet.
  • Cambridge Landmarks: Accuracy improved by up to 70.6% in specific scenes, such as Kings College.
  • Efficiency: While the refinement loop adds computational overhead compared to a raw APR, NeFeS is approximately 110x faster than previous NeRF-based refinement methods like LENS, making it a viable candidate for practical applications.

Data Quality Insights

A notable finding involved the ground truth labels for the 7-Scenes dataset. The authors observed that the original labels (derived from dSLAM) contained significant noise. By utilizing Structure-from-Motion (SfM) to refine these labels, they achieved better NeRF training and more reliable evaluation metrics, suggesting that data quality remains a bottleneck for implicit 3D learning.

Discussion and Insights

One of the paper's most compelling insights is the superiority of feature-metric loss over traditional photometric loss. While standard NeRF refinement compares raw pixel colors, NeFeS compares deep feature descriptors. These descriptors are inherently more robust to lighting changes and minor geometric misalignments. Furthermore, the authors discovered that backpropagating through the APR network to update its parameters often yields superior results compared to simply optimizing the 6-DoF pose directly, as it allows the network to "re-learn" the specific context of the query image.

Conclusion and Future Work

NeFeS represents a significant step forward in camera relocalization, providing a "middle ground" that combines the simplicity of APR with the geometric rigor of classical methods. While the system currently requires scene-specific training and a relatively accurate initial "guess" to avoid local minima, it sets a new state-of-the-art for single-image APR accuracy. Future work will focus on integrating more efficient backbones, such as Instant-NGP, to move the refinement process closer to real-time performance and exploring ways to generalize the synthesizer across multiple scenes.

Summary updated

BibTeX
@inproceedings{chen2024refinement,
  author = {Shuai Chen and Yash Bhalgat and Xinghui Li and Jiawang Bian and Kejie Li and Zirui Wang and Victor Adrian Prisacariu},
  title = {{Refinement for Absolute Pose Regression with Neural Feature Synthesis}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2024},
  url = {https://openreview.net/forum?id=ndchSsjYph},
}
Figure