Abstract
Catastrophic forgetting/interference is a critical problem for lifelong learning machines, which impedes the agents from maintaining their previously learned knowledge while learning new tasks. Neural networks, in particular, suffer plenty from the catastrophic forgetting phenomenon. Recently there has been several efforts towards overcoming catastrophic forgetting in neural networks. Here, we propose a biologically inspired method toward overcoming catastrophic forgetting. Specifically, we define an attention-based selective plasticity of synapses based on the cholinergic neuromodulatory system in the brain. We define synaptic importance parameters in addition to synaptic weights and then use Hebbian learning in parallel with backpropagation algorithm to learn synaptic importances in an online and seamless manner. We test our proposed method on benchmark tasks including the Permuted MNIST and the Split MNIST problems and show competitive performance compared to the state-of-the-art methods.
Introduction: The Stability-Plasticity Dilemma
Artificial Neural Networks (ANNs) typically operate under the assumption of uniform plasticity, where every weight in the network is equally susceptible to modification during training. While effective for static, i.i.d. (independent and identically distributed) datasets, this approach fails in lifelong learning scenarios. When a network trained on Task A is subsequently trained on Task B, the gradients for the new task often overwrite the weights optimized for the previous one. This phenomenon, known as catastrophic forgetting, prevents agents from functioning in non-stationary environments where data distributions shift over time.
To address this, a system must balance plasticity (the capacity to acquire new information) with stability (the preservation of existing knowledge). This research proposes a biologically inspired framework that leverages top-down attention to manage this balance.
Methodology: Attention-Based Selective Plasticity
The proposed method mimics the brain's cholinergic neuromodulatory system, which directs attention toward task-relevant stimuli. The framework consists of three integrated components:
1. Importance Identification via c-EB
The system utilizes contrastive Excitation Backpropagation (c-EB), a top-down attention mechanism. Unlike standard backpropagation, c-EB starts at the output layer and moves backward to identify specific neurons and connections most responsible for a given prediction. This effectively maps the "functional anatomy" of a task within the network.
2. Synaptic Importance Updates
Each synapse is assigned an importance parameter ($\gamma$) alongside its weight ($\theta$). If the attention mechanism highlights both the pre-synaptic and post-synaptic neurons, the connection is deemed important. To ensure stability and prevent these values from growing boundlessly, the researchers employ Oja’s rule, a variant of Hebbian learning that incorporates a normalization term.
3. Selective Regularization
During the learning of subsequent tasks, the loss function is modified with a penalty term. This term discourages significant changes to weights that possess high $\gamma$ values from previous tasks. Crucially, this process occurs online and seamlessly alongside standard training, removing the need for discrete "consolidation phases" between tasks.
Experimental Evaluation
The framework was evaluated on two primary benchmarks:
- Permuted MNIST: A sequence of five tasks where pixels are randomly shuffled for each task, requiring the network to learn entirely distinct spatial representations for the same digit labels.
- Split MNIST: A sequence where the network learns pairs of digits sequentially (e.g., 0 and 5, then 1 and 6). This tests the ability to expand output vocabulary without losing prior classes.
Key Results and Insights
The proposed method demonstrated significant resilience against interference. On the Permuted MNIST benchmark, a vanilla neural network's accuracy on the first task dropped toward 0% almost immediately upon starting the second task. In contrast, the attention-based method maintained Task 1 accuracy at 95-98% even after completing four additional tasks.
Furthermore, the method performed competitively with state-of-the-art algorithms such as Elastic Weight Consolidation (EWC) and Synaptic Intelligence (SI). A notable advantage is the method's robustness; it achieved high performance with minimal hyperparameter tuning, whereas methods like SI are often sensitive to specific regularization constants.
Conclusion and Future Directions
By using attention as a functional gate for plasticity, this research provides a path toward more biologically plausible and robust lifelong learning agents. Future work will focus on scaling this mechanism to higher-dimensional data, such as ImageNet, and exploring its application in Reinforcement Learning, where agents must navigate constantly shifting environments.
Summary updated