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

Learning to Remember: A Synaptic Plasticity Driven Framework for Continual Learning.

Oleksiy Ostapenko, Mihai Marian Puscas, Tassilo Klein, Patrick Jähnichen, Moin Nabi

Abstract

Models trained in the context of continual learning (CL) should be able to learn from a stream of data over an undefined period of time. The main challenges herein are: 1) maintaining old knowledge while simultaneously benefiting from it when learning new tasks, and 2) guaranteeing model scalability with a growing amount of data to learn from. In order to tackle these challenges, we introduce Dynamic Generative Memory (DGM) - synaptic plasticity driven framework for continual learning. DGM relies on conditional generative adversarial networks with learnable connection plasticity realized with neural masking. Specifically, we evaluate two variants of neural masking: applied to (i) layer activations and (ii) to connection weights directly. Furthermore, we propose a dynamic network expansion mechanism that ensures sufficient model capacity to accommodate for continually incoming tasks. The amount of added capacity is determined dynamically from the learned binary mask. We evaluate DGM in the continual class-incremental setup on visual classification tasks.

Introduction

Standard Deep Neural Networks suffer from catastrophic forgetting: when trained on a new set of classes, they quickly overwrite weights used for previous tasks. Continual Learning (CL) aims to mitigate this. While task-incremental setups provide task identity at inference, the class-incremental setup requires the model to distinguish between all seen classes without such hints, presenting a significantly harder challenge. Many existing solutions rely on storing a buffer of real images for replay, which often violates data privacy and memory constraints. This work addresses the strict class-incremental setup where old data is deleted immediately, and memory is restricted to a generative model.

Methodology: Dynamic Generative Memory (DGM)

The proposed DGM framework utilizes a conditional GAN (specifically an AC-GAN) as a "generative memory." To prevent semantic drift during retraining on new tasks, the authors implement neural masking inspired by synaptic plasticity.

Overview of the DGM framework showing the interaction between the generator (G), discriminator (D), and the synthesized/real data streams.

Synaptic Plasticity via Neural Masking

DGM learns a binary mask for the network. Once a task is learned, the weights associated with it are "locked." Subsequent tasks are learned using only the remaining "free" weights. The authors explore two masking strategies:

  • DGMa: Masks applied to layer activations (neurons).
  • DGMw: Masks applied directly to connection weights.

To enable backpropagation through binary masks, a sigmoid function with an annealing temperature parameter is used to push values toward 0 or 1.

Dynamic Network Expansion

As knowledge is preserved by locking weights, the network's capacity eventually depletes. DGM introduces a dynamic expansion mechanism that adds new neurons to layers based on the learned binary mask, ensuring a constant amount of free parameters for future learning.

Experimental Evaluation

The framework was evaluated on four standard benchmarks: MNIST, SVHN, CIFAR-10, and ImageNet-50 (a 50-class subset resized to 32x32).

Key Results

DGM consistently outperformed existing generative replay methods like DGR and MeRGAN. On MNIST, it achieved 96.46% accuracy after 10 tasks, approaching the joint training upper bound of 98.1%.

Accuracy across sequential tasks for different training regimes, comparing Joint Training (JT), DGMw, No replay, and DGMw with a small real-data buffer.

In the ImageNet-50 setup, DGMw maintained a Top-5 accuracy of 17.82% in the strictest setup. Performance improved significantly when a small buffer of real samples (10-25%) was allowed, outperforming state-of-the-art methods like iCaRL.

Discussion and Insights

  • Efficiency of Weight Masking: DGMw proved more efficient than DGMa, leading to better parameter reuse and slower network growth.
  • Sub-linear Growth: The network expansion is sub-linear; as the model matures, it becomes more adept at reusing previously learned features.
  • Memory Compression: For ImageNet-50, the generative memory (228MB) was more space-efficient than storing raw training images (315MB), validating generative replay as a viable compression strategy.

Conclusion and Future Work

DGM provides a robust framework for strict class-incremental learning without real-data storage. However, it currently lacks a mechanism for "backward transfer"—where new learning enhances performance on previous tasks. Future work may also address potential saturation in extremely long task sequences and the inherent complexity of training GANs with additional masking and expansion components.

Summary updated

BibTeX
@inproceedings{ostapenko2019learning,
  author = {Oleksiy Ostapenko and Mihai Marian Puscas and Tassilo Klein and Patrick Jähnichen and Moin Nabi},
  title = {{Learning to Remember: A Synaptic Plasticity Driven Framework for Continual Learning.}},
  booktitle = {CVPR},
  year = {2019},
  url = {https://openreview.net/forum?id=rQNvzNmgu6r},
}
Figure