ELDA: Using Edges to Have an Edge on Semantic Segmentation Based UDA

Ting-Hsuan Liao, Huang-Ru Liao, Shan-Ya Yang, Jie-En Yao, Li-Yuan Tsao, Hsu-Shen Liu, Chen-Hao Chao, Bo-Wun Cheng, Chia-Che Chang, Yi-Chen Lo, Chun-Yi Lee

Abstract

Unsupervised Domain Adaptation (UDA) for semantic segmentation aims to bridge the gap between labeled source domains and unlabeled target domains. While recent advancements have leveraged depth estimation as an auxiliary task to extract domain-invariant features, these methods often suffer from high computational costs and noise inherent in monocular depth estimation. This paper presents ELDA (Edge Learning based Domain Adaptation), a framework that replaces depth estimation with edge detection. By utilizing edges as a robust, "free," and domain-invariant geometric prior, ELDA achieves state-of-the-art performance on standard benchmarks while maintaining computational efficiency.

1. Introduction

In the field of computer vision, the performance of semantic segmentation models often degrades significantly when applied to data from a different distribution than the training set—a phenomenon known as domain shift. Unsupervised Domain Adaptation (UDA) addresses this by adapting models trained on synthetic data (e.g., GTA5) to real-world environments (e.g., Cityscapes) without requiring target-domain labels.

A common strategy in UDA is to identify features that remain consistent across domains. Many current state-of-the-art methods rely on depth estimation as this anchor. However, depth-based approaches face two primary hurdles: the high computational overhead of training self-supervised depth models and the "ill-posed" nature of estimating depth from single RGB images, which often results in blurry or inaccurate maps that can degrade segmentation performance. ELDA proposes a shift toward edge detection, which provides a cleaner, more reliable, and computationally inexpensive geometric signal.

2. The ELDA Framework

ELDA introduces a multi-task learning architecture designed to exploit the structural consistency of object boundaries across domains. The framework consists of three primary components:

2.1 Shared Domain Invariant Encoder (SDI-Enc)

The backbone of the model is a shared encoder (typically ResNet-101) that extracts features from both source and target images. By sharing the encoder between the segmentation and edge detection tasks, the model is forced to learn features that are useful for both identifying object categories and locating structural boundaries.

2.2 Task Specific Branches (TSB)

Following the encoder, the architecture splits into two specialized branches:

  • Semantic Segmentation Branch: Predicts the class labels for each pixel.
  • Edge Prediction Branch: Predicts the presence of edges. Unlike depth maps, which require complex estimation, ground truth edges for the auxiliary task can be generated instantly using the Canny edge detection algorithm.

2.3 Correlation Module (CM)

The Correlation Module acts as the bridge between the two tasks. It employs a gating mechanism using sigmoid functions to facilitate feature exchange. This allows edge information to refine the spatial boundaries of semantic predictions, while semantic features help the edge branch distinguish between meaningful object boundaries and background noise.

2.4 Loss Functions

The model is optimized using a combination of Cross-Entropy loss for segmentation and a DICE-based loss for the edge auxiliary task. The DICE loss is critical here as it effectively manages the extreme class imbalance inherent in edge detection, where the vast majority of pixels are non-edges.

3. Experimental Results

ELDA was evaluated on two primary synthetic-to-real benchmarks: GTA5 → Cityscapes and SYNTHIA → Cityscapes.

3.1 Quantitative Performance

ELDA demonstrated superior performance compared to previous depth-based and self-training methods:

  • GTA5 → Cityscapes: ELDA achieved a mean Intersection over Union (mIoU) of 57.3%, surpassing the previous depth-based leader, CorDA (56.6%).
  • SYNTHIA → Cityscapes: ELDA reached 55.2% mIoU, again outperforming CorDA (55.0%).

3.2 Qualitative Analysis and Insights

Visual analysis confirms that ELDA produces sharper object boundaries and better handles fine-grained details. For instance, in complex urban scenes, ELDA accurately captures the gaps in bicycle wheels and the distinct edges of distant architecture—areas where depth-based models often produce "blobs" of misclassified pixels. Furthermore, t-SNE visualizations indicate that the feature space learned by ELDA is more discriminative, with tighter clusters for individual classes compared to baseline UDA models.

4. Conclusion and Future Work

ELDA demonstrates that simple edge information can be a more effective and efficient auxiliary task for UDA than complex depth estimation. By focusing on boundaries, the model learns a more robust representation of the scene structure that transfers well from synthetic to real-world data.

While the current implementation utilizes CNN backbones (ResNet-101) for fair comparison with existing literature, future work involves integrating ELDA with Vision Transformer (ViT) architectures. Additionally, exploring the synergy between edges and other geometric priors could further push the boundaries of unsupervised domain adaptation.

Summary updated

BibTeX
@inproceedings{liao2022elda,
  author = {Ting-Hsuan Liao and Huang-Ru Liao and Shan-Ya Yang and Jie-En Yao and Li-Yuan Tsao and Hsu-Shen Liu and Chen-Hao Chao and Bo-Wun Cheng and Chia-Che Chang and Yi-Chen Lo and Chun-Yi Lee},
  title = {{ELDA: Using Edges to Have an Edge on Semantic Segmentation Based UDA}},
  booktitle = {BMVC},
  year = {2022},
  url = {https://openreview.net/forum?id=wfkX01A6ATl},
}
Figure