Abstract
Monocular Depth Estimation (MDE) is an inherently ill-posed problem that typically requires strong structural priors to resolve 3D geometry from 2D projections. This paper explores the use of Large Language Models (LLMs) as a source of "linguistic common sense" regarding typical object depths. By mapping BERT word embeddings to depth values, the authors generate "depth hints" that significantly improve the performance of standard MDE pipelines. Results on the NYUD2 dataset demonstrate that natural language contains inherent spatial biases that can be effectively leveraged to resolve visual ambiguities in 3D scene reconstruction.
Introduction
Predicting 3D depth from a single 2D image is a fundamental challenge in computer vision. Because a single 2D projection can correspond to infinitely many 3D configurations, models must rely on contextual cues and assumptions. While traditional deep learning approaches attempt to learn these cues implicitly from visual data, humans utilize explicit world knowledge—for instance, knowing that a "mountain" is typically distant while a "cup" is near.
This research investigates whether such "linguistic common sense" is captured within text-only models like BERT and how it can be integrated into vision systems. The authors hypothesize that language models contain latent spatial relationships that can serve as structural world priors for depth estimation, providing a semantic bridge to geometric understanding.
Methodology
The proposed system bridges the gap between semantic labels and geometric depth through a multi-stage pipeline that incorporates linguistic information directly into the estimation process.
Language-to-Depth (L2D) Model
The core innovation is the L2D model, a feed-forward network trained to map BERT word embeddings to depth values. Two operational modes were evaluated:
- Classification Mode: Predicts a probability distribution across 256 discrete depth bins.
- Log-Mean Mode: Predicts a single continuous average depth value.
To ensure robust embeddings, the authors utilized a "contextual" strategy, placing object labels into neutral templates (e.g., "[CLS] This is a sofa [SEP]") before extraction to capture more stable semantic representations.
Vision Pipeline Integration
The complete pipeline integrates these linguistic hints into a state-of-the-art vision architecture:
- Instance Segmentation: An off-the-shelf Cascade Mask-RCNN segments the RGB image and assigns semantic labels (e.g., "window," "table").
- Hint Generation: These labels are processed by the L2D model to produce pixel-wise depth hints based on the identified object classes.
- Depth Estimation: The hints are concatenated with the original RGB image and processed by a modified AdaBins-B1 model to generate the final high-resolution depth map.
Experimental Setup and Datasets
The models were primarily trained and evaluated on the NYUD2 dataset of indoor scenes. To provide semantic labels, a 100-class subset of ADE20K-Places was used for the segmentation module.
A critical component of the evaluation was the "Leave-One-Out" (loo) split. In this setup, the L2D model is tested on object classes it never encountered during training, forcing it to rely entirely on BERT's internal semantic relationships to infer depth for novel categories.
Results and Discussion
The experiments confirmed that BERT embeddings naturally cluster according to physical depth, even without visual training.
Performance Gains
On the NYUD2 dataset, the inclusion of language-based hints led to measurable improvements over the baseline AdaBins-B1 model. The best-performing configuration (using BERT-tiny contextual embeddings) reduced the Absolute Relative Error (Abs Rel) from 0.123 to 0.115 and improved the $\delta < 1.25$ accuracy from 0.864 to 0.880.
Model Scale and Generalization
Interestingly, BERT-tiny (128d) often outperformed the larger BERT-base (768d). This suggests that the mapping from language to depth is relatively straightforward, and higher-dimensional embeddings may introduce unnecessary complexity for the small L2D network. Furthermore, the "leave-one-out" tests demonstrated strong generalization, proving that the model successfully leverages linguistic associations to estimate depths for unseen object types.
Conclusion and Future Work
This work demonstrates that natural language is a viable and potent source of structural priors for monocular depth estimation. By extracting "depth sense" from LLMs, vision models can achieve higher accuracy and better generalization.
Current limitations include a dependency on the accuracy of the instance segmentation model and hardware constraints that necessitated a smaller vision backbone. Future research could explore more advanced LLMs or investigate if language can provide additional geometric hints, such as object orientation or material properties, to further enhance 3D scene understanding.
Summary updated