What Are LLM Scaling Laws? Chinchilla and Compute-Optimal
By LatestLLM Editorial · Published · Facts verified · 9 min read
Also called: Chinchilla scaling, compute-optimal training, neural scaling laws, Kaplan scaling laws, tokens per parameter
Before this: Pre-training and loss
In one line
Scaling laws are empirical formulas showing that a language model's loss falls smoothly as a power of its parameters, training tokens and compute, and they guide how to split a budget.
Scaling laws, simply and technically
In plain English
Researchers noticed that making a language model bigger, training it on more text, or spending more computing power improves it in a very regular way. The improvement follows a smooth curve rather than random jumps, so it can be predicted before spending millions on training. Those predictable curves are called scaling laws.
They answer a practical question: with a fixed budget, should you build a bigger model or train a smaller one for longer? A 2022 study found that many large models had been trained on too little text. A smaller model trained on much more text matched or beat them, which changed how new models were planned.
Think of it like this: Scaling laws are like a recipe for a very large meal. You can add more cooks, give them more ingredients or give them more cooking time, and each helps with diminishing returns; with a fixed budget there is a best mix of the three. If you hire a huge team but give them a handful of ingredients, most of them stand idle. The recipe image holds for how the mix matters, but real training also depends on the quality of the ingredients, not just the amount.
Everyday example: Big model, little data
Two models are built with about the same computing budget: one has 280 billion parameters and sees 300 billion tokens, the other has 70 billion and sees 1.4 trillion tokens.
Input:
Gopher: 280B parameters, 300B tokens. Chinchilla: 70B parameters, 1.4T tokens
Output:
Chinchilla beats Gopher at similar training compute and runs on a quarter of the weights
What it shows: The smaller model, Chinchilla, saw almost five times as much text and, according to its authors, outperformed the larger Gopher on a wide range of tests. It also costs much less to run afterwards, because it is a quarter of the size.
Technically
Kaplan et al. (2020) found that cross-entropy loss falls as a power law in parameters N, dataset size D and compute C, with trends spanning more than seven orders of magnitude, and that other details such as width or depth matter little. Training compute is about C = 6 N D FLOPs. Hoffmann et al. (2022) trained over 400 models from 70 million to over 16 billion parameters on 5 to 500 billion tokens and concluded that model size and training tokens should be scaled equally: for every doubling of N, double D. Their parametric fit is L(N, D) = E + A / N^0.34 + B / D^0.28 with E = 1.69, A = 406.4 and B = 410.7.
The rule of thumb that follows is about 20 training tokens per parameter: Chinchilla itself used 70B parameters and 1.4T tokens. The paper's Table 3 lists compute-optimal token counts, for example 1.5 trillion tokens for a 67B model and 3.7 trillion for 175B. The three approaches in the paper disagree somewhat; the parametric fit predicts smaller optimal models than the other two, so the rule is a guide, not a law of nature. Inference cost changes the answer: Sardana and Frankle (2023) find that when many requests are expected, a model should be smaller and trained longer than Chinchilla-optimal.
Technical example: Tokens per parameter and fitted loss
Published parameter and token counts for four models, with training compute 6ND and the loss predicted by the Chinchilla fit. The fit was made on models up to about 16B parameters, so these larger points are extrapolations.
Code (python):
E, A, B, alpha, beta = 1.69, 406.4, 410.7, 0.34, 0.28 # Hoffmann et al. 2022, approach 3
def fitted_loss(n, d):
return E + A / n ** alpha + B / d ** beta
models = [("GPT-3", 175e9, 300e9), ("Gopher", 280e9, 300e9),
("Chinchilla", 70e9, 1.4e12), ("Llama 3 405B", 405e9, 15.6e12)]
for name, n, d in models:
print(f"{name:13s} {n / 1e9:>4.0f}B params {d / 1e12:>5.2f}T tokens "
f"{d / n:>5.1f} tokens/param 6ND = {6 * n * d:.2e} fitted loss {fitted_loss(n, d):.3f}")
Output:
GPT-3 175B params 0.30T tokens 1.7 tokens/param 6ND = 3.15e+23 fitted loss 2.002
Gopher 280B params 0.30T tokens 1.1 tokens/param 6ND = 5.04e+23 fitted loss 1.993
Chinchilla 70B params 1.40T tokens 20.0 tokens/param 6ND = 5.88e+23 fitted loss 1.937
Llama 3 405B 405B params 15.60T tokens 38.5 tokens/param 6ND = 3.79e+25 fitted loss 1.819
What it shows: GPT-3 and Gopher saw only 1 to 2 tokens per parameter, Chinchilla about 20 and Llama 3 405B about 38. Chinchilla and Gopher used similar compute (5.9 and 5.0 × 10^23 FLOPs) and the fit gives Chinchilla the lower loss, 1.937 against 1.993, in line with the paper's finding. Llama 3 exceeds the 20:1 ratio because training a model longer than compute-optimal yields a smaller model that is cheaper to serve.
Smooth power laws
In plain English: The surprising part is the smoothness. Plot a model's error against its size on a log-log chart and the points fall on a straight line across many orders of magnitude. Because the line is straight, you can train a few small models and predict a huge one.
Technically:
A power law L = a · x^(−b) is a straight line on log-log axes. Kaplan et al. measured such lines for parameters, dataset size and compute on the cross-entropy loss and reported that some trends span more than seven orders of magnitude. Their reading was that, for a fixed compute budget, one should train very large models on a relatively modest amount of data and stop well before convergence.
That conclusion shaped GPT-3 and Gopher, trained on about 300 billion tokens. The Chinchilla study later revised the balance by running a more careful sweep with learning-rate schedules matched to each run's length.
What is a power law?
A relationship y = a · x^(−b). Doubling x always multiplies y by the same factor, so it is a straight line on log-log axes.
The Chinchilla result
In plain English: In 2022 a team at DeepMind trained over 400 models of different sizes on different amounts of text and asked which combination gave the best result for each budget. Their answer was that bigger models had been paired with too little text, and that for every doubling of model size the text should also double.
Technically:
The compute-optimal frontier in their Table 3 pairs 400 million parameters with 8.0 billion tokens, 10 billion with 205 billion, 67 billion with 1.5 trillion, 175 billion with 3.7 trillion and 1 trillion with 21.2 trillion. That is roughly 20 tokens per parameter throughout. Chinchilla (70B parameters, 1.4T tokens) used the same compute as Gopher yet, the authors report, outperformed Gopher (280B), GPT-3 (175B), Jurassic-1 (178B) and Megatron-Turing NLG (530B).
Three methods in the paper estimate the exponents: 0.50 and 0.50 from training curves, 0.49 and 0.51 from IsoFLOP profiles, and 0.46 and 0.54 from the parametric fit, against Kaplan's 0.73 and 0.27 for parameters and data.
Using the formula, and its limits
In plain English: The formula is useful for planning but it is a fit to a limited set of experiments. It works best near the sizes it was fitted on and gets shakier far outside them.
Technically:
The fitted loss L(N, D) = E + A/N^0.34 + B/D^0.28 has an irreducible term E = 1.69, a term that shrinks as parameters grow and a term that shrinks as data grows. Minimising it under C = 6ND gives optimal N proportional to C^0.46 and D to C^0.54. The paper notes that this parametric approach predicts a lower optimal N than the other two methods, because of curvature in the observed frontier.
Practical caveats: the fit used models up to about 16B parameters and dense architectures, so mixture-of-experts models and much larger budgets are extrapolations. Constants differ with data quality and tokeniser, and later replication attempts have questioned the exact fitted values, so treat the formula as a guide for ratios and trends.
Go deeper: details for practitioners
- For mixture-of-experts models it is unclear whether to count total or active parameters in N, and fitted laws for sparse models use different forms.
Beyond compute-optimal
In plain English: Training compute is paid once, but a model is used millions of times. If a model will serve a lot of requests, it can pay to train a smaller model for longer than the formula suggests, because each answer from a smaller model is cheaper.
Technically:
Sardana and Frankle (2023) modified the Chinchilla law to include inference demand and found that researchers expecting reasonably large inference demand, about a billion requests, should train models smaller and longer than Chinchilla-optimal. Llama 3 405B at about 38 tokens per parameter, and its smaller siblings trained on similar data volumes, follow this logic.
Newer work also scales along other axes: more inference-time computation (reasoning models), more data of better quality and sparse architectures that raise parameters without raising compute.
Everyday example: Pay once, serve forever
A lab has a budget to train either a 70B model for 1.4T tokens or a 30B model for 3.3T tokens.
What it shows: Both cost similar training compute. The 30B model is cheaper to run for every answer afterwards, which is why labs expecting heavy use often prefer it.
Common misconceptions
Myth: Bigger models are always better.
Reality: At a fixed compute budget a smaller model trained on more data can beat a larger one, as Chinchilla did against Gopher.
Myth: Chinchilla means every model should use exactly 20 tokens per parameter.
Reality: It is the compute-optimal ratio for training cost alone. When inference is included, models are often trained on more tokens per parameter.
Myth: Scaling laws guarantee a model will keep improving forever.
Reality: They are empirical fits over measured ranges. Data supply, diminishing returns and unmodelled effects can bend the curve.
Where you'll see this
- DeepSeek-V3 architecture: DeepSeek-V3 trained 37B active parameters on 14.8 trillion tokens, far above 20 tokens per active parameter.
- gpt-oss architecture: gpt-oss-120b activates 5.13B parameters per token, so compute-based scaling rules apply to active, not total, parameters.
- Gemma 4 architecture: Gemma 4 ships several sizes from E2B to 31B, a family built around different compute and serving budgets.
Key takeaways
- Scaling laws show that loss falls as a smooth power law in parameters, data and compute, which lets labs predict results before training.
- Chinchilla's finding is that parameters and tokens should grow together, about 20 tokens per parameter, not parameters alone.
- Training compute is roughly 6 × parameters × tokens FLOPs; Llama 3 405B used about 3.8 × 10^25.
- Real models often train past the 20:1 ratio because smaller, longer-trained models are cheaper to run.
Frequently asked questions
What are scaling laws in AI?
Empirical relationships showing that model loss falls as a smooth power law with more parameters, more training data and more compute.
What is the Chinchilla scaling law?
The finding that parameters and training tokens should be scaled in equal proportion, about 20 tokens per parameter for compute-optimal training.
How do you estimate training compute?
About 6 × parameters × tokens FLOPs, so Llama 3 405B on 15.6 trillion tokens needs roughly 3.8 × 10^25.
Why do models train on more than 20 tokens per parameter?
Because a smaller model trained longer is cheaper to serve, and serving cost accumulates over many requests.
Do scaling laws apply to mixture-of-experts models?
They are less well established; it is unclear whether to count total or active parameters, and sparse models need their own fits.
Sources
Facts last verified November 23, 2026.
- Kaplan et al.: Scaling Laws for Neural Language Models (arXiv)
- Hoffmann et al.: Training Compute-Optimal Large Language Models (arXiv)
- Sardana and Frankle: Beyond Chinchilla-Optimal, Accounting for Inference (arXiv)
- Llama Team: The Llama 3 Herd of Models (arXiv)
- Rae et al.: Scaling Language Models, Methods, Analysis and Insights from Training Gopher (arXiv)