Physics of Language Models: Part 3.1, Knowledge Storage and Extraction
Allen-Zhu, Zeyuan, Li, Yuanzhi
–arXiv.org Artificial Intelligence
Large language models (LLMs) can store a vast amount of world knowledge, often extractable via question-answering (e.g., "What is Abraham Lincoln's birthday?"). However, do they answer such questions based on exposure to similar questions during training (i.e., cheating), or by genuinely learning to extract knowledge from sources like Wikipedia? In this paper, we investigate this issue using a controlled biography dataset. We find a strong correlation between the model's ability to extract knowledge and various diversity measures of the training data. $\textbf{Essentially}$, for knowledge to be reliably extracted, it must be sufficiently augmented (e.g., through paraphrasing, sentence shuffling) $\textit{during pretraining}$. Without such augmentation, knowledge may be memorized but not extractable, leading to 0% accuracy, regardless of subsequent instruction fine-tuning. To understand why this occurs, we employ (nearly) linear probing to demonstrate a strong connection between the observed correlation and how the model internally encodes knowledge -- whether it is linearly encoded in the hidden embeddings of entity names or distributed across other token embeddings in the training text. This paper provides $\textbf{several key recommendations for LLM pretraining in the industry}$: (1) rewrite the pretraining data -- using small, auxiliary models -- to provide knowledge augmentation, and (2) incorporate more instruction-finetuning data into the pretraining stage before it becomes too late.
arXiv.org Artificial Intelligence
Dec-26-2023
- Country:
- Asia > Myanmar
- Tanintharyi Region > Dawei (0.04)
- North America > United States
- California
- Alameda County > Berkeley (0.04)
- Los Angeles County > Palmdale (0.04)
- San Francisco County > San Francisco (0.14)
- San Mateo County > Menlo Park (0.04)
- North Carolina > Durham County
- Durham (0.04)
- Colorado (0.04)
- Wisconsin > Waukesha County
- Menomonee Falls (0.14)
- New Jersey
- Mercer County > Princeton (0.04)
- Middlesex County > New Brunswick (0.04)
- Oklahoma (0.04)
- Georgia
- Fulton County > Atlanta (0.04)
- Richmond County > Augusta (0.14)
- Ohio > Hamilton County
- Cincinnati (0.14)
- Illinois > Cook County
- Chicago (0.04)
- Northbrook (0.04)
- Massachusetts > Middlesex County
- Cambridge (0.04)
- Louisiana > Orleans Parish
- New Orleans (0.04)
- New York
- Bronx County > New York City (0.04)
- Kings County > New York City (0.14)
- New York County > New York City (0.14)
- Queens County > New York City (0.04)
- Richmond County > New York City (0.04)
- Maryland > Baltimore (0.14)
- Alabama (0.04)
- California
- Asia > Myanmar
- Genre:
- Research Report > New Finding (1.00)
- Industry:
- Education (0.45)
- Technology: