X-Distill: Improving Self-Supervised Monocular Depth via Cross-Task Distillation

Hong Cai, Janarbek Matai, Shubhankar Borse, Yizhe Zhang, Amin Ansari, Fatih Porikli

Abstract

Self-supervised monocular depth estimation offers a scalable alternative to supervised methods by leveraging geometric constraints in video sequences. However, these models often lack semantic scene understanding, leading to artifacts around thin structures and moving objects. We present X-Distill, a framework that distills semantic knowledge from a pretrained segmentation teacher into a depth student via a lightweight "Depth-to-Segmentation" (D2S) bridge. This cross-task distillation forces the depth network to learn semantically-aware features without increasing inference-time complexity. X-Distill achieves state-of-the-art performance on the KITTI benchmark, improving squared relative error by 14% over baselines while maintaining high efficiency.

Introduction

Monocular depth estimation is critical for autonomous systems, yet obtaining high-quality ground truth depth is challenging. Self-supervised learning addresses this by using image reconstruction as a supervisory signal. Despite its success, purely geometric self-supervision often fails to capture semantic context—for instance, failing to recognize a car as a single rigid entity or missing thin objects like lamp posts. Previous attempts to integrate semantics often required heavy multi-task architectures that are unsuitable for real-time edge deployment.

Methods

X-Distill introduces a cross-task distillation strategy where a frozen, high-capacity semantic segmentation network (the "Teacher") guides a depth estimation network (the "Student"). To bridge the gap between continuous depth values and discrete semantic labels, we introduce a tiny auxiliary Depth-to-Segmentation (D2S) network.

The X-Distill training framework, featuring the D2S bridge and semantic distillation loss alongside standard self-supervised objectives.

The D2S module is intentionally kept small to force the depth network to extract more informative, semantically-rich features. During training, the D2S output is compared against the teacher's segmentation map using a segmentation loss. Crucially, the teacher and the D2S bridge are discarded after training, leaving a standalone depth network with enhanced scene understanding. To further optimize learning, the authors regroup standard semantic classes into four "depth-compatible" categories: Thin objects, People/Vehicles, Background, and Ground.

Key Results

We evaluated X-Distill on the KITTI and Make3D datasets. Quantitatively, X-Distill significantly outperforms the Monodepth2 baseline, reducing squared relative error by 14%. It also demonstrates remarkable efficiency, matching the accuracy of heavy models like PackNet-SfM with approximately 20x fewer GMACs.

Qualitative comparison between Monodepth2 and X-Distill (Ours), highlighting improved depth for thin objects and cars.

Qualitatively, as shown above, X-Distill produces sharper boundaries and more consistent depth for complex objects. It successfully recovers thin structures like poles that are often blurred or omitted by purely geometric models. Furthermore, zero-shot testing on the Make3D dataset confirms that the learned semantic features generalize well to unseen environments without additional tuning.

Conclusion

X-Distill demonstrates that cross-task distillation is a powerful tool for enhancing self-supervised depth estimation. By leveraging a semantic teacher during training only, the model achieves significant accuracy gains without any inference-time overhead. Future work will explore extending this framework to indoor environments and automating the discovery of depth-compatible semantic groupings.

Summary updated

BibTeX
@inproceedings{cai2021x,
  author = {Hong Cai and Janarbek Matai and Shubhankar Borse and Yizhe Zhang and Amin Ansari and Fatih Porikli},
  title = {{X-Distill: Improving Self-Supervised Monocular Depth via Cross-Task Distillation}},
  booktitle = {BMVC},
  year = {2021},
}
Figure