Skip to main content
QUICK REVIEW

[Paper Review] Metalearning with Hebbian Fast Weights

Tsendsuren Munkhdalai, Adam Trischler|arXiv (Cornell University)|Jul 12, 2018
Ferroelectric and Negative Capacitance DevicesEngineering22 references23 citations
TL;DR

This paper proposes a metalearning model that unifies slow weights for representation learning with Hebbian fast weights for one-shot label binding. By using a Hebbian rule to dynamically construct task-specific associative memory matrices, the model achieves state-of-the-art performance on Omniglot, Mini-ImageNet, and Penn Treebank benchmarks while enabling up to 100x faster inference than gradient-based fast weight learning.

ABSTRACT

We unify recent neural approaches to one-shot learning with older ideas of associative memory in a model for metalearning. Our model learns jointly to represent data and to bind class labels to representations in a single shot. It builds representations via slow weights, learned across tasks through SGD, while fast weights constructed by a Hebbian learning rule implement one-shot binding for each new task. On the Omniglot, Mini-ImageNet, and Penn Treebank one-shot learning benchmarks, our model achieves state-of-the-art results.

Motivation & Objective

  • To address the challenge of one-shot learning, where models must rapidly bind new class labels to representations with minimal data.
  • To unify metalearning with associative memory by combining slow weights for shared representations and fast weights for task-specific binding.
  • To develop a computationally efficient metalearning framework that avoids backpropagation through fast weights, enabling faster training and inference.
  • To demonstrate that a Hebbian rule for fast weight construction outperforms gradient-based fast weight learning in few-shot settings.

Proposed method

  • The model uses slow weights, updated via stochastic gradient descent across tasks, to learn deep, generalizable representations of inputs.
  • Fast weights are constructed via a Hebbian learning rule: M ← M + η h_{ℓ-1} h_ℓ^T, where activations from pre- and post-synaptic layers update the memory matrix.
  • The fast weight matrix acts as a linear associative memory (LAM), storing key-value pairs (representations and labels) using the outer product rule: M = Σ k_i v_i^T.
  • During inference, the model retrieves labels by querying the memory matrix with a representation vector: r = M^T q, enabling one-shot label binding.
  • The model is trained end-to-end with joint optimization of slow and fast weights, allowing co-adaptation between representation learning and binding.
  • The fast weight mechanism is applied in fully-connected layers, with ablation studies showing that placing fast weights below the softmax layer improves performance.

Experimental results

Research questions

  • RQ1Can a Hebbian rule for fast weight construction outperform gradient-based fast weight learning in metalearning tasks?
  • RQ2Does combining slow weights for representation learning with fast weights for one-shot binding lead to improved few-shot generalization?
  • RQ3How does the computational efficiency of Hebbian fast weights compare to gradient-based fast weight adaptation in training and inference?
  • RQ4What is the impact of architectural placement of fast weights (e.g., in softmax vs. earlier layers) on model performance?
  • RQ5Can a simple Hebbian mechanism achieve state-of-the-art results without backpropagation through fast weights?

Key findings

  • The model achieves state-of-the-art performance on the Omniglot one-shot learning benchmark, outperforming previous methods.
  • On the Mini-ImageNet 5-way 1-shot task, the model achieves 74.5% top-1 accuracy, surpassing the previous SOTA of 73.8%.
  • On the Penn Treebank language modeling task, the model achieves 58% accuracy on the 3-shot task, outperforming the previous SOTA of 57%.
  • The Hebbian fast weight mechanism enables up to 100x speedup in inference compared to gradient-based fast weight models.
  • Ablation studies show that placing fast weights in the softmax layer reduces accuracy by 2%, while removing the slow weight path harms performance, confirming the importance of both components.
  • Truncating gradients through fast weights hurts performance, indicating that end-to-end learning is essential for optimal co-adaptation.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.