A Three-Player GAN: Generating Hard Samples to Improve Classification Networks

Simon Vandenhende, Bert De Brabandere, Davy Neven, Luc Van Gool

Introduction

Deep learning models are notoriously data-hungry, often requiring vast amounts of labeled information to achieve high performance. While Generative Adversarial Networks (GANs) have emerged as a powerful tool for synthesizing new data to fill these gaps, standard GANs typically focus on generating images that are merely "realistic." However, realism does not always equate to utility for training a classifier.

If a classification model is already highly confident about a clear, centered image of a stop sign, additional clear images provide diminishing returns for learning. The true challenge for robustness lies in "edge cases"—samples characterized by blur, unusual angles, or difficult lighting. Manually collecting these difficult samples is a labor-intensive and expensive process. Researchers from KU Leuven address this by proposing a "Three-Player GAN" designed to intentionally synthesize these "hard" training examples to challenge and improve image classifiers.

The Three-Player Adversarial Framework

The core innovation of this work is the expansion of the traditional two-player GAN into a three-way competitive game. The architecture consists of three distinct networks:

  1. The Generator ($G$): Tasked with creating realistic images that can simultaneously fool the Discriminator and confuse the Classifier.
  2. The Discriminator ($D$): Acts as the traditional "art critic," attempting to distinguish between real training data and the synthetic images produced by $G$.
  3. The Classifier ($C$): A standard classification network (e.g., for traffic sign recognition) that attempts to correctly label both real and synthetic images.
The Three-Player GAN architecture featuring a Gradient Reversal Layer (GRL) between the Generator and Classifier.

To force the Generator to produce difficult samples, the authors introduce a Gradient Reversal Layer (GRL) between the Generator and the Classifier. During the backward pass, when the Classifier makes a mistake on a generated image, the GRL flips the error signal before it reaches the Generator. This inversion effectively instructs the Generator to maximize the classifier's error. A hyperparameter ($\lambda$) is used to balance these competing objectives, ensuring the Generator produces images that are difficult for the classifier but still realistic enough to be recognized as the target class.

Targeting the Decision Boundary

One of the primary insights of this research is how the three-player dynamic affects the classifier's decision boundary. In toy experiments using 2D Gaussian distributions, the authors demonstrated that the Three-Player GAN specifically targets the regions where classes overlap. By generating samples in these ambiguous zones, the model forces the classifier to "sharpen" its decision boundary, leading to better separation between classes.

Comparison of decision boundaries: (a) trained on real samples, (b) real and synthesized, and (c) real, synthesized, and difficult samples.

Unlike the Auxiliary Classifier GAN (ACGAN), which merges the discriminator and classifier into a single network, this three-player approach keeps them decoupled. This architectural independence allows for the use of specialized, state-of-the-art classifier architectures without being constrained by the requirements of the GAN's discriminator.

Experimental Results

The methodology was evaluated using the CURE-TSR (Challenging Unreal and Real Environments for Traffic Sign Recognition) dataset, which contains 14 traffic sign classes under various simulated weather conditions like snow, rain, and heavy shadows.

  • Superior Accuracy: The Three-Player GAN achieved a test accuracy of 85.41%, outperforming both the baseline classifier (83.38%) and the ACGAN (79.23%).
  • Data Scarcity Robustness: When trained primarily on synthetic samples with limited real data, the Three-Player GAN maintained an accuracy of 79.83%, significantly higher than a standard conditional GAN (77.08%).
  • Qualitative Findings: Visual inspection of the generated samples confirmed that the generator learned to synthesize specific types of distortions and blurs that typically cause neural networks to fail, effectively acting as an automated adversarial trainer.

Conclusion and Future Directions

The Three-Player GAN offers a promising path toward automated curriculum learning, where a generator dynamically adapts to provide the most useful training samples for a classifier's current state. However, the authors note that the system is sensitive to the weighting parameter $\lambda$; if the generator focuses too heavily on confusing the classifier, it may produce "adversarial noise" that lacks semantic meaning. Future research will focus on scaling this dynamic to more complex datasets like ImageNet and optimizing the computational costs associated with training three networks simultaneously.

Summary updated

BibTeX
@inproceedings{vandenhende2019three,
  author = {Simon Vandenhende and Bert De Brabandere and Davy Neven and Luc Van Gool},
  title = {{A Three-Player GAN: Generating Hard Samples to Improve Classification Networks}},
  booktitle = {MVA},
  year = {2019},
  doi = {10.23919/mva.2019.8757893},
}
Figure