Fine-grained Semantics-aware Representation Enhancement for Self-supervised Monocular Depth Estimation

Hyunyoung Jung, Eunhyeok Park, Sungjoo Yoo

TL;DR

This paper introduces a novel framework to improve self-supervised monocular depth estimation by integrating semantic scene knowledge. By using a semantics-guided triplet loss and a cross-task multi-embedding attention (CMA) module, the authors significantly sharpen object boundaries and improve accuracy in low-texture regions, outperforming current state-of-the-art methods on the KITTI benchmark.

What Problem Does This Paper Address?

Monocular depth estimation—predicting 3D distance from a single 2D image—is vital for robotics and autonomous driving. While self-supervised methods are popular because they don't require expensive ground-truth lidar data (relying instead on "photometric consistency" between video frames), they have a major weakness: they struggle with "textureless" regions (like a flat white wall) and often produce blurry object boundaries.

The authors argue that these failures happen because the model lacks a structural understanding of the scene. To fix this, they propose leveraging scene semantics (segmentation) to provide the missing geometric cues.

Methods

The authors propose a multi-task learning architecture with a shared encoder and two separate decoders: one for depth and one for semantic segmentation.

Overview of the proposed architecture featuring shared encoders and dual decoders.

Two core innovations drive their performance:

  1. Semantics-guided Triplet Loss ($L_{SGT}$): This loss function operates in the "representation space" of the depth decoder. It uses semantic labels to identify local patches. Pixels belonging to the same object (positive samples) are pushed to have similar depth features, while pixels across a semantic boundary (negative samples) are pushed apart. This forces the model to learn sharp, distinct features at object edges. The triplet loss mechanism uses semantic boundaries to group pixels into anchor, positive, and negative sets.
The triplet loss mechanism uses semantic boundaries to group pixels into anchor, positive, and negative sets.
  1. Cross-task Multi-embedding Attention (CMA): Instead of simply concatenating features from the two tasks, the CMA module uses an attention mechanism. It allows the depth decoder to "attend" to relevant semantic information and vice versa. By using multiple "embeddings" (similar to multi-head attention in Transformers), the model can capture complex, fine-grained interactions between geometry and semantics. The CMA module enables bidirectional feature refinement between depth and segmentation tasks.
The CMA module enables bidirectional feature refinement between depth and segmentation tasks.

Notably, the model is trained using pseudo-labels for segmentation generated by a pre-trained "off-the-shelf" model, meaning it doesn't require manual segmentation labels for the training images.

Datasets

The primary dataset used for training and evaluation is the KITTI dataset (specifically the Eigen split), which is the standard benchmark for autonomous driving scenes. To evaluate semantic segmentation, they used the KITTI 2015 training set.

Key Insights and Ideas

  • Representation vs. Value: A key "aha" moment is that the authors don't just optimize the final depth values; they optimize the intermediate features (representations). This allows the network to learn a richer internal "language" for geometry before producing the final output.
  • Synergy through Bidirectionality: The CMA module is bidirectional. While semantics clearly help depth, the authors found that depth information also improves segmentation accuracy, especially at high resolutions.
  • Boundary Awareness: By focusing on the "local geometry" provided by semantics, the model overcomes the inherent ambiguity of photometric loss at object edges, where pixels often "bleed" into the background in traditional models.

Key Results

The proposed method achieved state-of-the-art results on the KITTI Eigen test split.

  • Quantitative: Using a ResNet-18 backbone, the model achieved an AbsRel (Absolute Relative error) of 0.105, outperforming previous leaders like HRDepth (0.109) and Monodepth2 (0.114).
  • Qualitative: As seen in Figure 1 and Figure 5, the model produces much cleaner depth maps for thin structures like poles and signs, which are typically lost or blurred by other self-supervised methods.
Figure 1: Depth predictions and error maps of recent state- of-the-arts [14, 24]. Apart from ours, both lack accuracy in low-texture regions and object boundaries, owing to weak supervision using contemporary self-supervised training.

Limitations and Future Work

  • Pseudo-label Dependency: The method relies on the quality of the off-the-shelf segmentation model used for pseudo-labeling. If the teacher model makes consistent errors, those errors might propagate into the depth estimation.
  • Computational Complexity: Adding a second decoder and attention modules increases the training time and memory footprint compared to a simple single-task depth network.
  • Future Directions: The authors suggest that their framework is highly compatible with more advanced backbones and could be extended to incorporate even more tasks, like optical flow, for further geometric consistency.

Summary updated

BibTeX
@misc{jung2021fine,
  author = {Hyunyoung Jung and Eunhyeok Park and Sungjoo Yoo},
  title = {{Fine-grained Semantics-aware Representation Enhancement for Self-supervised Monocular Depth Estimation}},
  year = {2021},
  eprint = {2108.08829},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2108.08829},
}
Figure