CCL-LGS: Contrastive Codebook Learning for 3D Language Gaussian Splatting

Lei Tian, Xiaomin Li, Liqian Ma, Hao Yin, Zirui Zheng, Hefei Huang, Taiqing Li, Huchuan Lu, Xu Jia

TL;DR

This paper introduces CCL-LGS, a novel framework for 3D semantic understanding that tackles the critical challenge of cross-view semantic inconsistencies in 3D reconstruction. By employing a contrastive codebook learning module, CCL-LGS achieves more robust and accurate semantic segmentation of 3D scenes, even in the presence of occlusions and view-dependent variations.

What Problem Does This Paper Address?

Recent advancements in 3D reconstruction, particularly with 3D Gaussian Splatting (3DGS), have enabled high-fidelity scene representations. Simultaneously, vision-language models like CLIP have bridged the gap between visual and textual understanding, paving the way for 3D semantic understanding. However, a significant hurdle remains: ensuring semantic consistency across different views of a 3D scene. Factors like occlusion, motion blur, and variations in viewpoint can lead to inconsistent semantic features extracted from 2D images. When these inconsistent features are projected and used to supervise 3D semantic fields, they introduce artifacts and degrade the overall quality of the reconstruction. Existing methods often overlook this critical issue of 2D feature alignment, leading to limitations in robust semantic understanding.

Methods

CCL-LGS proposes a three-stage pipeline to address these challenges:

  1. Instance Tracking and Mask Association: The framework first leverages the Segment Anything Model (SAM) to extract dual-scale masks (sub-part and whole-part) from multi-view images. These masks are then associated across views using a zero-shot tracker, ensuring consistent identification of objects. A filtering procedure refines these masks to obtain a non-overlapping set.
  2. Contrastive Codebook Learning (CCL): This is the core innovation. After extracting pixel-aligned language embeddings using CLIP, the CCL module is employed. It introduces a codebook of learned prototypes. Contrastive losses are applied to:
  3. Pull Loss: Encourage features belonging to the same semantic category to be compact and close to their corresponding codebook prototype.
  4. Push Loss: Ensure features from different semantic categories are distinct and pushed apart in the feature space. This module effectively resolves semantic ambiguities arising from imperfect or noisy masks, leading to more robust and discriminative 2D semantic features.

  5. 3D Gaussian Semantic Field Integration: The refined 2D semantic features are then integrated into the 3D Gaussian semantic field. This involves converting per-pixel semantic features into discrete indices and using these indices to supervise the 3D Gaussians. A lightweight MLP decoder and softmax layer are used to produce a semantic feature distribution, which is optimized using cross-entropy loss.

Datasets

The paper evaluates CCL-LGS on two benchmark datasets:

  • LERF: This dataset features four challenging indoor scenes (Ramen, Figurines, Teatime, Waldo Kitchen) captured with an iPhone. It's noted for its real-world imaging conditions, including severe occlusions and motion blur, making it suitable for testing segmentation robustness.
  • 3D-OVS: This dataset consists of long-tail objects against diverse backgrounds, with four specific scenes used for evaluation (Bed, Bench, Lawn, Sofa).

Key Insights and Ideas

  • The critical role of 2D feature alignment: The paper strongly emphasizes that inconsistencies in 2D semantic features, even with advanced vision-language models, are a major bottleneck for robust 3D semantic understanding.
  • Contrastive learning for semantic disambiguation: The CCL module's ability to enforce intra-class compactness and inter-class distinctiveness is key to handling noisy masks and improving semantic accuracy.
  • Unified framework for efficiency: By integrating mask generation, association, and feature extraction within a single pipeline, the approach aims to reduce computational overhead while maintaining high semantic accuracy.

Key Results

  • Quantitative Performance: CCL-LGS achieves state-of-the-art results on the LERF dataset, outperforming the previous best method (3D VL-GS) by 3.6 mIoU. It ranks first or second across all four LERF scenes. On the 3D-OVS dataset, it shows comparable performance, though slightly underperforming 3D VL-GS, which is attributed to the dataset's simplicity and the data enrichment strategy of 3D VL-GS.
  • Qualitative Improvements: Visualizations demonstrate that CCL-LGS provides consistent multi-view segmentation, accurately captures challenging objects with fine boundaries, and is more robust to viewpoint changes compared to baselines. Ablation studies show that both the pull and push losses are essential for optimal performance, with the pull loss improving intra-class consistency and the push loss reducing false activations.

Limitations and Future Work

  • Dependence on SAM: The framework's performance is inherently tied to the quality of masks generated by SAM. Imperfect masks, even after refinement, can still affect the final results.
  • Future Directions: The authors suggest refining masks for greater robustness as a future research direction. They also mention that their method's proficiency in 3D open-vocabulary scene understanding could benefit various downstream applications.

Summary updated

BibTeX
@inproceedings{tian2025ccl,
  author = {Lei Tian and Xiaomin Li and Liqian Ma and Hao Yin and Zirui Zheng and Hefei Huang and Taiqing Li and Huchuan Lu and Xu Jia},
  title = {{CCL-LGS: Contrastive Codebook Learning for 3D Language Gaussian Splatting}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2025},
}
Figure