SLC$^{2}$-SLAM: Semantic-Guided Loop Closure Using Shared Latent Code for NeRF SLAM

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

TL;DR

This paper introduces SLC$^{2}$-SLAM, a novel approach to improve the robustness of Neural Radiance Fields (NeRF) based Simultaneous Localization and Mapping (SLAM) systems by addressing cumulative drift errors. It achieves this by repurposing the latent codes, typically used for scene reconstruction, as local features for loop detection, enhanced by semantic information.

What Problem Does This Paper Address?

Dense SLAM systems aim to simultaneously build a 3D map of an environment and track the agent's pose within it. While NeRF-based SLAM has shown remarkable progress in reconstruction quality and efficiency, a persistent challenge is the accumulation of drift errors over time, especially in large-scale environments. This drift leads to misalignments in both the estimated trajectory and the reconstructed 3D scene. Existing loop closure techniques in NeRF SLAM often rely on external feature extractors or are too simplistic to handle the complexities of these neural representations. The authors identify that the latent codes, which are integral to NeRF SLAM for representing scene geometry and appearance, are underutilized and propose a method to leverage them for more effective loop detection.

Methods

The core of SLC$^{2}$-SLAM lies in its innovative use of latent codes for loop closure. Instead of relying on traditional handcrafted features (like ORB) or pre-trained place recognition models (like NetVLAD), SLC$^{2}$-SLAM extracts latent codes directly from the NeRF map. These latent codes, originally learned for reconstruction, are treated as local geometric features.

To improve the aggregation of these local features into a global descriptor for loop detection, the system incorporates semantic information. This semantic information is also decoded from the latent codes using a dedicated "SemNet" MLP. A "semantic-guided stratified sampling" strategy is employed to select representative latent codes from image regions, prioritizing smaller semantic areas to ensure a more comprehensive representation.

Once potential loop candidates are identified by matching global descriptors, they undergo a validation step using both geometric and semantic consistency checks. Finally, detected loops are closed using a pose graph optimization followed by bundle adjustment to refine both the camera poses and the NeRF map. The system builds upon the Co-SLAM framework, enhancing its loop closure capabilities.

Datasets

The proposed SLC$^{2}$-SLAM system is evaluated on two widely-used indoor datasets:

  • Replica [17]: A synthetic dataset with 18 high-fidelity indoor room replicates, providing ground-truth reconstructions and semantic annotations.
  • ScanNetv1 [1]: A large-scale dataset of real-world indoor scenes, offering more challenging environments with greater complexity and potential for drift.

The authors also mention using specific subsets and protocols from these datasets for both loop detection and place recognition tasks, including a place recognition setup on the complete ScanNetv1 with a sparser set of place frames.

Key Insights and Ideas

  • Latent Codes as Rich Local Features: The paper demonstrates that latent codes, a byproduct of NeRF-based mapping, are not just for reconstruction but can serve as powerful local features for loop detection, eliminating the need for external feature extractors.
  • Semantic Guidance for Loop Detection: Incorporating semantic information, also derived from latent codes, significantly enhances the loop detection process by guiding the aggregation of local features, leading to more robust loop hypotheses.
  • Semantic-Guided Stratified Sampling: This novel sampling strategy ensures that important, smaller semantic regions are adequately represented in the global descriptor, leading to more accurate place recognition compared to naive random sampling.
  • Unified Framework: By integrating loop closure directly into the NeRF SLAM pipeline using its inherent representations, SLC$^{2}$-SLAM offers a more cohesive and efficient system.

Key Results

  • Loop Detection Performance: SLC$^{2}$-SLAM significantly outperforms existing methods like NetVLAD and ORB+BoW in loop detection, achieving an average recall rate of 0.662 on ScanNet, compared to 0.277 for the closest competing approach.
  • Tracking Accuracy: The system demonstrates improved tracking accuracy, with gains of 16.16% on Replica and 12.46% on ScanNet compared to its baseline (Co-SLAM).
  • Reconstruction Quality: SLC$^{2}$-SLAM also shows superior reconstruction quality, outperforming other methods across various metrics, particularly in larger and more complex scenes.
  • Efficiency: The system operates efficiently, requiring only 2GB of video memory and achieving competitive tracking and mapping runtimes with its baseline.

Limitations and Future Work

  • Semantic Segmentation Accuracy: While the semantic segmentation task is not the primary focus, its accuracy (mIoU of 0.6795 on ScanNet) is crucial for guiding loop detection. The authors note that their system's performance is slightly lower than a dedicated semantic SLAM system, suggesting potential for improvement in this area.
  • Future Work: The paper implicitly suggests that further exploration of how latent codes can be leveraged for other aspects of SLAM, beyond loop detection, could be a fruitful direction. Additionally, extending the semantic capabilities of the system could lead to even more robust and intelligent SLAM applications.

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 = {{SLC$^\{2\}$-SLAM: Semantic-Guided Loop Closure Using Shared Latent Code for NeRF SLAM}},
  journal = {IEEE Robotics Autom. Lett.},
  year = {2025},
  url = {https://openreview.net/forum?id=DYbvsYqs2m},
}
Figure