Abstract
The main challenge in continual learning for generative models is to effectively learn new target modes with limited samples while preserving previously learned ones. To this end, we introduce a new continual learning approach for conditional generative adversarial networks by leveraging a mode-affinity score specifically designed for generative modeling. First, the generator produces samples of existing modes for subsequent replay. The discriminator is then used to compute the mode similarity measure, which identifies a set of closest existing modes to the target. Subsequently, a label for the target mode is generated and given as a weighted average of the labels within this set. We extend the continual learning model by training it on the target data with the newly-generated label, while performing memory replay to mitigate the risk of catastrophic forgetting. Experimental results on benchmark datasets demonstrate the gains of our continual learning approach over the state-of-the-art methods, even when using fewer training samples.
Introduction
Generative Adversarial Networks (GANs) are powerful tools for data synthesis, but they face significant hurdles in continual learning environments. When a pre-trained GAN is tasked with learning a new category—a "mode"—it often suffers from catastrophic forgetting, where it gains proficiency in the new task at the total expense of previously learned ones.
This challenge is particularly acute in few-shot learning scenarios, where a model might only have 10 or 20 examples of a new category. Most existing methods either over-constrain the model, preventing it from learning the new task effectively, or require massive amounts of data to maintain stability. Researchers at Duke University have identified a missing link: generative models have lacked a reliable way to measure "task similarity" to determine which existing knowledge is relevant to a new challenge. To address this, they proposed a novel framework for "Mode-Aware" continual learning.
Methodology
The proposed framework introduces a three-stage process to integrate new data while preserving old knowledge efficiently.
1. Discriminator-based Mode Affinity Score (dMAS)
Unlike standard metrics like FID that compare image distributions in a fixed feature space, dMAS looks at the model's internal state. It calculates similarity between tasks by comparing the Hessian matrices of the discriminator’s loss function. Essentially, it measures how the model's internal "understanding" of the loss landscape changes between the source and target data, identifying which existing modes are most similar to the new target.
2. Mode-Aware Fine-Tuning
Once dMAS identifies the "closest" existing modes, the system generates a weighted label embedding. Rather than assigning the new task a random identifier, the model represents the new task as a linear combination of its closest relatives in the embedding space. This allows the generator to "borrow" relevant features from known categories to jumpstart the learning of the new, data-scarce category.
3. Memory Replay
To prevent forgetting, the generator produces synthetic samples of previous modes during the training of the new mode. This "generative replay" ensures the discriminator maintains its ability to distinguish old categories while it learns the boundaries of the new one.
Key Insights and Semantic Mapping
A key "aha" moment in this research is using the discriminator as a teacher. Because the discriminator learns the boundary of "real vs. fake," its internal curvature is a powerful proxy for how much effort it takes to shift from one data distribution to another.
As seen in the "atlas plots" (Figure 5), the dMAS metric naturally clusters semantically similar items—such as grouping vehicles together or separating different types of animals—without being explicitly told they are related. This emergent semantic mapping confirms that the model is effectively identifying and leveraging shared features between tasks.
Experimental Results
The proposed MA-Continual Learning approach consistently outperformed state-of-the-art methods like EWC-GAN and Lifelong-GAN across benchmarks including MNIST, CIFAR-10, CIFAR-100, and the Oxford Flower dataset:
- Superior Few-Shot Performance: In 10-shot scenarios on CIFAR-100 (e.g., learning "Bus" images), the method achieved an FID score of 57.16, significantly better than the next best baseline (FID 61.34).
- Preservation of Old Tasks: While adding new modes, the model maintained lower FID scores for previous tasks compared to sequential fine-tuning, where scores typically skyrocket as forgetting sets in.
- Stability: The dMAS metric proved robust against different random initializations, making it a reliable tool for real-world engineering.
Conclusion and Future Work
While the framework shows great promise, the authors note that calculating full Hessian matrices is computationally expensive. Future work will look at scaling these methods to massive models like StyleGAN or Diffusion models. Additionally, in very fine-grained datasets like Oxford Flowers, the model occasionally experienced "mode confusion" between visually identical species, suggesting that further refinement of the affinity weighting may be necessary. Nonetheless, this mode-aware approach provides a principled path forward for lifelong learning in generative AI.
Summary updated