Learning Monocular Depth Estimation via Selective Distillation of Stereo Knowledge

Kyeongseob Song, Kuk-Jin YoonarXiv 2022

Abstract

Monocular depth estimation has been extensively explored based on deep learning, yet its accuracy and generalization ability still lag far behind the stereo-based methods. To tackle this, a few recent studies have proposed to supervise the monocular depth estimation network by distilling disparity maps as proxy ground-truths. However, these studies naively distill the stereo knowledge without considering the comparative advantages of stereo-based and monocular depth estimation methods. In this paper, we propose to selectively distill the disparity maps for more reliable proxy supervision. Specifically, we first design a decoder (MaskDecoder) that learns two binary masks which are trained to choose optimally between the proxy disparity maps and the estimated depth maps for each pixel. The learned masks are then fed to another decoder (DepthDecoder) to enforce the estimated depths to learn from only the masked area in the proxy disparity maps. Additionally, a Teacher-Student module is designed to transfer the geometric knowledge of the StereoNet to the MonoNet. Extensive experiments validate our methods achieve state-of-the-art performance for self- and proxy-supervised monocular depth estimation on the KITTI dataset, even surpassing some of the semi-supervised methods.

Introduction

Estimating 3D depth from a single 2D image is a fundamental challenge for low-cost robotics and autonomous driving. Mathematically, this is an "ill-posed" problem because infinite 3D scenes can project onto the same 2D image. While stereo-based methods using two cameras are more accurate, they require specialized hardware. To bridge this gap, researchers often use "proxy supervision," where a high-quality stereo network (the teacher) generates depth labels for a monocular network (the student) to mimic.

However, stereo networks are not perfect; they struggle with occlusions, reflective surfaces, and textureless regions. Naive distillation forces the monocular network to inherit these errors. This paper introduces a framework that allows the student to intelligently ignore the teacher's mistakes through Selective Distillation and a feature-level Teacher-Student (T-S) module.

Methodology

The proposed framework consists of a "MonoNet" trained under the guidance of a pre-trained "StereoNet" using two primary innovations:

Selective Distillation via MaskDecoder

Instead of forcing the monocular network to match the stereo output globally, the authors designed a MaskDecoder. This module learns two binary masks that identify which pixels in the stereo output are reliable. It utilizes standard self-supervised losses—image reconstruction and smoothness—to determine if the stereo network's prediction is superior to the current monocular estimate. If the stereo proxy is deemed unreliable (e.g., in reflective areas), the monocular network ignores the teacher for those specific pixels.

The proposed architecture featuring MonoNet, StereoNet, and the Selective Distillation components.

Teacher-Student (T-S) Module

Depth estimation relies heavily on understanding spatial geometry. The T-S module transfers high-level geometric features from the stereo encoder to the monocular encoder using three distillation losses:

  • Feature Distillation ($L_{FD}$): Direct pixel-to-pixel feature matching.
  • Channel Distillation ($L_{CD}$): Matching the relative importance of different feature channels.
  • Similarity Distillation ($L_{SD}$): Preserving the relational context between different image regions.

Experiments and Results

The researchers evaluated the model on the KITTI dataset, utilizing CityScapes for pre-training and Scene Flow for the initial training of the StereoNet teacher.

Quantitative Performance

The method achieved State-of-the-Art (SOTA) results on the KITTI Eigen test split. The full model achieved an accuracy score ($δ < 1.25$) of 0.897, significantly outperforming the baseline "Direct Distillation" score of 0.884. Furthermore, the Absolute Relative Error (Abs Rel) was reduced from 0.101 to 0.093.

Qualitative Improvements

Visual analysis confirms that the monocular network can actually surpass its teacher in specific scenarios. Because monocular networks rely on semantic context (e.g., recognizing the shape of a car), they are less susceptible to the reflections or occlusions that typically break the pixel-matching logic of stereo networks.

Qualitative comparison showing the input image (top), stereo proxy (middle), and the proposed monocular result (bottom). Green boxes highlight areas where the monocular model corrects stereo errors.

Conclusion

This research demonstrates that "trusting but verifying" a teacher network is crucial for effective knowledge distillation in depth estimation. By treating stereo proxy labels as hints rather than absolute truths, the MonoNet avoids inheriting common stereo artifacts. While the model currently depends on a pre-trained teacher, the success of the selective distillation strategy opens new avenues for learning from diverse and potentially noisy data sources in autonomous navigation.

Summary updated

Abstract

Monocular depth estimation has been extensively explored based on deep learning, yet its accuracy and generalization ability still lag far behind the stereo-based methods. To tackle this, a few recent studies have proposed to supervise the monocular depth estimation network by distilling disparity maps as proxy ground-truths. However, these studies naively distill the stereo knowledge without considering the comparative advantages of stereo-based and monocular depth estimation methods. In this paper, we propose to selectively distill the disparity maps for more reliable proxy supervision. Specifically, we first design a decoder (MaskDecoder) that learns two binary masks which are trained to choose optimally between the proxy disparity maps and the estimated depth maps for each pixel. The learned masks are then fed to another decoder (DepthDecoder) to enforce the estimated depths to learn from only the masked area in the proxy disparity maps. Additionally, a Teacher-Student module is designed to transfer the geometric knowledge of the StereoNet to the MonoNet. Extensive experiments validate our methods achieve state-of-the-art performance for self- and proxy-supervised monocular depth estimation on the KITTI dataset, even surpassing some of the semi-supervised methods.

Empirical ResultsBrowse all benchmarks →

BenchmarkMethodMetricScoreProtocol / Evidence
KITTI · Eigen test splitGuo et al. (direct distillation)Abs. Rel.0.101split: test · fine-tuned · depth-cap=80 m
Source quote
L242: Guo~\etal~\cite{guo2018learning} │ S,K\rightarrow K │ Proxy(StereoNet) │ 0.101 │ 0.690 │ 4.254 │ 0.173 │ 0.884 │ \uline{0.966} │ 0.986
KITTI · Eigen test splitYang et al.Abs. Rel.0.097split: test · semi-supervised · depth-cap=80 m
Source quote
L246: Yang~\etal~\cite{yang2018deep} │ K │ Semi(LiDAR GT) │ 0.097 │ 0.734 │ 4.442 │ 0.187 │ 0.888 │ 0.958 │ 0.980
KITTI · Eigen test splitGuo et al. (direct distillation)Sq. Rel.0.690split: test · fine-tuned · depth-cap=80 m
Source quote
L242: Guo~\etal~\cite{guo2018learning} │ S,K\rightarrow K │ Proxy(StereoNet) │ 0.101 │ 0.690 │ 4.254 │ 0.173 │ 0.884 │ \uline{0.966} │ 0.986
BibTeX
@misc{song2022learning,
  author = {Kyeongseob Song and Kuk-Jin Yoon},
  title = {{Learning Monocular Depth Estimation via Selective Distillation of Stereo Knowledge}},
  year = {2022},
  eprint = {2205.08668},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2205.08668},
}
Figure