TL;DR
Kaplan and colleagues trained hundreds of decoder-only Transformers on web text and found that the test loss falls as a smooth power law in three quantities: the number of non-embedding parameters, the size of the dataset, and the training compute. The shape of the model matters much less than its size. Within a fixed compute budget, the best use of compute is a very large model stopped well before convergence.
The result turns model building into planning. Before training, you can predict roughly how much loss a larger model will reach, and how much data and compute it needs.
Where you'll see it: deciding how large a language model to train for a given budget, choosing how much text to collect, and justifying the multi-billion-dollar training runs that followed the paper.
The problem
By 2020, language models were getting larger, but the trade-offs were unclear. Researchers chose architectures by trial and error, and they did not know how much a larger model would gain, or how much more data it would need. Two questions were open. First, does a bigger model keep improving, or does it stop helping at some size? Second, if compute is fixed, should you train a bigger model for fewer steps, or a smaller one for longer?
The paper's answer is that the loss shows no sign of leveling off at the upper end of the range it measured (though it must flatten eventually before reaching zero), and that the trade-off is governed by simple exponents. It also says that the exponents are stable enough to extrapolate.
Key idea
The central claim is that performance is determined mainly by scale. Three inputs matter: the number of non-embedding parameters , the number of training tokens , and the compute . Each one, when it is the bottleneck, produces a straight line on a log-log plot. Changing the depth or width of a Transformer, at fixed , barely changes the loss.
The second claim is about overfitting. If and are scaled together, training is efficient. If one is held fixed while the other grows, returns diminish. The penalty depends on one combined quantity, . This means the data needed to avoid overfitting grows much more slowly than the model.
The third claim is about compute. Models trained with the optimal batch size should be stopped before convergence, and most of any extra compute should go to a larger model.
The method
Setup
The models are decoder-only Transformers trained with Adam (Adafactor for the largest, above 1B parameters) on WebText2, a web-text dataset tokenised with byte-pair encoding and a vocabulary of 50,257 tokens. The loss is the average cross-entropy over a 1024-token context, which is the paper's main metric. The authors also trained LSTMs and Universal Transformers for comparison. Model sizes range from about 768 to 1.5 billion non-embedding parameters, and dataset sizes from 22 million to 23 billion tokens.
The compute estimate is , where is the batch size in tokens and is the number of parameter updates. The factor of 6 counts floating-point operations per parameter per token: the forward pass costs about (a multiply and an add per parameter), and the backward pass costs about twice the forward pass, so .
The three power laws
When one factor is the bottleneck, the test loss follows a power law:
The constants , and depend on the vocabulary and tokenisation, so they have no fundamental meaning. The exponents are the useful part. The paper points out that doubling multiplies the loss by , which is about 0.95.
A single formula for overfitting
When both and are finite, the authors propose one formula that covers both limits and the overfitting between them:
Its limits are the two single-factor laws above. Its term is a choice the authors justify by the variance of the data, though they call this argument speculative. Fitting this form to their runs, with 10 percent dropout and early stopping, gives and . The authors also define the relative overfitting , which depends on and only through the combination . From this they estimate that avoiding overfitting to within about 0.02 nats of loss needs tokens.
The exponent is the ratio . It explains the paper's rule of thumb: each 8x increase in needs only about a 5x increase in , since .
Training curves and the critical batch size
The paper also fits learning curves. For a model trained for steps with enough data, the loss is approximately
Here is the minimum number of steps needed, given the batch size. The critical batch size is the largest batch that still gives near-optimal steps per sample. It follows a power law in the loss, with tokens and . Above , extra batch size wastes data. Below it, extra batch size saves steps almost for free. This is the same trade-off studied in Critical Batch Size.
Optimal allocation of compute
Combining these pieces gives the paper's main planning result. Let , , and be the model size, batch size, steps and dataset size. For a fixed budget , the optimum scales as:
The exponents sum to 1, which is what you expect from . Almost all extra compute goes into model size. Data grows more slowly, roughly as , and most of that growth shows up as a larger batch rather than more serial steps. The authors caution that the exponent for is small enough that it may be zero.
Results
The power laws held over the measured range: about six orders of magnitude in , two in , and eight in . The fit of improved once the authors standardised to the critical batch size, which removed a bias from comparing runs at a fixed batch.
The optimal-allocation results were checked two ways. Fitting the best model at each budget gave empirically , and the prediction from the learning-curve fit is , which the authors say matches to within a few percent. The empirical fit also gives optimal model size growing about fivefold per tenfold increase in compute, while the number of data examples processed grows about twofold. The theory also says to train to a fixed percentage above the converged loss, , which is what "stop well before convergence" means in numbers.
Figure 13 of the paper shows that the adjusted trend is the one to extrapolate. The unadjusted trend in compute is less clean. The authors also note a visible kink where networks go from one layer to two, and they exclude one-layer networks from the fits.
The transfer results follow the same logic. On text from other distributions the loss improves smoothly with in parallel with the WebText2 loss, with a roughly constant offset (the figure caption calls it small and very slowly growing). Generalisation depends almost entirely on the in-distribution validation loss, not on how long the model trained.
Why it mattered
The paper turned scale from an intuition into a forecasting tool. Labs could estimate, before a large run, what loss a larger model would reach. The framework shaped how later large models were sized and budgeted. GPT-3, which OpenAI released in 2020 with Tom Brown as a coauthor of both papers, is the best-known example of its scale.
The compute-optimal recipe also says to stop before convergence. That was a departure from common practice, and later work refined it. In 2022, Hoffmann and colleagues revisited the allocation question with new experiments, and they found that the optimal data per parameter was higher than Kaplan et al. had estimated. That revision did not contradict the paper's main claim that loss follows smooth power laws, but it changed the recommended split between model size and data.
Reading guide
Read the paper in this order, with these prerequisites in hand.
- Section 1, the summary. Needs Neural Scaling Laws for the general idea of a power-law trend, and Power Law for the exponents. Read the summary bullets before the details.
- Section 2, the setup. Needs Transformer for the decoder-only architecture, and Language Model for next-token loss. The batch size and the Adam optimizer are described here; Adam Optimizer explains the update.
- Section 3, the basic laws. Needs Cross-Entropy Loss for the metric, and Logarithm to read the log-log plots.
- Section 4, overfitting. Needs Overfitting and Dropout for the 10 percent regularisation, and Early Stopping for how the runs were stopped.
- Sections 5 and 6, training curves and compute. Needs Stochastic Gradient Descent for the step counting, and Critical Batch Size for the batch-size argument. Skip the derivation of the exponent sum on a first read.
Check yourself
QuestionDoubling the parameter count multiplies the loss by about 0.95 under L(N) = (N_c/N)^0.076. Why does that matter for planning?Show answer
Each doubling buys only a small absolute improvement, so the returns from parameters are slow but steady. Because the law is a straight line on a log-log plot, the same factor appears at every scale. A planner can therefore estimate the gain from any size increase with one multiplication. The paper's statement is only about the loss ratio. Converting it into a loss value at a given size needs the fitted constant as well.
QuestionIf a model grows by a factor of 8 in parameters, roughly how much data does it need to avoid overfitting, according to D proportional to N^0.74?Show answer
Compute . Since , we have , and . So the data should grow by about 4.7 times, which the paper rounds to 5. The model grows 8 times, but the data only needs to grow about 5 times. This is the sublinear scaling the paper emphasises.
QuestionWith a fixed compute budget, the paper recommends a larger model stopped before convergence. Why not train a smaller model to convergence instead?Show answer
Training to convergence spends compute on the last few percent of loss reduction, which a small model reaches slowly. The paper's allocation puts most of a larger budget into parameters, , and only a little into steps, . A large model stopped early therefore reaches a lower loss for the same compute than a small model run to convergence. The paper's data supports this for the budgets it measured, and it is why the recommended recipe stops well short of convergence.
QuestionThe exponents for N, B and S are 0.73, 0.24 and 0.03. Why do they sum to about 1, and what does that mean?Show answer
The compute estimate is . If , and all scale as powers of , their exponents must add up to the exponent of , which is 1. The paper's values sum to . Practically, this means a 10x increase in compute is split as about 5.4x in model size, 1.7x in batch size, and 1.1x in steps. The model absorbs almost all of it.
QuestionWhy does the paper report the loss on text from other distributions as a constant offset, and why does that matter?Show answer
When models are evaluated on text unlike WebText2, the loss is still a power law in with nearly the same exponent, and it sits at a roughly constant offset above the WebText2 loss (the paper's figure caption says the offset is small and very slowly growing). So improving the in-distribution loss also improves out-of-distribution loss by a predictable amount. A practical reading is that a bigger model transfers its gains to new text, and the penalty for a shift in the data stays small as the model scales.