TL;DR
This paper introduces Differentiable Hebbian Consolidation, a method that mitigates catastrophic forgetting in neural networks by adding a "fast" plastic component to the "slow" weights of the output layer. By making Hebbian plasticity differentiable, the model learns to balance stability and plasticity, outperforming standard consolidation methods across several continual learning benchmarks.
What Problem Does This Paper Address?
Deep Neural Networks (DNNs) excel at learning single complex tasks but suffer from catastrophic forgetting: when trained on a new task, they abruptly lose the knowledge required for previous ones. This happens because standard gradient descent overwrites weights optimized for earlier data.
In the real world, data isn't "independent and identically distributed" (i.i.d.); it arrives in streams with changing distributions (concept drift) and class imbalances. To survive here, a model must navigate the stability-plasticity dilemma—it needs enough plasticity to learn new things quickly, but enough stability to protect what it already knows. While existing "synaptic consolidation" methods (like EWC or SI) try to slow down changes to important weights, they often struggle with rapid adaptation or imbalanced data.
Methods
The authors propose a DHP Softmax layer, which unifies Hebbian learning with standard backpropagation.
- Dual-Weight Synapses: Every connection in the final softmax layer consists of two parts:
- Slow Weights ($\theta$): Standard weights updated slowly via SGD, representing long-term memory.
- Fast Weights ($Hebb$): A plastic component that stores a "compressed episodic memory" of recent activations.
- Differentiable Plasticity: Unlike traditional Hebbian rules, the parameters governing this plasticity—specifically the plasticity coefficient ($\alpha$) and the learning/decay rate ($\eta$)—are learned via backpropagation. The network essentially learns how plastic it needs to be.
- Hebbian Update Rule: During a forward pass, the Hebbian trace is updated by averaging the hidden activations for a specific class. This allows the model to "bind" labels to representations rapidly.
- Hybrid Approach: The authors integrate DHP with well-known consolidation methods (Elastic Weight Consolidation, Synaptic Intelligence, and Memory Aware Synapses). The consolidation method protects the "slow" weights, while the DHP component handles the "fast" episodic updates.
Datasets
The model was evaluated on several standard and one novel benchmark:
- Permuted MNIST: A classic test for concept drift where pixels are shuffled differently for each task.
- Split MNIST: A task-incremental benchmark where the digits 0-9 are split into five binary classification pairs.
- Vision Datasets Mixture: A challenging sequence of five distinct datasets (MNIST, notMNIST, FashionMNIST, SVHN, and CIFAR-10).
- Imbalanced Permuted MNIST (New): Introduced by the authors to simulate real-world conditions where some classes are rare and the distribution shifts over time.
Key Insights and Ideas
- The "Compressed Episodic Memory": By accumulating hidden activations into the Hebbian trace, the network creates a lightweight version of an episodic memory system (similar to the biological hippocampus) without needing to store raw data samples.
- Learning to Forget (Selectively): The learned decay parameter $\eta$ allows the network to automatically reduce plasticity after a task is learned to prevent new information from interfering with old representations.
- Synergy is Key: The most significant finding is that DHP and synaptic consolidation are complementary. Consolidation provides the "structural" stability, while DHP provides the "functional" flexibility to handle rare classes and rapid shifts.
- Zero Extra Hyperparameters: Because $\alpha$ and $\eta$ are learned through gradient descent, the method doesn't require the manual "hyperparameter hacking" often associated with plastic networks.
Key Results
The DHP-augmented models consistently outperformed their "vanilla" counterparts:
- Permuted MNIST: DHP Softmax combined with Memory Aware Synapses (MAS) achieved 89.53% average accuracy, compared to 76.73% for a standard fine-tuned MLP.
- Split MNIST: The DHP + Synaptic Intelligence (SI) combo reached 99.15% accuracy, effectively eliminating forgetting in that scenario.
- Imbalanced Data: On the new Imbalanced Permuted MNIST, DHP Softmax alone provided a 4.41% improvement over the baseline, proving its worth for "rare" edge cases.
- Backward Transfer (BWT): The DHP models showed significantly lower negative BWT, meaning they were much better at retaining old knowledge while learning the 10th or 20th task in a sequence.
Limitations and Future Work
- Output Layer Focus: This study primarily applies DHP to the softmax output layer. While effective, the authors note that extending this plasticity to deeper convolutional or recurrent layers could further improve representation learning.
- Task Boundaries: The experiments rely on the "task-incremental" setting where the model knows when a new task begins. Future work could explore "task-agnostic" settings where boundaries are blurred.
- Computational Cost: While the authors claim it scales well, maintaining the Hebbian trace matrix adds a memory overhead proportional to the number of classes and hidden units.
Overall, this paper provides a compelling bridge between bio-inspired Hebbian learning and modern deep learning, offering a practical path toward AI that learns more like humans do—continuously and without forgetting.
Summary updated