NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Hebbian Continual Representation Learning

Pawel Morawiecki, Andrii Krutsylo, Maciej Wolczyk, Marek Smieja · DOI

TL;DR

This paper introduces HebbCL, a novel approach to Continual Learning (CL) inspired by biological principles like Hebbian learning and network sparsity. HebbCL excels in unsupervised CL, a challenging setting where models must learn new tasks without labels, and demonstrates competitive performance in supervised CL, offering interpretable representations crucial for real-world applications.

What Problem Does This Paper Address?

Traditional machine learning models assume data is independent and identically distributed (i.i.d.), meaning all data points come from the same distribution and are independent of each other. This is highly unrealistic for how humans learn. In the real world, we continuously encounter new information and tasks, and our knowledge evolves. Continual Learning (CL) aims to equip AI with this ability, allowing models to learn sequentially without forgetting previously acquired knowledge (catastrophic forgetting).

A significant challenge in CL is the "unsupervised setting," where models must learn new tasks without explicit labels or even knowledge of when one task ends and another begins. This mirrors how humans often learn from observation and experience. Existing CL methods often rely on supervised learning or require extensive data replay, which are not always feasible or biologically plausible. This paper tackles the gap in effective and biologically inspired unsupervised CL.

Methods

The core of HebbCL lies in its biologically inspired principles:

  • Local Hebbian Learning: Instead of global gradient descent, HebbCL uses a simplified Krotov-Hopfield rule. This rule updates synaptic weights based on the correlation between pre- and post-synaptic activity, mimicking the "neurons that fire together, wire together" principle. This local learning is less prone to catastrophic forgetting.
  • Sparsity: The network employs sparse connections and activations, enforced by a "k-winners-take-all" mechanism. This means only the most active neurons contribute to the output, making the representations more focused and efficient.
  • Dynamic Network Expansion: To maintain learning capacity as new tasks are learned, HebbCL dynamically adds new neurons to the network. This prevents the network from becoming saturated with frozen weights.
  • Weight Freezing: When a neuron's weights converge to represent a specific input pattern, they are "frozen." This prevents them from being overwritten by subsequent learning, preserving learned representations.

HebbCL builds a representation using a single, wide, fully-connected layer. The algorithm iteratively updates weights, freezes converged neurons, and adds new ones as needed.

Datasets

The paper evaluates HebbCL on the following standard datasets:

  • MNIST: A widely used dataset of handwritten digits.
  • Omniglot: A dataset of handwritten characters from various alphabets, known for its higher sample variance.
  • CIFAR-10: A dataset of natural images, used in the supervised setting.

For Omniglot, the authors treat each alphabet as a separate class in the unsupervised setting. For supervised CL, they use a class-incremental setup where tasks are presented sequentially, and each task involves classifying between two classes.

Key Insights and Ideas

  • Hebbian Learning for Unsupervised CL: The paper demonstrates that biologically inspired Hebbian learning, combined with sparsity and dynamic expansion, can be a powerful alternative to gradient-based methods for unsupervised continual learning.
  • Interpretability is Key: A significant advantage of HebbCL is the interpretability of its weights. Visualizations show that neurons learn to represent specific features or classes, which is crucial for applications requiring transparency and trust (e.g., security, healthcare).
  • Unsupervised CL is Feasible and Effective: By focusing on the challenging unsupervised setting, the authors show that it's possible to achieve competitive results without relying on explicit labels, bringing AI closer to human-like learning.
  • Sparsity and Expansion Work Together: The combination of sparsity (k-winners) and dynamic expansion is vital. Sparsity focuses learning, while expansion ensures the network has room to grow and accommodate new information without overwriting old knowledge.

Key Results

  • Unsupervised Learning: HebbCL achieves state-of-the-art results on the Omniglot dataset for both cluster accuracy and k-NN error, outperforming the CURL benchmark. For MNIST, it reaches comparable performance to CURL.
  • Supervised Learning: In the class-incremental supervised setting, HebbCL demonstrates competitive results, outperforming regularization-based methods and being close to state-of-the-art parameter-isolation methods on MNIST and CIFAR-10.
  • Ablation Study: Removing any of the core components (Hebbian learning, freezing, expansion, k-winners) significantly degrades performance, highlighting the importance of each element. Notably, omitting the k-winners layer drastically reduces cluster accuracy.
  • Memory Efficiency: HebbCL uses significantly less memory than methods like CURL.

Limitations and Future Work

  • Network Architecture: The current HebbCL implementation uses shallow, wide networks. Scaling HebbCL to deeper networks while preserving its CL properties and interpretability is a key challenge and an open research question.
  • Dataset Complexity: While HebbCL performs well, the authors note that Omniglot's complexity (50 classes, high variance) makes the dynamics of the algorithm less predictable compared to MNIST.
  • Future Work: The authors suggest exploring deeper network architectures and investigating how to scale HebbCL for more complex tasks and datasets.

Summary updated

BibTeX
@misc{morawiecki2022hebbian,
  author = {Pawel Morawiecki and Andrii Krutsylo and Maciej Wolczyk and Marek Smieja},
  title = {{Hebbian Continual Representation Learning}},
  year = {2022},
  eprint = {2207.04874},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2207.04874},
}
Figure