PNeRFLoc: Visual Localization with Point-Based Neural Radiance Fields

Boming Zhao, Luwei Yang, Mao Mao, Hujun Bao, Zhaopeng Cui

Abstract

PNeRFLoc is a hybrid visual localization framework that integrates traditional 2D-3D feature matching with high-fidelity refinement using Point-based Neural Radiance Fields (PointNeRF). By employing a unified point representation and a novel "warping loss" for pose refinement, PNeRFLoc achieves state-of-the-art accuracy on both synthetic and real-world benchmarks. The method significantly improves rendering-based optimization efficiency by avoiding redundant NeRF re-rendering during the refinement stage, while a learned feature adaptation module bridges the gap between scene-agnostic localization and scene-specific rendering.

Introduction

Visual localization—determining the 6-DOF pose of a camera in a known environment—is fundamental to robotics and augmented reality. Current methodologies typically fall into two categories: structure-based methods, which match 2D pixels to 3D map points, and regression-based methods, which directly predict poses via neural networks. While structure-based methods are precise, they struggle with significant viewpoint changes. Conversely, regression methods often lack geometric constraints and fail to generalize. Recent attempts to utilize Neural Radiance Fields (NeRF) for localization have been hindered by slow optimization speeds and susceptibility to local optima. PNeRFLoc addresses these challenges by combining the geometric robustness of point-based representations with an efficient two-stage optimization pipeline.

Methodology

Unified Point Representation and Feature Adaptation

PNeRFLoc represents scenes using a point cloud where each point carries both geometric data and neural features. A core innovation is the Feature Adaptation Module, which translates scene-agnostic features (extracted from pre-trained models like R2D2) into scene-specific features suitable for both keypoint matching and neural rendering. This module also learns a confidence score for each 3D point, allowing the system to prioritize high-quality points during localization.

Figure 1: The PNeRFLoc architecture, illustrating the flow from feature extraction and adaptation to the two-stage pose estimation process.

Two-Stage Pose Estimation

The localization pipeline operates in two distinct phases:

  1. Coarse Initialization: Traditional 2D-3D matching is performed using adapted features, followed by a PnP+RANSAC loop to establish an initial pose estimate.
  2. Fine Refinement via Warping Loss: To avoid the high computational cost of re-rendering the NeRF model at every iteration, PNeRFLoc renders a reference image once at the initial pose. It then optimizes the camera pose by minimizing a "warping loss" that aligns query pixels to this static reference. This geometric shortcut provides the precision of photometric alignment without the overhead of full neural backpropagation.

Experimental Evaluation

Performance Benchmarks

The framework was evaluated across three diverse datasets: Replica (synthetic indoor), 7Scenes (real-world indoor), and Cambridge Landmarks (large-scale outdoor). On the Replica dataset, PNeRFLoc achieved exceptional precision with median translation errors of 0.005 meters. In real-world scenarios, it performed on par with state-of-the-art structure-based methods like PixLoc while significantly outperforming previous NeRF-based localization approaches.

Efficiency and Robustness

A key finding in the ablation studies is the impact of the learned point scoring system. By filtering out points with low confidence scores, the system maintains high recall while drastically reducing the time required for RANSAC-based matching.

Figure 2: Analysis of the trade-off between score threshold, time consumption, and recall, demonstrating how learned point scoring optimizes efficiency.

Conclusion

PNeRFLoc demonstrates that point-based neural radiance fields can be effectively adapted for high-precision visual localization. The introduction of the warping loss and feature adaptation module allows for a system that is both more accurate and more efficient than standard NeRF-optimization methods. While the system currently depends on the quality of initial depth maps and requires scene-specific training, it represents a significant step toward integrating neural rendering into real-time robotic navigation and tracking systems.

Summary updated

BibTeX
@inproceedings{zhao2024pnerfloc,
  author = {Boming Zhao and Luwei Yang and Mao Mao and Hujun Bao and Zhaopeng Cui},
  title = {{PNeRFLoc: Visual Localization with Point-Based Neural Radiance Fields}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2024},
  doi = {10.1609/aaai.v38i7.28576},
}
Figure