Masked Depth Modeling for Spatial Perception

Bin Tan, Changjiang Sun, Xiage Qin, Hanat Adai, Zelin Fu, Tianxiang Zhou, Han Zhang, Yinghao Xu, Xing Zhu, Yujun Shen, Nan XuearXiv 2026

TL;DR

LingBot-Depth introduces Masked Depth Modeling (MDM), a self-supervised training paradigm that treats RGB-D camera sensor failures (like "holes" caused by reflections or texture-less surfaces) as natural masks to learn complete, pixel-aligned metric depth. Backed by a massive, newly curated 3-million-pair RGB-D dataset, this model significantly outperforms top-tier commercial sensors and state-of-the-art baselines, providing a powerful spatial perception prior for 3D tracking and robotic manipulation.

What Problem Does This Paper Address?

Accurate 3D spatial perception is a cornerstone for autonomous driving and robotics. While RGB-D cameras are the most viable tools for capturing real-time, pixel-aligned metric depth, they frequently stumble in the real world. Challenging imaging conditions—such as specular reflections, transparent glassware, complex lighting, and low-texture walls—cause stereo matching algorithms to fail.

These failures manifest as severe data corruption and large missing regions ("holes") in raw depth maps. Traditional approaches typically discard these corrupted regions as noise or train models on pristine, idealized synthetic data that fails to generalize to real-world sensor imperfections. The authors address this gap by turning these natural sensor failures into a valuable learning signal.

Methods

The core innovation is Masked Depth Modeling (MDM). Instead of relying on standard random patch masking (like vanilla Masked Autoencoders), MDM leverages the natural masking patterns induced by actual sensor failures. Because these holes occur precisely where geometric and appearance ambiguities exist, they present a much harder and more meaningful reconstruction challenge.

Figure 2. Illustration of the proposed Masked Depth Modeling framework. Depth tokens corresponding to missing sensor measurements are masked, and a ViT encoder learns a joint embedding from the contextual tokens (i.e., the RGB frame) and the remaining unmasked depth tokens. In the decoder stage, latent depth tokens are discarded, and a ConvStack decoder reconstructs the full depth map from latent contextual tokens. We put an unmasked depth map in the bottom-right as the reference.

Key architectural and training details include:

  • Conditioned ViT Encoder: The architecture uses a Vision Transformer (ViT-Large) backbone. It processes separate patch embedding layers for the 3-channel RGB image and the single-channel raw depth map. Crucially, the full, unmasked RGB image is always provided as a condition, forcing the network to infer missing depth values by reasoning about the correlation between the visual context and the remaining valid depth tokens.
  • ConvStack Decoder: Rather than using a shallow Transformer decoder, the model employs a hierarchical convolutional decoder pyramid (adapted from MoGe). During the decoding stage, latent depth tokens are discarded, and the full depth map is reconstructed entirely from the latent contextual (RGB) tokens and a global [cls] token.
  • Two-Stream Data Curation Pipeline: To support large-scale training, the authors built an automated pipeline consisting of a synthetic stream (1M samples rendered in Blender, using Semi-Global Matching to simulate realistic sensor artifacts) and a real-world stream (2M samples captured via a custom, 3D-printed multi-camera rig).

Datasets

The model was pretrained on a diverse corpus of approximately 10 million samples, combining self-curated and public datasets:

  • LingBot-Depth-S (Synthetic): 1 million samples generated from 442 high-fidelity indoor scenes.
  • LingBot-Depth-R (Real): 2 million real-world captures spanning residential, commercial, public, and outdoor environments.
  • Public Datasets: Taskonomy, ScanNet++, TartanAir, ArkitScenes, ADT, Hypersim, and ClearGrasp.
  • Evaluation Benchmarks: iBims, NYUv2, DIODE (Indoor/Outdoor), ETH3D (ETH-SfM), KITTI, DDAD, GSO, Sintel, Spring, and HAMMER.

Key Insights and Ideas

  • Sensor Failures as Features: The "holes" in raw depth maps are not random noise; they inherently reflect underlying geometric ambiguities. By training the network to fill these specific natural masks, the model develops a robust understanding of real-world scene geometry.
  • Fine-Grained Cross-Modal Alignment: Attention visualizations demonstrate that distinct depth query tokens consistently attend to distinct, spatially corresponding regions in the RGB image rather than collapsing into global averages. This confirms that the encoder successfully maps fine-grained geometric-appearance associations.
Figure 3. Multi-query depth-to-RGB attention visualization. For two scenes, (a) an aquarium with densely packed objects and (b) an indoor shelf with heterogeneous materials, we select three depth query patches (Q1–Q3) and visualize their attention over RGB tokens. Each row shows the masked input depth (with query location marked by ⋆), the attention overlay on the RGB image, and the refined depth output. Different queries attend to distinct, spatially corresponding regions, confirming that the joint embedding captures fine-grained cross-modal geometric–appearance associations. The RGB-D camera we used here is Orbbec Gemini-335.
  • Zero-Shot Temporal Consistency: Despite being trained exclusively on static images, the model exhibits remarkable spatiotemporal consistency when applied to video sequences. It can serve as a drop-in depth estimator for dynamic tasks without requiring explicit temporal supervision or video-specific fine-tuning.

Key Results

  • Depth Completion Superiority: On standard indoor benchmarks (iBims, NYUv2, DIODE-Indoor), LingBot-Depth reduces Root Mean Squared Error (RMSE) by over 40% relative to the best existing competitor (PromptDA), showing extreme resilience to heavy noise and masking.
  • Robustness to Sparsity: Under the challenging Protocol 2 (Sparse SfM inputs on ETH3D), the model achieves state-of-the-art results, reducing RMSE by 47% on indoor splits and 38% on outdoor splits compared to the best baseline.
  • Downstream Robotic Utility: When integrated into a real-world dexterous grasping pipeline using a robotic arm, the refined depth maps enabled the system to achieve a 50% success rate on a transparent storage box—an object that was completely ungraspable (0% success) using raw sensor depth due to severe corruption.

Limitations and Future Work

Although LingBot-Depth demonstrates exceptional robustness, the authors note that it still suffers from occasional inaccuracies when encountering highly transparent surfaces. Furthermore, because the model currently operates on a frame-by-frame basis, explicitly incorporating temporal modeling or video-based pretraining represents a promising direction to further enhance spatial consistency in highly dynamic environments.

Summary updated

BibTeX
@misc{tan2026masked,
  author = {Bin Tan and Changjiang Sun and Xiage Qin and Hanat Adai and Zelin Fu and Tianxiang Zhou and Han Zhang and Yinghao Xu and Xing Zhu and Yujun Shen and Nan Xue},
  title = {{Masked Depth Modeling for Spatial Perception}},
  year = {2026},
  eprint = {2601.17895},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2601.17895},
}
Figure