Semi-supervised Domain Adaptation with Inter and Intra-domain Mixing for Semantic Segmentation

Weifu Fu, Qiang Nie, Jialin Li, Yuhuan Lin, Kai Wu, Yong Liu, Chengjie Wang · DOI

Abstract

Semi-supervised domain adaptation (SSDA) for semantic segmentation aims to leverage a large labeled source dataset and a small set of labeled target images to bridge the domain gap. Traditional methods often underutilize the labeled target data, treating it solely as a supervision signal. We present the Inter and Intra-domain Mixing (IIDM) framework, which introduces a novel intra-domain mixing strategy. By mixing scarce labeled target images with the broader unlabeled target pool, IIDM captures more robust, domain-invariant features. Our approach significantly outperforms existing state-of-the-art methods, achieving superior accuracy even with minimal target labels.

Introduction

Deep learning models for semantic segmentation frequently encounter the domain shift problem: a model trained on synthetic data (e.g., GTA5) often fails when deployed on real-world data (e.g., Cityscapes). While Unsupervised Domain Adaptation (UDA) attempts to mitigate this without target labels, Semi-supervised Domain Adaptation (SSDA) offers a more practical middle ground by utilizing a small number of labeled target images.

Current SSDA research typically focuses on "Inter-domain" mixing—bridging the gap between source and unlabeled target data. However, this approach often ignores the potential of the labeled target data to directly model the target distribution. The IIDM framework addresses this by treating labeled target data as a bridge to the unlabeled target domain.

Methodology: Inter and Intra-domain Mixing

IIDM is built upon a "Mean Teacher" architecture, where a Student network learns from a Teacher network (an exponential moving average of the student's weights). The framework employs two distinct mixing streams:

  1. Inter-domain Mixing: Standard mixing of labeled source images with unlabeled target images to bridge the global domain gap.
  2. Intra-domain Mixing: A novel strategy that mixes scarce labeled target images with unlabeled target images.
Conceptual diagram showing how intra-domain mixing creates a "pseudo data center" closer to the target distribution.

By using ClassMix—pasting object categories from one image onto another—intra-domain mixing helps the model represent the target domain more accurately than inter-domain mixing alone. This creates a "pseudo data center" that is much closer to the actual target distribution, facilitating the learning of domain-invariant features.

Experimental Setup

We evaluated IIDM on two primary synthetic-to-real benchmarks:

  • GTA5 → Cityscapes: Adapting from 24,966 synthetic images to 2,975 real-world images.
  • SYNTHIA → Cityscapes: Adapting from 9,400 synthetic images to Cityscapes.

Performance was measured across varying levels of target supervision (100, 200, 500, and 1,000 labeled images) to assess scalability.

Key Results and Insights

IIDM demonstrates remarkable efficiency and accuracy across all tested scenarios. A key finding is that labeled target data is far more than a simple supervision signal; it serves as a critical anchor for the target domain.

Performance comparison (mIoU) of IIDM against state-of-the-art methods across different numbers of labeled target images.

On the GTA5 → Cityscapes benchmark with only 100 labels, IIDM achieved 69.5% mIoU, surpassing previous state-of-the-art methods (like DLDM) that utilized ten times as many labels (1,000 labels at 66.6% mIoU). Qualitative results further confirm that IIDM produces smoother segmentations for challenging classes such as "sidewalk" and "truck," which typically suffer from fragmentation in other models.

Conclusion and Future Work

The IIDM framework highlights the untapped potential of intra-domain relationships in SSDA. While the multi-stream mixing and teacher-student setup increase computational overhead, the gains in label efficiency are substantial. Future work may involve integrating IIDM with more advanced backbones or exploring its orthogonality with multi-resolution self-training techniques to further push the boundaries of domain adaptation.

Summary updated

BibTeX
@misc{fu2023semi,
  author = {Weifu Fu and Qiang Nie and Jialin Li and Yuhuan Lin and Kai Wu and Yong Liu and Chengjie Wang},
  title = {{Semi-supervised Domain Adaptation with Inter and Intra-domain Mixing for Semantic Segmentation}},
  year = {2023},
  eprint = {2308.15855},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2308.15855},
}
Figure