Mixture of Chapters: Scaling Learnt Memory in Transformers
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
- 2017Attention Is All You Needcited by 59,932
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,160
- 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,355
- 2020Measuring Massive Multitask Language Understandingcited by 7,768
- 2016Overcoming catastrophic forgetting in neural networkscited by 4,718
- 2018Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challengecited by 4,710
- 2022Flamingo: a Visual Language Model for Few-Shot Learningcited by 4,337
- 2023Toolformer: Language Models Can Teach Themselves to Use Toolscited by 4,072
- 2017Outrageously Large Neural Networks: The Sparsely-Gated Mixture-of-Experts Layercited by 3,413
- 2021Switch Transformers: Scaling to Trillion Parameter Models with Simple and Efficient Sparsitycited by 3,014
- 2022Training Compute-Optimal Large Language Modelscited by 2,927
- 2019BoolQ: Exploring the Surprising Difficulty of Natural Yes/No Questionscited by 2,140
34 more
- 2023Efficient Streaming Language Models with Attention Sinkscited by 2,115
- 2018Can a Suit of Armor Conduct Electricity? A New Dataset for Open Book Question Answeringcited by 2,114
- 2019Transformer-XL: Attentive Language Models Beyond a Fixed-Length Contextcited by 1,830
- 2021Improving language models by retrieving from trillions of tokenscited by 1,278
- 2021Perceiver: General Perception with Iterative Attentioncited by 1,089
- 2023H2O: Heavy-Hitter Oracle for Efficient Generative Inference of Large Language Modelscited by 805
- 2019Generalization through Memorization: Nearest Neighbor Language Modelscited by 788
- 2019Compressive Transformers for Long-Range Sequence Modellingcited by 699
- 2023An Empirical Study of Catastrophic Forgetting in Large Language Models During Continual Fine-tuningcited by 622
- 2021Perceiver IO: A General Architecture for Structured Inputs & Outputscited by 616
- 2020Efficient Content-Based Sparse Attention with Routing Transformerscited by 469
- 2024Titans: Learning to Memorize at Test Timecited by 303
- 2022Memorizing Transformerscited by 219
- 2022Recurrent Memory Transformercited by 197
- 2024Leave No Context Behind: Efficient Infinite Context Transformers with Infini-attentioncited by 194
- 2023In-context Autoencoder for Context Compression in a Large Language Modelcited by 190
- 2019Large Memory Layers with Product Keyscited by 120
- 2024Long Context Compression with Activation Beaconcited by 101
- 2020Entities as Experts: Sparse Memory Access with Entity Supervisioncited by 100
- 2023Scaling Transformer to 1M tokens and beyond with RMTcited by 97
- 2019Augmenting Self-attention with Persistent Memorycited by 92
- 2022Continual Pre-Training Mitigates Forgetting in Language and Visioncited by 82
- 2026Conditional Memory via Scalable Lookup: A New Axis of Sparsity for Large Language Modelscited by 78
- 2020Memformer: A Memory-Augmented Transformer for Sequence Modelingcited by 63
- 2024Human-inspired Episodic Memory for Infinite Context LLMscited by 62
- 2024Larimar: Large Language Models with Episodic Memory Controlcited by 53
- 2021Mention Memory: incorporating textual knowledge into Transformers through entity mention attentioncited by 42
- 2023Compressed Context Memory For Online Language Model Interactioncited by 42
- 2024Memory Layers at Scalecited by 39
- 2020Facts as Experts: Adaptable and Interpretable Neural Memory over Symbolic Knowledgecited by 37
- 2022An Efficient Memory-Augmented Transformer for Knowledge-Intensive NLP Taskscited by 36
- 2022Stateful Memory-Augmented Transformers for Efficient Dialogue Modelingcited by 5
- 2025Trellis: Learning to Compress Key-Value Memory in Attention Modelscited by 3
- 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
- 2026Adaptive Loops and Memory in Transformers: Think Harder or Know More?
- 2023AttMEMO : Accelerating Transformers with Memoization on Big Memory Systems
- 2025Pretraining with hierarchical memories: separating long-tail and common knowledge
- 2025Mixture-of-Transformers Learn Faster: A Theoretical Study on Classification Problems
- 2026Adaptive Computation Depth via Learned Token Routing in Transformers
- 2025How Transformers Learn In-Context Recall Tasks? Optimality, Training Dynamics and Generalization
- 2022Neural Knowledge Bank for Pretrained Transformers
- 2026LEAP: Layer-wise Exit-Aware Pretraining for Efficient Transformer Inference