SLC2-SLAM: Semantic-guided Loop Closure with Shared Latent Code for NeRF SLAM

Yuhang Ming, Di Ma, Weichen Dai, Han Yang, Rui Fan, Guofeng Zhang, Wanzeng Kong · DOI

Introduction

Dense Simultaneous Localization and Mapping (SLAM) using Neural Radiance Fields (NeRF) has revolutionized 3D reconstruction by providing high-fidelity geometry and appearance. However, these systems are plagued by cumulative drift—the gradual accumulation of pose estimation errors that lead to misaligned maps and "ghosting" artifacts. Traditional solutions often rely on external, computationally expensive feature extraction tools (like NetVLAD or ORB) that do not leverage the internal scene representation already learned by the NeRF model.

SLC²-SLAM addresses this by repurposing the internal latent codes—originally intended for 3D reconstruction—as features for loop closure. By integrating semantic information to guide feature sampling, the system achieves state-of-the-art accuracy while maintaining a remarkably low memory footprint.

Methodology

The SLC²-SLAM framework is built upon four core components designed to unify scene representation and global localization:

  1. Shared Latent Codes: The system utilizes latent codes stored in a hash grid. These codes are processed by three lightweight neural networks to simultaneously predict geometry (SDF), color, and semantics.
  2. Semantic-guided Stratified Sampling (S.G.S.S.): To create a robust "fingerprint" for loop detection, the system uses its semantic branch to ensure that sampled points are distributed across diverse object categories. This prevents over-sampling of featureless areas (like blank walls) and ensures small, unique landmarks are captured.
  3. Loop Detection via VLAD: Sampled latent codes are aggregated into a global descriptor using the Vector of Locally Aggregated Descriptors (VLAD) method, enabling efficient searching of a "place database."
  4. Global Optimization: Upon detecting a loop, the system performs Pose Graph Optimization (PGO) to correct the camera trajectory, followed by Bundle Adjustment (BA) to refine the underlying 3D map.
The SLC2-SLAM pipeline, showing how shared latent codes are used across tracking, mapping, and semantic-guided loop closure modules.

Experimental Results

The researchers evaluated SLC²-SLAM on the Replica and ScanNet datasets, focusing on reconstruction precision and tracking robustness.

  • Tracking Accuracy: SLC²-SLAM improved Absolute Trajectory Error (ATE) by 16.16% on Replica and 12.46% on ScanNet compared to the Co-SLAM backbone.
  • Loop Detection Performance: On the real-world ScanNet dataset, the system achieved an average recall rate of 0.662, significantly outperforming the NetVLAD baseline (0.277).
  • Efficiency: Despite its performance, SLC²-SLAM is highly efficient, requiring only 2GB of VRAM. This makes it suitable for deployment on consumer-grade robotics hardware, unlike many competitors that require 12GB or more.
Qualitative and quantitative comparison of SLC2-SLAM against the Co-SLAM baseline and Ground Truth. SLC2-SLAM significantly reduces Absolute Trajectory Error (ATE) and improves reconstruction consistency.

Conclusion

SLC²-SLAM demonstrates that the latent representations within NeRF models are underutilized assets for global localization. By sharing these codes across reconstruction and loop closure tasks and guiding the process with semantic information, the system achieves superior mapping consistency and tracking accuracy. Future work will focus on improving semantic segmentation accuracy and extending the system to handle dynamic environments and larger-scale scenes.

Summary updated

BibTeX
@article{ming2025slc,
  author = {Yuhang Ming and Di Ma and Weichen Dai and Han Yang and Rui Fan and Guofeng Zhang and Wanzeng Kong},
  title = {{SLC2-SLAM: Semantic-guided Loop Closure with Shared Latent Code for NeRF SLAM}},
  journal = {IEEE Robotics Autom. Lett.},
  year = {2025},
  url = {https://openreview.net/forum?id=DYbvsYqs2m},
}
Figure