Intelligent synapses for multi-task and transfer learning

Ben Poole, Friedemann Zenke, Surya GanguliWorkshops @ ICLR 2017

Overview

Standard deep learning models excel at static tasks but struggle significantly with continual learning. When a typical neural network is trained on a new task, the weight updates often overwrite the knowledge required for previously learned tasks—a phenomenon known as catastrophic forgetting.

In contrast, biological brains learn a lifetime of diverse tasks without losing previous skills. Biological synapses are not just simple scalar values; they possess complex molecular machinery that helps stabilize important connections. This paper introduces "intelligent synapses," a method that brings this biological complexity into artificial neural networks. By allowing individual synapses to estimate their own importance, the model can protect critical "memories" while remaining computationally efficient and fully online.

How It Works

The authors propose a structural regularization framework. The core idea is to penalize changes to "important" weights more heavily than changes to "unimportant" ones.

  1. Local Importance Measure: To determine which synapses are important, the authors track the "work" each synapse does during training. They use a path integral of the gradient field, calculating the product of the gradient and the weight update at every step. If a synapse’s changes consistently lead to a large decrease in the loss function, it is flagged as highly important.
  2. Surrogate Loss: After a task is completed, the importance values are consolidated into a per-synapse strength parameter ($\Omega_k$). When learning the next task, a quadratic penalty is added to the loss function: $$\tilde{L}(\theta) = L(\theta) + c \sum_k \Omega_k (\theta_k - \tilde{\theta}_k)^2$$ This "pulls" important weights back toward their previous values ($\tilde{\theta}_k$), preventing them from drifting too far and breaking old tasks.

  3. Online Efficiency: Unlike previous methods like Elastic Weight Consolidation (EWC)—which require a separate, computationally expensive phase to calculate Fisher Information after a task is done—intelligent synapses calculate importance online during the normal training process with minimal overhead.

Key Insights

  • Synapses as Historical Agents: Instead of treating weights as static numbers, they are treated as entities that "remember" their contribution to the model's success.
  • The Power of the Path Integral: Using the trajectory of learning provides a more nuanced view of importance than just looking at the final state of the network.
  • Data-Independent Regularization: Because importance is stored within the synapses themselves, the model doesn't need to store or replay old training data, making it highly memory-efficient.
  • Synergy with Transfer Learning: The method helps the model "pick up where it left off." When data is scarce for a new task, intelligent synapses act as a sophisticated prior, improving generalization.

Experimental Results

The researchers evaluated their approach on several classic benchmarks for continual and transfer learning, including Split MNIST, Permuted MNIST, CIFAR-10, and MNIST-bg.

Overcoming Forgetting

In the Split MNIST benchmark (where the dataset is split into five binary classification tasks), standard networks quickly dropped to chance-level accuracy on earlier tasks after learning new ones. Intelligent synapses, however, maintained high accuracy across all five tasks simultaneously.

Accuracy on Split MNIST tasks showing intelligent synapses (c=1) preventing catastrophic forgetting compared to a standard network (c=0).

Competitive with State-of-the-Art

On the Permuted MNIST task, the method performed on par with EWC, retaining performance over many sequential tasks. Crucially, intelligent synapses achieved these results "online," without the extra computation phase required by EWC.

Performance on the permuted MNIST task. Intelligent synapses (green) and EWC (grey) retain accuracy over many tasks, while the unregularized network (blue) forgets.

Superior Transfer

In low-data scenarios (e.g., transferring knowledge to MNIST with complex backgrounds using only 10 examples per class), intelligent synapses significantly outperformed standard fine-tuning and "freezing" techniques. This demonstrates that preserving structure from previous tasks is highly beneficial for new, related problems.

Limitations and Future Work

While highly effective, the approach has a few limitations:

  • Task Boundaries: The current implementation relies on knowing exactly when one task ends and another begins to update the baseline weights. In true "wild" continual learning, these boundaries might be fuzzy or non-existent.
  • Hyperparameter Sensitivity: The strength of the regularization ($c$) must be tuned manually. If it's too high, the model struggles to learn new things; if it's too low, it still forgets.
  • Memory Overhead: The method requires storing two additional values per synapse (the running importance and the consolidated importance), effectively tripling the parameter storage requirements.

Future work will likely explore more complex internal synaptic states, moving even closer to the biological complexity that inspired this research.

Summary updated

BibTeX
@inproceedings{poole2017intelligent,
  author = {Ben Poole and Friedemann Zenke and Surya Ganguli},
  title = {{Intelligent synapses for multi-task and transfer learning}},
  booktitle = {Workshops @ ICLR},
  year = {2017},
}
Figure