Self-Supervised Learning of Neural Implicit Feature Fields for Camera Pose Refinement

Maxime Pietrantoni, Gabriela Csurka, Martin Humenberger, Torsten Sattler

Abstract

This paper introduces a self-supervised method for refining camera poses by jointly learning a 3D volumetric feature field and a 2D image encoder. By aligning these representations in a shared metric space without manual labels, the system achieves state-of-the-art localization accuracy on challenging outdoor datasets, outperforming existing implicit neural representation methods.

Introduction: The Challenge of Visual Localization

Visual localization—the task of determining a camera's precise position and orientation in a known environment—is a cornerstone of robotics, autonomous driving, and augmented reality. Traditionally, this relies on explicit 3D maps, such as point clouds from Structure-from-Motion (SfM), which can be cumbersome to build and maintain.

Recently, "implicit" representations like Neural Radiance Fields (NeRFs) have emerged, encoding scenes within the weights of a neural network. However, these often struggle with "geometric grounding"—they might render visually appealing images but fail to capture the underlying 3D structure accurately enough for precise navigation. Furthermore, many existing methods use fixed, pre-trained feature extractors (like off-the-shelf ResNets), which may not be optimal for the specific geometry of a new scene. The authors aim to bridge this gap by learning the geometry and the features simultaneously.

Methodology

The core of the approach is the Neural Implicit Feature Field. The system avoids the pitfalls of frozen 2D encoders by training the image encoder and the 3D feature field together, ensuring that query image features are perfectly synchronized with the volumetric features stored in the 3D map.

Key Components

  1. Triplane Representation: To store 3D features efficiently, the authors utilize a "triplane" structure—three orthogonal 2D planes that intersect at the scene's origin. This provides a balance between representational power and computational efficiency.
  2. Geometric Grounding (NeuS): The underlying geometry is learned using a Signed Distance Field (SDF) via the NeuS framework. This forces the model to learn a mathematically consistent surface, critical for accurate pose refinement.
  3. Self-Supervised Losses:
    • $L_{NCE}$ (Contrastive Alignment): Aligns rendered 3D features with 2D image features.
  4. $L_{mAP}$ (Two-View Consistency): A ranking loss ensuring features are consistent across different viewpoints of the same physical point.
  5. $L_{ACL}$ (Auxiliary Contrastive Loss): Uses intermediate geometric embeddings to cluster features, forcing the model to focus on high-level structural information rather than transient appearance changes.
  6. Hierarchical Refinement: The system employs a coarse-to-fine strategy. It first aligns against a "smooth" coarse field to find the general area (widening the convergence basin) and then switches to a "sharp" fine field for millimeter-level precision.

Experimental Evaluation

The authors evaluated their model on two standard benchmarks for visual localization:

  • 7-Scenes: A classic indoor dataset featuring seven different rooms. Testing against both SfM-based and DSLAM-based "pseudo-ground truths" demonstrated how training data quality affects the final model.
  • Cambridge Landmarks: A large-scale outdoor dataset (e.g., King's College, St. Mary's Church) that presents significant challenges due to viewpoint changes and scale.

Key Results and Insights

  • The Power of Joint Training: A feature extractor specifically tuned to a scene's unique geometry performs significantly better than a general-purpose pre-trained one.
  • Outdoor Superiority: On the Cambridge Landmarks dataset, the model achieved a median error of 0.24m / 0.48°, significantly outperforming concurrent implicit methods like NeFeS (0.35m / 0.75°) and CROSSFIRE (0.37m / 1°).
  • Robustness: The method proved much more capable of refining "wide-baseline" poses—situations where the initial guess is far from the truth—compared to previous state-of-the-art implicit models.
  • Smoothness vs. Precision: The paper highlights a fundamental trade-off: coarse fields are excellent for recovering from poor initial guesses due to their lack of local minima, while fine fields are necessary for final accuracy.

Limitations and Future Work

Despite these advancements, several challenges remain. The model's accuracy is currently constrained to the "frustum" of the training cameras; if a query image views an area not well-covered during training, refinement may fail. Additionally, while triplanes are efficient, scaling to city-sized environments remains difficult, potentially requiring scene-splitting strategies. Finally, the computational overhead of volumetric rendering makes localization slower than sparse feature matching, and the system still requires a coarse initial pose to begin the refinement process.

Summary updated

BibTeX
@inproceedings{pietrantoni2025self,
  author = {Maxime Pietrantoni and Gabriela Csurka and Martin Humenberger and Torsten Sattler},
  title = {{Self-Supervised Learning of Neural Implicit Feature Fields for Camera Pose Refinement}},
  booktitle = {3DV24},
  year = {2025},
  url = {https://openreview.net/forum?id=beXgTfpFiT},
}
Figure