Label-Driven Reconstruction for Domain Adaptation in Semantic Segmentation

Jinyu Yang, Weizhi An, Sheng Wang, Xinliang Zhu, Chaochao Yan, Junzhou Huang

TL;DR

This paper introduces a novel unsupervised domain adaptation (UDA) framework for semantic segmentation that flips the script by performing target-to-source image translation and enforcing semantic consistency through label-driven reconstruction. By reconstructing images directly from predicted label maps, the model ensures that cross-domain features are semantically aligned, achieving state-of-the-art performance on synthetic-to-real benchmarks.

What Problem Does This Paper Address?

Deep learning models for semantic segmentation (like those used in self-driving cars) require massive amounts of pixel-perfect human annotations, which are incredibly expensive to produce. While synthetic datasets (e.g., GTA5) provide "free" labels, models trained on them perform poorly on real-world data (e.g., Cityscapes) due to domain shift—differences in lighting, texture, and urban layouts.

Existing UDA methods typically translate source (synthetic) images to look like target (real) images. The authors identify two major flaws in this approach:

  1. Translation Bias & Complexity: Source datasets are usually much larger than target datasets. Translating the entire source domain is computationally expensive and introduces significant artifacts (bias) into the training data.
  2. Lack of Semantic Consistency: Global feature alignment often fails to ensure that a "car" in the synthetic domain maps to the same feature space as a "car" in the real domain, leading to false positives and negatives.

Methods

The proposed framework consists of three main modules:

  1. Target-to-Source Translation: Instead of making synthetic data look real, the authors use a GAN-based translation network ($F$) to make real target images look like synthetic ones. This is more efficient because the target set is smaller and allows the segmentation network to be trained on original, high-quality synthetic images and their ground-truth labels.
  2. Semantic Segmentation: A standard backbone (VGG16 or ResNet101) predicts pixel-level labels for both original source images and translated target images.
  3. Label-Driven Reconstruction: This is the core innovation. A reconstruction network ($M$) attempts to recreate the original input image using only the predicted label map.
  4. The Differentiability Trick: To make the categorical label maps (which are discrete) differentiable for backpropagation, the authors use a Boltzmann distribution approximation (a softmax with a temperature parameter $\tau$).
  5. Cycle-Reconstruction Loss: The model is penalized if the reconstructed image deviates semantically from the input. This forces the segmentation network to produce labels that are semantically consistent with the image content.
An overview of the framework showing the translation, segmentation, and reconstruction modules.

Datasets

The authors evaluate their method on two standard synthetic-to-real "sim-to-real" benchmarks:

  • GTA5 $\rightarrow$ Cityscapes: Adapting from the Grand Theft Auto V environment (24,966 images) to real-world German street scenes (2,975 training images).
  • SYNTHIA $\rightarrow$ Cityscapes: Adapting from the SYNTHIA-RAND-CITYSCAPES dataset (9,400 images) to Cityscapes.

Key Insights and Ideas

  • Efficiency of Target-to-Source: By translating the smaller target domain to the larger source domain, the authors reduce the total computational load and minimize the propagation of translation artifacts into the training process.
  • Labels vs. Features for Reconstruction: Most prior work reconstructs images from hidden feature layers. However, features contain "too much" information, allowing the reconstruction network to succeed without necessarily understanding the semantics. By forcing reconstruction from the label space, the model must get the segmentation right to successfully rebuild the image.
Comparison showing that reconstructing from the label space (bottom row) enforces better semantic alignment than feature-space reconstruction.
  • Global Semantic Consistency: While adversarial learning aligns global distributions, the reconstruction module acts as a local constraint, ensuring that every pixel's predicted category contributes to a coherent visual reconstruction.

Key Results

The framework achieves competitive or state-of-the-art results across both benchmarks:

  • GTA5 $\rightarrow$ Cityscapes: Using a ResNet101 backbone, the method achieves 49.5 mIoU, significantly outperforming the "Source Only" baseline of 36.6. On a VGG16 backbone, it reaches 43.6 mIoU, surpassing established methods like CyCADA (35.4) and BDL (41.3).
  • SYNTHIA $\rightarrow$ Cityscapes: The model achieves 53.1 mIoU (13 classes) on ResNet101, setting a new high bar compared to previous methods like IntraDA (48.9) and BDL (51.4).
  • Ablation Studies: The authors showed that the reconstruction module alone provides a ~1.3% mIoU boost, and the Boltzmann temperature $\tau = 0.001$ was found to be the optimal setting for approximating discrete labels.

Limitations and Future Work

While the method effectively handles appearance shifts, the authors note that significant discrepancies in layout or structure (e.g., different city architectures or camera angles) remain a challenge for all UDA methods. The paper does not deeply explore how the reconstruction network handles very small objects or rare classes that might not contribute heavily to the reconstruction loss. Future work could involve integrating geometric or depth information to further bridge the structural gap between synthetic and real domains.

Summary updated

BibTeX
@inproceedings{yang2020label,
  author = {Jinyu Yang and Weizhi An and Sheng Wang and Xinliang Zhu and Chaochao Yan and Junzhou Huang},
  title = {{Label-Driven Reconstruction for Domain Adaptation in Semantic Segmentation}},
  booktitle = {European Conference on Computer Vision},
  year = {2020},
  doi = {10.1007/978-3-030-58583-9\_29},
}
Figure