Efficient Continual Adaptation for Generative Adversarial Networks

Sakshi Varshney, Vinay Kumar Verma, Lawrence Carin, Piyush Rai

Abstract

We present a continual learning approach for generative adversarial networks (GANs), by designing and leveraging parameter-efficient feature map transformations. Our approach is based on learning a set of global and task-specific parameters. The global parameters are fixed across tasks whereas the task-specific parameters act as local adapters for each task, and help in efficiently obtaining task-specific feature maps. Moreover, we propose an element-wise addition of residual bias in the transformed feature space, which further helps stabilize GAN training in such settings. Our approach also leverages task similarity information based on the Fisher information matrix. Leveraging this knowledge from previous tasks significantly improves the model performance. In addition, the similarity measure also helps reduce the parameter growth in continual adaptation and helps to learn a compact model. In contrast to the recent approaches for continually-learned GANs, the proposed approach provides a memory-efficient way to perform effective continual data generation. Through extensive experiments on challenging and diverse datasets, we show that the feature-map-transformation approach outperforms state-of-the-art methods for continually-learned GANs, with substantially fewer parameters. The proposed method generates high-quality samples that can also improve the generative-replay-based continual learning for discriminative tasks.

Introduction

Deep learning models are notoriously susceptible to "catastrophic forgetting," a phenomenon where a model trained on a new task overwrites the weights necessary for previous ones. While this has been studied extensively in classification, it remains a significant hurdle for Generative Adversarial Networks (GANs). Existing solutions typically rely on regularization/replay—which often results in blurry, unrealistic images as tasks grow—or model expansion, which leads to an unsustainable "explosion" in model size.

The proposed CAM-GAN framework seeks a balanced solution: a model that can learn indefinitely without forgetting while remaining compact and computationally efficient.

Methodology: The Continual Adaptation Module (CAM)

The core of the framework is the Continual Adaptation Module (CAM). Instead of modifying the "global" weights of a base GAN, the authors freeze the base model and add lightweight, task-specific "adapter" modules.

Architecture of the Continual Adaptation Module (CAM) and its operation on each convolutional layer.

Feature-Map Transformation

Unlike previous work that transforms the weights of a network, CAM-GAN transforms the feature maps (intermediate outputs). Each layer in the generator receives a task-specific adapter consisting of parallel $3 \times 3$ and $1 \times 1$ Groupwise Convolutions (GCO and PWC). These capture spatial and cross-channel information efficiently with minimal parameters.

Residual Bias for Stability

Adding modules to a deep GAN can destabilize training. To mitigate this, the authors introduce a Residual Bias: an element-wise addition of a transformed feature map from the previous layer. This acts as a shortcut that smooths the optimization landscape and prevents the generator from diverging.

Task-Similarity based Transfer Learning (TSL)

To avoid learning every task from scratch, CAM-GAN leverages the Fisher Information Matrix (FIM) to measure task similarity. When a new task arrives, the model identifies the most similar previous task and initializes the new adapter's parameters with those of the "look-alike" task. This "warm-start" significantly improves final image quality and allows for even more compact models.

Experimental Results

The authors evaluated CAM-GAN on unconditional generation across seven diverse datasets (CelebA, Flowers, Cathedrals, Cats, Brain-MRI, Chest X-ray, and Anime) and conditional generation using ImageNet groups.

Qualitative comparison of CAM-GAN against state-of-the-art methods across a sequence of seven diverse generation tasks.

Efficiency and Quality

CAM-GAN consistently achieved lower (better) Fréchet Inception Distance (FID) scores compared to MeRGAN (replay-based) and GAN-Memory (expansion-based). Crucially, it achieved these results with roughly 36% fewer parameters than GAN-Memory. While GAN-Memory requires a 20% increase in parameters per task, CAM-GAN only requires approximately 12.8%.

Qualitative Success

The model successfully generated distinct, high-quality images for medical data and artistic styles within the same sequential training run without cross-contamination or blurring. When used as a "teacher" for generative replay in classification tasks, CAM-GAN's high-quality samples led to significantly higher accuracy on old tasks compared to other GAN-based replay methods.

Conclusion

CAM-GAN demonstrates that feature-map transformation is a highly effective strategy for memory-efficient continual data generation. While the model currently relies on a sufficiently rich base task to learn initial global parameters, it sets a new standard for compact expansion-based GANs. Future work will explore sharing adapters across similar tasks to further reduce parameter growth.

Summary updated

BibTeX
@inproceedings{varshney2021efficient,
  author = {Sakshi Varshney and Vinay Kumar Verma and Lawrence Carin and Piyush Rai},
  title = {{Efficient Continual Adaptation for Generative Adversarial Networks}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2021},
  url = {https://openreview.net/forum?id=2r6F9duQ6o5},
}
Figure