CROSSFIRE: Camera Relocalization On Self-Supervised Features from an Implicit Representation

Arthur Moreau, Nathan Piasco, Moussâb Bennehar, Dzmitry Tsishkou, Bogdan Stanciulescu, Arnaud de La FortelleICCV 2023 · DOI

Abstract

Visual localization—determining a camera's precise 6-DoF position and orientation—is a fundamental task in robotics and augmented reality. While Neural Radiance Fields (NeRFs) have revolutionized implicit scene representation, their application to relocalization has typically relied on slow photometric alignment or imprecise pose regression. This paper introduces CROSSFIRE, a novel framework that integrates self-supervised, scene-specific descriptors directly into a NeRF architecture. By optimizing a descriptor field alongside density and color, CROSSFIRE enables robust, high-speed pose estimation through dense feature matching. Our approach outperforms existing implicit-map methods on standard benchmarks, achieving state-of-the-art accuracy while maintaining a compact memory footprint.

Introduction

Determining a camera's precise 6-DoF pose within a known environment is a cornerstone of autonomous navigation and spatial computing. Traditional methods rely on explicit 3D maps, such as point clouds, which can be memory-intensive and difficult to maintain. Implicit representations like NeRFs offer a continuous, memory-efficient alternative, but localizing within them has proven difficult. Existing solutions generally fall into two categories: photometric alignment, which is computationally expensive and sensitive to lighting changes, and pose regression, which often lacks the precision required for real-world applications.

CROSSFIRE (Camera Relocalization On Self-Supervised Features from an Implicit Representation) bridges this gap. By treating the NeRF as a source of dense, view-invariant descriptors, the system leverages the geometric consistency of the implicit map without the drawbacks of raw pixel comparison.

Methodology

The core innovation of CROSSFIRE is the addition of a descriptor field to a standard NeRF architecture. The model utilizes multi-resolution hash encoding for speed and appearance embeddings to handle varying illumination conditions.

Architecture and Joint Training

The system consists of a CNN feature extractor and a neural renderer trained simultaneously. As illustrated in the training pipeline, the neural renderer outputs not only RGB color and density but also a 32-dimensional descriptor vector for any given 3D coordinate.

The CROSSFIRE training pipeline, illustrating the joint optimization of the feature extractor and the neural renderer using metric learning and photometric losses.

The training process employs a multi-faceted loss function. A metric learning objective is used to align CNN features from query images with descriptors rendered from the NeRF. A "positive loss" forces matches at the correct pose, while a "geometry-aware negative loss" ensures that physically distant points remain distinct in descriptor space, effectively resolving ambiguities in repetitive environments.

Iterative Pose Refinement

To find a camera's pose, the system begins with a coarse initial estimate (prior). It renders a depth map and a descriptor map from this guess and performs 2D-2D matching between the query image's CNN features and the rendered descriptors. Because the depth is known, these become 2D-3D matches, allowing for a standard PnP+RANSAC pose update. This process is typically repeated over three iterations to refine the result.

The iterative refinement process in CROSSFIRE, showing the progression from a coarse localization prior to a high-precision 6-DoF pose estimate.

Experimental Results

The authors evaluated CROSSFIRE on two gold-standard benchmarks: the indoor 7scenes dataset and the outdoor Cambridge Landmarks dataset.

Accuracy and Robustness

On the 7scenes dataset, CROSSFIRE achieved a median error of 0.04m and 1.1°, roughly doubling the precision of previous state-of-the-art implicit methods. In outdoor environments, the system maintained high accuracy (0.37m / 1.0° average) despite dynamic occluders like pedestrians and cars, as well as changing weather conditions.

Efficiency and Scalability

By utilizing hash-based encoding, CROSSFIRE achieves a localization speed of approximately 200ms, making it viable for real-time robotics. Furthermore, the entire model requires only 50MB of storage, which is significantly smaller than the gigabytes often required by explicit point cloud maps for large-scale scenes.

Key Insights and Conclusion

CROSSFIRE demonstrates that scene-specific descriptors are superior to generic features for high-precision relocalization. By making these descriptors view-invariant, the system ensures stable matching even when the query camera angle differs from training data. While the current model excels in static and moderately sized environments, future work will explore city-scale scalability through spatial partitioning and the integration of attention mechanisms to provide better global context in highly symmetrical scenes.

Summary updated

BibTeX
@inproceedings{moreau2023crossfire,
  author = {Arthur Moreau and Nathan Piasco and Moussâb Bennehar and Dzmitry Tsishkou and Bogdan Stanciulescu and Arnaud de La Fortelle},
  title = {{CROSSFIRE: Camera Relocalization On Self-Supervised Features from an Implicit Representation}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2023},
  doi = {10.1109/iccv51070.2023.00030},
}
Figure