Adversarially Domain-adaptive Latent Diffusion for Unsupervised Semantic Segmentation

Jongmin Yu, Zhongtian Sun, Chen Bene Chi, Jinhong Yang, Shan Luo

Introduction

Semantic segmentation—the process of assigning a class label to every pixel in an image—is a cornerstone of autonomous driving and robotic perception. However, the performance of these models is heavily dependent on the availability of large-scale, human-annotated datasets. Labeling a single image from the Cityscapes dataset, for instance, can take up to 90 minutes. To circumvent this bottleneck, researchers often turn to synthetic data from video games like GTA5 or SYNTHIA, where labels are generated automatically.

While synthetic data is abundant, it suffers from a significant "domain gap." Models trained on simulated environments often fail to generalize to the complex textures, lighting conditions, and unpredictable weather of the real world. Unsupervised Domain Adaptation (UDA) seeks to bridge this gap by transferring knowledge from a labeled source domain (synthetic) to an unlabeled target domain (real).

The ICCLD Framework

This paper introduces Inter-Coder Connected Latent Diffusion (ICCLD), a novel framework that leverages the generative power of Latent Diffusion Models (LDMs) for UDA. Unlike traditional convolutional or transformer-based approaches, ICCLD uses a diffusion-based architecture to model the underlying data distributions of both domains.

Inter-Coder Connections

A common limitation of standard LDMs in discriminative tasks is the loss of fine-grained spatial detail due to the compression of information into a latent bottleneck. ICCLD addresses this by introducing long skip connections, termed "Inter-coder connections." These connections feed abstracted features directly from the encoder ($\mathcal{E}$) to the decoder ($\mathcal{D}$), ensuring that sharp object boundaries and intricate textures are preserved throughout the diffusion and reconstruction process.

Two-Stage Training Strategy

The ICCLD framework employs a robust two-stage training pipeline to align the synthetic and real-world domains effectively.

The two-stage training process of ICCLD: Stage 1 focuses on segmentation adaptation using a teacher-student framework, while Stage 2 performs adversarial alignment in the latent space.

Stage 1: Segmentation Adaptation

In the first stage, the encoder and decoder are trained using a teacher-student framework. To provide supervisory signals for the unlabeled target domain, the authors utilize ClassMix, a data augmentation technique that blends segments from source and target images. This encourages the model to learn consistent features across both domains while maintaining high segmentation accuracy on the labeled source data.

Stage 2: Adversarial Latent Alignment

The second stage introduces adversarial learning to the denoising UNet ($\epsilon_\theta$). A discriminator is trained to distinguish whether the predicted noise originates from a synthetic or a real image latent. By training the UNet to "confuse" this discriminator, the model learns to align the feature distributions of both domains within the latent space. This ensures that the model's internal representation of the scene is domain-invariant.

Experimental Results

The researchers evaluated ICCLD on the two most prominent UDA benchmarks: GTA5 $\rightarrow$ Cityscapes and SYNTHIA $\rightarrow$ Cityscapes.

Quantitative Performance

ICCLD established new state-of-the-art (SOTA) benchmarks for unsupervised adaptation:

  • GTA5 $\rightarrow$ Cityscapes: Achieved a mean Intersection-over-Union (mIoU) of 74.4, surpassing previous leading methods like HRDA (73.8).
  • SYNTHIA $\rightarrow$ Cityscapes: Achieved an mIoU of 67.2, marking a significant improvement over the previous best of 65.8.

Qualitative Analysis

Visual results demonstrate that ICCLD produces significantly cleaner segmentation masks. The model shows superior performance in delineating challenging objects such as poles, fences, and riders, which are often blurred or misclassified by traditional UDA methods.

Qualitative comparison of segmentation results across different domains, showing the model's ability to produce sharp, accurate masks in real-world street scenes.

Discussion and Limitations

While ICCLD represents a major step forward, the authors note two primary challenges for real-world deployment:

  1. Computational Complexity: The addition of Inter-Coder skip connections increases the dimensionality of the decoder, leading to higher memory and processing requirements.
  2. Inference Speed: Because diffusion is an iterative denoising process, it is inherently slower than "one-shot" feed-forward networks. This latency currently limits its use in real-time autonomous driving applications.

Conclusion

ICCLD demonstrates that latent diffusion models, when augmented with structural skip connections and adversarial alignment, are exceptionally capable of bridging the domain gap in semantic segmentation. By aligning the noise prediction process rather than just the final output, the framework ensures a deeper, more consistent understanding of scene geometry across virtual and real environments. Future work will focus on optimizing the architecture to reduce computational overhead and improve inference speeds.

Summary updated

BibTeX
@inproceedings{yu2025adversarially,
  author = {Jongmin Yu and Zhongtian Sun and Chen Bene Chi and Jinhong Yang and Shan Luo},
  title = {{Adversarially Domain-adaptive Latent Diffusion for Unsupervised Semantic Segmentation}},
  booktitle = {Workshops @ CVPR},
  year = {2025},
}
Figure