mlsanityData to 7 Oct 2026

How Do Large Language Models Acquire Factual Knowledge During Pretraining?

arXiv 2406.11813 ↗First posted 17 Jun 2024cs.CLcited by 86

Not on the map. Why?

Abstract (arXiv)

Despite the recent observation that large language models (LLMs) can store substantial factual knowledge, there is a limited understanding of the mechanisms of how they acquire factual knowledge through pretraining. This work addresses this gap by studying how LLMs acquire factual knowledge during pretraining. The findings reveal several important insights into the dynamics of factual knowledge acquisition during pretraining. First, counterintuitively, we observe that pretraining on more data shows no significant improvement in the model's capability to acquire and maintain factual knowledge. Next, there is a power-law relationship between training steps and forgetting of memorization and generalization of factual knowledge, and LLMs trained with duplicated training data exhibit faster forgetting. Third, training LLMs with larger batch sizes can enhance the models' robustness to forgetting. Overall, our observations suggest that factual knowledge acquisition in LLM pretraining occurs by progressively increasing the probability of factual knowledge presented in the pretraining data at each step. However, this increase is diluted by subsequent forgetting. Based on this interpretation, we demonstrate that we can provide plausible explanations for recently observed behaviors of LLMs, such as the poor performance of LLMs on long-tail knowledge and the benefits of deduplicating the pretraining corpus.

Key facts. Cited by 86 papers in the map (data through 7 Oct 2026). Builds on 48 of its 54 references that are in the map. First posted on arXiv 17 Jun 2024.

Builds on

48 of 54 references.

References · 48

  1. 2020Language Models are Few-Shot Learnerscited by 32,199
  2. 2023GPT-4 Technical Reportcited by 18,132
  3. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
  4. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
  5. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
  6. 2020Scaling Laws for Neural Language Modelscited by 6,411
  7. 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,304
  8. 2022Training Compute-Optimal Large Language Modelscited by 2,927
  9. 2022Emergent Abilities of Large Language Modelscited by 2,483
  10. 2020Extracting Training Data from Large Language Modelscited by 2,144
  11. 2019Language Models as Knowledge Bases?cited by 1,922
  12. 2023Pythia: A Suite for Analyzing Large Language Models Across Training and Scalingcited by 1,734
36 more
  1. 2020Transformer Feed-Forward Layers Are Key-Value Memoriescited by 1,307
  2. 2022When Not to Trust Language Models: Investigating Effectiveness of Parametric and Non-Parametric Memoriescited by 1,103
  3. 2017A Closer Look at Memorization in Deep Networkscited by 936
  4. 2023StarCoder: may the source be with you!cited by 790
  5. 2022Quantifying Memorization Across Neural Language Modelscited by 755
  6. 2020How Much Knowledge Can You Pack Into the Parameters of a Language Model?cited by 713
  7. 2021Deduplicating Training Data Makes Language Models Bettercited by 705
  8. 2023An Empirical Study of Catastrophic Forgetting in Large Language Models During Continual Fine-tuningcited by 622
  9. 2022Grokking: Generalization Beyond Overfitting on Small Algorithmic Datasetscited by 599
  10. 2024OLMo: Accelerating the Science of Language Modelscited by 599
  11. 2021Knowledge Neurons in Pretrained Transformerscited by 590
  12. 2023Are Emergent Abilities of Large Language Models a Mirage?cited by 515
  13. 2023Dissecting Recall of Factual Associations in Auto-Regressive Language Modelscited by 512
  14. 2024Dolma: an Open Corpus of Three Trillion Tokens for Language Model Pretraining Researchcited by 475
  15. 2019Does Learning Require Memorization? A Short Tale about a Long Tailcited by 452
  16. 2022Large Language Models Struggle to Learn Long-Tail Knowledgecited by 452
  17. 2023Physics of Language Models: Part 3.1, Knowledge Storage and Extractioncited by 264
  18. 2024Does Fine-Tuning LLMs on New Knowledge Encourage Hallucinations?cited by 227
  19. 2022Memorization Without Overfitting: Analyzing the Training Dynamics of Large Language Modelscited by 218
  20. 2020Anatomy of Catastrophic Forgetting: Hidden Representations and Task Semanticscited by 158
  21. 2023The BigScience ROOTS Corpus: A 1.6TB Composite Multilingual Datasetcited by 148
  22. 2023Emergent and Predictable Memorization in Large Language Modelscited by 147
  23. 2023D4: Improving LLM Pretraining via Document De-Duplication and Diversificationcited by 146
  24. 2023Physics of Language Models: Part 3.2, Knowledge Manipulationcited by 142
  25. 2023Sudden Drops in the Loss: Syntax Acquisition, Phase Transitions, and Simplicity Bias in MLMscited by 121
  26. 2023To Repeat or Not To Repeat: Insights from Scaling LLM under Token-Crisiscited by 88
  27. 2022Training Trajectories of Language Models Across Scalescited by 80
  28. 2021Probing Across Time: What Does RoBERTa Know and When?cited by 73
  29. 2020The Surprising Simplicity of the Early-Time Learning Dynamics of Neural Networkscited by 58
  30. 2022Measuring Causal Effects of Data Statistics on Language Model's `Factual' Predictionscited by 57
  31. 2022Entity Cloze By Date: What LMs Know About Unseen Entitiescited by 55
  32. 2022How Pre-trained Language Models Capture Factual Knowledge? A Causal-Inspired Analysiscited by 42
  33. 2021Analyzing Commonsense Emergence in Few-shot Knowledge Modelscited by 34
  34. 2021Memorisation versus Generalisation in Pre-trained Language Modelscited by 32
  35. 2024Critical Data Size of Language Models from a Grokking Perspectivecited by 22
  36. 2022Noise-Robust De-Duplication at Scalecited by 17

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 19; 2025: 51; 2026: 16.

