Generating Reliable Pixel-Level Labels for Source Free Domain Adaptation

Gabriel Tjio, Ping Liu, Yawei Luo, Chee Keong Kwoh, Joey Tianyi ZhouarXiv 2023

Abstract

This work addresses the challenging domain adaptation setting in which knowledge from the labelled source domain dataset is available only from the pretrained black-box segmentation model. The pretrained model's predictions for the target domain images are noisy because of the distributional differences between the source domain data and the target domain data. Since the model's predictions serve as pseudo labels during self-training, the noise in the predictions impose an upper bound on model performance. Therefore, we propose a simple yet novel image translation workflow, ReGEN, to address this problem. ReGEN comprises an image-to-image translation network and a segmentation network. Our workflow generates target-like images using the noisy predictions from the original target domain images. These target-like images are semantically consistent with the noisy model predictions and therefore can be used to train the segmentation network. In addition to being semantically consistent with the predictions from the original target domain images, the generated target-like images are also stylistically similar to the target domain images. This allows us to leverage the stylistic differences between the target-like images and the target domain image as an additional source of supervision while training the segmentation model. We evaluate our model with two benchmark domain adaptation settings and demonstrate that our approach performs favourably relative to recent state-of-the-art work.

Introduction

In computer vision, models trained on a specific "source" dataset (such as synthetic data from a game engine like GTA5) often struggle when deployed on a different "target" domain (such as real-world street scenes) due to domain shift. While Unsupervised Domain Adaptation (UDA) typically addresses this by using both datasets simultaneously, privacy and security concerns often restrict access to the original source data. This has given rise to Source-Free Domain Adaptation (SFDA), where adaptation must occur using only a pre-trained model and unlabeled target images.

The standard approach in SFDA is self-training, where the model generates "pseudo-labels" for target images to use as ground truth. However, these labels are inherently noisy due to the domain gap. Training on these erroneous labels creates a performance bottleneck. ReGEN (Reliable Generation) flips this paradigm: instead of attempting to filter or fix the noisy labels, it generates new "target-like" images that are forced to be semantically consistent with those labels, creating a reliable synthetic training set.

Methods

The ReGEN framework utilizes a novel workflow consisting of an image translation network and a segmentation network to bridge the domain gap.

The ReGEN Framework

  1. Image Generation ($T_g$): Rather than using noisy pseudo-labels to train the segmentation model directly, ReGEN uses them as input for a generator. This generator creates a new image that matches the layout of the noisy labels but adopts the visual style of the target domain.
  2. Semantic Consistency: To ensure the reliability of the labels, the system enforces a Semantic Consistency Loss ($L_c$). By forcing the generator to produce pixels that look like a "road" where the label says "road," the noisy label becomes "correct" for the newly generated image.
  3. Stylistic Alignment: Through the use of Perceptual Loss ($L_p$) and GAN Feature Matching, the model ensures the generated images share the same visual characteristics (texture, lighting, etc.) as the real target domain.
  4. Joint Training: The segmentation network is trained using a combination of real target images (with filtered labels) and the generated target-like images, where labels are perfectly consistent by design.
The ReGEN workflow, illustrating the image translation and segmentation stages.

Experimental Evaluation

The researchers evaluated ReGEN on two standard synthetic-to-real benchmarks: GTA5 → Cityscapes and Synthia → Cityscapes. In both cases, the Cityscapes dataset served as the unlabeled target domain.

Key Results

ReGEN achieved state-of-the-art (SOTA) or comparable results on these major benchmarks:

  • GTA5 → Cityscapes: ReGEN reached a Mean Intersection over Union (mIoU) of 55.0%, outperforming recent methods like SimT (54.4%) and SOMAN (53.2%).
  • Synthia → Cityscapes: It achieved an mIoU of 58.0% (for 13 classes), demonstrating strong competitive performance.

Qualitatively, ReGEN shows a significant advantage in resolving small, thin objects such as poles and traffic signs. These features are often lost in the noise of other SFDA methods but are preserved here because the generator is forced to create visual evidence for them based on the pseudo-labels.

Qualitative comparison of ReGEN against other methods, highlighting improved segmentation of small objects.

Conclusion and Future Work

ReGEN demonstrates that generating images to fit noisy labels is a viable and effective strategy for Source-Free Domain Adaptation. By turning noisy supervision into high-quality synthetic data, the model overcomes the traditional "garbage in, garbage out" problem of self-training.

Despite its success, the authors noted limitations such as "aliasing artifacts" in generated images, which can lead to overfitting. Future work will focus on reducing these artifacts and extending the ReGEN workflow to even more complex domain adaptation scenarios to further enhance label reliability.

Summary updated

BibTeX
@misc{tjio2023generating,
  author = {Gabriel Tjio and Ping Liu and Yawei Luo and Chee Keong Kwoh and Joey Tianyi Zhou},
  title = {{Generating Reliable Pixel-Level Labels for Source Free Domain Adaptation}},
  year = {2023},
  eprint = {2307.00893},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2307.00893},
}
Figure