Conditional Generative Adversarial Network for Structured Domain Adaptation

Weixiang Hong, Zhenzhen Wang, Ming Yang, Junsong Yuan

Introduction: The Domain Gap in Semantic Segmentation

Semantic segmentation, the task of assigning a class label to every pixel in an image, is a cornerstone of autonomous driving and scene understanding. However, training robust models requires vast amounts of pixel-level annotated data, which is expensive and time-consuming to produce manually. While synthetic data from high-fidelity simulators (e.g., Grand Theft Auto V) or specialized datasets (e.g., SYNTHIA) offers a solution with "perfect" automated labels, models trained solely on these sources often perform poorly on real-world data. This performance drop is caused by the domain gap—discrepancies in lighting, textures, and camera characteristics between simulated and real environments.

This paper addresses "structured domain adaptation," where the goal is to bridge this gap for high-dimensional outputs like segmentation maps where spatial relationships are critical.

Proposed Method: Feature-Level Conditional GAN

The authors propose a novel framework that integrates a conditional Generative Adversarial Network (GAN) directly into a standard segmentation pipeline. Unlike previous approaches that attempt to align domains at the pixel level (image-to-image translation) or through a shared feature space, this method focuses on transforming synthetic feature maps to match the distribution of real-world features.

Architecture of the proposed conditional GAN framework for structured domain adaptation.

The architecture consists of several key components:

  1. CNN Feature Extractor: A standard backbone (FCN-8s based on VGG-19) extracts features from both synthetic and real images.
  2. Conditional Generator ($G$): This module takes low-level features (from the Conv1 layer) of a synthetic image and a noise map as inputs. It learns to produce a "residual" feature map that, when added to high-level features (Conv5), "translates" them into the target real-world domain.
  3. Discriminator ($D$): A multi-layer perceptron trained to distinguish between the transformed synthetic features and the actual features extracted from unlabeled real images.
  4. End-to-End Training: The system is trained using a minimax game where the generator tries to fool the discriminator while the segmentation network simultaneously learns to classify pixels using the transformed features and synthetic labels.

By working at the feature level and utilizing residual learning, the model preserves semantic structure while adjusting the "style" of the internal representation to bridge the domain gap.

Experimental Setup and Datasets

The framework was evaluated using two synthetic source datasets and one real-world target dataset:

  • Source (Synthetic): SYNTHIA (urban scenes) and GTA5 (highly realistic images from the game engine).
  • Target (Real): Cityscapes, the benchmark for urban autonomous driving segmentation.

The models were trained using labeled synthetic data and unlabeled real data from Cityscapes, then tested on the Cityscapes validation set to measure unsupervised domain adaptation performance.

Results and Discussion

The proposed method achieved a significant performance leap over the "No Adaptation" baseline. For the SYNTHIA to Cityscapes task, the mean Intersection-over-Union (mIoU) increased from 17.4% to 41.2%. Similarly, for GTA5 to Cityscapes, the mIoU improved from 21.1% to 44.5%.

Qualitative comparison of segmentation results on the Cityscapes dataset.

Qualitatively, the adapted models produce much cleaner segmentation boundaries and significantly fewer misclassifications compared to non-adapted models. The use of low-level Conv1 features for conditioning proved vital for maintaining spatial detail in the transformed high-level features. Furthermore, the residual learning approach provided stability during the adversarial training process.

Conclusion

This paper demonstrates that feature-level conditional GANs are highly effective for structured domain adaptation in semantic segmentation. By learning to transform synthetic features into a real-world distribution, the framework boosts performance by up to 20% without requiring any manual labels for the target domain. While a gap remains compared to fully supervised models, this approach represents a major step toward utilizing synthetic data for real-world computer vision applications. Future work may involve applying this architecture to more modern backbones like ResNets or Transformers to further enhance baseline performance.

Summary updated

BibTeX
@inproceedings{hong2018conditional,
  author = {Weixiang Hong and Zhenzhen Wang and Ming Yang and Junsong Yuan},
  title = {{Conditional Generative Adversarial Network for Structured Domain Adaptation}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2018},
  doi = {10.1109/cvpr.2018.00145},
}
Figure