Introduction
Standard deep generative models, such as Generative Adversarial Networks (GANs), suffer from a fundamental limitation: they are "forgetful." Unlike humans, who can learn new concepts without erasing prior knowledge, GANs typically experience "catastrophic forgetting." When a model trained on one distribution (e.g., images of cats) is subsequently trained on another (e.g., images of dogs), the network weights shift to optimize for the new task, destroying the configuration required for the original task. This paper proposes a method to enable continual learning in GANs by adapting Elastic Weight Consolidation (EWC).
Methodology
The authors address catastrophic forgetting by combining Conditional GANs (cGANs) with a modified version of EWC originally designed for classification tasks.
- Conditional GANs: By using class labels as conditional inputs, the model creates specific associations between parts of its capacity and distinct data distributions.
- Elastic Weight Consolidation (EWC): After training on an initial task, the Fisher Information Matrix is calculated to identify weights critical for the Generator's performance on that specific task.
- Augmented Loss: During subsequent tasks, the Generator's loss function includes a quadratic penalty that discourages significant changes to these critical weights. This "stiffens" important parameters while allowing less critical ones to adapt to new data.
Experimental Results
The approach was validated on the MNIST and SVHN datasets. On MNIST, the model was trained sequentially on different digit classes to test its retention capabilities.
As shown in Figure 1, the model successfully retains the ability to generate digits from the first training session (1 and 2) even after completing a second session focused on a new digit (3). Without EWC, the representations of '1' and '2' would typically warp or disappear entirely as the model shifts to accommodate '3'.
Key Insights
- The Discriminator as a Teacher: The EWC penalty protects weights that are vital for "fooling" the Discriminator on previous tasks. If a weight is essential to making a generated digit look "real," it is preserved.
- Structural Preservation: Qualitative analysis revealed that EWC prevents the physical deformation of old classes (e.g., a '1' warping into a '3') during sequential learning.
- Scalability: The method proved effective on the more complex SVHN dataset using a Deep Convolutional GAN (DCGAN) architecture, demonstrating that the approach is not limited to simple multi-layer perceptrons.
Discussion and Limitations
While the structure of previously learned classes is preserved, some "salt and pepper" noise can appear in older samples. This occurs because the Discriminator is only actively trained on the current task's distribution, losing its "sharpness" for older tasks. Additionally, the method currently requires explicit knowledge of task boundaries to compute the Fisher matrix, which may not be available in all real-world streaming data scenarios.
Conclusion
By integrating EWC into the GAN training framework, the authors demonstrate that fixed-capacity generative models can learn a sequence of tasks without catastrophic forgetting. This represents a significant step toward more robust, human-like learning in artificial generative systems.
Summary updated