Scaling Laws for Neural Language Models
Language-model loss follows predictable power laws with model size, dataset size, and training compute—making it possible to forecast performance and allocate compute more effectively.
Key takeaway
The study measures how Transformer language-model cross-entropy loss changes with parameters, data, and compute. It finds smooth power-law trends and argues that compute-efficient training should scale these factors together.
Updated on Nov 23, 2026
01
Abstract
Overview
This paper studies how Transformer language-model performance changes as three resources grow: model parameters, training data, and compute. Using controlled experiments over broad ranges, the authors find that test cross-entropy loss follows smooth power-law relationships when the other resources are not bottlenecks. The central lesson is that scale is multidimensional: increasing parameters without enough data or compute produces diminishing returns.
02
Background
Related work
The study builds on autoregressive language modeling and the Transformer architecture, and follows GPT-style unsupervised pretraining. It provides a quantitative foundation for later large-model scaling studies, including work on compute-optimal training such as Chinchilla. Its emphasis on power-law behavior also connects to broader empirical scaling research in deep learning.
03
Methodology
Core idea
The authors fit empirical power laws that relate loss to model size (N), dataset size (D), and training compute (C). These relationships let researchers estimate the likely return from additional resources and reason about how to allocate a fixed compute budget. The paper also finds that model shape—depth versus width, for example—has a comparatively small effect within the tested range when parameter count is held fixed.
Method
The researchers conduct controlled training runs while varying model parameter count, dataset size, training duration, batch size, and architecture shape. They measure held-out cross-entropy loss and fit power-law curves to isolate the effects of each scale factor. They then combine the fitted relationships to estimate the model size, batch size, number of steps, and data volume that best use a fixed compute budget.
04
Architecture
The experiments primarily use decoder-only autoregressive Transformers trained to predict the next token. Model sizes range from hundreds of parameters to approximately 1.5 billion non-embedding parameters, with variations in layer count, width, attention heads, feed-forward dimension, context length, and batch size. The authors compare selected LSTM and Universal Transformer configurations as additional architectural baselines.
Counting parameters and FLOPs in a Transformer
This table is the bookkeeping behind every scaling plot. For a decoder-only Transformer with n_layer layers, hidden size d_model, attention size d_attn and feed-forward size d_ff, the non-embedding parameter count is N = 2·d_model·n_layer·(2·d_attn + d_ff); with the standard d_attn = d_model and d_ff = 4·d_model this simplifies to 12·n_layer·d_model^2. A forward pass costs about 2N FLOPs per token plus an attention-mask term, 2·n_layer·n_ctx·d_attn, which is negligible when d_model is larger than n_ctx/12. Including the backward pass, which costs about twice the forward pass, training needs C ≈ 6N FLOPs per token, the rule of thumb still used to estimate training compute. Embedding parameters are left out of N because the paper found this gives significantly cleaner scaling laws.
Table 1 from Kaplan et al. (2020), supplied by the user. arXiv:2001.08361.
05
Training
Regularization and overfitting
The work does not propose a new regularization algorithm. Instead, it empirically characterizes overfitting as model size and dataset size change. Holding dataset size fixed while increasing model size eventually limits gains; holding model size fixed while adding more data also yields diminishing returns. The paper models this interaction and estimates that dataset size should grow sublinearly with model size under its fitted relationships.
Compute and data
The models are trained on WebText2, an extended WebText corpus containing about 20.3 million documents, 96 GB of text, and approximately 22.9 billion tokens after tokenization. Most runs use a 1,024-token context and 250,000 optimization steps; Adam is used for most models, while models above one billion parameters use Adafactor due to memory constraints. The paper estimates non-embedding training compute at roughly 6N FLOPs per token, where N is the non-embedding parameter count.
Implementation notes
To reproduce the methodology, train a family of decoder-only language models while varying one or more of N, D, and C. Record validation cross-entropy at consistent checkpoints, track exact non-embedding parameter counts and token counts, and fit log-log power laws. Keep tokenizer, data quality, evaluation split, optimizer, and context length controlled. Report uncertainty and avoid extrapolating far beyond the measured range.
Predicting overfitting and learning curves
Left: each colour is one model size, trained with early stopping on datasets from about 20 million to 23 billion tokens. The dotted curves are one formula (Equation 1.5), L(N, D) = [(N_c/N)^(α_N/α_D) + D_c/D]^α_D, fitted to all of them. Small models flatten early because they run out of capacity; large models keep improving as data grows and overfit when the data is too small for them. From this fit the paper derives a rule for avoiding overfitting, D ≳ 5×10^3 · N^0.74: grow the model 8x and you need only about 5x more data. Right: learning curves for each model size, plotted against S_min, the number of steps the run would need at a very large batch size. After an early transient they follow Equation 1.6, L(N, S) = (N_c/N)^α_N + (S_c/S_min)^α_S, so a run's final loss can be predicted from the early part of its curve.
Figure 4 from Kaplan et al. (2020), supplied by the user. arXiv:2001.08361.
Critical batch size depends on loss, not model size
The critical batch size B_crit marks the trade-off between time and compute: well below it, doubling the batch nearly halves the steps needed at little extra compute; well above it, extra parallelism gives diminishing returns (Section 5.1). Measured for two model sizes (3M and 85M parameters), B_crit falls on the same curve when plotted against training loss, so it depends on how far training has progressed rather than on model size. The fit, B_crit ≈ 2.1×10^8 tokens · L^-4.8, means the critical batch size roughly doubles for every 13% decrease in loss. The green points show that the gradient noise scale of McCandlish et al. (2018) gives a similar prediction. For the largest models near convergence it reaches about 1 to 2 million tokens, which is why the compute-efficient recipe in Figure 3 can absorb much of its data growth through larger batches.
Figure 10 from Kaplan et al. (2020), supplied by the user. arXiv:2001.08361.
06
Results
The paper reports power-law behavior in loss across multiple orders of magnitude of model size, dataset size, and compute. It finds that larger models are more sample-efficient and that model shape has a relatively weak influence when parameter count is held constant. Under the paper's compute-optimal assumptions, most additional compute should go toward larger models, with smaller increases in batch size and training steps. These are empirical findings for the studied setup, not universal constants for every architecture or data distribution.
Evaluation protocol
The primary metric is held-out autoregressive cross-entropy loss, evaluated on WebText2 and additional text distributions. The authors compare loss against parameter count, dataset tokens, training steps, and compute, and test sensitivity to architecture shape and batch size. A modern extension should also measure downstream task performance, data contamination, domain transfer, training stability, energy use, and inference cost.
Three power laws: compute, data and parameters
Each panel isolates one scale factor and plots test loss on log-log axes, where a straight line means a power law. Left: the faint blue curves are individual training runs plotted against compute (non-embedding PF-days); the black envelope traces the best loss reachable at each budget and fits L = (C_min / 2.3·10^8)^-0.050. Middle: large models trained with early stopping on growing amounts of data follow L = (D / 5.4·10^13)^-0.095. Right: models trained to near convergence follow L = (N / 8.8·10^13)^-0.076, where N excludes embedding parameters. The trends hold over many orders of magnitude with no sign of bending. The small exponents mean large multipliers: 10x more parameters lowers loss by only about 16% (10^-0.076 ≈ 0.84). The catch, stated in the caption, is that each law holds only when the other two factors are not a bottleneck, so for the best performance model size, data and compute must be scaled up together.
Figure 1 from Kaplan et al. (2020), supplied by the user. arXiv:2001.08361.
Bigger models are more sample-efficient
Each curve is one training run, coloured from 10^3 (purple) to 10^9 (yellow) non-embedding parameters. Left, against tokens processed: larger models reach any given test loss after seeing fewer tokens, so they are more sample-efficient, not just better at the end. Right, against compute: for tiny budgets small models are the best use of compute, but as the budget grows the lowest-loss curve comes from progressively larger models. The bracket marks the practical conclusion: the compute-efficient choice is to train a large model and stop well before it converges, rather than train a smaller model to convergence. This is the paper's argument for spending extra compute on parameters rather than on more training steps.
Figure 2 from Kaplan et al. (2020), supplied by the user. arXiv:2001.08361.
Where a billion-fold compute increase should go
Using its fitted laws, the paper asks how to spend a 10^9 increase in compute, split multiplicatively into model size, batch size and number of serial training steps (Section 6.1). The answer is lopsided: model size should grow more than a million-fold (N ∝ C^0.73), batch size about 100-fold (B ∝ C^0.24) and serial steps less than 10-fold (S ∝ C^0.03). Since data processed equals batch size × steps, the data requirement grows only slowly (roughly D ∝ C^0.27), and most of that growth can come from larger batches, which parallelize, rather than from longer training. This allocation shaped how GPT-3 was trained. Later work (Chinchilla, Hoffmann et al. 2022) revised it, finding that data should grow roughly as fast as parameters.
Figure 3 from Kaplan et al. (2020), supplied by the user. arXiv:2001.08361.
07
Limitations
The experiments use relatively small models by today's standards, a specific Transformer family, and WebText2-centered training data. The fitted exponents and constants depend on dataset, tokenizer, architecture, and experimental assumptions. The paper focuses primarily on language-model loss rather than broad downstream capability, alignment, factuality, or inference cost. Its compute-optimal recommendations were later revised by work such as Chinchilla, which emphasized training on substantially more tokens.
08
Conclusion
Contributions
The paper provides quantitative scaling relationships for model parameters, dataset tokens, training compute, and loss; analyzes how overfitting depends on model/data balance; studies training-curve predictability and critical batch size; and offers a framework for allocating fixed compute budgets. Its equations became an important reference point for subsequent large-language-model training research.
Key takeaways
Scaling works predictably only when model size, data, and compute are considered together. Larger models can be more sample-efficient, but insufficient data creates an overfitting or data bottleneck. Power laws make training outcomes more forecastable, yet their fitted constants are specific to the experimental setting. Later compute-optimal work refined the original allocation recommendations.
FAQ
What are scaling laws? Empirical relationships describing how model loss changes as parameters, data, or compute increase.
What are the three main scale factors? Model size (N), dataset size in tokens (D), and training compute (C).
Does making a model deeper always improve it? Not necessarily. Within the tested range, parameter count mattered more than depth-versus-width shape when total size was held fixed.
What is the main practical lesson? Allocate resources across model size, data, and training rather than scaling only one dimension.
Did this paper establish the final compute-optimal recipe? No. Its recommendations were influential but later revised by subsequent empirical work, notably Chinchilla.
09
References
Source trail
Primary papers, implementation pages, and external source records used to ground this explainer.
Scaling Laws for Neural Language Models
Kaplan et al., 2020
Primary empirical study of language-model scaling laws.
Language Models are Unsupervised Multitask Learners
Radford et al., 2019
GPT-2 and the WebText language-modeling foundation.
Attention Is All You Need
Vaswani et al., 2017
Introduces the Transformer architecture used in the experiments.
Training Compute-Optimal Large Language Models
Hoffmann et al., 2022
Later compute-optimal analysis associated with the Chinchilla model.
01Original paper (arXiv)02OpenAI research summary03Original paper PDFContinue reading
Related research
Claude Sonnet 5.5
Claude Sonnet 5.5 combines a 1M-token context window with adaptive thinking, stronger agentic coding, and 30%+ faster generation at the same $2/$10 per-million-token pricing as Sonnet 5.
Large Language ModelsGPT-3
GPT-3 showed that scaling an autoregressive language model to 175B parameters can produce strong task performance from instructions and examples in the prompt, without gradient updates.