Lune

ICLR2025Top-tier venue

Physics of Language Models: Part 3.3, Knowledge Capacity Scaling Laws

Zeyuan Allen-Zhu, Yuanzhi Li

Abstract

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.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

74 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Physics of Language Models: Part 3.1, Knowledge Storage and Extraction cites LoRA: Low-Rank Adaptation of Large Language Models
  • Revisiting Neural Scaling Laws in Language and Vision cites A Constructive Prediction of the Generalization Error Across Scales
  • Physics of Language Models: Part 4.1, Architecture Design and the Magic of Canon Layers cites Physics of Language Models: Part 3.1, Knowledge Storage and Extraction
  • WISE: Rethinking the Knowledge Memory for Lifelong Model Editing of Large Language Models cites LoRA: Low-Rank Adaptation of Large Language Models
  • WISE: Rethinking the Knowledge Memory for Lifelong Model Editing of Large Language Models cites Revisiting Neural Scaling Laws in Language and Vision
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers74

  1. Physics of Language Models: Part 3.1, Knowledge Storage and ExtractionZeyuan Allen-Zhu, Yuanzhi LiICML 2024 · 258 citations
  2. WISE: Rethinking the Knowledge Memory for Lifelong Model Editing of Large Language ModelsPeng Wang, Zexi Li, Ningyu Zhang, Ziwen Xu et al.NeurIPS 2024 · 125 citations
  3. Knowledge Circuits in Pretrained TransformersYunzhi Yao, Ningyu Zhang, Zekun Xi, Mengru Wang et al.NeurIPS 2024 · 71 citations
  4. Physics of Language Models: Part 4.1, Architecture Design and the Magic of Canon LayersZeyuan Allen-ZhuNeurIPS 2025 · 44 citations
  5. Muon Outperforms Adam in Tail-End Associative Memory LearningShuche Wang, Fengzhuo Zhang, Jiaxiang Li, Cunxiao Du et al.ICLR 2026 · 40 citations

Builds on6

  1. LoRA: Low-Rank Adaptation of Large Language ModelsEdward J. Hu, Yelong Shen, Phillip Wallis, Zeyuan Allen-Zhu et al.ICLR 2022 · 18,833 citations
  2. A Constructive Prediction of the Generalization Error Across ScalesJonathan S. Rosenfeld, Amir Rosenfeld, Yonatan Belinkov, Nir ShavitICLR 2020 · 265 citations
  3. Physics of Language Models: Part 3.1, Knowledge Storage and ExtractionZeyuan Allen-Zhu, Yuanzhi LiICML 2024 · 258 citations
  4. Revisiting Neural Scaling Laws in Language and VisionIbrahim M. Alabdulmohsin, Behnam Neyshabur, Xiaohua ZhaiNeurIPS 2022 · 171 citations
  5. SKILL-MIX: a Flexible and Expandable Family of Evaluations for AI ModelsDingli Yu, Simran Kaur, Arushi Gupta, Jonah Brown-Cohen et al.ICLR 2024 · 69 citations

Related papers

  1. How much can language models memorize?John Morris, Chawin Sitawarin, Narine Kokhlikyan, Chuan Guo et al.ICML 2026
  2. The Rise of Parameter Specialization for Knowledge Storage in Large Language ModelsYihuai Hong, Yiran Zhao, Wei Tang, Yang Deng et al.NeurIPS 2025 · 1 citation
  3. Scaling Laws for Fact Memorization of Large Language ModelsXingyu Lu, Xiaonan Li, Qinyuan Cheng, Kai Ding et al.EMNLP Findings 2024 · 9 citations
  4. Task-Stratified Knowledge Scaling Laws for Post-Training Quantized Large Language ModelsChenxi Zhou, Pengfei Cao, Jiang Li, Bohan Yu et al.ACL Findings 2026 · 4 citations
  5. Beyond Scaling: Measuring and Predicting the Upper Bound of Knowledge Retention in Language Model Pre-TrainingChanghao Jiang, Ming Zhang, Yifei Cao, Junjie Ye et al.ACL 2026 · 2 citations
Dusk over the sea between two cliffs drawn in fine vertical lines