NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Closed-Loop Memory GAN for Continual Learning

Amanda Rios, Laurent Itti

Introduction

Deep neural networks face a significant challenge when learning tasks sequentially: catastrophic forgetting. When a model trained on one set of data is subsequently trained on new classes, it often overwrites the weights necessary for the previous tasks, leading to a sharp decline in performance. This paper introduces CloGAN (Closed-Loop memory replay GAN), a framework designed to mitigate this issue in the demanding context of single-headed incremental class learning. In this scenario, the model must learn to distinguish between all observed classes without explicit task labels during inference.

The CloGAN Architecture

CloGAN addresses catastrophic forgetting through a novel generative replay mechanism that avoids the need for storing multiple model snapshots. The architecture consists of three primary components:

  1. The Closed-Loop Paradigm: Unlike traditional generative replay methods that save copies of the generator for each task, CloGAN maintains a single, continuously evolving Generator and a joint Discriminator/Classifier. It approximates historical data by sampling from the generator's current state, creating a feedback loop that reinforces previous knowledge.
  2. Dynamic Memory Buffer with K-Means: To anchor the generator and prevent "drift," a small external buffer of real images is maintained. To maximize efficiency, CloGAN uses per-class K-means clustering to select the most diverse samples, ensuring the buffer represents the full heterogeneity of the dataset even at very low storage capacities.
  3. Class-Conditioned Filtering (CFM): To maintain the quality of replayed data, an internal classifier filters the generator's output. If a generated image intended for one class is misclassified, it is discarded, preventing the propagation of errors through the training loop.
Overview of the CloGAN architecture featuring the closed-loop generator and dynamic memory buffer.

Experimental Evaluation

The authors evaluated CloGAN on four standard benchmarks: MNIST, Fashion-MNIST, SVHN (Street View House Numbers), and E-MNIST. These datasets were split into disjoint tasks to simulate incremental learning.

Key Results

CloGAN demonstrates state-of-the-art performance, particularly on complex datasets like SVHN. While competing methods like MeRGAN often collapse as more tasks are added, CloGAN maintains high accuracy with minimal memory overhead.

Average accuracy across iterations for MNIST (A), Fashion-MNIST (B), SVHN (C), and E-MNIST (D) datasets.
  • Accuracy Stability: On the SVHN dataset, CloGAN achieved 79.3% accuracy with a 5% buffer and 73.08% with a 1% buffer, significantly outperforming baselines like MeRGAN (~31%).
  • Memory Efficiency: On MNIST, CloGAN reached 98.03% accuracy using only a 1.6% memory allotment, nearly matching the 98.29% performance of a model trained on the full dataset simultaneously.
  • Qualitative Quality: Visual inspections reveal that CloGAN's generated images remain sharp and recognizable over time, avoiding the degradation and blurring common in other generative replay techniques.

Insights and Future Directions

The success of CloGAN highlights the power of stochastic up-sampling. By using the GAN to generate variations around a small set of diverse real-world "anchors" from the buffer, the model achieves robust training without massive storage requirements. The "no-copy" advantage makes CloGAN particularly suitable for resource-constrained environments like edge devices.

Future work may address the inherent instability of GAN training and explore scaling the architecture to higher-resolution natural image datasets like ImageNet, where the representation gap between real and generated data is more pronounced.

Summary updated

BibTeX
@inproceedings{rios2019closed,
  author = {Amanda Rios and Laurent Itti},
  title = {{Closed-Loop Memory GAN for Continual Learning}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2019},
  doi = {10.24963/ijcai.2019/462},
}
Figure