Fast Weights Recurrent Transformer
Ivan Anokhin, Daria Yasafova, Tianyu Zhao, Irina Rish, Sebastian Risi
Abstract
The key--value (KV) cache of softmax attention can be viewed as a nonlinear fast-weight network, yet standard sliding-window caching updates it through first-in-first-out (FIFO) replacement. By dropping the requirement for sequence-parallel training, we build on recurrent Transformers and replace FIFO updates with sparse, content-dependent gated refinement of a fixed-size KV memory. On FineWeb, learned refinement reduces validation loss significantly relative to FIFO-based recurrent Transformers at tested memory sizes up to 128 entries. On associative-recall and needle-in-a-haystack tasks, it learns faster and supports successful retrieval in settings where FIFO-based baselines fail, respectively.
Create a lesson
Metadata
- Comments
- Accepted at the Workshop on Long-Context Foundation Models (LCFM) at NeurIPS 2026
Related papers
Stiefel-Projected 4D Tucker Fast-Weight Memory: Zero-SVD Cubic-Kernel Linear Attention, Exact Subspace Unlearning and O(1) Multi-Hop Retrieval
Shared title terminologycs.LGShubham Barmase
HINT-AD: Hierarchical and Interpretable Transformer for Speech-Based Alzheimer's Disease Staging and Marker Discovery
Shared title terminologycs.LGYang Han, Jacqueline CK Lam, Victor OK Li et al.
Revive What Pays: Evidence-Weighted Net-Gain Revival for Mini-Batch k-Means
Shared title terminologycs.LGEyal Weiss
How Much Weight Can Your LLM Bench? Benchmarking Weight-Space Programming on Open Language Models
Shared title terminologycs.LGPedro Moreira, Leonida Lumburovska
Unilateral Adoption of LLM-Written Policy Weights in a Multi-UAV Aerial Base Station Game
Shared title terminologycs.LGYu-Chen Hsu, Li-Hsing Yen
Variational Mode Decomposition as Weighted Fuzzy c-Means
Shared title terminologycs.LGYuya Ohmichi