Triple Memory Networks: a Brain-Inspired Method for Continual Learning

Liyuan Wang, Bo Lei, Qian Li, Hang Su, Jun Zhu, Yi ZhongIEEE TNNLS 2020 · DOI

Introduction

Deep Neural Networks (DNNs) face a significant challenge known as catastrophic forgetting: when trained on a sequence of tasks, they often overwrite parameters critical for previous tasks to accommodate new information. While generative replay—using a model to generate "fake" data of old tasks—is a common solution, it suffers from two primary issues: the distribution gap (imperfect generated data) and functional interference (conflicting objectives within a single network).

Biological Motivation: Complementary Learning Systems

Triple-Memory Networks (TMNs) are inspired by the brain's Complementary Learning Systems (CLS) theory. In biological systems, memory is not a monolithic process but an interplay between specialized regions. The hippocampus handles fast, specific learning of new experiences, while the neocortex (including the prefrontal and sensory cortices) manages slow, generalized consolidation of knowledge.

Biological inspiration for the Triple-Memory Network, illustrating the roles of the hippocampus, prefrontal cortex, and sensory cortex in memory consolidation.

The Triple-Memory Architecture

To address the limitations of standard generative models, the authors propose a three-component architecture that maps directly to these brain regions:

  1. The Generator ($G$) / Hippocampus: This module encodes high-fidelity representations of specific data. To prevent internal forgetting, it employs an extendable architecture with hard attention masks, ensuring new tasks do not overwrite neurons dedicated to prior knowledge.
  2. The Discriminator ($D$) / Prefrontal Cortex (PFC): This component acts as a gatekeeper, assessing the familiarity of inputs and regulating the encoding process.
  3. The Classifier ($C$) / Sensory Cortex (SC): A dedicated module for generalized knowledge, focused solely on the final classification task.
The TMN training workflow across sequential tasks, highlighting the consolidation of generalized knowledge in the classifier and specific experience in the generator.

Bridging the Distribution Gap

A key innovation in TMNs is the use of Elastic Weight Consolidation (EWC) within the Discriminator and Classifier. By penalizing changes to parameters important for previous tasks, EWC anchors the model to the original real-data distributions, effectively mitigating the noise introduced by imperfectly replayed data from the generator.

Experimental Results

The TMN model was evaluated against state-of-the-art (SOTA) generative replay methods on several benchmarks, including MNIST, SVHN, CIFAR-10, and ImageNet-50.

  • ImageNet-50: In a class-incremental setup, TMNs achieved 28.08% accuracy, a substantial improvement over the previous best method, DGMw, which reached 17.82%.
  • SVHN: TMNs achieved 77.08% accuracy across a 10-class sequence, outperforming DGMw's 74.38%.

The results demonstrate that the "Triple" architecture—specifically the separation of classification and discrimination—is crucial for stability as dataset complexity increases.

Conclusion

Triple-Memory Networks provide a robust framework for continual learning by mimicking the specialized memory systems of the brain. By separating concerns between generation, discrimination, and classification, and applying brain-inspired regularization, TMNs significantly reduce catastrophic forgetting. Future work will focus on scaling these systems to higher-resolution datasets and exploring more complex forms of synaptic plasticity.

Summary updated

BibTeX
@article{wang2020triple,
  author = {Liyuan Wang and Bo Lei and Qian Li and Hang Su and Jun Zhu and Yi Zhong},
  title = {{Triple Memory Networks: a Brain-Inspired Method for Continual Learning}},
  journal = {IEEE Trans. Neural Networks Learn. Syst.},
  year = {2020},
  doi = {10.1109/tnnls.2021.3111019},
}
Figure