Source-linked AI summary

CyCADA: Cycle-Consistent Adversarial Domain Adaptation

Judy Hoffman, Eric Tzeng, Taesung Park, Jun-Yan Zhu, Phillip Isola, Kate Saenko, Alexei A. Efros, Trevor Darrell

arXiv:1711.03213v3cs.CV

TL;DR

Models trained in one visual domain often generalize poorly to new environments, especially when transferring from synthetic data to real images. CyCADA addresses this by adapting images and features with adversarial learning and cycle consistency, achieving state-of-the-art results across adaptation tasks and improving synthetic-to-real per-pixel accuracy from 54% to 82%.

  • Problem

    Models trained in one visual domain can generalize poorly to new environments, particularly when transferring from synthetic data to real images.

  • Method

    CyCADA jointly adapts representations at pixel and feature levels using adversarial domain mapping, cycle consistency, and semantic task losses without requiring aligned pairs.

  • Results

    CyCADA achieves state-of-the-art results across digit, cross-season synthetic, and synthetic-to-real adaptation, improving synthetic-to-real per-pixel accuracy from 54% to 82%.

  • Takeaways & Limitations

    Cycle-consistent pixel transformations and complementary pixel- and feature-level adaptation are effective across visual domain adaptation tasks, including challenging synthetic-to-real transfer.

  • Takeaways & Limitations

    Adversarial mapping alone does not guarantee preservation of the source sample’s structure or content and can be unstable and prone to failure.

Abstract

from arXiv · show

Domain adaptation is critical for success in new, unseen environments. Adversarial adaptation models applied in feature spaces discover domain invariant representations, but are difficult to visualize and sometimes fail to capture pixel-level and low-level domain shifts. Recent work has shown that generative adversarial networks combined with cycle-consistency constraints are surprisingly effective at mapping images between domains, even without the use of aligned image pairs. We propose a novel discriminatively-trained Cycle-Consistent Adversarial Domain Adaptation model. CyCADA adapts representations at both the pixel-level and feature-level, enforces cycle-consistency while leveraging a task loss, and does not require aligned pairs. Our model can be applied in a variety of visual recognition and prediction settings. We show new state-of-the-art results across multiple adaptation tasks, including digit classification and semantic segmentation of road scenes demonstrating transfer from synthetic to real world domains.

1 INTRODUCTION

CyCADA addresses domain shift by combining cycle-consistent pixel and feature adaptation with semantic constraints, preserving task-relevant information without aligned image pairs. It achieves strong transfer results, including raising synthetic-to-real segmentation per-pixel accuracy from 54% to 82%.

  • Motivation: Domain shift can cause neural networks to make spurious predictions, with synthetic-to-real visual transfer posing an especially significant challenge.Even slight departures from the training domain can significantly hurt performance.
  • Limitations: Prior image-space adaptation methods produce compelling translations but generally handle only small images, limited shifts, or visually controlled settings.These limitations motivate broader adaptation methods for challenging visual domains.
  • Method: Cycle-consistency reconstructs original data from adapted versions, providing an additional objective intended to preserve semantic information during distribution alignment.This extends cycle-consistent image translation with task-specific supervision.
  • Method: CyCADA adapts representations at pixel and feature levels while enforcing pixel cycle-consistency and semantic losses for local and global structural consistency.The method unifies feature-level and image-level adversarial adaptation with cycle-consistent image translation.
  • Results: 54% to 82%: CyCADA improves synthetic-to-real semantic-segmentation per-pixel accuracy, nearly closing the gap to a target-trained model.The experiments cover digit recognition, urban-scene semantic segmentation, and cross-season adaptation in synthetic data.
  • Results: Joint pixel-space and feature adaptation yields the highest-performing digit-classification model, while cycle-consistent pixel transformations especially benefit pixel-level semantic segmentation.The experiments show complementary improvements from adaptation at pixel and representation levels.

2 RELATED WORK

Prior visual domain adaptation work aligned source and target distributions in feature space, increasingly using domain-adversarial objectives. Other approaches adapted images in pixel space using generative models, while relatively few studies addressed semantic segmentation, especially synthetic-to-real transfer.

  • Feature-space adaptation: Early deep adaptation methods aligned source and target feature distributions by minimizing first- or second-order feature-statistic distances.These approaches followed earlier metric-transform and visual-dataset-bias work on visual domain adaptation.
  • Feature-space adaptation: Domain-adversarial methods trained a classifier to distinguish source from target representations while optimizing representations to maximize classifier error.Reported objectives include standard minimax, symmetric confusion, and inverted label formulations.
  • Pixel-space adaptation: Pixel-space adaptation used generative approaches that can produce human-interpretable images by visualizing one domain remapped into another.This contrasts with methods focused on modifications to discriminative feature representations.
  • Pixel-space adaptation: Other GAN-based methods directly converted target images into source style, or source images into target style, for applications including image generation, editing, and feature learning.The cited GAN literature includes image-to-image and related generative applications.
  • Semantic segmentation: Only a small body of work explicitly studied visual domain adaptation for semantic segmentation, including weather variation, drive-camera scenes, and simulated-to-real environments.Subsequent methods also used multi-source distillation, global and class-specific statistic alignment, and temporal street-view data.

