Continual Learning Through Synaptic Intelligence

Friedemann Zenke, Ben Poole, Surya Ganguli

Abstract

Artificial neural networks often suffer from catastrophic forgetting, where learning new tasks leads to the erasure of previously acquired knowledge. We present Synaptic Intelligence (SI), a method that mitigates this issue by allowing synapses to estimate their own importance for past tasks. By tracking the path integral of gradient updates online, SI identifies critical parameters and penalizes their modification during subsequent learning. Our results on sequential MNIST and CIFAR benchmarks demonstrate that SI effectively preserves performance across multiple tasks, outperforming standard stochastic gradient descent and matching the performance of more computationally intensive methods like Elastic Weight Consolidation.

Introduction

A fundamental challenge in artificial intelligence is continual learning—the ability to acquire new skills sequentially without forgetting previous ones. Standard Artificial Neural Networks (ANNs) typically fail this test due to catastrophic forgetting. When a model trained on Task A is subsequently trained on Task B, gradient descent overwrites the weights optimized for Task A to minimize the loss for Task B.

In contrast, biological systems exhibit remarkable stability. The authors suggest that the simplicity of artificial synapses—often modeled as single scalar weights—is a primary limitation. Biological synapses are complex molecular machines with internal states that manage plasticity across various timescales, effectively "protecting" important memories.

The Synaptic Intelligence Framework

The proposed Synaptic Intelligence (SI) framework introduces "intelligent" synapses that track their individual contributions to solving a task. This is achieved through two main components:

  1. Online Importance Tracking: During training, each synapse $k$ calculates a running importance measure $\omega_k^\mu$. This value is the path integral of the gradient along the parameter update trajectory, representing how much that specific weight contributed to reducing the total loss.
  2. Surrogate Loss Function: When transitioning to a new task, a regularization term is added to the objective function. This surrogate loss penalizes changes to weights proportional to their importance in previous tasks, effectively anchoring critical parameters.
Visualization of parameter trajectories under consolidation. The 'Consolidation' path (orange) ensures the model stays within the low-loss region of Task 1 while optimizing for Task 2.

Unlike methods such as Elastic Weight Consolidation (EWC), which require a separate post-training phase to estimate importance using the Fisher Information Matrix, SI computes importance online. This makes it more computationally efficient and biologically plausible.

Experimental Evaluation

The authors evaluated SI on several sequential learning benchmarks:

  • Split MNIST: The dataset is divided into five sequential binary classification tasks (e.g., 0 vs 1, then 2 vs 3).
  • Permuted MNIST: Pixels are randomly shuffled for each task, creating distinct spatial representations that test the network's capacity for diverse learning.
  • Split CIFAR-10/100: Sequential classification using natural images, scaling from CIFAR-10 to subsets of CIFAR-100.

Results and Discussion

The experiments demonstrated that SI significantly mitigates catastrophic forgetting. In the Split MNIST and CIFAR benchmarks, standard networks showed a sharp decline in Task 1 accuracy as soon as Task 2 began. With SI, accuracy on earlier tasks remained stable even after learning multiple subsequent tasks.

Comparison of SI (Ours) against baselines on sequential tasks. SI maintains high accuracy across a large number of tasks, significantly outperforming standard SGD and matching EWC.

Key findings include:

  • Efficiency vs. EWC: SI achieved performance comparable to or better than EWC on Permuted MNIST while avoiding the computationally expensive Fisher Information calculation.
  • Transfer Learning: On CIFAR benchmarks, SI sometimes improved performance on new tasks compared to controls. This suggests that preserving a robust foundation of knowledge can facilitate the acquisition of related new information.
  • Low-Rank Flexibility: Theoretical analysis suggests that the "importance matrix" for many tasks is low-rank. This implies that there are many directions in weight space that do not interfere with previous tasks, providing "room" for continual learning.

Limitations and Future Work

While effective, SI requires tuning hyperparameters like the regularization strength ($c$). Additionally, the current implementation relies on discrete task boundaries to update importance measures, whereas real-world learning is often continuous. Future research will explore scaling these path-integral measures to larger architectures like Transformers and investigating more fluid task transitions.

Summary updated

BibTeX
@inproceedings{zenke2017continual,
  author = {Friedemann Zenke and Ben Poole and Surya Ganguli},
  title = {{Continual Learning Through Synaptic Intelligence}},
  booktitle = {International Conference on Machine Learning},
  year = {2017},
}
Figure