AI State of the Art
Ecosystem/Annotated Foundational Papers/13 min
Section 299

"Scaling Laws for Neural Language Models" (2020)

Listen as a podcast →

Predicting Performance Before Training

LLM performance doesn't improve randomly. It follows power laws: regular and predictable mathematical relationships between invested resources and the quality of the resulting model.

Double the model size? You gain about 5% on loss. Triple? About 7%. It's predictable. Mathematical. Extrapolatable.

It's the paper by Kaplan et al. (OpenAI, January 2020) that formalized this observation. And it changed everything: AI went from an experimental discipline ("let's try and see") to a predictive engineering discipline ("here's how much to invest to reach a given performance").

Why this is fundamental

Scaling laws allow you to predict a model's performance before training it. You have a budget of X million dollars? You can calculate the optimal model size, the required amount of data, and the expected performance. This has become the basis for billion-dollar investment decisions in the AI industry.

The Three Fundamental Relationships

Loss (the model's prediction error, lower is better) follows power laws with respect to three factors:

  1. Number of parameters (N): L∼N−0.076L \sim N^{-0.076}
  2. Dataset size (D): L∼D−0.095L \sim D^{-0.095}
  3. Compute budget (C): L∼C−0.050L \sim C^{-0.050}

Concretely, what does this say?

  • Multiply parameters by 10 -> loss decreases by a factor of 100.076≈1.1910^{0.076} \approx 1.19 (about 19% improvement)
  • Multiply data by 10 -> loss decreases by a factor of 100.095≈1.2510^{0.095} \approx 1.25
  • Multiply compute by 10 -> loss decreases by a factor of 100.050≈1.1210^{0.050} \approx 1.12

The striking finding: these relationships are valid across 6 orders of magnitude. From a model with a few million parameters to one with hundreds of billions, the same curves apply.

Three side-by-side plots, all log-log on both axes, showing Test Loss against compute in PF-days, then against dataset size in tokens, then against number of parameters. In each case the measured points fall on a descending straight line. The fitted formulas are printed on each plot: L equals C divided by 2.3 times 10 to the 8, all to the power minus 0.050; L equals D divided by 5.4 times 10 to the 13, to the power minus 0.095; L equals N divided by 8.8 times 10 to the 13, to the power minus 0.076.
Here are the three relationships stated above, as they appear in the paper. The three exponents printed on the plots (0.050 for compute, 0.095 for data, 0.076 for parameters) are exactly the ones quoted earlier. And each cloud of points lands on a straight line across the full width of the plot, which is what valid across six orders of magnitude looks like.Source : Kaplan et al. 2020 paper (figure 1), via CoRecursive
The magic of log-log

On a log-log scale (both axes in logarithm), power laws become straight lines. That's why you can extrapolate: measure performance on small models (cheap), draw the line, extrapolate to a large model. Expected performance follows the line. It's like predicting a planet's position by knowing its orbit.

Key Conclusions from Kaplan et al.

1. Parameters Matter More Than Data

This is the most striking (and most retrospectively controversial) conclusion. For a fixed compute budget, Kaplan et al. conclude that it's more efficient to increase model size than data quantity. The optimal ratio would be to increase parameters much faster than data.

This conclusion directly motivated the race to giant models: GPT-3 (175B), PaLM (540B), etc. "Bigger = better" became the industry mantra.

2. Architecture Matters Little

Performance depends primarily on the total number of parameters, not the specific architecture. Whether you use a wide and shallow model or a narrow and very deep one, if the parameter count is the same, performance is similar. This is surprising and simplifying: parameter count is the universal proxy for capacity.

Three plots showing the increase in loss, in percent, as the shape of the Transformer is varied at constant parameter count: on the left the feed-forward ratio, in the middle the ratio of layer count to model dimension, on the right the dimension of the attention heads. In all three cases the curve stays almost flat over more than an order of magnitude and only rises at the extreme values.
The measurement behind the claim above. Parameter count is held fixed while the network is reshaped every way possible: deeper, wider, bigger heads. The loss moves by only a few percent. That flatness is what licenses treating parameter count as the one variable that matters.Source : Kaplan et al. 2020 paper (figure 5), via ar5iv

3. Large Models Are More "Data-Efficient"

A larger model learns more efficiently from each token. It reaches the same performance with less data than a smaller model. This is an important property: it means scaling parameters isn't wasteful, it's an efficiency gain.

Two Test Loss plots. On the left, loss against the number of tokens processed, with one curve per model size from 10 to the 3 up to 10 to the 9 parameters: the larger models' curves sit consistently lower and fall faster. On the right, the same curves plotted against compute, with an annotation noting that compute-efficient training stops far short of convergence.
Each curve is a model of a different size. On the left plot, to reach any given loss (an imaginary horizontal line) the large models need far fewer tokens than the small ones. That is precisely what data-efficient means: the extra parameter is not only paid for in compute, it also makes every token work harder.Source : Kaplan et al. 2020 paper (figure 2), via ar5iv

4. Performance Is Predictable Across Orders of Magnitude

The most practically useful discovery: by measuring performance on 10M, 100M, and 1B parameter models, you can predict with a few percent accuracy the performance of a 100B model. This is what allows planning billion-dollar investments without flying blind.

Impact on the Industry

Justification for Massive Scaling

This paper provided the theoretical justification for investing massively in ever-larger models. Before, increasing model size was a bet. After, it was a calculation. "If we spend X on compute, we'll get Y in performance." Investors understand calculations, not bets.

This paper directly influenced the development of GPT-3 (175B parameters) and the scaling race that followed.

Optimal Resource Allocation

Scaling laws answer the practical question: "I have a $10 million GPU budget. What model size to train? How much data to use? How long to train?" Before, it was trial and error. After, it's engineering.

Strategic Planning

AI labs use scaling laws to plan future generations of models. If GPT-4 requires X compute and reaches a given performance, GPT-5 with 10X compute will reach another performance level. This guides infrastructure purchase decisions, hiring, and fundraising.

Kaplan vs Chinchilla: the major correction

Kaplan's most important conclusion (prioritize model size over data) was revised by the Chinchilla paper (Hoffmann et al., DeepMind, 2022). Chinchilla shows that in reality, model and data must be scaled proportionally (ratio of about 20 tokens per parameter). The correction is major: GPT-3 (175B parameters, 300B tokens) was undertrained on data according to Chinchilla. The entire industry pivoted toward smaller but better-trained models (LLaMA, Mistral).

Limits and Criticisms

Scaling laws aren't without flaws:

  • Compute-optimal only for training: they don't consider inference cost. In production, a smaller overtrained model can be more economical than a large compute-optimal model.

  • Loss vs capabilities: better loss doesn't always translate to better performance on practical tasks. Loss is a proxy, not a final objective. A model with slightly better loss may show no perceptible difference on benchmarks.

  • Emergent capabilities: power laws don't predict the sudden appearance of qualitatively new capabilities. The transition from "can't code" to "can code" doesn't follow a smooth curve. These phase transitions are unpredictable.

  • Empirical observations, not physical laws: the exponents (-0.076, -0.095, -0.050) are measured, not derived from fundamental theory. They could change with new architectures, new data, or beyond a certain scale. Nothing guarantees that the log-log line won't eventually flatten.

Scaling laws aren't eternal

Scaling laws are empirical observations, not fundamental physical laws. They could plateau (a "scaling wall"), change slope, or stop applying beyond a certain scale. The debate over the existence of such a wall is one of the most important in current AI. If the laws continue, AGI is a matter of compute. If they stop, new ideas are needed.