AI State of the Art
Fundamentals/LLM: Understanding Large Language Models/33 min
Section 48

Scaling Laws: Kaplan's Laws

Listen as a podcast β†’

January 2020: the paper that changed the game

Jared Kaplan and his team at OpenAI published a result that was both simple and monumental. The performance of LLMs (Large Language Models) is not chaotic. It follows precise mathematical laws called power laws.

Their central discovery: increasing parameters, data, or compute produces a predictable and regular improvement in performance. No surprises, no random plateaus, just a smooth, extrapolable curve.

Scaling Laws for Neural Language Models (Kaplan et al., 2020)

The impact was major: before this paper, the dominant strategy boiled down to increasing size and hoping it works. After, researchers could say with confidence "according to the formula, we need this much compute budget to reach this performance level," and the predictions held up.

Kaplan's laws launched the GPU (Graphics Processing Unit, the chips used to train models) race that we are still living through today. If performance follows a predictable curve, investing billions in compute becomes rational, it is engineering, not a lottery.

What a scaling law actually lets you decide

A scaling law is not a pretty curve. It is a decision tool that answers three questions, and only three:

  1. What is my next cheque worth? If I multiply my compute budget by ten, how far does the loss fall? The answer is a number, not a hunch.
  2. What shape of model should I buy with that budget? For a given budget, the law says how many parameters and how many tokens are the best balance. Too big for its data and a model wastes compute; too small and it wastes compute too.
  3. Should I stop now? The law says at what point it becomes more profitable to halt training than to keep going.

Everything on this page reduces to those three questions. One caveat: the law predicts a loss, that is, a statistical error in predicting the next token, not a score on a specific task. It does not say "your model will get 85% of tax law questions right."

The formula: understanding power laws

A power law describes a simple but fundamental relationship:

L=aΓ—xβˆ’bL = a \times x^{-b}

