Sources

542 sources

Source

Chang et al. (2024)

How Do Large Language Models Acquire Factual Knowledge During Pretraining?

arXiv

Find It

DOI

Abstract

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.

Reference

Chang, H., Park, J., Ye, S., Yang, S., Seo, Y., Chang, D. S., & Seo, M. (2024). How Do Large Language Models Acquire Factual Knowledge During Pretraining?. arXiv preprint arXiv:2406.11813. https://doi.org/10.48550/arxiv.2406.11813

What Rests on This

2 mechanisms cite this source. Each finding below is quoted as it appears on that mechanism's own page.

Consolidation Memory Processes

  • Measured in AI

    In training, facts a model picks up are not stabilized: each exposure raises their probability, but later training dilutes it through forgetting that follows a power law, measured as knowledge acquisition and forgetting rather than as consolidation

Forgetting Memory Processes

  • Measured in AI

    Tracking facts inserted during pretraining of OLMo models (1B and 7B) showed retention falling linearly with the logarithm of later training steps, the same curve family that fits human retention, and facts repeated verbatim were forgotten faster than paraphrased ones; no human data were placed on the same scale