Learning To Relate Depth and Semantics for Unsupervised Domain Adaptation

Suman Saha, Anton Obukhov, Danda Pani Paudel, Menelaos Kanakis, Yuhua Chen, Stamatios Georgoulis, Luc Van Gool

Abstract

We present an approach for encoding visual task relationships to improve model performance in an Unsupervised Domain Adaptation (UDA) setting. Semantic segmentation and monocular depth estimation are shown to be complementary tasks; in a multi-task learning setting, a proper encoding of their relationships can further improve performance on both tasks. Motivated by this observation, we propose a novel Cross-Task Relation Layer (CTRL), which encodes task dependencies between the semantic and depth predictions. To capture the cross-task relationships, we propose a neural network architecture that contains task-specific and cross-task refinement heads. Furthermore, we propose an Iterative Self-Learning (ISL) training scheme, which exploits semantic pseudo-labels to provide extra supervision on the target domain. We experimentally observe improvements in both tasks' performance because the complementary information present in these tasks is better captured. Specifically, we show that: (1) our approach improves performance on all tasks when they are complementary and mutually dependent; (2) the CTRL helps to improve both semantic segmentation and depth estimation tasks performance in the challenging UDA setting; (3) the proposed ISL training scheme further improves the semantic segmentation performance.

Introduction

In autonomous driving, training deep networks requires massive amounts of pixel-perfect labeled data. While synthetic data from simulators like GTA-V or SYNTHIA is cheap and plentiful, models trained on it often fail in the real world due to "domain shift"—differences in lighting, texture, and camera angles. Unsupervised Domain Adaptation (UDA) aims to bridge this gap.

Most existing UDA methods try to align the visual features of the two domains. However, they often overlook task complementarity. Semantic segmentation ("what is this?") and depth estimation ("how far is it?") are inherently linked. For instance, a "bus" has a specific depth profile that remains relatively constant across domains. This paper introduces a framework that improves semantic segmentation by explicitly modeling its relationship with monocular depth estimation, leveraging the fact that these task dependencies are consistent across synthetic and real-world environments.

Methodology

The proposed architecture integrates three key components into a multi-task learning framework to capture cross-task relationships.

The proposed multi-task architecture featuring the Cross-Task Relation Layer (CTRL) and Semantics Refinement Head (SRH).

Cross-Task Relation Layer (CTRL)

The CTRL is a parameter-free module that creates a joint feature space. It takes the network's predictions for semantics and depth, discretizes the depth into "bins" (near, medium, far), and generates entropy maps. By using adversarial training to align these entropy maps, the model learns to produce high-confidence, consistent relationships between depth and semantics in both domains. This encourages the model to be "equally certain" about the layout of a scene in both domains.

Semantics Refinement Head (SRH)

The SRH explicitly predicts semantic labels by looking at features that have been attenuated (weighted) by the predicted depth map. This forces the network to learn how specific semantic categories relate to specific depth levels, effectively using depth as a prior for segmentation.

Iterative Self-Learning (ISL)

To further boost performance, an ISL training scheme is employed. The model generates "pseudo-labels" for the real-world target images based on its highest-confidence predictions. It then treats these guesses as ground truth to refine itself over multiple training iterations.

Experiments

The approach was evaluated using three standard UDA protocols:

  • Source Domain: SYNTHIA (synthetic urban scenes).
  • Target Domains: Cityscapes (German street scenes) and Mapillary Vistas (global street-level imagery).
  • Benchmarks: Evaluations were conducted on 16-class and 7-class subsets to ensure broad compatibility with prior research.

Results

The proposed method significantly outperformed previous state-of-the-art methods. A key insight is that while the appearance of objects changes between simulators and the real world, the relationship between an object class and its typical depth range remains domain-invariant.

Quantitative comparison on the SYNTHIA to Cityscapes benchmark (16 classes). Our method achieves state-of-the-art mIoU.

As shown in the results table, the model achieved a 52.4% mIoU on the SYNTHIA → Cityscapes benchmark. Notable gains were observed in difficult or underrepresented categories, such as "walls" (+12.4%) and "motorbikes" (+8%). By understanding where these objects should be in 3D space, the model correctly identified them even when their visual textures were unfamiliar. Furthermore, the method improved the accuracy of the depth maps themselves, reducing the Absolute Relative Difference (|Rel|) from 0.6 to 0.3 compared to the baseline.

Conclusion

This work demonstrates that explicitly modeling cross-task relationships between depth and semantics provides a powerful signal for Unsupervised Domain Adaptation. While the method requires ground-truth depth for the source domain and involves computational overhead due to the iterative self-learning process, it sets a new standard for UDA performance. Future work may extend this philosophy to other related tasks, such as optical flow or surface normals, to create even more robust world models for autonomous systems.

Summary updated

BibTeX
@inproceedings{saha2021learning,
  author = {Suman Saha and Anton Obukhov and Danda Pani Paudel and Menelaos Kanakis and Yuhua Chen and Stamatios Georgoulis and Luc Van Gool},
  title = {{Learning To Relate Depth and Semantics for Unsupervised Domain Adaptation}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2021},
  url = {https://openreview.net/forum?id=QCf_ythNWN},
}
Figure