Self-Supervised Monocular Depth Estimation: Solving the Edge-Fattening Problem

Xingyu Chen, Ruonan Zhang, Ji Jiang, Yan Wang, Ge Li, Thomas H. Li

TL;DR

This paper tackles the "edge-fattening" problem in self-supervised monocular depth estimation (MDE), where predicted object boundaries are inaccurately broadened. The authors propose a novel, problem-driven redesign of the patch-based triplet loss, introducing two key improvements that significantly enhance depth prediction accuracy without increasing computational cost.

What Problem Does This Paper Address?

Estimating the depth of every pixel in an image using only a single camera (monocular depth estimation) is crucial for applications like autonomous driving, augmented reality, and robotics. While self-supervised methods have made significant progress, they often suffer from a notorious issue called "edge-fattening." This means that the predicted depth maps tend to make foreground objects appear "fatter" than they actually are, with their boundaries bleeding into the background. This inaccuracy at object edges can be detrimental to downstream tasks. The paper identifies that this problem stems from how standard photometric losses and existing metric learning approaches, like the raw triplet loss, handle occluded regions and the inherent nature of depth estimation as a regression problem.

Methods

The core contribution of this paper is a redesigned triplet loss function for self-supervised MDE. They identify two main weaknesses in the standard patch-based triplet loss and propose solutions:

  • Weakness 1: Poor Negatives Sheltered by Good Negatives: The raw triplet loss averages the distances to all negative samples. This can cause the errors from a few "poor" negative pixels (e.g., those contributing to edge-fattening) to be masked by the many "good" negative pixels.
  • Solution 1: Min-Operator for Anchor-Negative Distance: Instead of averaging, they use a min operator to consider only the hardest negative sample. This forces the model to pay attention to the most challenging negative examples, preventing the errors of poor negatives from being hidden.
  • Weakness 2: Mutual Effects Between Positives and Negatives: The raw triplet loss optimizes the difference between anchor-positive and anchor-negative distances. This is problematic for depth estimation, which requires accurate absolute depth values, not just relative comparisons. The absolute value of the anchor-positive distance (D+) is important, but the raw triplet loss doesn't penalize it directly enough if the anchor-negative distance (D-) is already sufficiently large.
  • Solution 2: Splitting Anchor-Positive and Anchor-Negative Distances: They decouple the optimization of D+ and D-. This allows for direct penalization of errors in positive samples (e.g., inaccurate depth within an object) and negative samples independently, leading to more precise depth predictions.

These two modifications are combined into their "TriDepth" model.

Datasets

The paper primarily uses the KITTI dataset [8] for training and evaluation. Specifically, they use the KITTI Eigen split [6] for evaluating depth predictions. They note that their method can be applied to both monocular and stereo video data.

Key Insights and Ideas

  • Edge-fattening is a fundamental problem: The paper highlights that edge-fattening is a widespread issue that limits the performance of most self-supervised MDE models.
  • Triplet loss is powerful but needs adaptation: While triplet loss is a strong metric learning tool, its direct application to MDE, especially with semantic guidance, yields limited improvements. The paper shows why it fails and how to fix it.
  • Depth estimation is regression, not just classification: Unlike classification tasks where relative scores matter, depth estimation requires accurate absolute values. This distinction is key to understanding why splitting D+ and D- is crucial.
  • "Hard negative mining" can be localized: The paper's approach to finding the hardest negative is efficient because it's done locally within a patch, avoiding the need to scan the entire dataset.
  • Generalizability is key: The proposed triplet loss is designed to be lightweight and versatile, easily pluggable into existing MDE architectures without extra inference computation.

Key Results

  • State-of-the-Art Performance: Their proposed "TriDepth" model achieves unprecedented results on the KITTI Eigen split, outperforming previous state-of-the-art (SoTA) methods by a large margin across all standard metrics (Abs Rel, Sq Rel, RMSE, RMSE log, δ<1.25, δ<1.25², δ<1.25³). For example, they achieve an Abs Rel of 0.093 and RMSE of 4.272.
  • Substantial Boosts to Existing Models: When integrated into other SoTA MDE models (e.g., Monodepth2, HR-Depth, ManyDepth), their redesigned triplet loss consistently improves performance across all metrics, demonstrating its generalizability.
  • No Extra Inference Cost: A significant advantage is that their method adds no extra computational overhead during inference, making it practical for real-time applications.
  • Qualitative Improvements: Visual comparisons show a significant alleviation of the edge-fattening problem, with thin structures like road signs and poles being much better aligned with their RGB counterparts.

Limitations and Future Work

  • Limitations:
    • The paper acknowledges that selecting the optimal margin m' for the triplet loss can be challenging, as it requires some prior knowledge about expected depth differences. Too large or too small a margin can lead to performance degradation.
  • They also present a failure case (Fig. 7) where existing MDE models fail to predict the depth of a crossbar, speculating that this might be due to reliance on dataset biases (lack of horizontal bars in KITTI) or issues with photometric loss for such structures.
  • Future Work:
    • The authors suggest that future MDE models should focus on better feature representation techniques, such as deformable convolutions or data augmentation in feature space, to generalize better to real-life scenes and overcome limitations like the crossbar failure case.
  • They also hope their community will focus not only on performance numbers but also on barriers to practical application.

Summary updated

BibTeX
@inproceedings{chen2022self,
  author = {Xingyu Chen and Ruonan Zhang and Ji Jiang and Yan Wang and Ge Li and Thomas H. Li},
  title = {{Self-Supervised Monocular Depth Estimation: Solving the Edge-Fattening Problem}},
  booktitle = {IEEE/CVF Winter Conference on Applications of Computer Vision},
  year = {2022},
}
Figure