86 papers.

Sort:

By area:

  1. 2025MMSearch-R1: Incentivizing LMMs to Searchcited by 120
  2. 2024Demystifying Verbatim Memorization in Large Language Modelscited by 55
  3. 2024Scaling of Search and Learning: A Roadmap to Reproduce o1 from Reinforcement Learning Perspectivecited by 49
  4. 2024Scalable Influence and Fact Tracing for Large Language Model Pretrainingcited by 40
  5. 2024DYNAMICQA: Tracing Internal Knowledge Conflicts in Language Modelscited by 34
  6. 2025How do language models learn facts? Dynamics, curricula and hallucinationscited by 33
  7. 2024Do Large Language Models Perform Latent Multi-Hop Reasoning without Exploiting Shortcuts?cited by 26
  8. 2024Evaluating n-Gram Novelty of Language Models Using Rusty-DAWGcited by 24
  9. 2024AttriBoT: A Bag of Tricks for Efficiently Approximating Leave-One-Out Context Attributioncited by 23
  10. 2025On Linear Representations and Pretraining Data Frequency in Language Modelscited by 23
  11. 2025How Do LLMs Acquire New Knowledge? A Knowledge Circuits Perspective on Continual Pre-Trainingcited by 22
  12. 2024On the Way to LLM Personalization: Learning to Remember User Conversationscited by 21
38 more
  1. 2024Beneath the Surface of Consistency: Exploring Cross-lingual Knowledge Representation Sharing in LLMscited by 20
  2. 2025Data Whisperer: Efficient Data Selection for Task-Specific LLM Fine-Tuning via Few-Shot In-Context Learningcited by 19
  3. 2024Enhancing LLMs for Power System Simulations: A Feedback-driven Multi-agent Frameworkcited by 16
  4. 2024Knowledge Entropy Decay during Language Model Pretraining Hinders New Knowledge Acquisitioncited by 15
  5. 2025Data Mixing Can Induce Phase Transitions in Knowledge Acquisitioncited by 15
  6. 2024How Much Can We Forget about Data Contamination?cited by 14
  7. 2024Diversify and Conquer: Diversity-Centric Data Selection with Iterative Refinementcited by 13
  8. 2024Extractive Structures Learned in Pretraining Enable Generalization on Finetuned Factscited by 13
  9. 2025Is the Reversal Curse a Binding Problem? Uncovering Limitations of Transformers from a Basic Generalization Failurecited by 13
  10. 2025Editing as Unlearning: Are Knowledge Editing Methods Strong Baselines for Large Language Model Unlearning?cited by 13
  11. 2024AI-native Memory: A Pathway from LLMs Towards AGIcited by 12
  12. 2025SAKE: Steering Activations for Knowledge Editingcited by 12
  13. 2026Replaying pre-training data improves fine-tuningcited by 12
  14. 2025Episodic memory in AI agents poses risks that should be studied and mitigatedcited by 11
  15. 2025Scalable Fingerprinting of Large Language Modelscited by 11
  16. 2025Learning Facts at Scale with Active Readingcited by 11
  17. 2025Blackbox Model Provenance via Palimpsestic Membership Inferencecited by 11
  18. 2024Exploring Forgetting in Large Language Model Pre-Trainingcited by 9
  19. 2025Training an LLM-as-a-Judge Model: Pipeline, Insights, and Practical Lessonscited by 9
  20. 2024Attributing Culture-Conditioned Generations to Pretraining Corporacited by 8
  21. 2025Robust Data Watermarking in Language Models by Injecting Fictitious Knowledgecited by 8
  22. 2025Gaperon: A Peppered English-French Generative Language Model Suitecited by 8
  23. 2025Beyond Data Filtering: Knowledge Localization for Capability Removal in LLMscited by 8
  24. 2026Why Larger Models Learn More: Effects of Capacity, Interference, and Rare-Task Retentioncited by 8
  25. 2024ChroKnowledge: Unveiling Chronological Knowledge of Language Models in Multiple Domainscited by 7
  26. 2025Mitigating Memorization in LLMs using Activation Steeringcited by 7
  27. 2025Bidirectional LMs are Better Knowledge Memorizers? A Benchmark for Real-world Knowledge Injectioncited by 7
  28. 2025Memorization Sinks: Isolating Memorization during LLM Trainingcited by 7
  29. 2025Can Pre-training Indicators Reliably Predict Fine-tuning Outcomes of LLMs?cited by 6
  30. 2025Train Once, Answer All: Many Pretraining Experiments for the Cost of Onecited by 6
  31. 2024Language Models "Grok" to Copycited by 5
  32. 2025From Promising Capability to Pervasive Bias: Assessing Large Language Models for Emergency Department Triagecited by 5
  33. 2025Cross-Lingual Transfer of Cultural Knowledge: An Asymmetric Phenomenoncited by 5
  34. 2025Rote Learning Considered Useful: Generalizing over Memorized Data in LLMscited by 5
  35. 2025Memorizing is Not Enough: Deep Knowledge Injection Through Reasoningcited by 4
  36. 2025Beyond Scaling: Measuring and Predicting the Upper Bound of Knowledge Retention in Language Model Pre-Trainingcited by 3
  37. 2025Facts in Stats: Impacts of Pretraining Diversity on Language Model Generalizationcited by 3
  38. 2025Generalization or Memorization: Dynamic Decoding for Mode Steeringcited by 3

50 most cited of 86 All 86 (JSON)