Generative Adversarial Network Training is a Continual Learning Problem

Kevin J. Liang, Chunyuan Li, Guoyin Wang, Lawrence CarinarXiv 2018

Abstract

Generative Adversarial Networks (GANs) are a powerful framework for learning complex distributions but are notoriously difficult to train due to mode collapse and oscillations. This paper hypothesizes that these issues stem from catastrophic forgetting in the discriminator. As the generator distribution evolves, the discriminator loses its ability to remember and reject samples from previous generator iterations. By reframing GAN training as a continual learning problem and applying regularization techniques like Elastic Weight Consolidation (EWC), we can stabilize training and improve output quality across image and text generation tasks.

The Problem: Catastrophic Forgetting in GANs

GAN training is often described as a zero-sum game between a generator and a discriminator. However, this game is played on a moving target. In standard setups, the discriminator is trained only on the current batch of generator outputs. Because neural networks are prone to catastrophic forgetting—the tendency to lose information about old tasks when learning new ones—the discriminator eventually "forgets" what the generator's previous failures looked like.

This amnesia creates a loophole: the generator can "revisit" old, collapsed modes that the discriminator should have already mastered. This leads to the common phenomena of mode collapse (limited variety) and oscillations (cycling through the same errors), where the generator exploits the discriminator's lack of memory to stop improving.

Oscillations in a vanilla GAN training on the 8-Gaussian mixture dataset. The generator (blue) fails to cover all modes (red) and shifts between them over time.

Methods: The Discriminator as a Continual Learner

To address this, the researchers propose treating the discriminator as a continual learner. Instead of just classifying the current batch, the discriminator is encouraged to maintain its performance on the entire history of the generator's output distribution.

Adapting Continual Learning Algorithms

The authors adapted two classic algorithms for the GAN setting:

  1. Elastic Weight Consolidation (EWC): Adds a penalty to the loss function to protect weights that were important for "past tasks."
  2. Intelligent Synapses (IS): Tracks the contribution of each weight to loss reduction over the training trajectory to prevent significant changes to critical parameters.

GAN-Specific Innovations

  • Defining Tasks: Since GAN training is a continuous stream, the authors define a "task" as a fixed window of iterations ($\alpha$).
  • Online Memory: To avoid storing a copy of the model for every task, they utilize running averages (sum of quadratic forms) to maintain a memory of important weights efficiently.
  • Controlled Forgetting: A discount factor ($\gamma$) ensures the discriminator doesn't try to remember the very first (and likely very poor) iterations of the generator indefinitely, allowing it to focus on more recent, higher-quality "fakes."

GANs as a Continual Learning Benchmark

A significant contribution of this work is the argument that GAN training is a superior benchmark for continual learning research. Unlike canonical datasets like permuted MNIST, where task shifts are artificial and discrete, GANs provide a natural, adversarial distribution shift.

Discriminator performance on the sequential Fake MNIST benchmark using EWC. The plot shows the fraction of correct classifications across sequential datasets, demonstrating the model's ability to retain knowledge.

Key Results

  • Toy Problem (8-Gaussian Mixture): While vanilla GANs oscillated wildly, the EWC-GAN achieved an Inception Score (ICP) of 7.708, nearly matching the ground truth of 7.870.
  • Image Quality: On CIFAR-10, adding EWC to a standard DCGAN improved the Fréchet Inception Distance (FID) from 41.44 to 34.84, indicating significantly more realistic images.
  • Text Generation: Integrated with the textGAN architecture on the MS COCO dataset, the EWC-augmented model outperformed state-of-the-art models like SeqGAN and RankGAN in BLEU scores.
  • Efficiency: Unlike "Unrolled GANs," which require expensive backpropagation through multiple optimization steps, this regularization approach adds almost zero computational overhead.

Conclusion

By recognizing that the discriminator's "memory" is the bottleneck in GAN training, this research provides a simple yet effective path toward more stable adversarial learning. Augmenting the discriminator with continual learning techniques prevents it from being outmaneuvered by a generator that simply repeats old mistakes, forcing the entire system toward higher-quality convergence.

Summary updated

BibTeX
@misc{liang2018generative,
  author = {Kevin J. Liang and Chunyuan Li and Guoyin Wang and Lawrence Carin},
  title = {{Generative Adversarial Network Training is a Continual Learning Problem}},
  year = {2018},
  eprint = {1811.11083},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1811.11083},
}
Figure