Neuraloc: Visual Localization in Neural Implicit Map With Dual Complementary Features

Hongjia Zhai, Boming Zhao, Hai Li, Xiaokun Pan, Yijia He, Zhaopeng Cui, Hujun Bao, Guofeng Zhang

TL;DR

NeuraLoc is a high-efficiency visual localization framework that replaces bulky 3D point cloud maps with compact neural implicit fields. By distilling both keypoint descriptors and semantic contextual features into a coordinate-based neural network, it achieves state-of-the-art 6-DoF pose accuracy while reducing storage requirements by 45x and speeding up training by 3x compared to previous NeRF-based methods.

What Problem Does This Paper Address?

Visual localization—the task of determining a camera's exact position and orientation (6-DoF) within a known environment—is a cornerstone of robotics and AR/VR. Traditionally, this is solved in one of two ways:

  1. Feature-based methods: These build massive 3D point clouds where every point has an associated descriptor (like SuperPoint). While accurate, these maps are "storage-hungry," often requiring gigabytes of data for even modest scenes.
  2. Regression-based methods: These use neural networks to directly guess the pose or scene coordinates. They are compact but often lack the geometric "grounding" needed for high precision and struggle to generalize to new viewpoints.

Recently, Neural Radiance Fields (NeRF) offered a middle ground, but early NeRF-based localization either required an initial pose guess or still relied on storing explicit features for every point. NeuraLoc tackles the "storage vs. accuracy" trade-off by moving everything—geometry, descriptors, and semantics—into a continuous, implicit neural representation.

Methods

NeuraLoc represents the scene using a Neural Implicit Map powered by multi-resolution hash encodings. The architecture is split into two main branches:

  • Geometry Branch: Uses a Signed Distance Function (SDF) to model the scene's physical structure. This provides better surface reconstruction than standard NeRF density fields.
  • Semantic Branch (The "Dual" Features): This is the core innovation. Instead of storing descriptors for specific points, the model learns to "render" features at any 3D coordinate. It distills two types of information from 2D foundation models:
  • Keypoint Descriptors: Distilled from SuperPoint to handle local matching.
  • Semantic Contextual Features: Distilled from the Segment Anything Model (SAM). These provide high-level context to resolve "semantic ambiguity" (e.g., helping the system distinguish between two identical-looking chairs in different parts of a room).

To bridge the gap between 2D image features and 3D rendered features, the authors introduce a Descriptor Similarity Distribution Alignment. This uses a KL-divergence loss to ensure that the relationship between descriptors in the 3D neural field matches the relationship between descriptors in the 2D image space.

Finally, localization is performed by building a Matching Graph between 2D query keypoints and 3D points sampled from the implicit map. The system solves this using the Hungarian algorithm to establish correspondences, followed by standard PnP + RANSAC for the final pose estimation.

Datasets

The authors evaluated NeuraLoc on two standard indoor benchmarks:

  • Replica: A high-quality synthetic dataset of 8 indoor rooms/offices.
  • 12-Scenes: A real-world dataset featuring 12 different indoor environments with challenging lighting and complex geometry.

Key Insights and Ideas

  • Implicit is Efficient: By learning a "field" of descriptors rather than a list of them, the model size becomes independent of the number of points in the scene. This leads to the massive 45x storage reduction.
  • Context Filters Outliers: Local descriptors (like SuperPoint) can be fooled by repetitive textures. By adding SAM-based semantic features, the system can "sanity check" matches—if the local textures match but the semantic context (e.g., "wall" vs. "floor") doesn't, the match is discarded.
  • Distribution Alignment: One of the biggest hurdles in neural localization is the "domain gap" between 2D CNN features and 3D MLP-rendered features. Aligning the similarity distributions (how a point relates to its neighbors) rather than just the raw feature vectors proves to be a much more robust way to train the descriptor field.

Key Results

  • Compactness: In the "Office2/manolis" scene, NeuraLoc required only 15.48 MB of memory, compared to 788 MB for PNeRFLoc.
  • Speed: Training time was slashed from 1 hour (PNeRFLoc) or several days (SCRNet) down to just 20 minutes.
  • Accuracy: On the Replica dataset, NeuraLoc achieved a median translation error of roughly 0.5 cm to 1.3 cm, significantly outperforming previous SOTA methods like NeRF-SCR and PNeRFLoc.
  • Robustness: NeuraLoc succeeded in challenging real-world scenes (like "Office2/5a") where previous point-based neural methods failed entirely.

Limitations and Future Work

The primary limitation acknowledged by the authors is scalability. While NeuraLoc excels at room-scale indoor environments, the multi-resolution hash encoding and MLP structure are currently difficult to scale to large-scale outdoor cityscapes without a significant increase in complexity or a "tiled" approach.

Future work likely involves extending this implicit representation to handle dynamic scenes (moving objects) and exploring even more compact encodings to enable localization on low-power mobile or wearable hardware.

Summary updated

BibTeX
@inproceedings{zhai2025neuraloc,
  author = {Hongjia Zhai and Boming Zhao and Hai Li and Xiaokun Pan and Yijia He and Zhaopeng Cui and Hujun Bao and Guofeng Zhang},
  title = {{Neuraloc: Visual Localization in Neural Implicit Map With Dual Complementary Features}},
  booktitle = {IEEE International Conference on Robotics and Automation},
  year = {2025},
  doi = {10.1109/icra55743.2025.11127718},
}

Loading related content...

Figure