paper-with-me

Papers

How Do Large Language Models Acquire Factual Knowledge During Pretraining?

2024-06-17 · Hoyeon Chang, Jinho Park, Seonghyeon Ye, Sohee Yang, Youngkyung Seo, Du-Seong Chang, Minjoon Seo

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.

📄 PDF Abstract BibTeX arXiv:2406.11813

Code (2)

kaistai/factual-knowledge-acquisition 공식 구현 pytorch
kaistai/knowledge-entropy pytorch

Tasks

Memorization

Similar Papers 제목 키워드 기반

How Do Multilingual Models Remember? Investigating Multilingual Factual Recall Mechanisms

2024-10-18 · Constanza Fierro, Negar Foroutan, Desmond Elliott, Anders Søgaard

Large Language Models (LLMs) store and retrieve vast amounts of factual knowledge acquired during pre-training. Prior research has localized and identified mechanisms behind knowledge recall; however, it has primarily fo…

Does Fine-Tuning LLMs on New Knowledge Encourage Hallucinations?

2024-05-09 · Zorik Gekhman, Gal Yona, Roee Aharoni, Matan Eyal 외

When large language models are aligned via supervised fine-tuning, they may encounter new factual information that was not acquired through pre-training. It is often conjectured that this can teach the model the behavior…

Do Large Language Models Know about Facts?

2023-10-08 · Xuming Hu, Junzhe Chen, Xiaochuan Li, Yufei Guo 외

Large language models (LLMs) have recently driven striking performance improvements across a range of natural language processing tasks. The factual knowledge acquired during pretraining and instruction tuning can be use…

Question AnsweringText Generation

The Effect of Masking Strategies on Knowledge Retention by Language Models

2023-06-12 · Jonas Wallat, Tianyi Zhang, Avishek Anand

Language models retain a significant amount of world knowledge from their pre-training stage. This allows knowledgeable models to be applied to knowledge-intensive tasks prevalent in information retrieval, such as rankin…

Information RetrievalQuestion AnsweringRetrievalWorld Knowledge

Why Fine-Tuning Encourages Hallucinations and How to Fix It

2026-04-16 · Guy Kaplan, Zorik Gekhman, Zhen Zhu, Lotem Rozner 외 arxiv

Large language models are prone to hallucinating factually incorrect statements. A key source of these errors is exposure to new factual information through supervised fine-tuning (SFT), which can increase hallucinations…

Continual Learning