mlsanityData to 7 Oct 2026

Pretraining with hierarchical memories: separating long-tail and common knowledge

arXiv 2510.02375 ↗First posted 29 Sep 2025cs.CL cs.AI cs.LGcited by 13

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

  1. 2017Attention Is All You Needcited by 59,932
  2. 2023GPT-4 Technical Reportcited by 18,132
  3. 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,160
  4. 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,049
  5. 2025Qwen3 Technical Reportcited by 8,195
  6. 2024Qwen2.5 Technical Reportcited by 4,713
  7. 2018Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challengecited by 4,710
  8. 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,581
  9. 2016SQuAD: 100,000+ Questions for Machine Comprehension of Textcited by 4,115
  10. 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,018
  11. 2021Prefix-Tuning: Optimizing Continuous Prompts for Generationcited by 3,878
  12. 2021The Power of Scale for Parameter-Efficient Prompt Tuningcited by 3,769
38 more
  1. 2017Outrageously Large Neural Networks: The Sparsely-Gated Mixture-of-Experts Layercited by 3,413
  2. 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,383
  3. 2022Training Compute-Optimal Large Language Modelscited by 2,927
  4. 2017TriviaQA: A Large Scale Distantly Supervised Challenge Dataset for Reading Comprehensioncited by 2,895
  5. 2019PIQA: Reasoning about Physical Commonsense in Natural Languagecited by 2,818
  6. 2022Locating and Editing Factual Associations in GPTcited by 2,609
  7. 2019BoolQ: Exploring the Surprising Difficulty of Natural Yes/No Questionscited by 2,140
  8. 2018Can a Suit of Armor Conduct Electricity? A New Dataset for Open Book Question Answeringcited by 2,114
  9. 2023Self-RAG: Learning to Retrieve, Generate, and Critique through Self-Reflectioncited by 1,800
  10. 2020GLU Variants Improve Transformercited by 1,724
  11. 2025Gemma 3 Technical Reportcited by 1,686
  12. 2020Transformer Feed-Forward Layers Are Key-Value Memoriescited by 1,307
  13. 2021Improving language models by retrieving from trillions of tokenscited by 1,278
  14. 2016The LAMBADA dataset: Word prediction requiring a broad discourse contextcited by 960
  15. 2022Atlas: Few-shot Learning with Retrieval Augmented Language Modelscited by 940
  16. 2020How Much Knowledge Can You Pack Into the Parameters of a Language Model?cited by 713
  17. 2022GPT-NeoX-20B: An Open-Source Autoregressive Language Modelcited by 711
  18. 2023In-Context Retrieval-Augmented Language Modelscited by 694
  19. 2019Latent Retrieval for Weakly Supervised Open Domain Question Answeringcited by 691
  20. 2018CoQA: A Conversational Question Answering Challengecited by 674
  21. 2018An Empirical Study of Example Forgetting during Deep Neural Network Learningcited by 669
  22. 2021Knowledge Neurons in Pretrained Transformerscited by 590
  23. 2024DataComp-LM: In search of the next generation of training sets for language modelscited by 381
  24. 2022Memorizing Transformerscited by 219
  25. 2022Branch-Train-Merge: Embarrassingly Parallel Training of Expert Language Modelscited by 187
  26. 2023LLM in a flash: Efficient Large Language Model Inference with Limited Memorycited by 170
  27. 2019Large Memory Layers with Product Keyscited by 120
  28. 2025Cartridges: Lightweight and general-purpose long context representations via self-studycited by 74
  29. 2023Scaling Expert Language Models with Unsupervised Domain Discoverycited by 59
  30. 2024Scaling Retrieval-Based Language Models with a Trillion-Token Datastorecited by 54
  31. 2024Memory Layers at Scalecited by 39
  32. 2022Kformer: Knowledge Injection in Transformer Feed-Forward Layerscited by 37
  33. 2024Dataset Decomposition: Faster LLM Training with Variable Sequence Length Curriculumcited by 25
  34. 2024Mixture of Parrots: Experts improve memorization more than reasoningcited by 20
  35. 2024Ultra-Sparse Memory Networkcited by 19
  36. 2024Task-Adaptive Pretrained Language Models via Clustered-Importance Samplingcited by 18
  37. 2025Instruction-Following Pruning for Large Language Modelscited by 14
  38. 2025FlexOlmo: Open Language Models for Flexible Data Usecited by 14

50 most cited of 54 All 54 (JSON)

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 2; 2026: 11.

13 papers.

Sort:

By area:

Similar, not cited

Close in wording, no citation either way

  1. 2024Memory3: Language Modeling with Explicit Memory
  2. 2026Memory Decoder at Scale: A Pretrained, Parametric Long-Term Memory
  3. 2026Mixture of Chapters: Scaling Learnt Memory in Transformers
  4. 2026PI-Mem: Pushing Long-Context Reasoning to 3.6M Tokens with Parallel-Iterative Memory
  5. 2026Unlocking the Working Memory of Large Language Models for Latent Reasoning
  6. 2026Memory Grafting: Scaling Language Model Pre-training via Offline Conditional Memory
  7. 2026Efficient Reasoning on the Edge
  8. 2022When Not to Trust Language Models: Investigating Effectiveness of Parametric and Non-Parametric Memories