Physics of Language Models: Part 3.3, Knowledge Capacity Scaling Laws
摘要
Scaling laws describe the relationship between the size of language models and their capabilities. Unlike prior studies that evaluate a model's capability via loss or benchmarks, we estimate the number of knowledge bits a model stores. We focus on factual knowledge represented as tuples, such as (USA, capital, Washington D.C.) from a Wikipedia page. Through multiple controlled datasets, we establish that language models can and only can store 2 bits of knowledge per parameter, even when quantized to int8, and such knowledge can be flexibly extracted for downstream applications. Consequently, a 7B model can store 14B bits of knowledge, surpassing the English Wikipedia and textbooks combined based on our estimation. More broadly, we present 12 results on how (1) training duration, (2) model architecture, (3) quantization, (4) sparsity constraints such as MoE, and (5) data signal-to-noise ratio affect a model's knowledge storage capacity. Notable insights include: • The GPT-2 architecture, with rotary embedding, matches or even surpasses LLaMA/Mistral architectures in knowledge storage, particularly over shorter training durations. This arises because LLaMA/Mistral uses GatedMLP, which is less stable and harder to train. • Prepending training data with domain names (e.g., wikipedia.org) significantly increases a model's knowledge capacity. Language models can autonomously identify and prioritize domains rich in knowledge, optimizing their storage capacity.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 74 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Physics of Language Models: Part 3.1, Knowledge Storage and Extraction 引用了 LoRA: Low-Rank Adaptation of Large Language Models
- Revisiting Neural Scaling Laws in Language and Vision 引用了 A Constructive Prediction of the Generalization Error Across Scales
- Physics of Language Models: Part 4.1, Architecture Design and the Magic of Canon Layers 引用了 Physics of Language Models: Part 3.1, Knowledge Storage and Extraction
- WISE: Rethinking the Knowledge Memory for Lifelong Model Editing of Large Language Models 引用了 LoRA: Low-Rank Adaptation of Large Language Models
- WISE: Rethinking the Knowledge Memory for Lifelong Model Editing of Large Language Models 引用了 Revisiting Neural Scaling Laws in Language and Vision
引用它的顶会 Paper74
- Physics of Language Models: Part 3.1, Knowledge Storage and ExtractionZeyuan Allen-Zhu, Yuanzhi LiICML 2024 · 258 次引用
- WISE: Rethinking the Knowledge Memory for Lifelong Model Editing of Large Language ModelsPeng Wang, Zexi Li, Ningyu Zhang, Ziwen Xu 等NeurIPS 2024 · 125 次引用
- Knowledge Circuits in Pretrained TransformersYunzhi Yao, Ningyu Zhang, Zekun Xi, Mengru Wang 等NeurIPS 2024 · 71 次引用
- Physics of Language Models: Part 4.1, Architecture Design and the Magic of Canon LayersZeyuan Allen-ZhuNeurIPS 2025 · 44 次引用
- Muon Outperforms Adam in Tail-End Associative Memory LearningShuche Wang, Fengzhuo Zhang, Jiaxiang Li, Cunxiao Du 等ICLR 2026 · 40 次引用
它引用的 Paper6
- LoRA: Low-Rank Adaptation of Large Language ModelsEdward J. Hu, Yelong Shen, Phillip Wallis, Zeyuan Allen-Zhu 等ICLR 2022 · 18,833 次引用
- A Constructive Prediction of the Generalization Error Across ScalesJonathan S. Rosenfeld, Amir Rosenfeld, Yonatan Belinkov, Nir ShavitICLR 2020 · 265 次引用
- Physics of Language Models: Part 3.1, Knowledge Storage and ExtractionZeyuan Allen-Zhu, Yuanzhi LiICML 2024 · 258 次引用
- Revisiting Neural Scaling Laws in Language and VisionIbrahim M. Alabdulmohsin, Behnam Neyshabur, Xiaohua ZhaiNeurIPS 2022 · 171 次引用
- SKILL-MIX: a Flexible and Expandable Family of Evaluations for AI ModelsDingli Yu, Simran Kaur, Arushi Gupta, Jonah Brown-Cohen 等ICLR 2024 · 69 次引用
相关 Paper
- How much can language models memorize?John Morris, Chawin Sitawarin, Narine Kokhlikyan, Chuan Guo 等ICML 2026
- The Rise of Parameter Specialization for Knowledge Storage in Large Language ModelsYihuai Hong, Yiran Zhao, Wei Tang, Yang Deng 等NeurIPS 2025 · 1 次引用
- Scaling Laws for Fact Memorization of Large Language ModelsXingyu Lu, Xiaonan Li, Qinyuan Cheng, Kai Ding 等EMNLP Findings 2024 · 9 次引用
- Task-Stratified Knowledge Scaling Laws for Post-Training Quantized Large Language ModelsChenxi Zhou, Pengfei Cao, Jiang Li, Bohan Yu 等ACL Findings 2026 · 4 次引用
- Beyond Scaling: Measuring and Predicting the Upper Bound of Knowledge Retention in Language Model Pre-TrainingChanghao Jiang, Ming Zhang, Yifei Cao, Junjie Ye 等ACL 2026 · 2 次引用
