NeRF-IBVS: Visual Servo Based on NeRF for Visual Localization and Navigation

Yuanze Wang, Yichao Yan, Dianxi Shi, Wenhan Zhu, Jianqiang Xia, Jeff Tan, Songchang Jin, Ke Gao, Xiaobo Li, Xiaokang YangNeurIPS 2023

NeRF-IBVS: High-Precision Localization with a Fraction of the Data

Visual localization—the ability of a robot or camera to determine its exact position and orientation from a single image—is a cornerstone of autonomous navigation. Traditionally, achieving high accuracy required either complex geometric pipelines or massive datasets featuring thousands of images and dense 3D ground truth.

In their NeurIPS 2023 paper, NeRF-IBVS, researchers from Shanghai Jiao Tong University and their collaborators introduce a framework that flips this script. By combining the scene-representation power of Neural Radiance Fields (NeRF) with the classic control theory of Image-Based Visual Servoing (IBVS), they achieve state-of-the-art localization using as little as 5% of the training data typically required.

High-level overview of the NeRF-IBVS framework for visual localization and navigation.

TL;DR

NeRF-IBVS is a "coarse-to-fine" localization framework that uses NeRF to generate synthetic 3D supervision from just a few images. It then refines camera poses using a visual servoing approach, achieving high-precision localization and markerless navigation without needing dense 3D ground truth or depth sensors.

What Problem Does This Paper Address?

Existing visual localization methods generally fall into two camps: structure-based (which match 2D pixels to 3D points) and regression-based (which use neural networks to predict coordinates or poses directly). Both have a "data hunger" problem. They typically require thousands of posed images per scene to generalize well. Furthermore, the most accurate methods often require dense 3D labels (like depth maps or 3D models) for supervision, which are expensive and difficult to acquire in the real world.

The authors ask: Can we achieve high-precision localization using only a small number of posed images and no ground-truth 3D models?

Methods

The complete NeRF-IBVS pipeline, detailing Coarse Pose Estimation, Pose Optimization via IBVS, and Navigation Prior generation.

The NeRF-IBVS pipeline operates in two main stages:

1. Coarse Pose Estimation: * The authors train a NeRF using a limited set of posed images. * They use this NeRF to render "pseudo-3D labels" (depth maps) for the training views. * A coordinate regression network is trained using these synthetic labels to map pixels to 3D scene coordinates. * At inference, a query image passes through this network, and a coarse pose is calculated using a standard PnP (Perspective-n-Point) solver.

2. Fine Pose Optimization (The "Visual Servo" Part): * Instead of stopping at the coarse estimate, the system uses Image-Based Visual Servoing (IBVS). * The system renders a synthetic image from the coarse pose using the NeRF. It then finds correspondences between this rendered image and the actual query image. * IBVS treats the pose refinement as a control problem: it iteratively "moves" the virtual camera to minimize the visual discrepancy between the rendered and query images. * To keep things fast, they implement a "fast iteration strategy" that projects 3D points to the image plane, skipping the heavy NeRF rendering process for most optimization steps.

Datasets

The researchers evaluated their method on two gold-standard indoor localization benchmarks:

  • 7-Scenes: A dataset of seven indoor environments recorded with a Kinect, featuring challenging motion blur and repetitive textures.
  • 12-Scenes: A larger-scale dataset containing twelve indoor rooms, providing a more significant test of scalability.

Crucially, the authors tested their model using only 5% to 25% of the available training data to demonstrate its efficiency.

Key Insights and Ideas

  • NeRF as a Data Factory: The core "aha" moment is using NeRF not just for novel view synthesis, but as a bridge to generate 3D supervision. By creating pseudo-labels, NeRF allows regression networks to learn 3D structure from a very small set of 2D images.
  • Localization as a Control Loop: Most refinement methods use standard gradient descent on a loss function. By using IBVS, the authors frame refinement as a camera motion problem. This makes the optimization more robust to the small depth errors inherent in NeRF reconstructions.
  • Markerless Navigation Prior: Because the system can "servo" between a rendered view and a real view, it naturally provides a navigation prior. This allows a robot to navigate toward a goal image without needing physical markers (like QR codes) or active depth sensors.

Key Results

  • Superior Accuracy with Less Data: On the 7-Scenes dataset, NeRF-IBVS achieved a median error of 0.05m and 1.64° using only 8% of the training data. This outperformed SOTA methods like DFNet and Direct-PoseNet, which used 100% of the data.
  • Closing the Gap: On 12-Scenes, the method achieved 0.02m / 0.95° error. Remarkably, this performance is comparable to (and sometimes better than) methods that have access to ground-truth 3D models and dense depth maps.
  • Robustness: The "Correspondence Selection" algorithm effectively filters out errors caused by poor NeRF rendering quality at the edges of scenes, ensuring the IBVS optimization remains stable.

Limitations and Future Work

  • Rendering Speed: While the fast iteration strategy helps, NeRF rendering is still computationally expensive compared to pure regression models, making real-time performance on low-power edge devices a challenge.
  • Environment Constraints: The method currently excels in indoor scenes. The authors note that the quality of NeRF rendering in large-scale outdoor environments is often lower, which could degrade localization accuracy.
  • Dynamic Scenes: Like most NeRF-based methods, NeRF-IBVS struggles with non-Lambertian (shiny) surfaces and dynamic objects (moving people or furniture) that aren't captured in the static NeRF model.

Future work likely involves integrating faster NeRF variants (like Instant-NGP) and extending the framework to handle more complex, dynamic outdoor environments.

Summary updated

BibTeX
@inproceedings{wang2023nerf,
  author = {Yuanze Wang and Yichao Yan and Dianxi Shi and Wenhan Zhu and Jianqiang Xia and Jeff Tan and Songchang Jin and Ke Gao and Xiaobo Li and Xiaokang Yang},
  title = {{NeRF-IBVS: Visual Servo Based on NeRF for Visual Localization and Navigation}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=9pLaDXX8m3},
}
Figure