mlsanityData to 7 Oct 2026

Enabling Robust In-Context Memory and Rapid Task Adaptation in Transformers with Hebbian and Gradient-Based Plasticity

arXiv 2510.21908 ↗First posted 24 Oct 2025cs.NE cs.AI cs.LGcited by 1

Not on the map. Why?

Abstract (arXiv)

Large language models display in-context learning as an emergent effect of scale, but they rely on static weights during inference. In contrast, biological systems continually adapt via synaptic plasticity. We investigate whether explicit, biologically inspired plasticity can endow Transformers with faster in-sequence adaptation. To this end, we augment decoder-only Transformers with fast-weight modules updated either by (i) a neuromodulated Hebbian rule or (ii) the gradient-based plasticity mechanism of Duan et al. (2023). Across copying, regression, and few-shot classification tasks (CIFAR-FS, Omniglot), Hebbian plasticity consistently achieves lower loss and stronger few-shot generalization, while gradient-based updates perform best on long-horizon credit assignment. When associations are short and linearly separable, static weights suffice, defining a clear boundary condition for when plasticity helps. Analysis of learned modulatory signals reveals that gradient-based rules maintain large, persistent updates, whereas Hebbian plasticity is sharply gated around salient events. Together, these results show that explicit plasticity complements attention by enabling rapid, task-specific adaptation, and clarify when different plasticity mechanisms are most effective.

Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Builds on 15 of its 22 references that are in the map. First posted on arXiv 24 Oct 2025.

Builds on

15 of 22 references.

References · 15

  1. 2020Language Models are Few-Shot Learnerscited by 32,199
  2. 2017Model-Agnostic Meta-Learning for Fast Adaptation of Deep Networkscited by 4,861
  3. 2017Prototypical Networks for Few-shot Learningcited by 3,001
  4. 2016HyperNetworkscited by 1,003
  5. 2022Transformers learn in-context by gradient descentcited by 714
  6. 2022What Can Transformers Learn In-Context? A Case Study of Simple Function Classescited by 700
  7. 2022What learning algorithm is in-context learning? Investigations with linear modelscited by 671
  8. 2021Linear Transformers Are Secretly Fast Weight Programmerscited by 471
  9. 2022Why Can GPT Learn In-Context? Language Models Implicitly Perform Gradient Descent as Meta-Optimizerscited by 204
  10. 2021Going Beyond Linear Transformers with Recurrent Fast Weight Programmerscited by 84
  11. 2018Differentiable plasticity: training plastic neural networks with backpropagationcited by 83
  12. 2020Learning Associative Inference Using Fast Weight Memorycited by 51
3 more
  1. 2020Meta-Learning through Hebbian Plasticity in Random Networkscited by 47
  2. 2020Backpropamine: training self-modifying neural networks with differentiable neuromodulated plasticitycited by 39
  3. 2023Hebbian and Gradient-based Plasticity Enables Robust Memory and Rapid Learning in RNNscited by 3

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2026: 1.

1 paper.