Backpropagation of Hebbian plasticity for lifelong learning

Thomas MiconiarXiv 2016

Abstract

Hebbian plasticity is a powerful principle that allows biological brains to learn from their lifetime experience. By contrast, artificial neural networks trained with backpropagation generally have fixed connection weights that do not change once training is complete. While recent methods can endow neural networks with long-term memories, Hebbian plasticity is currently not amenable to gradient descent. Here we derive analytical expressions for activity gradients in neural networks with Hebbian plastic connections. Using these expressions, we can use backpropagation to train not just the baseline weights of the connections, but also their plasticity. As a result, the networks "learn how to learn" in order to solve the problem at hand: the trained networks automatically perform fast learning of unpredictable environmental features during their lifetime, expanding the range of solvable problems. We test the algorithm on various on-line learning tasks, including pattern completion, one-shot learning, and reversal learning. The algorithm successfully learns how to learn the relevant associations from one-shot instruction, and fine-tunes the temporal dynamics of plasticity to allow for continual learning in response to changing environmental parameters. We conclude that backpropagation of Hebbian plasticity offers a powerful model for lifelong learning.

Introduction

Standard artificial neural networks (ANNs) typically suffer from a fundamental limitation: their weights are frozen after the training phase. This rigidity prevents them from adapting to new information or changing environments without extensive retraining, which often leads to catastrophic forgetting. In contrast, biological brains utilize Hebbian plasticity—the principle that "neurons that fire together, wire together"—to continuously update connections throughout their lifetime.

While researchers have built architectures with external memory (like Neural Turing Machines) to address this, integrating biological Hebbian plasticity directly into backpropagation has been mathematically challenging. Because a plastic synapse changes over time based on the history of activity, calculating gradients requires unrolling complex, time-dependent interactions. This paper bridges that gap by providing the exact analytical gradients needed to make Hebbian plasticity differentiable.

Methods: Differentiable Plasticity

The proposed framework determines the strength of every connection through three components:

  1. Baseline weight ($w_k$): The standard, unchanging component of the connection.
  2. Plasticity coefficient ($\alpha_k$): A learned parameter that dictates how much a specific connection should be influenced by recent experience.
  3. Hebbian trace ($Hebb_k(t)$): A continuously updating running average of the product of pre-synaptic and post-synaptic neuron activities.

The actual weight of a connection at any moment is $w_k + \alpha_k \times Hebb_k(t)$. By deriving recursive analytical gradients for the network's output with respect to both $w_k$ and $\alpha_k$, standard backpropagation through time (BPTT) can be used to optimize the rules of adaptation themselves. The network is trained over many "episodes." Within an episode, backprop is turned off and the network learns purely via its Hebbian traces. At the end of the episode, backprop updates $w_k$ and $\alpha_k$ to make future within-episode learning more efficient.

Key Insights and Results

One-Shot Learning and Targeted Flexibility

In one-shot learning tasks, the network must classify random patterns after seeing a pattern-label pair exactly once. The algorithm successfully learns to achieve near-zero error for the remainder of an episode after a single instruction. A key finding is the network's "targeted flexibility": it learns to keep connections from "label" inputs fixed and strong, while making connections from "pattern" inputs highly plastic, perfectly tailoring its architecture to the task's logic.

Figure 1: Training error and typical trained network for one-shot learning. The network utilizes excitatory plastic connections (dashed lines) to store new associations rapidly.

Reversal Learning and Negative Plasticity

In reversal learning tasks, labels are suddenly swapped mid-episode. The network demonstrated the ability to re-associate patterns with new labels in a single time step. This flexibility is driven by a surprising discovery: negative plasticity.

Standard positive Hebbian learning creates a positive feedback loop that can make old memories hard to erase. By evolving negative plasticity coefficients ($\alpha < 0$), the network creates a self-correcting loop where the Hebbian trace naturally decays or reverses. This allows the network to rapidly overwrite old associations when the environment changes, avoiding catastrophic forgetting.

Figure 2: Training error and network architecture for reversal learning. The presence of inhibitory plastic connections (blue dashed lines) enables the network to overwrite outdated associations.

Conclusion and Future Work

Backpropagation of Hebbian plasticity offers a powerful model for lifelong learning by enabling networks to "learn how to learn." The trained networks automatically perform fast learning of unpredictable features, expanding the range of solvable problems.

Future work could extend this method to more complex biological rules, such as covariance learning or BCM theory. Additionally, the authors suggest moving toward modulable plasticity, where the network itself outputs signals (akin to neuromodulators like dopamine) to control its own plasticity parameters on the fly, bringing artificial systems even closer to the adaptive capabilities of biological brains.

Summary updated

BibTeX
@misc{miconi2016backpropagation,
  author = {Thomas Miconi},
  title = {{Backpropagation of Hebbian plasticity for lifelong learning}},
  year = {2016},
  eprint = {1609.02228},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1609.02228},
}
Figure