In one line: LM loss follows smooth power laws in N, D, and C (over about six orders of magnitude in N, eight in compute, two in D); prescribed spending compute mostly on model size (N ~ C^0.73) with early stopping, an allocation Chinchilla later corrected to equal N/D scaling (~20 tokens/param).
How far to trust it: Believe the measurements: loss really is a smooth power law in parameters, data and compute, shape barely matters, and bigger models learn from fewer tokens; every later scaling study confirms this. Do not plan with the compute allocation (N growing as C^0.73): it came from one fixed-length training schedule with a long warmup, uncounted output-layer compute and untuned optimisers, and Chinchilla and Porian et al. replaced it with N and D growing equally. The evidence, judged.
The idea in one sentence: language-model test loss falls as a smooth power law in parameters, data and compute, each over many orders of magnitude, so a model's loss can be predicted before it is trained, and for a fixed compute budget the lowest loss comes from a large model stopped well before convergence.
You need: the decoder-only Transformer (The transformer from zero) and cross-entropy loss in nats. Scaling laws as a planning tool today (compute-optimal allocation, over-training) are taught on Pretraining; this page is the 2020 paper. New terms:
Bigger models reach every loss with less compute, so the best buy at each budget is a bigger model stopped early. Fig. 1 lays model size N (non-embedding parameters) against training compute, both on log axes, and raises over that floor the loss the paper's fitted learning-curve law predicts (Eq. 1.6 with Table 5's constants, the batch at the critical batch as Appendix B does); drag it to turn it.
Drawn from the fitted equation, not from runs: L(N, S) = (Nc/N)αN + (Sc/S)αS with compute 6NBcrit(L)S (Eq. B.3), PF-days at the critical batch; valleys are found by scanning sizes along each cut. Height is the loss on a linear scale from 1.5 nats (ticks in step 1). The paper published no data points, so none are drawn; the toy sweep has real ones.
In early 2020 nobody could say quantitatively how language model loss would improve if you spent 10× more compute, nor how to split that spend between a bigger model, more data and longer training. Architecture papers tuned shape (depth, width, heads) at a fixed scale; nobody had mapped the loss across orders of magnitude in model size N, dataset size D and compute C, or answered the budget question: given a fixed C, which N, D, batch size and step count give the lowest loss (§1)?
Train a large family of decoder-only Transformers and fit power laws to the test loss, cross-entropy in nats per token over a 1024-token context (§2).
Two accounting choices turn out to be load-bearing (§2.1, Table 1):
When only one factor is the bottleneck, test loss is a power law in it (§1.2). The constants depend on WebText2's tokenizer and have "no fundamental meaning"; the exponents are the transferable content.
They hold across eight orders of magnitude in Cmin, six in N and over two in D, with no bending at the top end, though they must flatten before zero loss (§1.2). Power laws fit much better than logarithms (Figure 23); 1-layer models and unconverged giants are left out of the fits (§D.7).
2−0.076 = : 5% lower, at any size (§1.2). A small exponent means every fixed gain costs a constant multiple of resources. Drag the multiplier below for data and compute too.
Shape barely matters: at fixed N, the aspect ratio can vary 40× for a few percent of loss; (6, 4288) comes within 3% of GPT-2's (48, 1600) (Figure 5), perhaps because deep networks behave like ensembles of shallower ones. Transfer tracks in-distribution loss: loss on Books, Common Crawl, Wikipedia and Internet books falls in parallel with WebText2's, a roughly constant offset, independent of training time and depth (§3.2.2, Figure 8).
A single equation joins the two limits and the overfitting between them (Eq. 1.5):
Fig. 2 raises this law over a floor of parameters against dataset size, both on log axes; drag it to turn it.
Drawn from the fitted equations, not from runs: the surface is Eq. 1.5 with Table 2's constants (fitted on runs up to 1.5B parameters and 23B tokens; the rest is extrapolation), height the loss on a linear scale from 1 nat (ticks in step 1); the 2.4% line is Eq. 4.3's penalty at the threshold Eq. 4.4 implies, as in the Figure 9 card below. The frontiers lie on the floor only: the surface is the loss after training to early stopping on a dataset of D tokens, not the loss of one pass over D tokens, so it does not price either allocation.
The overfitting penalty depends only on N0.74/D (Eq. 4.3, Figure 9). With run-to-run seed variation of about 0.02, staying below it needs
Figure 9 (left) rebuilt from Eq. 1.5 and Table 2: loss against N at the chosen D (solid) and with unlimited data (dashed); the dot is where the penalty reaches 2.4%.
The paper takes McCandlish et al.'s (2018) trade-off between steps S and examples E = BS at a fixed loss (Eq. 5.1; the relation and batch-size rules in general are taught on Optimisers and learning-rate schedulers) and measures what it implies for language models, a critical batch that depends only on the loss:
Eq. 5.1 at B = b · Bcrit: S/Smin = 1 + 1/b, E/Emin = 1 + b. Every point reaches the same loss.
The paper quotes "roughly 1-2 million tokens at convergence for the largest models" (§1.1); Eq. 5.3 gives 1.1M at a loss of 3.0 but 4.0M at 2.3, Eq. 1.1's loss for 1.5B parameters.
Correcting each run to Smin = S/(1 + Bcrit/B) and Cmin = C/(1 + B/Bcrit) (Eq. 5.4, Eq. 5.5), every learning curve after warmup fits
Curves are Eq. B.1, L = (Nc/N)αN + (Sc/S)αS, against compute 6NBcrit(L)S (Eq. B.3), Table 5's constants; sizes solve L(N, ∞) = 2.50/1.10 and 2.50/1.02. Fitted equations, not runs.
Substitute S = C/(6NBcrit) into Eq. 1.6 and minimise over N (Appendix B). The optimum stops a fixed αN/αS ≈ 10% above the model's converged loss (Eq. B.5); usual practice, the paper says, was nearer 2% (§B.3).
About a third: 2.7× the parameters, 1/7.5 of the steps, 0.36× the compute (Eq. B.12 to B.14; the paper prints 2.7, 0.13, 0.35 and "7.7x fewer parameter updates", checked here). Play both runs in the animation, to scale.
The animation runs both strategies to the same target, 2.50 nats, on one compute axis; the toggle above it switches between them.
At every budget this gives the compute-efficient frontier, fitted to the runs (Figure 14, Table 6):
100.73 = × the parameters and 100.27 = × the data. Chinchilla's later answer is 100.5 = 3.2× each; Then and now walks both rules up to Llama 3's budget.
Off-optimal sizes are cheap: 0.6× to 2.2× the optimal size costs at most 20% more compute, and the 2.2× model needs 45% fewer steps (§B.4, Figure 12). Then a contradiction: compute-efficient data grows as D ≈ (4 × 1010 tokens) Cmin0.26 (Eq. 6.7), but avoiding overfitting needs D ∝ Cmin0.54 (Eq. 6.6). Once data-limited, loss falls only as C−0.03, so the two trends must cross, at roughly C* ~ 104 PF-days, N* ~ 1012 parameters, D* ~ 1012 tokens, L* ~ 1.7 nats/token, uncertain by an order of magnitude either way (Eq. 6.8). The laws must break down by then; the conjecture is that L* estimates the entropy of language, where models have extracted all its reliable information (§6.3).
Figure 15 (Figure 15) rebuilt: Eq. 1.3 against the data-limited bound, Eq. 1.2 at Eq. 6.7's data. Eq. 6.7's own formula, 2Cmin/(6N(Cmin)), gives a prefactor of 2.2 × 1010, not the printed 4 × 1010; only the former lands near the paper's crossing.
What holds up. The measurements: a sweep over six orders of magnitude in N with its fit ranges and exclusions stated (§D.7), and a caveats list the authors volunteer, which counts in their favour (Appendix C): no theory for any law, little confidence in Bcrit far outside the tested range, a poorly studied small-data regime, no regularisation experiments, compute that ignores the context term, possibly untuned hyperparameters, and no higher learning rates tried for short runs. Every later study reproduces the qualitative findings (power-law loss, weak shape dependence, large models' sample efficiency), and so does a toy sweep on this laptop (Refit the laws).
Where the evidence is weaker.
How it held up (beyond the paper). The laws' form held; the allocation did not. Chinchilla's three methods put the size exponent at 0.46 to 0.50 (Chinchilla Table 2), and Porian et al. reproduced Kaplan's 0.88 (raw) and 0.73 (adjusted) and removed the gap cause by cause (Then and now).
Beyond the paper: each later claim carries its own source.
This paper made scale a quantitative engineering discipline. It shaped GPT-3, which cites it for training "much larger models on many fewer tokens than is typical": 300B tokens for every size up to 175B (GPT-3 Figure 2.2, Table 2.1). It made loss-against-compute extrapolation the planning tool for later frontier runs and popularised C ≈ 6ND, the critical batch and power-law fitting as standard vocabulary (Chinchilla budgets with Kaplan's 6ND, Chinchilla §3.3).
Its headline allocation was revised. Chinchilla (Hoffmann et al., 2022) redid the sweep with each cosine schedule matched to its run's length and found Nopt ∝ C0.5, Dopt ∝ C0.5: about 20 tokens per parameter, against Kaplan's C0.73 and C0.27. For Gopher's budget the optimal model is about 4× smaller on 4× more tokens, and 70B Chinchilla on 1.4T tokens beat 280B Gopher at equal compute (Chinchilla §1); head to head at 1021 FLOPs, its size beat Kaplan's 4.68B (Chinchilla D.4; reproduced here from Table 6 with Cmin = C/2).
Why the two disagreed has been corrected since. Chinchilla blamed Kaplan's fixed token count and schedule for all models and its mostly small (many under 100M) models (Chinchilla §2). Porian et al. (2024) found three causes: uncounted output-layer compute (not the input embeddings), a warmup too long for small models, and optimiser settings not retuned per size; and, against Chinchilla's hypothesis, that matching the learning-rate decay to the budget is not essential: with tuned hyperparameters even a constant rate gives Chinchilla's exponent (Porian §1). Pearce and Song (2024) independently found the last-layer effect (Porian §5.1). The corrections move the exponent from about 0.73 to 0.88 down to about 0.5.
Using this today. Plan with Chinchilla's roughly 20 tokens per parameter, or over-train past it when serving cost matters; that allocation and its trade-offs are taught on Pretraining. Kaplan's other findings (the power-law form, shape insensitivity, large models' sample efficiency, the critical batch, the L(N, D) law) survived and remain the working toolkit.
Start from Chinchilla's D ≈ 20N as the compute-optimal point, or overtrain past it when inference cost matters, as Llama 3 does for its 8B and 70B models (Llama 3 §1) while keeping 405B near its own fitted optimum (§3.2.1). Count the output layer in N and C, scale warmup with model size, tune learning rate and batch per size (Porian et al.), and decay the learning rate at the planned budget, which still lowers the final loss at every scale even if it barely moves the exponent (Chinchilla Appendix B; Porian §4.1). Kaplan's other findings (the power-law form, shape insensitivity, large models' sample efficiency, the critical batch, the L(N, D) law) survived and remain the working toolkit.
The paper released no runs, so its curves cannot be refitted. Instead, this page ran its own sweep, in the paper's style but at toy scale, on a laptop CPU: training runs of decoder-only Transformers from 1.5 thousand to 2.7 million non-embedding parameters, of CPU in all. Every point below is a real held-out loss from those runs; every fit is computed in your browser from them.
| The paper | This sweep | |
|---|---|---|
| Model | decoder-only Transformer, dff = 4dmodel | the same, pre-LayerNorm, GELU, learned positions, heads of 16 dimensions |
| Sizes N (Eq. 2.1) | 768 to 1.5 × 109 | 1,536 to 2.65 × 106, eight shapes (2, 8) to (6, 192) |
| Data | WebText2, 2.29 × 1010 BPE tokens (vocabulary 50,257) | WikiText-2 raw, 1.09 × 107 characters as byte-level tokens (vocabulary 96); test loss on a fixed 131,072-token slice of its validation split |
| Context, batch | 1024 tokens, 219 tokens | 64 tokens, 2,048 tokens |
| Schedule | Adam, 2.5 × 105 steps for every size, 3000-step warmup (1.2%), cosine to zero | Adam (β2 = 0.95), 4,096 steps (8.4M tokens, no token seen twice) for every size, 1.2% warmup, cosine to zero |
| Learning rate | LR(N) ≈ 0.003239 − 0.0001395 log N (Eq. D.1) | the same rule |
| Extra | runs whose cosine ends at 1/4 and 1/16 of the budget (all but the largest size), a second seed for three sizes, and two 1/4-budget runs at 3× the learning rate |
Source: src/train.py and src/prep_data.py; the comparisons are recomputed by src/mk_results.py. Character-level losses are not comparable in value to the paper's BPE losses; exponents are the comparable part, and even they depend on the data.
Try: drop the smallest or largest models from the fit and watch the exponent move; switch to counting all parameters (embeddings included) and see the points leave the line, the paper's Figure 6 argument; switch to a law with an irreducible loss, as Chinchilla later fits.
Points: final test loss of each size's full-length run (seed 1). Hollow points are left out of the fit. Dashed: the fit extrapolated to 10× the largest model. Lower strip: residuals, log(loss) minus log(fit), in percent. The pure fit is least squares in log-log space; the saturating fit scans E and fits the rest in log space.
Try: read the heavy line: at each compute, the lowest loss any run reached. Switch the compute accounting to include the output layer and attention, and see the small models move right.
Every evaluation of every full-length run (seed 1), after warmup, plotted against training compute. The frontier is the lower envelope; its power-law fit is least squares in log-log space over the envelope's points.
The paper reads its frontier off checkpoints of runs whose learning rate has not yet decayed; Chinchilla's criticism is that a run whose cosine ends at that budget would do better (its Appendix B). Measured here, for each size: the long run's loss when it has seen 1/4 (or 1/16) of its tokens, against a separate run with the same tokens, data order and initialisation whose schedule ends there.
The paper's allocation says that at a given compute a bigger model stopped early beats a smaller one trained longer. Each row below compares two neighbouring sizes at the same compute: the smaller one at the end of its full run, the bigger one at the point where it has spent that much compute, read from its long run (the paper's way) and from its matched runs (Chinchilla's way).
Compute is 6N per token, as the paper counts. "Matched" interpolates the bigger size's three finished runs (1/16, 1/4, full) linearly in log tokens. The largest size has no matched runs (CPU budget).
All six tables of the paper, transcribed from the arXiv HTML with the printed precision kept, plus every number the text derives from them, recomputed by src/recompute.py. The paper has no table of runs: its evidence is in figures whose data were never released, so nothing here is read off a curve.
Table 1 and Eq. 2.1, 2.2, with dattn = dmodel and dff = 4dmodel; sub-leading terms (biases, layer norms, nonlinearities) omitted, as in the paper.
Table 2: L(N, D), Eq. 1.5, early-stopped runs with 10% dropout.
Table 3: L(N, S), Eq. 1.6, Adam runs after warmup.
The same αN comes out three times: 0.076 (Eq. 1.1), 0.076 (Table 2) and 0.077 (Table 3); Nc moves from 8.8 to 6.4 and 6.5 × 1013 because each fit trades it against other constants. αD is 0.095 alone and 0.103 jointly; the "N0.74" everywhere in the paper is Table 2's ratio, 0.076/0.103 = 0.738.
Table 6 evaluated at the chosen budget. Smin × B is the data at a very large batch; Table 6's Dopt is one epoch at the critical batch.
Each number the paper derives (or that this page derives from it), recomputed from the printed constants. "Reproduces" means within the paper's own rounding.
Parameters against training tokens, both logarithmic; grey diagonals are fixed compute, C = 6ND. Kaplan's rule is Table 6, N = 1.3 × 109 (C/2 / 8.64 × 1019)0.73, taking Cmin = C/2 as Chinchilla does when it compares the two (its Appendix D.4 gets 4.68B at 1021 FLOPs; so does this page). Chinchilla's is about 20 tokens per parameter (Chinchilla Table 3). "Loss" is Chinchilla's own parametric fit, L = 1.69 + 406.4/N0.34 + 410.7/D0.28 on its MassiveText data (Chinchilla Appendix D.2): comparable between the two rules, not with Kaplan's WebText2 losses. Model points:
The paper's allocation rule drove the models of 2020 and 2021; Chinchilla's replaced it in 2022; the models since train far past either. Below, the same compute budgets are spent by both rules, on the same axes, with the real models that were trained at those budgets.
Press a step to replay it; the toggle above the chart switches between the two rules, and the steps are the same for both.
Porian et al. (2024) reproduced Kaplan's setup in a modern training stack and undid its choices one at a time (Porian Figure 1):
Two corrections to the usual story. First, the uncounted cost that matters is the output layer (the "head" that produces logits), which Kaplan's N and C leave out; the input embedding costs no matrix multiply. Second, matching the cosine decay to each run's length, which Chinchilla proposed as the explanation, barely moved the exponent; per-size tuning of learning rate, batch and AdamW β2 did the rest, and with it even a constant learning rate gives Chinchilla's exponent (Porian §3.4, §3.5). Porian et al. also recover Kaplan's adjusted 0.73 (they get 0.717) by reintroducing the FLOP count and warmup issues with tuned hyperparameters (their Appendix, Figure 17).
Chinchilla's three methods, for comparison (Chinchilla Table 2):
Every link opens in a new tab. Reading time of the resources below: 4h 20m.
arXiv preprint (not peer reviewed), the paper itself; the HTML version has the anchors this page links to. abstract page, PDF.
(1h 30m)
the paper released no code or run data. The closest public material is Porian et al. (2024), who reproduce the Kaplan setup over 900 runs and publish their data and analysis code (README and the notebooks, about 20 minutes).
(20 min)
Lilian Weng: modern end-to-end treatment of the scaling-law literature, from Kaplan through Chinchilla to current practice, with the fitting pitfalls spelled out.
(50 min)
Jonas Vetterle: accessible walkthrough of the Kaplan and Chinchilla papers side by side, good for building intuition before running a sweep.
(25 min)
Porian et al., NeurIPS 2024: the forensic reconciliation of Kaplan and Chinchilla: reproduces Kaplan's 0.88 and 0.73 exponents, then removes them one cause at a time (output-layer FLOPs, warmup length, optimiser tuning) and finds learning-rate decay matters little for the exponent.
(45 min)
nostalgebraist: what the revised laws imply about data as the binding constraint; a useful counterpoint to this paper's "big models over big data" conclusion.
(30 min)
2022: the direct successor; revises the compute-optimal allocation to equal N and D scaling (about 20 tokens per parameter).
2020: the first frontier model built on these prescriptions (large N, one pass over most data, stopped short of convergence).
2017: the architecture whose parallelism made these compute scales reachable.
2024: fits its own isoFLOP scaling law (405B is about compute-optimal) and deliberately overtrains the smaller models to cheapen inference.
2024: 14.8T tokens for 37B active parameters, the overtrained regime with mixture of experts.
2019: the model parallelism this paper's Discussion calls for to train wide networks.
2025: decay-free schedules with checkpoint merging, one answer to the schedule-length problem behind the Kaplan and Chinchilla disagreement.
pretraining, batch size, learning-rate schedules.
data requirements and scaling.
power-law fitting, overfitting.
This page is one row of the Papers database; its properties (Paper, Takeaway, Topics, Year) live there.