PreprintCited by 18Topic ModelingNatural Language Processing TechniquesAdvanced Neural Network Applications

Physics of language models: Part 3.3, knowledge capacity scaling laws

Open access
Allen-Zhu, Zeyuan, Li, Yuanzhi·2025·SSRN Electronic Journal

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 information-theoretically 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.

The claims and statistics of this paper haven’t been checked yet.

Run the check — free, no account needed. It reads the open-access text and checks the sources it cites.

A few free checks a day · papers already verified open instantly · results are public

Integrity signals

Registry

Crossref · 10.2139/ssrn.5250617

Cites

9 of 9 references verified0 citation errors · 0 not checkable

Statistics

Claims the paper makes

The claims and statistics of this paper haven’t been checked yet.

Run the check — free, no account needed. It reads the open-access text and checks the sources it cites.

A few free checks a day · papers already verified open instantly · results are public

Claims other papers make about this one

Each is checked against this paper’s own text: does it say what the citing paper says it does?

  • One single side memory has limited knowledge capacity.

    “One single side memory has its limited knowledge capacity [43].”

    From WISE: Rethinking the Knowledge Memory for Lifelong Model Editing of Large Language Models (2024) · cites this paper as [43]

    The Abstract (p. 1) reports a knowledge-capacity limit for language models of 2 bits per parameter. The paper addresses knowledge stored in model parameters, not the capacity of a separate “side memory,” so that part of the claim is unsupported. (LLM, conf=0.84)

    Experimental — accuracy not yet measured

Self-check

Percentages, sums and reported differences re-computed from the paper’s own numbers.

The self-check needs the paper’s full text.

Cites

Flagged first, then by citations

