Unsupervised Modality Adaptation with Text-to-Image Diffusion Models for Semantic Segmentation

Ruihao Xia, Yu Liang, Peng-Tao Jiang, Hao Zhang, Bo Li, Yang Tang, Pan Zhou

Introduction

Unsupervised Domain Adaptation (UDA) has traditionally focused on bridging domain gaps within the same modality, such as transitioning from synthetic RGB images to real-world street views. However, modern autonomous systems increasingly rely on diverse, non-RGB sensors like infrared, depth, and event cameras to handle edge cases where standard vision fails. This shift introduces the challenge of Unsupervised Modality Adaptation (UMA), where the "modality gap"—the fundamental difference in imaging physics—is significantly larger than typical domain shifts.

To address this, we present MADM, a framework that leverages the robust, generalized semantic concepts learned by pre-trained text-to-image diffusion models (TIDMs) to perform dense segmentation on unlabeled target modalities.

Methodology

MADM utilizes Stable Diffusion v1-4 as a backbone, exploiting its internet-scale pre-training to bridge the gap between RGB and exotic modalities. The framework introduces two primary innovations to stabilize training and preserve spatial resolution.

Diffusion-based Pseudo-Label Generation (DPLG)

Standard self-training often fails in UMA because the initial teacher model produces highly inaccurate pseudo-labels due to the modality gap. DPLG addresses this by injecting controlled, annealed noise into the target data's latent representation. By forcing the diffusion model to denoise the sample, it aligns the target data closer to the model's pre-training distribution, resulting in more stable and accurate pseudo-labels for the student model.

Label Palette and Latent Regression (LPLR)

Diffusion models typically operate in a compressed latent space (e.g., 64x64), which is insufficient for high-resolution segmentation. MADM bypasses this limitation by converting one-hot labels into RGB images via a color palette and treating segmentation as a regression task in the latent space. This allows the model to utilize the pre-trained VAE decoder to upsample features back to high resolution, maintaining sharp object boundaries.

Figure 3: Overview of the MADM architecture, highlighting the Label Palette and Latent Regression (LPLR) and Diffusion-based Pseudo-Label Generation (DPLG) modules.

Experimental Results

The framework was evaluated by adapting from Cityscapes (RGB) to three distinct unlabeled target datasets: DELIVER (Depth), FMB (Infrared), and DSEC (Event). MADM achieved state-of-the-art (SoTA) performance across all tasks:

  • Image → Depth: 53.49% mIoU (+3.26% over previous SoTA).
  • Image → Infrared: 62.23% mIoU (+1.58% over previous SoTA).
  • Image → Event: 56.31% mIoU (+4.45% over previous SoTA).

Ablation studies confirmed that DPLG and LPLR are synergistic, contributing average improvements of +2.40% and +1.85% mIoU, respectively.

Discussion and Conclusion

MADM demonstrates that text-to-image diffusion models are effective multi-modal learners, capable of understanding the semantics of depth and event data without explicit multi-modal training. While the computational cost of diffusion models is high (~949M parameters), the authors show that MADM can serve as a powerful teacher to distill knowledge into lightweight architectures like DAFormer (85M parameters), maintaining competitive performance for real-time applications. This work opens new avenues for leveraging generative foundation models in robust, multi-sensor perception systems.

Summary updated

BibTeX
@inproceedings{xia2024unsupervised,
  author = {Ruihao Xia and Yu Liang and Peng-Tao Jiang and Hao Zhang and Bo Li and Yang Tang and Pan Zhou},
  title = {{Unsupervised Modality Adaptation with Text-to-Image Diffusion Models for Semantic Segmentation}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=5BwWgyvgwR},
}
Figure