Raman Jha1,2,4, Shuaihang Yuan2,3, Yi Fang1,2,3,4
1New York University, Electrical & Computer Engineering Dept., Brooklyn, NY, USA
2Embodied AI and Robotics (AIR) Lab, NYU Abu Dhabi, UAE
3NYUAD Center for Artificial Intelligence and Robotics (CAIR), Abu Dhabi, UAE
4New York University Abu Dhabi, Electrical Engineering, Abu Dhabi, UAE
IEEE Robotics and Automation Letters (RA-L), 2026 | arXiv
Semantic 3D Gaussian SLAM commonly fuses 2D semantic priors into a persistent 3D map using uniform optimization weights. However, such priors are not equally reliable in online mapping: occlusions, unsupported semantic boundaries, and ambiguous ray geometry introduce persistent semantic artifacts into the global Gaussian map. We propose VCS-SLAM, a geometry-validated semantic evidence fusion framework for RGB-D 3D Gaussian SLAM. Instead of treating all semantic observations as uniformly valid supervision, VCS-SLAM evaluates their geometric reliability through visibility consistency, surface-supported boundary evidence, and ray-level conflict uncertainty. The resulting reliability-aware objective suppresses occluded semantic updates, reduces unsupported semantic bleeding, and delays premature label assignment in ambiguous regions. Experiments on Replica show improved semantic consistency, boundary preservation, and reconstruction quality, while ScanNet results confirm competitive tracking under real RGB-D input. Under structured corruption of the 2D priors, VCS-SLAM degrades at little more than half the rate of a comparable semantic Gaussian SLAM baseline and outperforms naive gating, smoothness, and entropy-weighting variants of its own modules, indicating that the gains follow from the specific formulation rather than from reweighting alone.
Every Gaussian carries a C-dimensional semantic logit vector that is alpha-composited into a semantic map Sp and supervised with per-pixel cross-entropy. Instead of weighting all 2D labels equally, VCS-SLAM scores each pixel's reliability from the rendered geometry, ρp = Mvis(p) · Cp (Eq. 3), using three modules:
| Module | What it does | Paper | Code |
|---|---|---|---|
| VCSU visibility-consistent semantic updates | Soft mask Mvis = exp(-|Dp - Dpobs|² / 2σvis²) down-weights labels where rendered and sensor depth disagree | Eq. 5 | visibility_mask |
| CAUW conflict-aware uncertainty weighting | Per-pixel confidence Cp = 1 / (1 + γ Vpix) from the ray depth variance Vpix = E[D²] - E[D]² | Eqs. 9-10 | conflict_confidence |
| SCEA surface-coupled edge alignment | Penalises semantic edges that lack a depth edge, Ledge = mean(ES · max(0, τd - ÊD)) | Eqs. 6-8 | edge_alignment_loss |
They are combined in the semantic objective Lsemours = β·mean(ρ·CE) + (1-β)·mean(CE) + λedge·Ledge (Eqs. 11-12), which enters the mapping loss λDLD + λCLC + λSLsemours (Eq. 13). Everything is in vcs_slam/reliability.py; the logit field is in vcs_slam/semantics.py. The SLAM backbone (tracking, mapping, densification, keyframes) follows SplaTAM and SGS-SLAM.
Settings of the paper (Sec. IV-A4), as used by configs/replica/slam.py and configs/scannet/slam.py:
| σvis | β | γ | λedge | τd | λC, λD (tracking and mapping) | λS | mapping and densification |
|---|---|---|---|---|---|---|---|
| 0.05 | 0.7 | 100 | 0.02 | 0.75 | 0.5, 1.0 | 0.01 | every N = 8 frames |
Tracking uses RGB-D only. Details the paper leaves open are listed under Implementation notes.
Fig. 4 of the paper: (a) input view, (b) the base model without VCSU, SCEA and CAUW, (c) VCS-SLAM; (d-f) zoomed crops.
Requires Linux, an NVIDIA GPU, Python 3.10, PyTorch 2.0.1 and CUDA 11.8 (pinned versions in requirements.txt).
git clone https://github.com/jhakrraman/VCS-SLAM.git
cd VCS-SLAM
conda env create -f environment.yml
conda activate vcs-slam
pip install --no-build-isolation git+https://github.com/JonathonLuiten/diff-gaussian-rasterization-w-depth.git@cb65e4b86bc3bd8ed42174b72a62e8d3a3a71110Without environment.yml: install PyTorch 2.0.1 / torchvision 0.15.2 for CUDA 11.8 and the CUDA 11.8 toolkit, then pip install -r requirements.txt and the rasterizer as above. Weights & Biases logging is optional (pip install wandb, then --wandb).
Data is read from ./data (set VCS_DATA_ROOT to use another folder); results go to ./experiments (VCS_OUTPUT_ROOT).
Replica. Download the Replica sequences with ground-truth semantic labels prepared by SGS-SLAM (see the Download Dataset section of the SGS-SLAM README). The original scenes are from the Replica dataset; use them under its license. Expected layout:
data/Replica/room0/{frames/frame*.jpg, depths/depth*.png, semantic_ids/semantic_id*.png, semantic_colors/semantic_color*.png, traj.txt}
ScanNet. Request access on the ScanNet website and download the .sens files of scene0000_00, scene0059_00, scene0106_00, scene0169_00, scene0181_00 and scene0207_00. Copy SensorData.py from the ScanNet repository into preprocess/scannet/, then export each scene:
python preprocess/scannet/run.py --input_folder <scene folder with the .sens file> --output_folder data/scannet/scene0000_00 --export_depth_images --export_color_images --export_poses --export_intrinsics --export_seg --label_map_file preprocess/scannet/scannetv2-labels.combined.tsvpython scripts/slam.py configs/replica/slam.py --scene room0A run writes to experiments/Replica/room0_0/. That folder holds the map (params.npz, plus params.ply and seg_params.ply for any 3DGS viewer), the resolved config.json, and eval/. eval/ contains:
metrics.json: ATE, PSNR, SSIM, LPIPS, depth L1 and mIoU;mechanism.json: the Tab. VII metrics;timing.json: tracking, mapping and SLAM FPS;- the rendered RGB, depth, semantic colours and class-id maps.
Any config entry can be overridden; --tag keeps variants apart:
python scripts/slam.py configs/replica/slam.py --scene room0 --tag no_vcsu --set semantics.vcsu=false
python scripts/slam.py configs/replica/sgs_slam.py --scene room0 # SGS-SLAM baseline in this code base
python scripts/slam.py configs/scannet/slam.py --scene scene0000_00Visualise a reconstruction (Open3D):
python viz_scripts/online_recon.py configs/replica/slam.py --scene room0
python viz_scripts/final_recon.py configs/replica/slam.py --scene room0 --set viz.render_mode=semantic_colortools/experiments.py knows every run behind each table and figure. run launches the missing ones (finished runs are skipped) and then prints the table; tools/make_tables.py <table> prints it again from existing results. Rows for other methods in Tabs. I-V are taken from the cited papers.
| Result | Command | Runs |
|---|---|---|
| Tab. I: ATE on Replica | python tools/experiments.py run table1 |
8 |
| Tab. II: ATE on ScanNet | python tools/experiments.py run table2 |
6 |
| Tab. III: depth L1 and runtime | python tools/experiments.py run table3 |
same as Tab. I |
| Tab. IV: PSNR / SSIM / LPIPS | python tools/experiments.py run table4 |
same as Tab. I |
| Tab. V: semantic mIoU | python tools/experiments.py run table5 |
4 of Tab. I |
| Tab. VI: module ablation | python tools/experiments.py run table6 |
32 |
| Tab. VII: mechanism analysis vs. SGS-SLAM | python tools/experiments.py run table7 |
16 |
| Tab. VIII: corrupted 2D priors | python tools/experiments.py run table8 |
104 |
| Tab. IX: naive reweighting variants | python tools/experiments.py run table9 |
32 |
| Sensitivity to σvis, γ, τd (Sec. IV-D) | python tools/experiments.py run sensitivity |
7 |
| Fig. 3: RGB renderings | python tools/experiments.py run fig3, then python tools/make_figures.py fig3 --frame <i> |
same as Tab. I |
| Fig. 4: qualitative ablation | python tools/experiments.py run fig4, then python tools/make_figures.py fig4 --frame <i> --crop x0 y0 x1 y1 (--baseline sgs_slam to compare with SGS-SLAM) |
2 |
Defaults follow the paper:
- Tabs. I, III, IV, VI and VII use the eight Replica scenes. The mIoU column of Tab. VI uses the four scenes of Tab. V.
- Tabs. V, VIII and IX use room0, room1, room2 and office0.
- The sensitivity sweep uses room0.
--scenes and --seed override them. On a Slurm cluster, run an experiment as a job array; edit the resources in the template first:
python tools/experiments.py commands table8 > table8_jobs.txt
sbatch --array=1-$(wc -l < table8_jobs.txt) slurm/array.sbatch table8_jobs.txt
python tools/make_tables.py table8Results depend on the GPU and library versions, and the rasterizer's backward pass is not deterministic.
Choices the paper does not fix, so that results can be interpreted:
- Semantic logits. The label space is the set of classes that appear in the sequence's label images. A new Gaussian starts at 1.0 × one-hot(label of its pixel) (
semantics.init_logit). Logits use the learning rate of SGS-SLAM's semantic features (0.0025). The rasterizer renders three channels per pass, so Sp is rendered in ⌈C/3⌉ passes, which is exact because alpha blending is linear in the features. - Gradients. ρp and the normalised depth-edge map ÊD act as weights and references, so they are not back-propagated into the geometry. The semantic loss still shapes the geometry through Sp. Sobel filters use replicate padding, and a small ε inside the square root keeps ES differentiable on flat regions. Pixels without valid depth get Mvis = 0.
- mIoU (Tab. V). Per-frame visible-class protocol of SGS-SLAM: each pixel takes the arg-max over the classes present in that frame's ground truth, unlabeled pixels are ignored, and IoU is averaged over the frame's classes.
- Mechanism metrics (Tab. VII), computed during evaluation.
- Depth-inconsistent mIoU uses pixels with |Dp - Dpobs| > 0.05 m.
- Boundary F1 uses a 3-pixel band around the morphological label edges.
- Error-detection AUROC uses the ray depth variance (equivalently 1 - Cp) as the score, pooled over all evaluated pixels.
- Corrupted priors (Tab. VIII). Only the labels fed to SLAM are corrupted; evaluation uses the clean ground truth. Each frame is seeded by its index.
- Boundary k: grey dilation or erosion of the label map with a (2k+1)² square.
- Confusion p: each segment is relabelled, with probability p, to the class with the nearest mean colour in the frame.
- Missed q: segments smaller than 1 % of the image are dropped with probability q and filled with the surrounding label.
- Uniform r: a fraction r of the pixels is reassigned to random classes.
- Tab. IX variants. Each replaces one module and keeps everything else:
semantics.vcsu_variant=hard,semantics.scea_variant=tvandsemantics.cauw_variant=entropy. - Runtime (Tab. III). Computed as in SGS-SLAM: tracking FPS = 1 / tracking time per frame; mapping FPS = 1 / time per mapping step; SLAM FPS = frames / total tracking and mapping time.
- SGS-SLAM baseline.
configs/replica/sgs_slam.pyis SGS-SLAM's original configuration.tests/test_sgs_slam_baseline.pychecks that this mode reproduces SGS-SLAM's losses and gradients bit for bit.
The reference checks run on a CPU-only machine; small stand-ins replace the CUDA rasterizer, LPIPS and MS-SSIM:
pip install pytest
python -m pytest testsThey compare the semantic objective with an independent NumPy transcription of Eqs. 3 and 5-12, check the configs against the paper, test the metrics and corruptions, compare the SGS-SLAM baseline with SGS-SLAM's original loss, and run scripts/slam.py end-to-end on a synthetic sequence.
vcs_slam/ semantic objective (VCSU, SCEA, CAUW), logit field, metrics, prior corruption, configs
scripts/slam.py SLAM entry point
configs/ Replica and ScanNet settings, SGS-SLAM baseline
tools/ experiments, tables and figures of the paper
slurm/ job templates
tests/ reference checks (CPU)
utils/ datasets/ viz_scripts/ preprocess/ SplaTAM / SGS-SLAM components
This code builds on SGS-SLAM, which builds on SplaTAM. We thank their authors for releasing their code. It also uses components of 3D Gaussian Splatting, Dynamic 3D Gaussians and GradSLAM / ConceptFusion.
Released under the BSD 3-Clause License (see LICENSE), inherited from SplaTAM. Some parts are under their own licenses:
utils/gs_external.py,utils/slam_external.pyandutils/graphics_utils.pycome from 3D Gaussian Splatting and remain under the Gaussian-Splatting license (non-commercial, research and evaluation use).- The diff-gaussian-rasterization-w-depth dependency is also under that license.
datasets/gradslam_datasetscomes from GradSLAM.
If you find our work useful, or used it in any way, please cite this:
@article{jha2026vcsslam,
title = {{VCS-SLAM}: Visibility-Consistent Semantic Fusion for {3D} {Gaussian} {SLAM}},
author = {Jha, Raman and Yuan, Shuaihang and Fang, Yi},
journal = {IEEE Robotics and Automation Letters},
year = {2026},
eprint = {2606.29494},
archivePrefix = {arXiv}
}Raman Jha, ramanjha@nyu.edu


