Towards Comprehensive Representation Enhancement in Semantics-Guided Self-supervised Monocular Depth Estimation

Jingyuan Ma, Xiangyu Lei, Nan Liu, Xian Zhao, Shiliang PuECCV 2022

Abstract

Self-supervised monocular depth estimation is a critical task for autonomous systems, yet it faces challenges in reconciling the disparate nature of depth regression and semantic classification. This paper presents a comprehensive representation enhancement framework that utilizes an Intra/Cross-task Multi-Head Attention (IC-MHA) module to bridge the gap between these tasks. Additionally, a Hardest Non-Boundary Triplet Loss ($L_{NBT}$) is introduced to improve feature consistency within object instances. Experimental results on the KITTI dataset demonstrate that the proposed method achieves state-of-the-art performance, producing depth maps with superior boundary sharpness and internal consistency.

Introduction

Estimating depth from a single image (monocular depth estimation) is a cornerstone of low-cost robotics and autonomous driving. While self-supervised methods—which learn by warping consecutive video frames to minimize photometric error—have made significant progress, they often struggle with blurry object boundaries and inconsistent depth within single object instances.

A common strategy to mitigate these issues is using semantic segmentation to guide depth estimation. However, these tasks are fundamentally different: depth is a continuous regression task, while semantics is a discrete classification task. Most existing models simply fuse these features, ignoring the fact that their underlying distributions differ. For instance, a "road" is semantically uniform, but its depth changes continuously from the foreground to the horizon. This "representational discrimination" leads to suboptimal feature enhancement and is the primary focus of this research.

Proposed Methodology

The authors propose a dual-strategy approach to handle these task-specific differences, integrated into a framework consisting of a DepthSegNet and a PoseNet.

The overall architecture of the proposed depth estimation framework, featuring DepthSegNet and PoseNet with integrated IC-MHA modules.

Intra/Cross-task Multi-Head Attention (IC-MHA)

The core innovation is the IC-MHA module, which refines feature maps by balancing task-specific characteristics with shared spatial context.

  • Intra-task (Self-Attention): To capture the unique characteristics of depth versus semantics, the model performs self-attention within local windows. By using different window sizes across different attention heads, the model captures multi-scale information efficiently.
  • Cross-task (Cross-Attention): To ensure spatial alignment (e.g., ensuring depth edges match object boundaries), cross-attention computes similarities between depth and semantic features.
  • Fusion: These two streams are fused to create a refined feature map that respects both the uniqueness of the task and the shared spatial context.
Detailed view of the IC-MHA module, illustrating the flow of depth ($F_D$) and semantic ($F_S$) features through intra-task and cross-task attention streams.

Hardest Non-Boundary Triplet Loss ($L_{NBT}$)

Standard metric learning often focuses on object boundaries, but depth errors frequently occur in the "middle" of objects (e.g., "holes" or "bleeding" effects). The authors propose a minimum-distance based candidate mining strategy. For a pixel in the middle of an object (the anchor), the model finds its spatially nearest boundary and samples "positives" and "negatives" relative to that boundary. This prevents the model from forcing all pixels in an object to have identical features—which would be incorrect for depth—while still encouraging a coherent representation across the instance.

Experimental Results

The proposed method was evaluated on the KITTI (Eigen split) benchmark, the standard for monocular depth estimation, using pseudo-labels from a pre-trained segmentation network for the semantic branch.

  • Quantitative Performance: The method achieved state-of-the-art (SOTA) results, significantly outperforming previous leaders like FSRE. Key metrics include a SqRel of 0.690 (vs. 0.722) and an RMSE of 4.473 (vs. 4.547).
  • Qualitative Improvements: Visualizations confirm that the resulting depth maps are much smoother within object instances (like cars and trucks) and significantly sharper at the boundaries compared to previous methods.
  • Efficiency: Despite the added complexity of the attention modules, the model remains competitive in inference time, running at approximately 12ms per image on an NVIDIA V100 GPU.

Conclusion

By addressing the representational gap between depth and semantics through multi-head attention and targeted triplet losses, this work sets a new standard for self-supervised monocular depth estimation. While the method currently relies on pre-trained pseudo-labels and assumes a static world, future work may extend these comprehensive representation enhancements to dynamic scenes and other multi-task scenarios, such as optical flow or surface normal estimation.

Summary updated

BibTeX
@inproceedings{ma2022towards,
  author = {Jingyuan Ma and Xiangyu Lei and Nan Liu and Xian Zhao and Shiliang Pu},
  title = {{Towards Comprehensive Representation Enhancement in Semantics-Guided Self-supervised Monocular Depth Estimation}},
  booktitle = {European Conference on Computer Vision},
  year = {2022},
  doi = {10.1007/978-3-031-19769-7\_18},
}
Figure