Research works printed but not linked: 43

  1. 0616, N=10000000 N=5000000 N=2000000 N=1000000 N=500000 N=200000 N=100000 N=50000 N=20000 N=10000
  2. 25 bit / param N=10000000 N=5000000 N=2000000 N=1000000 N=500000 N=200000 N=100000 N=50000 N=20000 N=10000 (a) Same Figure, 1, 1000
  3. 25 bit / param N=10000000 N=5000000 N=2000000 N=1000000 N=500000 N=200000 N=100000 N=50000 N=20000 N=10000
  4. 25 bit / param N=1000000
  5. N=500000 N=200000 N=100000 N=50000 N=20000 N=10000 (c) Figure 1(a)
  6. 25 bit / param N=20000000 N=10000000 N=5000000 N=2000000 N=1000000 N=500000 N=200000 N=100000 N=50000 (d) Same Figure 1(b), 100
  7. 25 bit / param N=20000000 N=10000000 N=5000000 N=2000000 N=1000000 N=500000 N=200000 N=100000 N=50000
  8. k-D 10 -C 1-K5 -L1 -T4 0k N5 00 k-D 10 -C 1-K1 0-L1 -T4 0k N5 00 k-D 10 -C 1-K2 0-L1 -T4 0k N2 00 k-D 10 -C 1-K
  9. 25 bit / param N=10000000 N=5000000 N=2000000 N=1000000 N=500000 N=200000 N=100000 N=50000 N=20000 N=10000
  10. 25 bit / param N=1000000
  11. N=500000 N=200000 N=100000 N=50000
  12. 25 bit / param N=1000000
  13. N=500000 N=200000 N=100000 N=50000
  14. Q N +jD+D = [T L ]
  15. Recall that each Q i is independently and uniformly generated at random from Q i . We now present an alternative method for generating the training dataset
  16. N Construct, N ) as follows: Let n 1 be the Q 1 -th name from N 0 ; for i > 1, let n i be the Q i -th name from N 0 \ {n 1
  17. let a be the a ? -th attribute in A. Construct D a = (w 1 , . . . , w D ) as follows: Let w 1 be the Q N +(a ? -1)D+1 -th element in T L ; for i > 1, let w i be the Q N +(a ? -1)D+i -th element in T L \ {w 1
  18. Zeyuan Allen, 2023, Physics of Language Models: Part 1, Context-Free Grammar
  19. Zeyuan Allen, 2023, Physics of Language Models: Part 3.1, Knowledge Storage and Extraction
  20. Zeyuan Allen, 2023, Physics of Language Models: Part 3.2, Knowledge Manipulation
  21. Zeyuan Allen-Zhu, 2019, A convergence theory for deep learning via overparameterization, International conference on machine learning, 242
  22. S�bastien Bubeck, 2023, Sparks of artificial general intelligence: Early experiments with gpt-4
  23. Elias Frantar, 2022, GPTQ: Accurate post-training compression for generative pretrained transformers
  24. Olga Golovneva, 2024, Reverse training to nurse the reversal curse
  25. Suriya Gunasekar, 2023, Textbooks are all you need
  26. Tom Henighan, 2020, Scaling laws for autoregressive generative modeling
  27. Danny Hernandez, 2021, Scaling laws for transfer
  28. Joel Hestness, 2017, Deep learning scaling is predictable, empirically
  29. Jordan Hoffmann, 2022, Training computeoptimal large language models
  30. Changho Hwang, 2022, Tutel: Adaptive mixture-of-experts at scale
  31. Alexandre Albert Q Jiang, 2023, Mistral 7b
  32. Mandar Joshi, 2017, Triviaqa: A large scale distantly supervised challenge dataset for reading comprehension
  33. Jared Kaplan, 2020, Scaling laws for neural language models
  34. Yuanzhi Li, 2023, Textbooks are all you need ii: phi-1.5 technical report
  35. Niklas Muennighoff, 2023, Aleksandra Piktus, Nouamane Tazi, Sampo Pyysalo, Thomas Wolf, and Colin Raffel. Scaling data-constrained language models
  36. Alec Radford, 2019, Language models are unsupervised multitask learners, OpenAI blog, 1
  37. Jonathan S Rosenfeld, 2021, Scaling laws for deep learning
  38. Jonathan S Rosenfeld, 2019, A constructive prediction of the generalization error across scales
  39. Noam Shazeer, 2020, Glu variants improve transformer
  40. Jianlin Su, 2021, Roformer: Enhanced transformer with rotary position embedding
  41. Hugo Touvron, 2023, Open and efficient foundation language models
  42. Hugo Touvron, 2023, Llama 2: Open foundation and fine-tuned chat models
  43. Dingli Yu, 2023, Skillmix: A flexible and expandable family of evaluations for ai models

Cited by

Sorted by citations

Authors
Allen-Zhu, Z., & Li, Y.
Affiliations
  • Meta (United States) (US)
  • Mohamed bin Zayed University of Artificial Intelligence (AE)
Corresponding author
Allen-Zhu, Zeyuan
Venue
SSRN Electronic Journal
Publisher
Elsevier BV
Published
2025
ISSN
1556-5068 (ISSN-L)
OpenAlex
W4410356599
Cited by
17
References
9
Citations by year
2026: 6 · 2025: 10 · 2024: 1
Type
posted content
Language
en
Open access
Locations
  • SSRN Electronic Journal (acceptedVersion)
  • arXiv (Cornell University) (submittedVersion)
  • arXiv (Cornell University)
Topics
  • Physical Sciences › Computer Science › Artificial Intelligence › Topic Modeling
  • Physical Sciences › Computer Science › Artificial Intelligence › Natural Language Processing Techniques
  • Physical Sciences › Computer Science › Computer Vision and Pattern Recognition › Advanced Neural Network Applications
Keywords
scaling laws, information-theoretic estimation, model quantization, training duration, Wikipedia data, knowledge extraction

About these checks

Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.

Statistics and arithmetic are recomputed, not judged.

Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.

What counts as a claim ›How we measure confidence ›How we check this ›

Are you an author, or do you see a problem with this page? Request a review