GO TO A SECTION

↑ ↓ to navigate · Enter to openExplore all sections →
FDEInterviews logo
arXiv preprint

Scaling Laws for Neural Language Models

OpenAI showed that language model loss falls as a smooth power law in parameters, data and compute, and used it to argue for huge models trained briefly. The method lasted; the allocation did not.

Breakdown by FDE Interviews · 14 min read · Updated

About the original · 2020
AUTHORS
Kaplan, McCandlish, Henighan, Brown, et al.
FROM
OpenAI, Johns Hopkins University
PUBLISHED
Jan 2020 · arXiv preprint
CITED BY
9,623Semantic Scholar · Nov 2026
IN THIS BREAKDOWN · 10 SECTIONS

You can read 17% of this breakdown.

01

The paper in one minute

Before this paper, deciding how big a language model to train was mostly judgment. Kaplan and colleagues at OpenAI trained a large grid of decoder-only Transformers on WebText2, a 22-billion-token web scrape, and measured test loss as they varied the number of non-embedding parameters N (768 to 1.5 billion), the dataset size D (22 million to 23 billion tokens), the compute C, the batch size, and the model's shape.

Three results came out. First, loss is a power law in each of N, D and C whenever the other two are not the bottleneck: L(N) = (8.8 × 10^13 / N)^0.076, L(D) = (5.4 × 10^13 / D)^0.095, and against optimally allocated compute, L ∝ C^−0.050. The trends held over six to eight orders of magnitude with no sign of bending. Second, shape barely matters: at a fixed parameter count, a model 6 layers deep and 4,288 wide came within 3% of the loss of a 48-layer, 1,600-wide one. Counting embedding parameters muddied the trends; excluding them gave clean lines. Third, larger models are more sample-efficient: they reach a given loss in fewer steps and fewer tokens.

From those fits the authors solved for the best use of a fixed compute budget. Their answer was to grow the model fastest, as C^0.73, and the data slowly, as C^0.27, stopping well before convergence. Many large models that followed, GPT-3 among them, were trained on about 300 billion tokens in line with that rule. Two years later Chinchilla showed the data side had been badly underweighted. The power-law method survived; the budget rule did not.

THE IDEA, VISUALLY
LOSS IS A POWER LAW IN EACH FACTOR (FIGURE 1, TABLE 5) test loss, nats per token, log-log, from the fitted equations PARAMETERS N 1e3 1e6 1e9 non-embedding 2 4 6 TOKENS D 1e7 1e8 1e9 1e10 early stopping 2 4 6 COMPUTE 1e-8 1e-4 1 PF-days, Cmin 2 4 6 α = 0.076 α = 0.095 α = 0.050 Straight lines over six to eight orders of magnitude. Shape barely matters at fixed N: a 6-layer, 4,288-wide model came within 3% of a 48-layer, 1,600-wide one (Figure 5). Counting embedding parameters hides the trend (Figure 6). OVERFITTING DEPENDS ON N^0.74 / D (SECTION 4) an 8x larger model needs about 5x more data to avoid an overfitting penalty 768 to 1.5B non-embedding params, WebText2, 1,024 context WHERE 10X MORE COMPUTE GOES multiplier on model size and on training tokens Kaplan 2020 (Table 6) model 5.4x tokens 1.9x Chinchilla 2022 model 3.2x tokens 3.2x Kaplan: grow the model fast, stop training early. Chinchilla: grow both equally; most large models of the time were undertrained. THE ARITHMETIC THAT STAYED 6N FLOPs per training token 2^-0.076 = 0.95 loss if N doubles 7B params on 1T tokens = 6ND = 4.2e22 FLOPs, about 486 PF-days before utilization losses arXiv 2001.08361, OpenAI and Johns Hopkins, January 2020
Loss falls as a straight line on log-log axes in each of parameters, tokens and compute, as long as the other two are not the bottleneck. Kaplan's fits then said most of any new compute should buy a bigger model: 5.4x more parameters but only 1.9x more tokens per 10x compute. Chinchilla later overturned that split.
Research notes: the problem, approach and results
0.95x

loss multiplier from doubling non-embedding parameters, 2^-0.076 (Section 1.2)

C^0.73

growth of the compute-optimal model size with training compute (Equation 6.1, Table 6)

6N

training FLOPs per token for a model with N non-embedding parameters (Section 2.1)

THE PROBLEM

Training a language model is expensive, and in 2019 nobody could say in advance how much a bigger model, more data or more compute would improve it, or how to divide a fixed budget among them. Teams tuned shapes and schedules by trial.

THE IDEA

Train hundreds of decoder-only Transformers from 768 to 1.5 billion non-embedding parameters on WebText2 and fit the test loss as power laws in non-embedding parameters N, tokens D and compute C. Combine them into one equation for overfitting, one for learning curves, and solve for the compute-optimal split.

THE RESULT

Loss followed power laws across more than six orders of magnitude, with exponents 0.076 for N, 0.095 for D and 0.050 for optimally used compute. Shape barely mattered. Their optimum put most of a bigger budget into model size (N growing as C^0.73), with data growing only as C^0.27.

02

Why it matters to an FDE

You will rarely pretrain a model, but this paper hands you the arithmetic that sits under every model-sizing conversation.

The 6N rule prices training. Training costs about 6 floating-point operations per non-embedding parameter per token (2 for the forward pass, 4 for the backward). A 7-billion-parameter model on a trillion tokens is about 4.2 × 10^22 FLOPs. Convert that to GPU-days with a utilization figure you have measured and you have a defensible estimate for a customer's continued-pretraining plan before anyone books hardware. Forward-only inference is the 2N part: about 2 FLOPs per parameter per generated token.

Smooth curves let small runs predict large ones. The paper's lasting method is to train a ladder of small models, fit the curve, and extrapolate. Later scaling work, Chinchilla included, kept that method while changing the conclusions, and the same logic justifies running a fine-tuning or data-mix experiment at small scale before spending on the large one.

Extrapolation is only as good as the bottleneck you modeled. The paper's own later sections show the fits fail when one factor binds, and its budget advice reflected a training setup, not a law of nature. When someone shows you a straight line on log-log axes, ask what was held fixed.

THE FULL BREAKDOWN

Understand the mechanism. Try it on a real problem.

Unlock this breakdown and 290 more papers.

Premium opens every paper in full, plus every answer, concept, course and guide on the site. One payment for six months of access.

6 months · One payment · No auto-renewal

Get Premium · ₹2,000 / $25
  • ◇1 architecture diagram
  • </>1 runnable code experiment
  • ▦2 results tables
  • ?5 interview questions with answers
  1. 03Key takeaways

    The equations worth remembering, what shape does not change, the budget rule and why it was wrong

    Free account
  2. 04How it works

    The fitting setup, the four equations, the critical batch size and how the optimum was solved

    Premium
  3. 05The numbers that matter

    The fitted constants, the shape result, the budget table and the claims that rest on them

    Premium
  4. 06Try it yourself

    Recompute the paper's exponents, price a training run, and watch an extrapolation fail

    Premium
  5. 07Where it breaks

    The allocation error, the fixed schedule behind it, narrow data, loss versus capability, and slips

    Premium
  6. 08Using it on a deployment

    Pricing a training run, sizing a pilot ladder, and the questions to ask of any scaling plot

    Premium
  7. 09Interview angles

    Five questions this paper prepares you for, with answer hints

    Premium
Back to the paper library →