[Paper Review] How Do Large Language Models Acquire Factual Knowledge During Pretraining?
This paper investigates how large language models (LLMs) acquire and forget factual knowledge during pretraining by analyzing intermediate checkpoints across training stages. It reveals that knowledge acquisition occurs through incremental probability increases per minibatch, but is counteracted by forgetting; larger batch sizes reduce forgetting, and deduplication improves long-tail knowledge retention, explaining observed LLM behaviors like poor long-tail performance and benefits of data deduplication.
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.
Motivation & Objective
- To understand the fine-grained dynamics of factual knowledge acquisition in LLM pretraining.
- To investigate how training conditions such as data volume, batch size, and model scale affect knowledge acquisition and retention.
- To explain observed LLM behaviors—like poor long-tail knowledge performance and benefits of data deduplication—through mechanistic analysis of memorization and forgetting.
- To examine the role of model size and pretraining stage in factual knowledge acquisition efficiency.
Proposed method
- The study analyzes intermediate pretraining checkpoints of a 7B-parameter LLM (OLMo-7B) at early, mid, and late stages.
- It injects previously unseen factual knowledge into these checkpoints and measures memorization and generalization performance over time.
- Effectivity is quantified as the increase in log-probability of the injected knowledge after training on a single minibatch.
- Retainability is modeled using a power-law decay function to track forgetting over training steps or tokens.
- The analysis compares training with different batch sizes, data duplication, and injection formats (paraphrase, semantic, composition).
- Statistical modeling is used to estimate decay constants and x-intercepts of retainability curves to assess forgetting rates.

Experimental results
Research questions
- RQ1How is factual knowledge acquired during LLM pretraining, and how do training data and steps affect this process?
- RQ2How do training conditions—such as batch size, data duplication, and model size—influence the effectiveness of factual knowledge acquisition?
- RQ3How is acquired factual knowledge forgotten during pretraining, and how do training conditions affect forgetting dynamics?
- RQ4Why do LLMs perform poorly on long-tail knowledge, and how does data deduplication improve performance?
Key findings
- Pretraining on more data does not significantly improve factual knowledge acquisition or retention, challenging assumptions about data scale benefits.
- A power-law relationship exists between training steps and forgetting, with decay constants of approximately 0.26–0.32 across pretraining stages.
- Models trained with larger batch sizes show slower forgetting, with x-intercepts (learnability thresholds) of 9.23–9.94 log(tokens), indicating greater robustness.
- The effectivity of knowledge acquisition is highest during the first injection of a fact, regardless of model stage, and remains relatively stable across repeated injections.
- Deduplication of training data reduces forgetting, explaining why deduplication improves long-tail knowledge performance in LLMs.
- The 7B model shows higher effectivity than the 1B model, indicating that model size and pretraining token count have qualitatively different impacts on factual knowledge acquisition.

Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.