3 CYCLE-CONSISTENT ADVERSARIAL DOMAIN ADAPTION

CyCADA addresses unsupervised domain adaptation by mapping source and target samples across domains while combining adversarial, cycle-consistency, and semantic-consistency objectives. The method operates at both pixel and feature levels to produce a target model from labeled source data and unlabeled target data.

  • Problem setup: Unsupervised adaptation learns a model from source samples XS with labels YS and target samples XT without target labels.The goal is correct prediction on target data XT.
  • Adversarial adaptation: Adversarial mappings align source and target domains, but may fail to preserve the structure or content of source samples.A source-to-target mapping GS→T is trained to fool a target discriminator, yet the GAN loss alone provides no content-preservation guarantee.
  • Cycle and semantic consistency: Cycle consistency adds a target-to-source mapping GT →S so translated samples reconstructed through both domains reproduce the originals.The cycle loss uses L1 reconstruction terms for both source and target samples.
  • Cycle and semantic consistency: Semantic consistency uses a fixed pretrained source model fS as a noisy labeler to preserve task predictions before and after translation.The semantic loss encourages translated target and source images to retain their original classifier-based labels.
  • Complete objective: The complete CyCADA objective combines task, pixel-level and feature-level adversarial, cycle-consistency, and semantic-consistency losses.The resulting target model fT is trained using labeled source data, unlabeled target data, and mappings between domains.

4 EXPERIMENTS

CyCADA is evaluated on unsupervised digit-classification and semantic-segmentation domain shifts, including synthetic-to-real transfer. Across these settings, it performs strongly, while ablations show that semantic and cycle consistency address distinct failure modes.

  • Experimental Setup: Experiments cover unsupervised adaptation for digit classification across MNIST, USPS, and SVHN, plus semantic segmentation across SYNTHIA, GTA, and Cityscapes.Digit shifts include USPS→MNIST, MNIST→USPS, and SVHN→MNIST; segmentation evaluates target-domain performance with labels only in the source domain.
  • Digit Classification: CyCADA outperforms competing approaches on average across USPS→MNIST, MNIST→USPS, and SVHN→MNIST classification shifts.The experiments use full training sets during learning, standard test sets for evaluation, and a LeNet variant as the classifier architecture.
  • Digit Classification: Pixel-level adaptation performs very well for small USPS–MNIST shifts, while feature-level adaptation provides additional benefit for the more difficult SVHN→MNIST shift.The ablation finds feature adaptation offers only a small benefit when the pixel shift is small, but helps beyond pixel-only adaptation for SVHN→MNIST.
  • Ablations: Semantic consistency prevents CycleGAN failures such as random label flipping on SVHN→MNIST, while removing cycle consistency eliminates reconstruction guarantees and still permits label flipping.The semantic loss uses source labels to train a weak classifier enforcing semantic agreement before and after translation.
  • Semantic Segmentation: Image-space adaptation makes domain changes visually inspectable, including fall-to-winter weather transfer and GTA5-to-Cityscapes adjustments to saturation and road texture.This visual inspection offers a way to assess whether conversions between source and target images are reasonable in otherwise unsupervised settings.

5 CONCLUSION

The conclusion presents CyCADA as a broadly applicable cycle-consistent adversarial domain adaptation method that operates at pixel and feature levels without target labels. Its image-space instantiation improves interpretability and helps verify successful adaptation.

  • CyCADA unifies cycle-consistent adversarial models with adversarial adaptation methods.
  • CyCADA adapts without target labels at both the pixel level and in feature space.
  • Image-space CyCADA provides additional interpretability and helps verify successful adaptation.The model achieves highly realistic conversions between GTA5 and Cityscapes domains.

6 APPENDIX

The appendix details CyCADA’s staged training procedure, architectures, and optimization settings across digit and semantic-segmentation experiments. It also documents realistic GTA5–Cityscapes image translations and remaining SVHN-to-MNIST confusion patterns after adaptation.

  • Training procedure: Training begins with a source task model, followed by pixel-level adaptation using image GAN, semantic-consistency, and cycle-consistency losses.The adapted target task model is initialized using pixel-transformed source images and corresponding source labels.
  • Training procedure: Feature adaptation equally weights generator and discriminator losses and updates the generator only when discriminator accuracy exceeds 60%.The accuracy criterion is measured over the last batch for digits or the last 100 iterations for semantic segmentation; adaptation stops after an epoch without a suitable discriminator.
  • Architectures: Digit experiments use LeNet task networks, three-layer fully connected feature discriminators, six-layer convolutional image discriminators, and convolutional-residual-deconvolution generators.The generators contain two residual blocks between convolutional and deconvolutional layers.
  • Hyperparameters: Source-task training uses learning rate 1e-4 for 100 epochs with batch size 128, while pixel adaptation uses batch size 100, learning rate 2e-4, and 50 epochs.Feature adaptation uses learning rate 1e-5 for a maximum of 200 epochs; experiments are run 4 times and averaged.
  • Error analysis: After SVHN-to-MNIST adaptation, all confusion-matrix errors are reduced, though 7s remain confused with 1s and 0s with 2s.Before adaptation, common confusions include 0s with 2s, 4s, and 7s; 6 with 4, 8 with 3, and 9 with 4.
Loading 1711.03213v3…