CAGAN: Consistent Adversarial Training Enhanced GANs

Yao Ni, Dandan Song, Xi Zhang, Hao Wu, Lejian Liao

Overview

CAGAN (Consistent Adversarial Training Enhanced GANs) introduces a novel framework for training generators against an "infinite" ensemble of critics using a single neural network augmented with dropout. By enforcing consistency among these virtual critics for real data while encouraging diversity in their detection of fakes, the authors achieved record-breaking Inception scores and significantly improved training stability.

The Challenge of GAN Training

Generative Adversarial Networks (GANs) are notoriously difficult to optimize. While theory suggests optimization in "function space," practical implementations use deep networks with finite parameters, leading to two primary failure modes:

  1. Gradient Vanishing: If the discriminator becomes too powerful too quickly, the generator stops receiving useful feedback.
  2. Mode Collapse: The generator may find a "shortcut" by producing a limited variety of samples that fool the discriminator, failing to capture the full diversity of the underlying data distribution.

While ensembles of independent discriminators can mitigate these issues, they are computationally expensive and prone to "parameter explosion."

Methodology: Dropout as an Ensemble

CAGAN leverages Dropout to create an exponential number of sub-networks (critics) within a single architecture. With $M$ layers and $N$ nodes, there are $2^{M \times N}$ possible sub-networks. This allows the adversarial game to be played in a nearly infinite parameter space without increasing the total number of weights.

Consistent Adversarial Training

The core innovation lies in the interaction between these virtual critics:

  • For Real Samples: Two randomly sampled sub-networks are forced to be consistent. They must agree that a real image is real, even when observing different feature subsets.
  • For Generated Samples: Critics are encouraged to be inconsistent. This forces different sub-networks to "specialize" in detecting specific flaws, such as blurriness or structural distortion.
  • For the Generator: The generator is trained to produce samples that make the critics consistent. To succeed, the generator must produce images of such high quality that all sub-networks agree they are real.

To manage the consistency loss, the authors adapted Proportional Control Theory, introducing a dynamic weight ($k_t$) to balance the importance of consistency between real and generated samples throughout training.

Key Insights and Stability

A critical finding was the relationship between Wasserstein estimates and model performance. The authors observed that higher Wasserstein estimates (measuring the distance between real and fake distributions) correlated with better Inception scores, suggesting CAGAN allows the generator to explore the data manifold more effectively without collapsing.

Wasserstein estimate comparison across different GAN architectures over training epochs.

Key Results

CAGAN achieved state-of-the-art (SOTA) performance at the time of its publication (2018) across several benchmarks:

  • Inception Scores: The model reached 9.17 on supervised CIFAR-10 and 10.02 on unsupervised STL-10, becoming the first model to exceed scores of 9 and 10 on these respective datasets.
  • Semi-Supervised Learning: On the SVHN dataset, CAGAN achieved an error rate of 4.83%, significantly outperforming the "Improved GAN" baseline of 8.11%.
  • Visual Quality: Qualitative analysis confirmed that CAGAN effectively alleviates mode collapse, producing a diverse array of sharp, recognizable images.
Generated samples from CAGAN on the CIFAR-10 dataset, demonstrating diversity and visual clarity across multiple classes.

Conclusion

By treating dropout as a mechanism for ensemble criticism rather than just a regularizer, CAGAN provides a robust solution to the stability issues inherent in GAN training. While the method requires two forward passes through the discriminator per iteration—increasing training time—the gains in sample diversity and Inception scores represent a significant advancement in generative modeling. Future work may involve applying this consistency logic to larger-scale image synthesis tasks like ImageNet.

Summary updated

BibTeX
@inproceedings{ni2018cagan,
  author = {Yao Ni and Dandan Song and Xi Zhang and Hao Wu and Lejian Liao},
  title = {{CAGAN: Consistent Adversarial Training Enhanced GANs}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2018},
  doi = {10.24963/ijcai.2018/359},
}
Figure