Pretraining with hierarchical memories: separating long-tail and common knowledge
Not on the map. Why?
Abstract (arXiv)
The impressive performance gains of modern language models currently rely on scaling parameters: larger models store more world knowledge and reason better. Yet compressing all world knowledge into parameters is unnecessary, as only a fraction is used per prompt, and impractical for edge devices with limited inference-time memory and compute. We address this shortcoming by a memory-augmented architecture and a pretraining strategy aligned with existing hardware paradigms. We introduce small language models that access large hierarchical parametric memory banks encoding world knowledge. During pretraining and inference, we fetch a small, context-dependent memory block and add it to the model. Our pretraining learns to store long-tail world knowledge in the memory parameters, while the small language model acts as an anchor capturing common knowledge and general reasoning abilities. Through trillion-token-scale experiments, we show significant gains: a 160M-parameters model augmented with an 18M-parameters memory fetched from a 4.6B memory bank obtains comparable performance to a regular model with more than 2x the parameters. Through extensive experiments, we study the optimal type and size of parametric memories in transformers, scaling them to over 21B parameters. We find that our proposed hierarchical feed-forward memories work robustly across transformer architectures, whether added during pretraining or post-hoc.
Key facts. Cited by 13 papers in the map (data through 7 Oct 2026). Builds on 54 of its 62 references that are in the map. First posted on arXiv 29 Sep 2025.
Builds on
54 of 62 references.
References · 54
- 2017Attention Is All You Needcited by 59,932
- 2023GPT-4 Technical Reportcited by 18,132
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,160
- 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,049
- 2025Qwen3 Technical Reportcited by 8,195
- 2024Qwen2.5 Technical Reportcited by 4,713
- 2018Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challengecited by 4,710
- 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,581
- 2016SQuAD: 100,000+ Questions for Machine Comprehension of Textcited by 4,115
- 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,018
- 2021Prefix-Tuning: Optimizing Continuous Prompts for Generationcited by 3,878
- 2021The Power of Scale for Parameter-Efficient Prompt Tuningcited by 3,769
38 more
- 2017Outrageously Large Neural Networks: The Sparsely-Gated Mixture-of-Experts Layercited by 3,413
- 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,383
- 2022Training Compute-Optimal Large Language Modelscited by 2,927
- 2017TriviaQA: A Large Scale Distantly Supervised Challenge Dataset for Reading Comprehensioncited by 2,895
- 2019PIQA: Reasoning about Physical Commonsense in Natural Languagecited by 2,818
- 2022Locating and Editing Factual Associations in GPTcited by 2,609
- 2019BoolQ: Exploring the Surprising Difficulty of Natural Yes/No Questionscited by 2,140
- 2018Can a Suit of Armor Conduct Electricity? A New Dataset for Open Book Question Answeringcited by 2,114
- 2023Self-RAG: Learning to Retrieve, Generate, and Critique through Self-Reflectioncited by 1,800
- 2020GLU Variants Improve Transformercited by 1,724
- 2025Gemma 3 Technical Reportcited by 1,686
- 2020Transformer Feed-Forward Layers Are Key-Value Memoriescited by 1,307
- 2021Improving language models by retrieving from trillions of tokenscited by 1,278
- 2016The LAMBADA dataset: Word prediction requiring a broad discourse contextcited by 960
- 2022Atlas: Few-shot Learning with Retrieval Augmented Language Modelscited by 940
- 2020How Much Knowledge Can You Pack Into the Parameters of a Language Model?cited by 713
- 2022GPT-NeoX-20B: An Open-Source Autoregressive Language Modelcited by 711
- 2023In-Context Retrieval-Augmented Language Modelscited by 694
- 2019Latent Retrieval for Weakly Supervised Open Domain Question Answeringcited by 691
- 2018CoQA: A Conversational Question Answering Challengecited by 674
- 2018An Empirical Study of Example Forgetting during Deep Neural Network Learningcited by 669
- 2021Knowledge Neurons in Pretrained Transformerscited by 590
- 2024DataComp-LM: In search of the next generation of training sets for language modelscited by 381
- 2022Memorizing Transformerscited by 219
- 2022Branch-Train-Merge: Embarrassingly Parallel Training of Expert Language Modelscited by 187
- 2023LLM in a flash: Efficient Large Language Model Inference with Limited Memorycited by 170
- 2019Large Memory Layers with Product Keyscited by 120
- 2025Cartridges: Lightweight and general-purpose long context representations via self-studycited by 74
- 2023Scaling Expert Language Models with Unsupervised Domain Discoverycited by 59
- 2024Scaling Retrieval-Based Language Models with a Trillion-Token Datastorecited by 54
- 2024Memory Layers at Scalecited by 39
- 2022Kformer: Knowledge Injection in Transformer Feed-Forward Layerscited by 37
- 2024Dataset Decomposition: Faster LLM Training with Variable Sequence Length Curriculumcited by 25
- 2024Mixture of Parrots: Experts improve memorization more than reasoningcited by 20
- 2024Ultra-Sparse Memory Networkcited by 19
- 2024Task-Adaptive Pretrained Language Models via Clustered-Importance Samplingcited by 18
- 2025Instruction-Following Pruning for Large Language Modelscited by 14
- 2025FlexOlmo: Open Language Models for Flexible Data Usecited by 14
50 most cited of 54 All 54 (JSON)
Built on by
Citing papers per year: 2025: 2; 2026: 11.
13 papers.
Sort:
By area:
- 2025Memory in the Age of AI Agentscited by 285
- 2026A Survey of Agent Memory in the Second Half: Towards Self-Evolving and Long-Horizon Agentscited by 40
- 2026Procedural Pretraining: Warming Up Language Models with Abstract Datacited by 10
- 2025On Memory: A comparison of memory mechanisms in world modelscited by 2
- 2026Cram Less to Fit More: Training Data Pruning Improves Memorization of Factscited by 2
- 2026MemAdapter: Fast Alignment across Agent Memory Paradigms via Generative Subgraph Retrievalcited by 1
- 2026Optimal Splitting of Language Models from Mixtures to Specialized Domainscited by 1
- 2026EvoIR-Agent: Self-Evolving Image Restoration Agentic System via Experience-Driven Learningcited by 0
- 2026Knowledge Offloading: Decomposing LLMs into Sparse Backbones and Memory Modulescited by 0
- 2026Co-LMLM: Continuous-Query Limited Memory Language Modelscited by 0
- 2026Protecting patient privacy in clinical foundation models: Technical and legal perspectivescited by 0
- 2026BCMT: Blockwise Causal Memory Transformercited by 0
1 more
- 2026Co-Evolving Structured Knowledge and Reasoning in Language Models26 Aug 2026
- 2026Protecting patient privacy in clinical foundation models: Technical and legal perspectives7 Aug 2026
- 2026Co-LMLM: Continuous-Query Limited Memory Language Models8 Jul 2026
- 2026BCMT: Blockwise Causal Memory Transformer6 Jul 2026
- 2026Knowledge Offloading: Decomposing LLMs into Sparse Backbones and Memory Modules27 May 2026
- 2026EvoIR-Agent: Self-Evolving Image Restoration Agentic System via Experience-Driven Learning21 May 2026
- 2026Cram Less to Fit More: Training Data Pruning Improves Memorization of Facts9 Apr 2026
- 2026Optimal Splitting of Language Models from Mixtures to Specialized Domains19 Mar 2026
- 2026MemAdapter: Fast Alignment across Agent Memory Paradigms via Generative Subgraph Retrieval9 Feb 2026
- 2026Procedural Pretraining: Warming Up Language Models with Abstract Data29 Jan 2026
- 2026A Survey of Agent Memory in the Second Half: Towards Self-Evolving and Long-Horizon Agents14 Jan 2026
- 2025Memory in the Age of AI Agents15 Dec 2025
1 more
- 2025Memory in the Age of AI Agentscited by 285
- 2026A Survey of Agent Memory in the Second Half: Towards Self-Evolving and Long-Horizon Agentscited by 40
- 2026A Survey of Agent Memory in the Second Half: Towards Self-Evolving and Long-Horizon Agents14 Jan 2026
- 2025Memory in the Age of AI Agents15 Dec 2025
- 2026Procedural Pretraining: Warming Up Language Models with Abstract Datacited by 10
- 2026Cram Less to Fit More: Training Data Pruning Improves Memorization of Factscited by 2
- 2026Optimal Splitting of Language Models from Mixtures to Specialized Domainscited by 1
- 2026Knowledge Offloading: Decomposing LLMs into Sparse Backbones and Memory Modulescited by 0
- 2026Co-LMLM: Continuous-Query Limited Memory Language Modelscited by 0
- 2026Protecting patient privacy in clinical foundation models: Technical and legal perspectivescited by 0
- 2026BCMT: Blockwise Causal Memory Transformercited by 0
- 2026Protecting patient privacy in clinical foundation models: Technical and legal perspectives7 Aug 2026
- 2026Co-LMLM: Continuous-Query Limited Memory Language Models8 Jul 2026
- 2026BCMT: Blockwise Causal Memory Transformer6 Jul 2026
- 2026Knowledge Offloading: Decomposing LLMs into Sparse Backbones and Memory Modules27 May 2026
- 2026Cram Less to Fit More: Training Data Pruning Improves Memorization of Facts9 Apr 2026
- 2026Optimal Splitting of Language Models from Mixtures to Specialized Domains19 Mar 2026
- 2026Procedural Pretraining: Warming Up Language Models with Abstract Data29 Jan 2026
Similar, not cited
Close in wording, no citation either way
- 2024Memory3: Language Modeling with Explicit Memory
- 2026Memory Decoder at Scale: A Pretrained, Parametric Long-Term Memory
- 2026Mixture of Chapters: Scaling Learnt Memory in Transformers
- 2026PI-Mem: Pushing Long-Context Reasoning to 3.6M Tokens with Parallel-Iterative Memory
- 2026Unlocking the Working Memory of Large Language Models for Latent Reasoning
- 2026Memory Grafting: Scaling Language Model Pre-training via Offline Conditional Memory
- 2026Efficient Reasoning on the Edge
- 2022When Not to Trust Language Models: Investigating Effectiveness of Parametric and Non-Parametric Memories