Robust generative adversarial network

Shufei Zhang, Zhuang Qian, Kaizhu Huang, Rui Zhang, Jimin Xiao, Yuan He, Canyi Lu

Abstract

Generative Adversarial Networks (GANs) are powerful tools for data generation but are frequently plagued by training instability and poor generalization to unseen data. This paper proposes the Robust Generative Adversarial Network (RGAN), a framework that leverages Distributionally Robust Optimization (DRO) to enhance performance. By training the generator and discriminator to handle "worst-case" perturbations within a Wasserstein ball, RGAN achieves significantly better image quality and more stable training dynamics. Theoretical analysis confirms that local robustness directly improves generalization bounds, a claim supported by extensive empirical evaluation on standard benchmarks.

Introduction

While GANs have revolutionized synthetic data generation, their practical application is often hindered by the difficulty of the minimax optimization process. A common failure mode is poor generalization, where the model overfits the training distribution, leading to low-quality or non-diverse outputs. Existing stabilization techniques, such as gradient penalties, often lack a rigorous theoretical link between robustness and generalization. RGAN addresses this by formalizing the training process as a robust optimization problem, ensuring the model remains effective even when faced with small variations in the input or data distributions.

Methodology: Distributionally Robust Optimization

The core innovation of RGAN is the application of Distributionally Robust Optimization (DRO) to the GAN framework. In a standard GAN, the generator $G$ maps a latent distribution to the data space, while the discriminator $D$ distinguishes between real and fake samples. RGAN modifies this competition by introducing a "worst-case" environment.

Specifically, the generator is trained to map the most challenging input distribution within a small "Wasserstein ball"—a neighborhood of possible variations—to the target data distribution. Simultaneously, the discriminator is tasked with distinguishing distributions even when they are subjected to adversarial perturbations. This approach forces the networks to focus on the most difficult points near the decision boundary, leading to a more resilient model.

The RGAN framework illustrating how perturbed noise and images are utilized to update the networks.

The unified optimization objective integrates these robust terms with conventional GAN losses, providing a mathematically grounded way to stabilize training through gradient stability and lower variance.

Experimental Setup

The authors evaluated RGAN across several diverse datasets to ensure consistency across scales and domains:

  • CIFAR-10: 32x32 images across 10 classes.
  • STL-10: 96x96 images often used for unsupervised learning.
  • CelebA: A large-scale face attributes dataset.
  • AFHQ-V2: High-resolution (512x512) animal and human faces, used to test RGAN's compatibility with state-of-the-art models like StyleGAN3.

Key Insights

Theoretical and empirical analysis yielded several critical findings regarding the nature of GAN robustness:

  1. Robustness $\implies$ Generalization: The authors mathematically prove that robustness in a small neighborhood of training data boosts generalization, deriving a tighter upper bound for RGAN’s generalization error compared to traditional GANs.
  2. Stability through Adversity: By forcing the generator to succeed on "worst-case" inputs (those most likely to cause corrupted generations), the model becomes less sensitive to noise and produces more consistent results.
  3. Discriminator Importance: Ablation studies indicate that robust training on the discriminator provides more significant gains than on the generator alone, highlighting the discriminator's role as a stable "teacher."

Results

RGAN was benchmarked against five popular models: DCGAN, WGAN-GP, WGAN-GP-ResNet, SNGAN, and BWGAN.

Quantitative Performance

RGAN consistently outperformed baselines in Inception Score (IS) and Fréchet Inception Distance (FID). For instance, on CIFAR-10, RGAN (integrated with SNGAN) achieved an IS of 8.41, compared to the baseline's 8.22.

Resilience to Noise

A key advantage of RGAN is its stability under adversarial conditions. While standard GANs experience significant performance degradation when faced with "worst-case" input noise, RGAN maintains high-quality generation and stable Inception Scores.

Comparison of Inception Scores between baselines and RGANs under original vs. worst-case input noise.

Qualitative Quality

Visual results on CelebA showed that RGAN produces fewer artifacts and distortions than DCGAN or WGAN-GP, resulting in more realistic facial features and fewer "strange" generated samples.

Conclusion and Future Work

RGAN provides a robust framework for improving GAN stability and generalization through DRO. While the method introduces some computational overhead due to the need for additional backward passes to find worst-case perturbations, the gains in image quality and training reliability are substantial. Future research may explore generating perturbations directly on the data manifold to further refine generalization and reduce pixel-level noise sensitivity.

Summary updated

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