mlsanityData to 7 Oct 2026

Mixture of Chapters: Scaling Learnt Memory in Transformers

arXiv 2603.21096 ↗First posted 22 Mar 2026cs.LG cs.AI cs.CLcited by 0

Not on the map. Why?

Abstract (arXiv)

Transformers lack an explicit architectural mechanism for storing and organizing knowledge acquired during training. We introduce learnable sparse memory banks: a set of latent tokens, randomly initialized and trained end-to-end, that transformer layers query via cross-attention to retrieve stored knowledge. To scale memory capacity without prohibitive attention costs, we propose chapter-based routing inspired by Mixture-of-Experts architectures, partitioning the memory bank into chapters and training a router to select relevant subsets per input. This enables scaling to 262K memory tokens while maintaining tractable computation. We evaluate our approach against standard transformers (in iso-FLOP settings) on pre-training and instruction fine-tuning across relevant benchmarks. Our models surpass iso-FLOP baselines suggesting scope for a new axis of scaling, demonstrating that explicit associative memory provides complementary capacity to what is captured implicitly in model parameters. Additionally, we observe improved knowledge retention under continued training, with robustness to forgetting when transitioning between training phases (e.g., pretraining to instruction fine-tuning).

Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 46 of its 48 references that are in the map. First posted on arXiv 22 Mar 2026.

Builds on

46 of 48 references.

References · 46

  1. 2017Attention Is All You Needcited by 59,932
  2. 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,160
  3. 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,355
  4. 2020Measuring Massive Multitask Language Understandingcited by 7,768
  5. 2016Overcoming catastrophic forgetting in neural networkscited by 4,718
  6. 2018Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challengecited by 4,710
  7. 2022Flamingo: a Visual Language Model for Few-Shot Learningcited by 4,337
  8. 2023Toolformer: Language Models Can Teach Themselves to Use Toolscited by 4,072
  9. 2017Outrageously Large Neural Networks: The Sparsely-Gated Mixture-of-Experts Layercited by 3,413
  10. 2021Switch Transformers: Scaling to Trillion Parameter Models with Simple and Efficient Sparsitycited by 3,014
  11. 2022Training Compute-Optimal Large Language Modelscited by 2,927
  12. 2019BoolQ: Exploring the Surprising Difficulty of Natural Yes/No Questionscited by 2,140
34 more
  1. 2023Efficient Streaming Language Models with Attention Sinkscited by 2,115
  2. 2018Can a Suit of Armor Conduct Electricity? A New Dataset for Open Book Question Answeringcited by 2,114
  3. 2019Transformer-XL: Attentive Language Models Beyond a Fixed-Length Contextcited by 1,830
  4. 2021Improving language models by retrieving from trillions of tokenscited by 1,278
  5. 2021Perceiver: General Perception with Iterative Attentioncited by 1,089
  6. 2023H2O: Heavy-Hitter Oracle for Efficient Generative Inference of Large Language Modelscited by 805
  7. 2019Generalization through Memorization: Nearest Neighbor Language Modelscited by 788
  8. 2019Compressive Transformers for Long-Range Sequence Modellingcited by 699
  9. 2023An Empirical Study of Catastrophic Forgetting in Large Language Models During Continual Fine-tuningcited by 622
  10. 2021Perceiver IO: A General Architecture for Structured Inputs & Outputscited by 616
  11. 2020Efficient Content-Based Sparse Attention with Routing Transformerscited by 469
  12. 2024Titans: Learning to Memorize at Test Timecited by 303
  13. 2022Memorizing Transformerscited by 219
  14. 2022Recurrent Memory Transformercited by 197
  15. 2024Leave No Context Behind: Efficient Infinite Context Transformers with Infini-attentioncited by 194
  16. 2023In-context Autoencoder for Context Compression in a Large Language Modelcited by 190
  17. 2019Large Memory Layers with Product Keyscited by 120
  18. 2024Long Context Compression with Activation Beaconcited by 101
  19. 2020Entities as Experts: Sparse Memory Access with Entity Supervisioncited by 100
  20. 2023Scaling Transformer to 1M tokens and beyond with RMTcited by 97
  21. 2019Augmenting Self-attention with Persistent Memorycited by 92
  22. 2022Continual Pre-Training Mitigates Forgetting in Language and Visioncited by 82
  23. 2026Conditional Memory via Scalable Lookup: A New Axis of Sparsity for Large Language Modelscited by 78
  24. 2020Memformer: A Memory-Augmented Transformer for Sequence Modelingcited by 63
  25. 2024Human-inspired Episodic Memory for Infinite Context LLMscited by 62
  26. 2024Larimar: Large Language Models with Episodic Memory Controlcited by 53
  27. 2021Mention Memory: incorporating textual knowledge into Transformers through entity mention attentioncited by 42
  28. 2023Compressed Context Memory For Online Language Model Interactioncited by 42
  29. 2024Memory Layers at Scalecited by 39
  30. 2020Facts as Experts: Adaptable and Interpretable Neural Memory over Symbolic Knowledgecited by 37
  31. 2022An Efficient Memory-Augmented Transformer for Knowledge-Intensive NLP Taskscited by 36
  32. 2022Stateful Memory-Augmented Transformers for Efficient Dialogue Modelingcited by 5
  33. 2025Trellis: Learning to Compress Key-Value Memory in Attention Modelscited by 3
  34. 2023Cached Transformers: Improving Transformers with Differentiable Memory Cachecited by 2

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2026Adaptive Loops and Memory in Transformers: Think Harder or Know More?
  2. 2023AttMEMO : Accelerating Transformers with Memoization on Big Memory Systems
  3. 2025Pretraining with hierarchical memories: separating long-tail and common knowledge
  4. 2025Mixture-of-Transformers Learn Faster: A Theoretical Study on Classification Problems
  5. 2026Adaptive Computation Depth via Learned Token Routing in Transformers
  6. 2025How Transformers Learn In-Context Recall Tasks? Optimality, Training Dynamics and Generalization
  7. 2022Neural Knowledge Bank for Pretrained Transformers
  8. 2026LEAP: Layer-wise Exit-Aware Pretraining for Efficient Transformer Inference