Where:

  • LL = the model's error, called the loss, the lower, the better
  • xx = the quantity being varied (number of parameters, number of tokens, or compute budget)
  • aa = a scale constant, which sets the height of the curve
  • bb = the exponent, which sets the slope of the curve (between 0.05 and 0.1 in Kaplan's fits; since b>0b > 0 and there is a minus sign, LL falls as xx rises)

In one sentence: the model's error decays as a negative power of the resource you give it. That is all. Three quarters of this page just fills in values for aa and bb.

Visualization: log-log scale

The trick to recognizing a power law: if you plot loss against xx on a log-log scale (both axes in logarithm), you get a straight line. This is the telltale sign of a power law, and it is what makes predictions possible.

Three log-log plots of Test Loss: against compute in PF-days, against dataset size in tokens, and against number of parameters. All three are straight decreasing lines, fitted by L = (C/2.3e8)^-0.050, L = (D/5.4e13)^-0.095 and L = (N/8.8e13)^-0.076.
The opening figure of Kaplan's paper. On all three axes (compute, dataset size, number of parameters) the points fall on straight lines once both axes are logarithmic. The exponents in the boxes (0.050, 0.095 and 0.076) are exactly the ones used further down this page.Source : Kaplan et al. 2020 paper (figure 1), via CoRecursive

Implication: predictability

If you multiply xx by 10:

Lnew=aΓ—(10x)βˆ’b=aΓ—10βˆ’bΓ—xβˆ’b=10βˆ’bΓ—LoldL_{\text{new}} = a \times (10x)^{-b} = a \times 10^{-b} \times x^{-b} = 10^{-b} \times L_{\text{old}}

The loss is multiplied by 10βˆ’b10^{-b}. Let us redo the arithmetic; it fits on one line: if b=0.07b = 0.07, then 10βˆ’0.07=0.8510^{-0.07} = 0.85. The loss falls to 85% of its value, so it drops by roughly 15%.

The essential feature of this relationship is that it is multiplicative: every tenfold increase in the resource produces the same reduction factor in the loss, whatever your starting point. That is what makes it possible to predict a larger model's performance before training it: you measure the curve on small models, extend the straight line, and read off the answer.

A 15% drop is not 15% more correct answers

The loss is a next-token prediction error, measured in nats per token. Going from 3.0 to 2.55 has no direct translation into a "success rate" on any task. This is the fundamental limit of these laws: they predict a statistical quantity very well, and what the user cares about very badly. The page on emergent abilities returns to exactly this gap.

Why this is monumental for the industry

Before Kaplan, the approach was to increase size and see what happened. After Kaplan, a team can estimate, before spending, the loss it will get for a given budget.

It is like moving from exploration to engineering calculation. Labs can plan, and raise money on a number rather than on a hope.

The three axes of scaling: where to invest?

Kaplan et al. measure three laws. In each case the quantity measured is the cross-entropy loss: you look at the probability the model assigned to the correct token, and take the negative of its logarithm. If the model was certain of the right token, the loss is zero; the more surprised it was, the larger the loss. It is simply a measure of average surprise. Its link to the KL divergence is spelled out in KL divergence and cross-entropy.

An important point of vocabulary for what follows: in Kaplan's paper, NN counts parameters excluding embeddings, that is, without the lookup tables that turn tokens into vectors. The laws are markedly cleaner under this convention, and that is a finding of the paper in its own right.

Axis 1: parameters NN, the size of the network

L(N)=(NcN)0.076withNcβ‰ˆ8.8Γ—1013L(N) = \left(\frac{N_c}{N}\right)^{0.076} \quad \text{with} \quad N_c \approx 8.8 \times 10^{13}

LL is the loss, NN the number of non-embedding parameters, and NcN_c a constant fitted to the measurements (it has no physical meaning: it is the parameter count that would yield a loss of 1).

Multiplying NN by 10 lowers the loss by about 16%. The arithmetic: 10βˆ’0.076=0.8410^{-0.076} = 0.84, so 84% of the loss remains, which is 16% less.

By way of illustration, the loss values below are not measurements from the paper, but the formula applied to an arbitrary starting point of 2.50:

ParametersLossWhere the number comes from
100M2.50chosen starting point
1B2.102.50Γ—10βˆ’0.076=2.50Γ—0.842.50 \times 10^{-0.076} = 2.50 \times 0.84
10B1.762.50Γ—100βˆ’0.076=2.50Γ—0.702.50 \times 100^{-0.076} = 2.50 \times 0.70

What to take away: adding parameters helps, but with diminishing returns. Every tenfold increase shaves 16% off the remaining loss, not 16 points off some total. That is the very nature of a power law.

Axis 2: data DD, the training volume

L(D)=(DcD)0.095withDcβ‰ˆ5.4Γ—1013L(D) = \left(\frac{D_c}{D}\right)^{0.095} \quad \text{with} \quad D_c \approx 5.4 \times 10^{13}

DD is the number of tokens seen during training, DcD_c the matching scale constant.

Multiplying DD by 10 lowers the loss by about 19%: 10βˆ’0.095=0.8010^{-0.095} = 0.80.

TokensLossWhere the number comes from
1B2.50chosen starting point
10B2.012.50Γ—0.802.50 \times 0.80
100B1.612.50Γ—0.8022.50 \times 0.80^2

Axis 3: the compute budget CC

The two previous laws are read "all else being equal": the law in NN assumes you never run out of data, the law in DD that you never run out of parameters. In practice you have neither in unlimited supply: you have a compute budget, and you have to split it.

L(Cmin⁑)=(CcCmin⁑)0.050L(C_{\min}) = \left(\frac{C_c}{C_{\min}}\right)^{0.050}

where Cmin⁑C_{\min} is the compute budget, assuming it has been split optimally between parameters and data. Multiplying that budget by 10 lowers the loss by about 11%: 10βˆ’0.050=0.8910^{-0.050} = 0.89.

Where does the compute budget come from? From the formula Kaplan uses throughout:

Cβ‰ˆ6 N DC \approx 6 \, N \, D

The number of operations is roughly 6 times the number of parameters times the number of tokens. The factor 6 breaks down as follows: each parameter takes part in about 2 operations (one multiply, one add) to process a token on the forward pass; backpropagation, which computes the corrections to apply, costs about twice as much, so 4; total 6. You can check it on a real case: Llama 3 405B was trained on 15.6 trillion tokens, which gives 6Γ—405Γ—109Γ—15.6Γ—1012=3.8Γ—10256 \times 405 \times 10^9 \times 15.6 \times 10^{12} = 3.8 \times 10^{25} operations, exactly the figure Meta reported.

The trap: do not compare 0.076 and 0.095 head-on

It is tempting to conclude that "data matters more than parameters" because 0.095 exceeds 0.076. That reasoning is wrong, and this page implied it for a long time.

The two exponents do not measure the same thing. 0.076 answers: "if data is never the constraint, what do we gain by growing?" 0.095 answers: "if parameters are never the constraint, what do we gain by reading more?" These are two different thought experiments, and neither says how to split a real budget.

The answer to that last question comes from a separate fit in the paper, the one in the next section. And in Kaplan's case that fit concludes the opposite of what the naive comparison suggests.

Smooth and predictable, but over what range?

The laws hold over several orders of magnitude, and it is worth knowing which. Kaplan et al. test models from 768 to 1.5 billion non-embedding parameters, on corpora of 22 million to 23 billion tokens, sweeping eight orders of magnitude of compute budget.

That is already vast, but note the gap with today's models: Kaplan's laws were calibrated on models a thousand times smaller than the ones they are used to plan. Anything beyond those bounds is extrapolation. It turned out to be remarkably good, which was not guaranteed.

The practical recommendation: how to split the budget

You have a compute budget. How do you split it between "more parameters" and "more tokens"?

Kaplan fits that question directly to his measurements, and gets:

Nopt∝C0.73Dopt∝C0.27N_{\text{opt}} \propto C^{0.73} \qquad D_{\text{opt}} \propto C^{0.27}

NoptN_{\text{opt}} is the parameter count to pick, DoptD_{\text{opt}} the number of tokens to read, CC the compute budget. The two exponents sum to 1, which is consistent with Cβ‰ˆ6NDC \approx 6ND: if one grows as C0.73C^{0.73} and the other as C0.27C^{0.27}, their product does grow as CC.

You can now redo the calculation yourself. Multiply the budget by 10:

  • parameters: 100.73=5.410^{0.73} = 5.4, so 5.4 times bigger
  • tokens: 100.27=1.910^{0.27} = 1.9, so 1.9 times more data

That is Kaplan's recommendation, and that is where it comes from. Almost all the extra money goes into model size; data follows only distantly.

What to take away: Kaplan leans towards parameters

This is where the paper's real content lies, and it does not come from comparing the exponents 0.076 and 0.095 (see the warning above). It comes from these two: 0.73 for parameters against 0.27 for data, a ratio of roughly 2.7 to 1 in favour of size.

Translated into an instruction: prefer a "slightly bigger model, less thoroughly trained" over a "small model, trained to death."

This changed practice. Before: "train the model to convergence." After: "train a bigger model for less time." It is exactly this conclusion that Chinchilla overturned in 2022, with two exponents close to 0.50 each.

An order of magnitude to anchor things: GPT-3's budget

The GPT-3 paper reports 3,640 petaflop/s-days for the 175-billion-parameter model. Let us convert; the conversion is mechanical: one petaflop/s-day is 101510^{15} operations per second for 86,400 seconds, so 8.64Γ—10198.64 \times 10^{19} operations. Hence:

3 640Γ—8.64Γ—1019β‰ˆ3.1Γ—1023Β operations3\,640 \times 8.64 \times 10^{19} \approx 3.1 \times 10^{23} \text{ operations}

Cross-check with Cβ‰ˆ6NDC \approx 6ND: GPT-3 saw 300 billion tokens, so 6Γ—175Γ—109Γ—300Γ—109=3.2Γ—10236 \times 175 \times 10^9 \times 300 \times 10^9 = 3.2 \times 10^{23}. The two numbers agree, which is reassuring about the formula as much as about the paper.

Caveat: the limits of Kaplan's laws

These laws assume:

  1. Fixed architecture: all tests use a decoder-only Transformer of identical design
  2. Constant quality: the text is assumed to be of uniform quality whatever its source

In reality:

  • A better architecture can change the exponents
  • Better data filtering can change the exponents
  • High-quality data can be more efficient than raw web text

Kaplan gives a solid reference point, not a universal truth.

Subtle observations that change practice

1. Architecture is nearly invisible

The scaling laws hold regardless of the Transformer's topology:

  • 12 layers Γ— 768 dim
  • 24 layers Γ— 1024 dim
  • 6 layers Γ— 2048 dim
  • ...

As long as the number of non-embedding parameters stays the same, performance is nearly identical. The authors vary the depth-to-width ratio by a factor of 40 and see only small differences.

Implication: architectural details do not matter much. Scale dominates. Some refinements help, but the effect is small compared with that of size.

Three plots showing the percentage increase in loss when varying Transformer shape: feed-forward ratio, aspect ratio of layers to model dimension, and attention head dimension. The curves stay almost flat over a wide range of values.
At a fixed parameter count, changing the shape of the network barely matters. The curves stay flat over more than an order of magnitude: the middle annotation says it all, a wide range of architectures achieves similar performance. Only at the extremes does the loss climb back up.Source : Kaplan et al. 2020 paper (figure 5), via ar5iv

2. Undertraining is optimal

A counterintuitive result: at a fixed compute budget, the best model is often undertrained, that is, stopped before convergence, before the loss stops falling.

The idea, on a deliberately schematic example (these are not measurements from the paper, but two ways of spending the same compute budget, at constant 6ND6ND):

Model AModel B
Parameters100B1B
Training tokens10B1,000B (to convergence)
Product NΓ—DN \times D102110^{21}102110^{21}
Kaplan's verdictbetter lossworse

Why? Because the first tokens a model reads are the ones that teach it the most. Extending a small model's training means buying tokens at diminishing returns, whereas the same compute spent on parameters still buys full returns. Each FLOP (floating-point operation) pays off more.

Two Test Loss plots. On the left, loss against tokens processed for models from 10^3 to 10^9 parameters: bigger models drop faster. On the right, the same runs against compute, with an annotation noting that compute-efficient training stops far short of convergence.
Each curve is a model of a different size, from smallest (purple) to largest (yellow). Left: bigger models reach a given loss with far fewer tokens. Right: the annotation marks where you should stop for a given compute budget, well before the curve flattens out. This is the undertraining argument, made visual.Source : Kaplan et al. 2020 paper (figure 2), via ar5iv

Implication: stop pushing small models to convergence, it is wasted compute. Build a bigger model and train it for less time. Chinchilla (DeepMind, 2022) kept the undertraining idea but sharply corrected the dosage.

3. Scaling laws transfer

The power laws on pre-training loss transfer in part to downstream tasks, that is, the concrete tasks you actually want to use the model for.

Good pre-training (low loss) generally leads to good fine-tuning (high scores): better overall statistical performance translates into better results in classification, extraction, and so on. But the link is neither exact nor smooth, and that is precisely what the page on emergent abilities discusses in detail.

Impact: transforming the field

Kaplan's laws radically changed the AI landscape from 2020 to 2024.

1. The GPU race (and the billions)

Before Kaplan's laws, labs built a model hoping it would be good. After, the formula told them precisely how many GPU-years they needed to invest to reach a given objective, which justified massive fundraising rounds.

Labs became infrastructure engineering teams. OpenAI, DeepMind, Meta, Anthropic: all are building massive GPU farms to exploit these laws.

2. The "compute-optimal" era

A compute-optimal model is one that is neither too big nor too small relative to the number of tokens it will read.

DeepMind (Chinchilla, 2022) corrects Kaplan's laws. The comparison is read off the exponents, everything else follows, for a compute budget multiplied by 10:

Kaplan (2020)Chinchilla (2022)
Exponent for parameters0.730.50
Exponent for data0.270.50
Parameters× 100.73=5.4\times \, 10^{0.73} = 5.4× 100.50=3.2\times \, 10^{0.50} = 3.2
Data× 100.27=1.9\times \, 10^{0.27} = 1.9× 100.50=3.2\times \, 10^{0.50} = 3.2
Split of the growthabout 2.7 to 1 in favour of parameters1 to 1

The gap between 0.73 and 0.50 looks modest. Its consequences are not: Chinchilla concludes that you should invest almost twice as much in data as Kaplan recommended, and that the large models of 2020-2022 were all massively underfed.

3. The centralization of power

The most performant models are the largest, which require lots of compute, and therefore lots of money.

Consequence: only a few organizations (OpenAI, DeepMind, Meta, Anthropic, etc.) can play at the frontier. Cutting-edge AI is concentrated in few hands. This is good for performance, but raises questions about diversity and accessibility.

Will the laws always apply?

Kaplan's measurements were made in 2019, on models below 1.5 billion parameters. In 2026 we train models a thousand times bigger: we are therefore entirely in extrapolation territory.

There may be plateaus, that is, sizes beyond which nothing improves any further. It is also possible that better architectures or better-filtered data change the exponents, in which case the curve does not stop, it shifts. The debate remains open.

Why this matters

Kaplan's laws reveal a fundamental truth: performance is not chaotic; it follows predictable mathematical curves. It is not a one-time surprise; it is a reproducible law.

This has major consequences:

For science

Before Kaplan, LLM research was largely empirical and exploratory. Since then, it has become a form of predictable engineering where experiments can be planned with confidence.

For industry

Scaling works reliably, which means investing massively in GPUs amounts to investing directly in artificial intelligence. The formula offers a return-on-investment guarantee that few research fields can promise.

For society

These laws launched a colossal GPU race that led to a concentration of AI power among a few major players, raising a deep ethical debate about who controls this technology.

Open questions

  • Do the laws continue to hold at 10 trillion parameters?
  • Are there fundamental plateaus imposed by the nature of data or intelligence?
  • Can we improve the exponents with better architectures or data?

This debate is active and no one has the definitive answer. But one thing is certain: Kaplan's laws are the theoretical backbone of modern AI. Without them, scaling would have been a blind bet. With them, it became a calculated engineering strategy.

Check your understanding0 / 4

1. The data exponent (0.095) is larger than the parameter exponent (0.076). Can you conclude that data matters more than model size?

2. Multiplying compute by 10 lowers the loss by about 11 percent. What does that tell you about the model's rate of correct answers?

3. At a fixed compute budget, what does Kaplan recommend?

4. Where does the factor 6 in C β‰ˆ 6 Γ— N Γ— D come from?