Robust Generative Adversarial Network

Shufei Zhang, Zhuang Qian, Kaizhu Huang, Jimin Xiao, Yuan He

TL;DR

This paper introduces Robust Generative Adversarial Networks (RGANs), a novel framework designed to improve GANs' generalization capabilities by training both the generator and discriminator to be robust against worst-case perturbations within a small neighborhood of the data. RGANs theoretically achieve tighter generalization bounds than traditional GANs and empirically demonstrate significant improvements in image generation quality across various datasets and baseline models.

What Problem Does This Paper Address?

Generative Adversarial Networks (GANs) are powerful tools for generating realistic data, but they often struggle with training instability and poor generalization. This means that even if a GAN performs well on its training data, it might not generate high-quality or diverse samples when faced with slightly different or "worst-case" inputs. While many existing GAN improvements focus on stabilizing the training process, the authors argue that the generalization property of GANs, particularly how they handle variations in input data, is not well understood and has not been adequately addressed. This limitation can lead to the generation of low-quality or "strange" images, as seen in some GAN outputs.

Methods

The core innovation of RGAN is its distributionally robust optimization approach. Instead of training the generator and discriminator on a single, fixed data distribution, RGAN trains them to perform optimally against the "worst-case" distribution within a small, defined neighborhood (a Wasserstein ball) around the original data distribution.

  • Robust Training for Generator: The generator is trained to map the worst-case input distribution (rather than a standard Gaussian) to the real data distribution. This encourages the generator to produce outputs that are robust even when its inputs are slightly perturbed.
  • Robust Training for Discriminator: Similarly, the discriminator is trained to distinguish between real and fake data distributions under the worst possible perturbations. This makes the discriminator more resilient to adversarial examples or noisy inputs.

The authors provide theoretical guarantees that this robust training leads to a tighter generalization upper bound for both the generator and discriminator compared to traditional GANs. They also propose an algorithm (Algorithm 1) that integrates these robust training strategies into existing GAN frameworks.

Datasets

The paper uses the following datasets for training and evaluation:

  • CIFAR-10: A widely used dataset of 60,000 32x32 color images in 10 classes.
  • STL-10: A dataset similar to CIFAR-10 but with higher resolution images and more unlabeled data.
  • CelebA: A large-scale face attributes dataset.

The authors do not introduce new benchmark datasets.

Key Insights and Ideas

  • Robustness is Key to Generalization: The paper's central thesis is that improving local robustness (performing well in small neighborhoods of the training data) directly leads to better generalization in GANs. This is a crucial insight that shifts focus from just stable training to resilient performance.
  • Worst-Case Optimization for GANs: By explicitly training against worst-case perturbations, RGAN forces the models to learn more robust representations and generation strategies, making them less susceptible to minor input variations.
  • Theoretical Superiority: The authors provide theoretical proofs showing that RGANs achieve tighter generalization bounds than traditional GANs, offering a solid mathematical foundation for their empirical results.
  • Broad Applicability: The RGAN framework is designed to be integrated with existing GAN architectures, allowing for straightforward application and improvement of various popular GAN models.

Key Results

  • Improved Image Quality: RGAN consistently outperformed baseline GAN models (WGAN-GP, DCGAN, SNGAN, BWGAN) on CIFAR-10 and STL-10 datasets, as measured by Inception Score (higher is better) and FID (lower is better). For example, RGAN (based on WGAN-GP-res) achieved an Inception Score of 8.25 ± 0.1 and FID of 19.79 on CIFAR-10, outperforming the baseline WGAN-GP-res (7.76 ± 0.13 and 22.19 respectively).
  • Robustness to Noise: Experiments showed that while traditional GANs' performance degraded significantly when fed worst-case input noise, RGANs maintained stable and comparable performance to their performance with original input noise.
  • Visual Improvements: Qualitative results on CelebA demonstrated that RGANs generated fewer "strange" or low-quality faces compared to baseline GANs, indicating visually better and more stable results.
  • Ablation Studies: Robust training on either the generator or discriminator individually improved performance, but joint robust training on both yielded the best results. Robust training on the discriminator alone showed a slightly larger performance gain than on the generator alone, suggesting its importance.

Limitations and Future Work

  • Hyperparameter Sensitivity: The paper notes that RGAN can be sensitive to perturbation magnitudes, particularly for the discriminator ($\epsilon_2$). While they searched for optimal values, this sensitivity might require careful tuning.
  • Computational Cost: Robust training, especially with worst-case optimization, can potentially increase computational complexity and training time, though the paper claims their method is "simple" and "effective."
  • Future Work: The authors suggest further investigation into why robust training on the discriminator alone yields significant gains and exploring the impact of different norms beyond L2 for perturbations. They also mention that their method can be applied to conditional GANs, hinting at future extensions.

Summary updated

BibTeX
@article{zhang2023robust,
  author = {Shufei Zhang and Zhuang Qian and Kaizhu Huang and Jimin Xiao and Yuan He},
  title = {{Robust Generative Adversarial Network}},
  journal = {Machine Learning},
  year = {2023},
  doi = {10.1007/s10994-023-06367-0},
}
Figure