mlsanityData to 14 Oct 2026

Where to Bind Matters: Hebbian Fast Weights in Vision Transformers for Few-Shot Character Recognition

arXiv 2605.02920 ↗First posted 22 Apr 2026cs.NE cs.CV cs.LGcited by 3

Not on the map. Why?

Abstract (arXiv)

Standard transformer architectures learn fixed slow-weight representations during training and lack mechanisms for rapid adaptation within an episode. In contrast, biological neural systems address this through fast synaptic updates that form transient associative memories during inference, a property known as Hebbian plasticity. In this paper, we conduct an empirical study of Hebbian Fast-Weight (HFW) modules integrated into multiple transformer backbones, including ViT-Small, DeiT-Small, and Swin-Tiny. We evaluate six model variants: ViT, DeiT, Swin, ViT-Hebbian, DeiT-Hebbian, and Swin-Hebbian on 5-way 1-shot and 5-way 5-shot classification tasks using the Omniglot benchmark under a Prototypical Network meta-learning framework. We propose a single module placement strategy for Swin-Tiny in which one HFW module is applied to the final stage feature map after all hierarchical stages have completed. This design avoids the training instability caused by placing separate Hebbian modules at each stage and achieves the highest test accuracy across all six models (96.2% at 1-shot; 99.2% at 5-shot), outperforming its non-Hebbian baseline by +0.3 percentage points at 1-shot. We analyze the interaction between Swin's shifted window inductive bias and episode-level Hebbian binding, discuss why per-block placement fails for ViT and DeiT variants in a low-data regime, and situate the results within the wider literature on fast and slow-weight meta-learning.

Key facts. Cited by 3 papers in the map (data through 14 Oct 2026). Builds on 20 of its 31 references that are in the map. First posted on arXiv 22 Apr 2026.

Builds on

20 of 31 references.

References · 20

  1. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
  2. 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,139
  3. 2017Model-Agnostic Meta-Learning for Fast Adaptation of Deep Networkscited by 4,897
  4. 2020Training data-efficient image transformers & distillation through attentioncited by 4,586
  5. 2017Prototypical Networks for Few-shot Learningcited by 3,015
  6. 2016Matching Networks for One Shot Learningcited by 2,255
  7. 2017Learning to Compare: Relation Network for Few-Shot Learningcited by 1,143
  8. 2018On First-Order Meta-Learning Algorithmscited by 1,018
  9. 2021Linear Transformers Are Secretly Fast Weight Programmerscited by 502
  10. 2018Few-Shot Learning via Embedding Adaptation with Set-to-Set Functionscited by 294
  11. 2017Meta Networkscited by 269
  12. 2020CrossTransformers: spatially-aware few-shot transfercited by 174
8 more
  1. 2016Using Fast Weights to Attend to the Recent Pastcited by 170
  2. 2021Going Beyond Linear Transformers with Recurrent Fast Weight Programmerscited by 89
  3. 2018Differentiable plasticity: training plastic neural networks with backpropagationcited by 84
  4. 2020Meta-Learning through Hebbian Plasticity in Random Networkscited by 47
  5. 2018Metalearning with Hebbian Fast Weightscited by 15
  6. 2022Meta-Learning Biologically Plausible Plasticity Rules with Random Feedback Pathwayscited by 14
  7. 2025Towards Neurocognitive-Inspired Intelligence: From AI's Structural Mimicry to Human-Like Functional Cognitioncited by 2
  8. 2025Enabling Robust In-Context Memory and Rapid Task Adaptation in Transformers with Hebbian and Gradient-Based Plasticitycited by 1

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 3.

3 papers.