mlsanityData to 7 Oct 2026

To Memorize or to Retrieve: Scaling the Interaction Between Pretraining and Retrieval

arXiv 2604.00715 ↗First posted 1 Apr 2026cs.CL cs.AI cs.LGcited by 1

On the map: Retrieval-augmented generation → Generation and context integration

Abstract (arXiv)

Retrieval-augmented generation (RAG) improves language model (LM) performance by providing relevant context at test time for knowledge-intensive situations. In this work, we systematically study the trade-off between pretraining and retrieval by training OLMo-2-based LMs ranging from 30M to 3B parameters on up to 100B DCLM tokens, while varying pretraining data scale, retrieval store size, and retrieval store source (pretraining vs. new data) across reasoning, scientific QA, and open-domain QA benchmarks. We find that retrieval gains depend on model capacity and pretraining exposure and are strongly front-loaded, with a median 91% of the largest observed improvement realized by one retrieval token per model parameter. However, the interaction is objective-dependent: smaller models gain more in gold-answer perplexity, whereas larger, more-pretrained models gain more in accuracy. Retrieval from previously seen data also preserves most of the held-out retrieval gain. Retrieval is therefore a task-, regime-, and metric-dependent complement to parametric learning whose value also depends on datastore size and information novelty. Overall, this motivates the explicit partitioning of data between internalization and external access for LM design.

Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Placed in Generation and context integration, one of 15 directions in Retrieval-augmented generation. Builds on 37 of its 55 references that are in the map. First posted on arXiv 1 Apr 2026.

Builds on

37 of 55 references.

Closest ancestors · 2

Same direction, newest first

  1. 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks22 May
  2. 2020REALM: Retrieval-Augmented Language Model Pre-Training10 Feb

Other references · 35

  1. 2021Training Verifiers to Solve Math Word Problemscited by 9,743
  2. 2020Scaling Laws for Neural Language Modelscited by 6,411
  3. 2018Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challengecited by 4,710
  4. 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,018
  5. 2018Can a Suit of Armor Conduct Electricity? A New Dataset for Open Book Question Answeringcited by 2,114
  6. 2018CommonsenseQA: A Question Answering Challenge Targeting Commonsense Knowledgecited by 1,793
  7. 2021Improving language models by retrieving from trillions of tokenscited by 1,278
  8. 2016The LAMBADA dataset: Word prediction requiring a broad discourse contextcited by 960
  9. 2019Generalization through Memorization: Nearest Neighbor Language Modelscited by 788
  10. 2017Crowdsourcing Multiple Choice Science Questionscited by 742
  11. 2021Did Aristotle Use a Laptop? A Question Answering Benchmark with Implicit Reasoning Strategiescited by 736
  12. 2021Deduplicating Training Data Makes Language Models Bettercited by 705
23 more
  1. 2024MiniCPM: Unveiling the Potential of Small Language Models with Scalable Training Strategiescited by 694
  2. 2024TinyLlama: An Open-Source Small Language Modelcited by 604
  3. 2023DoReMi: Optimizing Data Mixtures Speeds Up Language Model Pretrainingcited by 385
  4. 2024Measuring short-form factuality in large language modelscited by 345
  5. 2024Data Mixing Laws: Optimizing Data Mixtures by Predicting Language Modeling Performancecited by 179
  6. 2023Beyond Chinchilla-Optimal: Accounting for Inference in Language Model Scaling Lawscited by 155
  7. 2021Scale Efficiently: Insights from Pre-training and Fine-tuning Transformerscited by 105
  8. 2025Findings of the BabyLM Challenge: Sample-Efficient Pretraining on Developmentally Plausible Corporacited by 86
  9. 2023At Which Training Stage Does Code Data Help LLMs Reasoning?cited by 82
  10. 2024Scaling Retrieval-Based Language Models with a Trillion-Token Datastorecited by 54
  11. 2025Scaling Laws for Optimal Data Mixturescited by 49
  12. 2024Findings of the Second BabyLM Challenge: Sample-Efficient Pretraining on Developmentally Plausible Corporacited by 48
  13. 2024Is Child-Directed Speech Effective Training Data for Language Models?cited by 24
  14. 2024Maximize Your Data's Potential: Enhancing LLM Accuracy with Two-Phase Pretrainingcited by 24
  15. 2025Midtraining Bridges Pretraining and Posttraining Distributionscited by 10
  16. 2021Retrieve, Caption, Generate: Visual Grounding for Enhancing Commonsense in Text Generation Modelscited by 9
  17. 2021SAPPHIRE: Approaches for Enhanced Concept-to-Text Generationcited by 8
  18. 2022CHARD: Clinical Health-Aware Reasoning Across Dimensions for Text Generation Modelscited by 7
  19. 2025Revisiting the Scaling Properties of Downstream Metrics in Large Language Model Trainingcited by 6
  20. 2025Curriculum-Guided Layer Scaling for Language Model Pretrainingcited by 4
  21. 2025Reusing Pre-Training Data at Test Time is a Compute Multipliercited by 4
  22. 2026Bringing Up a Bilingual BabyLM: Investigating Multilingual Language Acquisition Using Small-Scale Modelscited by 4
  23. 2026Baby Scale: Investigating Models Trained on Individual Children's Language Inputcited by 2

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2026: 1.

1 paper.

Similar, not cited

Close in wording, no citation either way

  1. 2024Quantifying reliance on external information over parametric knowledge during Retrieval Augmented Generation (RAG) using mechanistic analysis
  2. 2026Mapping the RAG Landscape: A Four Axis Taxonomy of Efficiency, Defense, Interactivity, and Reasoning
  3. 2024From RAGs to rich parameters: Probing how language models utilize external knowledge over parametric information for factual queries
  4. 2025Retrieval-Augmented Generation: A Comprehensive Survey of Architectures, Enhancements, and Robustness Frontiers
  5. 2024Inference Scaling for Long-Context Retrieval Augmented Generation
  6. 2025Direct Retrieval-augmented Optimization: Synergizing Knowledge Selection and Language Models
  7. 2024The Impact of Quantization on Retrieval-Augmented Generation: An Analysis of Small LLMs
  8. 2024Long-Context LLMs Meet RAG: Overcoming Challenges for Long Inputs in RAG