Online Adaptative Curriculum Learning for GANs

Thang Doan, João Monteiro, Isabela Albuquerque, Bogdan Mazoure, Audrey Durand, Joelle Pineau, R. Devon Hjelm

Abstract

Generative Adversarial Networks (GANs) can successfully approximate a probability distribution and produce realistic samples. However, open questions such as sufficient convergence conditions and mode collapse still persist. In this paper, we build on existing work in the area by proposing a novel framework for training the generator against an ensemble of discriminator networks, which can be seen as a one-student/multiple-teachers setting. We formalize this problem within the full-information adversarial bandit framework, where we evaluate the capability of an algorithm to select mixtures of discriminators for providing the generator with feedback during learning. To this end, we propose a reward function which reflects the progress made by the generator and dynamically update the mixture weights allocated to each discriminator. We also draw connections between our algorithm and stochastic optimization methods and then show that existing approaches using multiple discriminators in literature can be recovered from our framework. We argue that less expressive discriminators are smoother and have a general coarse grained view of the modes map, which enforces the generator to cover a wide portion of the data distribution support. On the other hand, highly expressive discriminators ensure samples quality. Finally, experimental results show that our approach improves samples quality and diversity over existing baselines by effectively learning a curriculum. These results also support the claim that weaker discriminators have higher entropy improving modes coverage.

The Challenge of Mode Collapse

Generative Adversarial Networks (GANs) are powerful, but they are notoriously finicky to train. One of the most persistent "white whales" in GAN research is mode collapse (or mode dropping). This occurs when a generator learns to produce only a small subset of the target data distribution—for example, a model trained on handwritten digits might only ever output the number "1" because it found a way to fool the discriminator with that specific shape.

Mode collapse is often caused by vanishing gradients. If a discriminator is too "strong" (highly expressive), it can distinguish real from fake data so perfectly that the generator receives no useful feedback on how to reach the "missing" parts of the data distribution. Essentially, the teacher is too smart for the student, and the student stops learning.

Methods: The acGAN Framework

The authors propose a "one-student/multiple-teachers" setting called Adaptative Curriculum GAN (acGAN).

The acGAN training loop: The generator produces samples, discriminators are updated, and a bandit algorithm evaluates performance to update mixture weights.
  1. The Ensemble: Instead of one discriminator, acGAN uses $N$ discriminators with different "capacities" (varying numbers of layers and parameters). "Weak" discriminators have fewer layers and provide a coarse, smooth gradient, while "strong" discriminators are deep and provide fine-grained detail.
  2. The Bandit Mechanism: To decide which discriminator to listen to at any given time, the framework employs the Hedge algorithm (a type of adversarial multi-armed bandit).
  3. Reward Shaping: The "reward" for a discriminator is based on the progress the generator makes against it. If the generator's score improves significantly against Discriminator $i$, the bandit increases the weight ($\pi_i$) assigned to that discriminator.
  4. The Curriculum: This setup creates an emergent curriculum. Early in training, the generator gets more feedback from weak discriminators to help it "find" all the modes in the data. As the generator improves, the weight shifts toward stronger discriminators to refine the visual quality of the samples.

Key Insights: The Smoothness of Weakness

The most counter-intuitive insight is that "weak" discriminators are actually better for diversity. Because they are less complex, their decision boundaries are smoother. This "coarse-grained" view prevents the gradient from vanishing in regions where the generator hasn't yet placed any samples.

Comparison of distributions and gradients: Weak discriminators provide smoother gradients that cover multiple modes, while strong discriminators focus on local peaks.

By rewarding the change in generator performance rather than absolute performance, the bandit ensures the generator is always challenged at the "edge" of its current ability. The authors observed "phase switching" in their experiments: weights for different discriminators would spike and dip as the generator mastered different levels of complexity, eventually converging to a uniform distribution once the generator became robust.

Experimental Results

The researchers evaluated acGAN across a variety of benchmarks, including synthetic mixtures (2D-ring and 2D-grid), Stacked-MNIST, CIFAR-10, and CelebA.

  • Mode Recovery: On the 25-Gaussian synthetic task, acGAN recovered all 25 modes, whereas a vanilla GAN only recovered 17. On Stacked-MNIST, acGAN successfully recovered all 1,000 modes, significantly outperforming standard DCGAN (99 modes).
  • Sample Quality: acGAN achieved a Fréchet Inception Distance (FID) of 3.34 on CIFAR-10 (with 5 discriminators), outperforming other ensemble methods like GMAN (4.42) and uniform weighting (3.72).
  • Stability: The use of a moving average for rewards helped stabilize the mixture weights, preventing the training from becoming erratic.

Conclusion

acGAN effectively mitigates mode collapse by automating a curriculum of discriminators. While training multiple discriminators increases computational overhead, the "weak" discriminators are small and add relatively little cost. Future work may explore contextual bandits, where the choice of discriminator depends on the specific features the generator is currently struggling with, potentially further refining the learning process.

Summary updated

BibTeX
@inproceedings{doan2019online,
  author = {Thang Doan and João Monteiro and Isabela Albuquerque and Bogdan Mazoure and Audrey Durand and Joelle Pineau and R. Devon Hjelm},
  title = {{Online Adaptative Curriculum Learning for GANs}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2019},
  doi = {10.1609/aaai.v33i01.33013470},
}
Figure