Abstract
Neural networks notoriously forget old tasks when learning new ones, a flaw known as catastrophic forgetting. This paper introduces a Deep Generative Dual Memory Network (DGDMN) inspired by the mammalian brain, utilizing a fast-learning short-term memory and a slow-consolidating long-term memory. By periodically "sleeping" to consolidate memories via generative replay, the model successfully learns sequential tasks without losing past knowledge, even outperforming standard generative replay approaches.
The Challenge of Catastrophic Forgetting
When humans learn a new skill, we don't instantly overwrite everything we learned previously. Standard neural networks, however, suffer from "catastrophic forgetting." When trained sequentially on a stream of new tasks, a network's weights update to minimize the new objective, effectively erasing the representations of older tasks.
To prevent this, models usually need to be trained on all data jointly, which violates the reality of sequential, real-world data streams. While one could theoretically store all past data in a massive buffer to replay alongside new data, this is highly memory-intensive and often infeasible. The authors tackle the challenge of building a system that can learn continually from a sequence of tasks using limited memory capacity, without explicitly storing old raw data.
Biologically Inspired Dual Memory Architecture
The authors propose a biologically inspired architecture mimicking the brain's Complementary Learning Systems (the hippocampus for short-term memory and the neocortex for long-term memory).
- Deep Generative Replay (DGR): Instead of storing raw historical data, the model uses a generative model (a Variational Autoencoder, or VAE) to learn the distribution of past data. When a new task arrives, the VAE generates "fake" examples of past tasks. These generated memories are mixed with the new data to retrain the network, preventing it from forgetting the past.
- Dual Memory Architecture (DGDMN): The system is split into a large Long-Term Memory (LTM) and multiple small Short-Term Task Memories (STTMs). When a new task arrives, a dedicated STTM learns it quickly. Once the STTMs are full, the network enters a "sleep" phase. During sleep, the STTMs generate samples of the newly learned tasks and pass them to the LTM. The LTM then consolidates these new tasks alongside its own generated memories of older tasks.
Key Insights
- Sleep is a scalable design choice: Updating a massive long-term memory after every single task is slow and causes generative errors to compound quickly. Batching updates via "sleep" phases keeps the LTM accurate, reduces error compounding, and speeds up training.
- Task descriptors aren't strictly necessary: DGDMN can operate without explicit task labels by using the VAE's reconstruction error to automatically recognize which task a new sample belongs to.
- Generative replay beats random sampling: Non-generative replay (like pseudo-pattern rehearsal) fails in high-dimensional spaces like images. A true generative model is required to preserve complex learned mappings.
Experimental Evaluation
The authors evaluated their model on several image classification sequences, including Permnist, Digits, TDigits (40 tasks), Shapes, and Hindi characters. DGDMN effectively halted catastrophic forgetting across all datasets, vastly outperforming baselines like Elastic Weight Consolidation (EWC) and standard Neural Networks (NN).
On the challenging Digits dataset, DGDMN achieved an average accuracy of 81.8% across all tasks, compared to just 10% for EWC and NN (which essentially guessed randomly after forgetting). On the long 40-task TDigits sequence, DGDMN maintained ~90% accuracy on the 10 most recently observed tasks, whereas single-memory DGR models degraded due to compounding generation errors.
Conclusion
The DGDMN framework demonstrates that a dual-memory system with generative consolidation is a robust solution for continual learning. While the quality of the generator remains a bottleneck, the architecture's ability to minimize backward transfer (BWT) and handle long sequences marks a significant step toward brain-like learning in artificial systems. Future work aims to integrate synaptic consolidation and apply the model to Reinforcement Learning scenarios.
Summary updated