Abstract
Traditionally, training neural networks to perform semantic segmentation requires expensive human-made annotations. But more recently, advances in the field of unsupervised learning have made significant progress on this issue and towards closing the gap to supervised algorithms. To achieve this, semantic knowledge is distilled by learning to correlate randomly sampled features from images across an entire dataset. In this work, we build upon these advances by incorporating information about the structure of the scene into the training process through the use of depth information. We achieve this by (1) learning depth-feature correlation by spatially correlating the feature maps with the depth maps to induce knowledge about the structure of the scene and (2) exploiting farthest-point sampling to more effectively select relevant features by utilizing 3D sampling techniques on depth information of the scene. Finally, we demonstrate the effectiveness of our technical contributions through extensive experimentation and present significant improvements in performance across multiple benchmark datasets.
Introduction
Semantic segmentation—the task of assigning a categorical label to every pixel in an image—is a cornerstone of computer vision. However, the reliance on dense, pixel-perfect human annotations makes scaling these models to new domains prohibitively expensive. Unsupervised semantic segmentation offers a promising alternative by attempting to discover semantic categories directly from unlabeled data.
Recent state-of-the-art methods like STEGO have made strides by distilling features from self-supervised models (e.g., DINO) through global feature correlation. Despite their success, these models are fundamentally limited by their 2D perspective. They treat images as flat grids, ignoring the inherent 3D geometry of the scenes they depict. This often leads to failures in distinguishing between objects that are visually similar but spatially distinct, or in accurately delineating boundaries in complex lighting. This paper introduces DepthG, a framework that grounds unsupervised learning in 3D scene structure using monocular depth estimation.
Methodology
DepthG enhances the unsupervised distillation process by integrating geometric priors into feature correlation and point sampling.
Depth-Feature Correlation Loss
The primary innovation is a loss function that aligns the visual feature space with the 3D layout of the scene. By leveraging depth maps—generated by off-the-shelf monocular depth estimators—the model computes the 3D proximity of image points. The correlation loss encourages the model to produce similar features for points that are close in 3D space and dissimilar features for those that are far apart. This provides a structural bias that helps the model understand object boundaries and spatial relationships.
Depth-Guided Farthest Point Sampling (FPS)
To compute correlations effectively, models must sample representative pixels from an image. While previous methods used random sampling, DepthG utilizes the depth map to perform Farthest Point Sampling (FPS) in 3D space. By converting the depth map into a point cloud, FPS ensures that the selected samples are spatially diverse and cover the entire depth range of the scene. This technique is particularly effective at capturing small objects and distant background elements that random 2D sampling often overlooks.
3D Local Hidden Positives (3D-LHP)
The framework also improves the "Hidden Positives" technique, which identifies neighboring patches to propagate learning signals. Instead of relying on 2D attention maps, DepthG uses 3D proximity. This 3D-LHP approach results in sharper segmentation borders and more consistent class assignments across varying depths.
Experiments and Results
The authors evaluated DepthG across several diverse datasets, including COCO-Stuff 27, Cityscapes, and the aerial Potsdam-3 dataset.
Quantitative Evaluation
DepthG consistently outperforms the STEGO baseline and other unsupervised competitors. On the COCO-Stuff 27 benchmark, DepthG achieved a significant improvement in unsupervised accuracy (+8.0%) and mIoU (+1.1%) over STEGO. On Cityscapes, the model saw a jump of +8.4% in accuracy and +2.1% in mIoU. These results demonstrate that even "hallucinated" depth from monocular estimators provides a robust signal for semantic discovery.
Qualitative Comparison
Visual results highlight the model's ability to handle challenging scenarios. DepthG is notably better at separating overlapping objects and maintaining consistency in regions affected by shadows, which often confuse purely 2D-based models.
Conclusion
DepthG demonstrates that 3D scene geometry is a powerful, "free" source of supervision for semantic segmentation. By incorporating depth-guided correlation and sampling, the framework significantly advances the state-of-the-art in unsupervised learning. While the method's performance is tied to the quality of the underlying depth estimator, its success across diverse datasets suggests broad applicability for future research in unsupervised scene understanding.
Summary updated