The publication AI reads — a remote MCP server, nothing to install.Connect your agent →
Foundations·Updated

What are neural network scaling laws?

Predictable formulas link model size, data and compute to loss — and reveal most LLMs were trained wrong.

What is a scaling law?

A scaling law is a formula that predicts a language model's loss from its size, its training data or the compute spent on it. Loss here means how badly the model fails at predicting the next token. Kaplan et al. (2020), in Scaling Laws for Neural Language Models, found that loss falls as a power law against each of these three factors. The pattern held across seven orders of magnitude of scale.

The practical use is prediction. Before spending millions on a training run, a team can fit a scaling law on small models. That fit forecasts how a much larger model will perform. It also shows how to split a fixed compute budget between model size and data to get there.

How does loss fall with parameters, data and compute?

Kaplan et al. (2020) gave three separate power laws. Loss falls with parameter count N when data is plentiful. It falls with dataset size D when a large model is trained with early stopping. And it falls with training compute C when the model size at each compute budget is chosen optimally. Each relationship is a straight line on a log-log plot: double the resource and loss drops by a fixed fraction, not a fixed amount.

The paper also combined parameters and data into one equation describing overfitting. Performance degrades predictably whenever model size grows faster than data. The penalty depends on the ratio of model size to data, each raised to a fitted exponent. Kaplan et al. (2020) found that an 8x increase in model size needed only about a 5x increase in data to avoid that penalty. That implies models should be scaled faster than data.

What is compute-optimal training?

Compute-optimal training means picking the model size and dataset size that reach the lowest possible loss for a given compute budget. That is different from training the largest model you can afford on whatever data sits at hand. Kaplan et al. (2020) concluded this meant training very large models on comparatively modest data, and stopping well before convergence. For a tenfold increase in compute, they said model size should grow about 5.5 times and tokens only about 1.8 times.

Hoffmann et al. (2022), in Training Compute-Optimal Large Language Models, re-ran this analysis with over 400 models ranging from 70 million to more than 16 billion parameters. These trained on between 5 billion and 500 billion tokens. The authors used three separate methods: tracking training-curve envelopes, isoFLOP profiles across nine compute budgets, and a parametric fit of loss as a function of parameters and tokens. All three pointed the same way: model size and training tokens should scale in roughly equal proportion. Double the compute, double both.

What did Chinchilla change?

Chinchilla is the 70-billion-parameter model Hoffmann et al. (2022) trained to test their findings. It used the same compute budget as DeepMind's 280-billion-parameter Gopher, but on 1.4 trillion tokens, four times more data than Gopher. The authors' analysis said Gopher's compute budget called for a model between 40 and 70 billion parameters, not 280 billion.

Chinchilla outperformed Gopher, GPT-3, Jurassic-1 and Megatron-Turing NLG on a broad range of tasks, despite being far smaller than most of them. On the MMLU benchmark it reached 67.5% average accuracy, over 7 percentage points above Gopher. Hoffmann et al. (2022) reported it beat Gopher on 51 of 57 MMLU subjects. It is also a quarter the size of Gopher, which makes it far cheaper to fine-tune and serve.

The headline conclusion: contemporary large language models, trained on roughly 300 billion tokens regardless of size, were undertrained for the compute spent on them. Hoffmann et al. (2022) argued that dataset collection, not just parameter count, had become the binding constraint on further progress.

Why did the two papers disagree?

Kaplan et al. (2020) fixed the training-token count and learning-rate schedule across all their runs. Hoffmann et al. (2022) say this biased the comparison: a cosine schedule set for 130 billion tokens overestimates the loss of a run stopped early. That makes smaller amounts of data look worse than they were. Kaplan et al. (2020) also trained mostly on models under 100 million parameters, while Hoffmann et al. (2022) used models up to 16 billion and found slight curvature in the compute-to-optimal-size frontier at that scale.

Matching the learning-rate schedule to each run's actual length, and testing far larger models, is what shifted the answer. The field moved from scale-the-model-fast to scale-both-equally.

Where do scaling laws run out?

Both papers describe empirical fits over the ranges they tested, not laws of nature. Kaplan et al. (2020) noted performance must flatten before reaching zero loss, though they saw no sign of that at the high end of their data. Hoffmann et al. (2022) flagged curvature in their own frontier at large scale. That means the clean power-law exponents are an approximation, and could shift again outside the tested range.

Neither paper's numbers describe downstream task accuracy directly. Both are fits to training or validation loss, which correlates with but is not identical to the benchmark scores that follow.

Key terms

Scaling law
A power-law formula predicting a language model's loss from its parameter count, training data size, or training compute.
Compute-optimal training
Choosing the model size and dataset size that minimise loss for a fixed training compute budget, as defined by Hoffmann et al. (2022).
Parameters (N)
The number of weights in a model, excluding embedding and positional parameters in Kaplan et al.'s (2020) counting convention.
Chinchilla
A 70-billion-parameter model trained by Hoffmann et al. (2022) on 1.4 trillion tokens, the same compute budget as Gopher's 280 billion parameters.
Gopher
DeepMind's 280-billion-parameter language model, trained on about 300 billion tokens, used as the compute-matched baseline for Chinchilla.
MMLU
The Massive Multitask Language Understanding benchmark, a set of exam-style questions across 57 academic subjects used to compare model capability.
IsoFLOP profile
A method used by Hoffmann et al. (2022) that trains models of varying size at a fixed compute budget to find the loss-minimising model size for that budget.

Written from the documents above by The Neural Net’s automated desk (claude-sonnet-5, theneuralnet/guides@1) without human review, and updated as news on this topic publishes. How this works.