TL;DR
A neural scaling law is a power law that predicts how a model's test loss falls as you make it bigger, train it on more data, or spend more compute. Across many orders of magnitude, the curve on a log-log plot is close to a straight line, so a few small training runs can predict the loss of a much larger one.
The laws matter because they turn "how big should the model be?" into a measurable curve rather than a guess. They tell a team how much a 10 times larger budget is likely to buy before the money is spent.
Where you'll see it: in choosing the size of a language model before a costly training run, in deciding how many tokens to train on, and in the planning documents that set compute budgets for large models.
Intuition
Doubling is not free, and it is not hopeless
Suppose you train a language model and measure its loss, the average cross-entropy on text it has not seen. You then train a model ten times larger on the same kind of data. The loss goes down, but by how much? A common hope is that it drops quickly at first and then flattens out. The scaling-law picture is more regular: the loss keeps falling, and each further factor of ten buys a fixed percentage off the loss.
That regularity is what a Power Law looks like. If is the loss and is the parameter count, a power law says for constants and . Multiply by ten and is multiplied by the same factor , whatever value started at. The curve on a log-log plot is a straight line, and the slope is .
Why a straight line is useful
If the relationship really is a straight line on log-log axes, you do not need to train the big model to know roughly where it will land. Train several small models, fit the line through their losses, and extend it. This is the same trick as extrapolating a trend in any field, and the reason it works is that the scaling exponents stayed stable over a wide range of model sizes in the reported experiments.
- fitted line, slope -0.102
The math
One resource at a time
Kaplan and colleagues measured three separate laws, each with the other resources held large enough not to bind. For parameters, with the dataset large and training run to convergence,
For dataset size, with a large model trained until it stops improving,
Here and are fitted constants. The exponents are small, so improvements are gradual but steady. The exact values depend on the data, the architecture and the optimiser, so treat them as the fitted values from that study, not universal constants.
Balancing parameters and data
When both the model and the data are limited, the loss depends on both. One simple form that captures this is
Read it as a bottleneck. The larger term limits you. Making the model much bigger does nothing once is the bottleneck, and vice versa. This is the main reason the question "how big?" always comes with "how much data?".
Compute
Training compute scales roughly as floating-point operations for a dense Transformer, with parameters and training tokens. The factor of 6 counts about two operations per parameter for the forward pass and about four for the backward pass per token. Because is the product of and , a fixed budget forces a trade-off between them, and the loss curve as a function of is also a power law. Compute-optimal training is the question of how to split that budget.
Worked examples
Take . A 10-fold increase in parameters multiplies the loss by .
- Compute the factor: .
- Apply it once: a 10 times larger model has times the loss.
- Apply it twice: a 100 times larger model has times the loss. Check with the exponent directly, .
Interpretation: each factor of ten in parameters removes about 16 percent of the loss, and the savings do not shrink as you go up. Whether that is worth the cost depends on what a lower loss is worth to you, which is a separate question from the law itself.
Two trained models have losses at parameters and at .
- Slope in log-log space. . So .
- Fit the line. Loss at is . Check at : , as measured.
- Extrapolate to . The ratio to is , so .
Interpretation: the prediction says a model with parameters should reach a loss near . That is an extrapolation over two more orders of magnitude, so its error bars widen with distance from the measured range. The method is only as good as the assumption that the same line holds.
Use the joint form with and . The constants and are not given here, so suppose a run where the two terms have the illustrative values and . The data term is ten times larger, so data is the bottleneck.
- Baseline: the bracket is , so .
- Ten times the parameters: the model term shrinks by , from to . The bracket is and .
- Ten times the data instead: the data term becomes . The bracket is and .
Interpretation: ten times more parameters lowers the loss by under 1 percent, while ten times more data lowers it by about 15 percent. When one resource is the bottleneck, spending on the other is nearly wasted.
Tradeoffs and failure modes
Scaling laws are a planning tool, not a guarantee. They describe average test loss on a fixed data distribution, so they say little about specific abilities that can appear suddenly, and they are fitted over a limited range of scales.
| Situation | What goes wrong | Better choice |
|---|---|---|
| Extrapolating far past the measured range | The line may bend, and a small error in the slope is amplified | Measure at more scales and widen the error bars with distance |
| Optimising only the loss | Downstream task quality can improve differently from loss | Track task metrics alongside loss, not instead of it |
| Fixing the dataset and growing only the model | The data term becomes the bottleneck, so extra parameters buy little | Grow data together with parameters, using the joint form |
| Reusing exponents from one architecture or data mix | The constants and exponents depend on setup | Refit on a small pilot run with your own data and architecture |
| Ignoring the cost of data quality | A law fitted on one corpus can overstate gains on a noisier one | Keep data quality fixed across the scales you compare |
History
Jared Kaplan and colleagues at OpenAI published the first systematic study of these laws for language models in 2020, measuring how loss depended on parameters, data and compute over several orders of magnitude. Earlier work had reported power-law learning curves in machine learning, but the 2020 study made the picture precise for transformers and turned it into a planning method. In 2022 a team at DeepMind led by Jordan Hoffmann re-examined how to split a fixed compute budget between model size and tokens. They argued that many large models had been trained on too few tokens for their size, and their results shifted practice toward training smaller models on more data. The idea caught on because it replaced guesses about model size with a curve that could be measured in advance.
Check yourself
QuestionIn a power law , what happens to when is multiplied by 10?Show answer
is multiplied by . The factor depends only on the exponent, not on the starting value of . On a log-log plot the curve is a straight line with slope , so the same relative drop occurs at every scale.
QuestionWith , by what factor does the loss change when parameters go up 1000 times?Show answer
A 1000-fold increase is three factors of ten, so the loss is multiplied by . The reduction is about 41 percent, and each factor of ten gives the same 16 percent reduction, compounding.
QuestionWhy does a fixed compute budget force a trade-off between parameters and data?Show answer
Training compute is roughly , the product of model size and tokens. With fixed, increasing means decreasing , and the joint loss has both terms, so neither can be grown without limit. The best split depends on the exponents for each resource, which is the question compute-optimal training answers.
QuestionTwo runs give losses 3.0 at and 2.0 at . Estimate the exponent and predict the loss at . What is the main caution?Show answer
The log-log slope is , so . From to is two more decades, so the loss is . The caution is that this is an extrapolation two decades past the data, so the estimate can be off if the curve bends, and the error grows with distance.