Consistency Regularization with High-dimensional Non-adversarial Source-guided Perturbation for Unsupervised Domain Adaptation in Segmentation

Kaihong Wang, Chenhongyi Yang, Margrit Betke

Abstract

Unsupervised domain adaptation for semantic segmentation has been intensively studied due to the low cost of the pixel-level annotation for synthetic data. The most common approaches try to generate images or features mimicking the distribution in the target domain while preserving the semantic contents in the source domain so that a model can be trained with annotations from the latter. However, such methods highly rely on an image translator or feature extractor trained in an elaborated mechanism including adversarial training, which brings in extra complexity and instability in the adaptation process. Furthermore, these methods mainly focus on taking advantage of the labeled source dataset, leaving the unlabeled target dataset not fully utilized. In this paper, we propose a bidirectional style-induced domain adaptation method, called BiSIDA, that employs consistency regularization to efficiently exploit information from the unlabeled target domain dataset, requiring only a simple neural style transfer model. BiSIDA aligns domains by not only transferring source images into the style of target images but also transferring target images into the style of source images to perform high-dimensional perturbation on the unlabeled target images, which is crucial to the success in applying consistency regularization in segmentation tasks. Extensive experiments show that our BiSIDA achieves new state-of-the-art on two commonly-used synthetic-to-real domain adaptation benchmarks: GTA5-to-CityScapes and SYNTHIA-to-CityScapes.

Introduction

Semantic segmentation—the task of assigning a class label to every pixel in an image—is essential for autonomous driving and robotics. However, training these models requires massive amounts of human-annotated data. To circumvent this cost, researchers often utilize synthetic data from video games like GTA V, where labels are generated automatically.

Despite the abundance of synthetic data, models trained on "game graphics" often perform poorly on real-world streets due to the domain gap. Conventional Unsupervised Domain Adaptation (UDA) methods typically rely on Generative Adversarial Networks (GANs) to bridge this gap. While effective, GANs are notoriously difficult to train, unstable, and often fail to fully exploit the information within the unlabeled real-world (target) dataset.

The BiSIDA Framework

The authors introduce BiSIDA, a framework that replaces complex adversarial training with a simpler, pre-trained Continuous Style-induced Image Generator (CSIIG) based on Adaptive Instance Normalization (AdaIN).

The framework operates via two parallel branches:

  1. Target-guided Supervised Branch: This branch takes synthetic (source) images and stylizes them to match real (target) images. Since the labels for the synthetic images are known, the model learns via standard supervised cross-entropy loss.
  2. Source-guided Unsupervised Branch: This is the core innovation. It takes real (target) images and perturbs them by applying styles from the synthetic (source) domain. It uses a Student-Teacher architecture: the Teacher model generates "pseudo-labels" for the original real image, and the Student model is tasked with predicting those same labels even when the image's style has been radically altered.
The BiSIDA framework architecture featuring supervised and unsupervised branches.

To handle the "long-tail" problem where common classes like "road" dominate rare ones like "traffic light," the framework implements a class-balanced reweighting mechanism during the unsupervised learning phase.

Experimental Benchmarks

BiSIDA was evaluated on two gold-standard synthetic-to-real benchmarks:

  • GTA5-to-Cityscapes: Adapting from 24,966 synthetic images (from Grand Theft Auto V) to real-world street scenes from German cities.
  • SYNTHIA-to-Cityscapes: Adapting from the SYNTHIA-RAND-CITYSCAPES subset (9,400 rendered images) to real-world scenes.

Key Results and Insights

BiSIDA achieved new state-of-the-art (SOTA) results on both major benchmarks using a VGG-16 backbone:

  • GTA5-to-Cityscapes: Reached 43.2 mIoU (mean Intersection-over-Union).
  • SYNTHIA-to-Cityscapes: Reached 42.1 mIoU, representing a significant jump over previous methods.

Qualitative Success

As shown in the qualitative results, the model demonstrates a particular strength in capturing difficult, small-scale categories like traffic lights and signs, which are often lost in other domain adaptation schemes.

Qualitative comparison of segmentation results on the Cityscapes dataset.

Discussion

  • The Power of Bidirectionality: Most UDA methods only focus on making synthetic data look real. BiSIDA shows that making real data look "synthetic" is a powerful form of data augmentation (high-dimensional perturbation) that makes the model much more robust.
  • Efficiency: A deterministic, pre-trained style transfer model is more stable and faster to train (approximately 13 hours vs. 138 hours for some GAN-based methods).
  • Consistency Regularization: Forcing the model to maintain consistent predictions for the same object regardless of its "style" is an effective way to extract knowledge from unlabeled real-world data.

Conclusion

BiSIDA demonstrates that non-adversarial, bidirectional style transfer can effectively bridge the domain gap in semantic segmentation. While the method's performance is tied to the quality of the style transfer model, it offers a more stable and efficient alternative to GAN-based adaptation. Future work may explore higher-resolution generators and application to other computer vision tasks.

Summary updated

BibTeX
@inproceedings{wang2021consistency,
  author = {Kaihong Wang and Chenhongyi Yang and Margrit Betke},
  title = {{Consistency Regularization with High-dimensional Non-adversarial Source-guided Perturbation for Unsupervised Domain Adaptation in Segmentation}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2021},
  url = {https://openreview.net/forum?id=SfxSAmJqNdV},
}
Figure