# Scaling Laws for Neural Language Models

> Measures how language model loss scales with parameters, data and compute. Each follows a smooth power law across more than seven orders of magnitude, and architecture shape barely matters, making large runs predictable.

- arXiv: https://arxiv.org/abs/2001.08361
- Authors: Jared Kaplan, Sam McCandlish, Tom Henighan, Tom B. Brown, Benjamin Chess, Rewon Child, Scott Gray, Alec Radford, Jeffrey Wu, Dario Amodei
- Published: 2020-01-23
- Topic: Scaling & theory
- Visual carousel: https://instaxiv.com/p/2001.08361
- Explanation by InstaXiv, a secondary educational summary. Cite the original paper for exact results. InstaXiv is not affiliated with or endorsed by arXiv or Cornell University.

## Language model loss falls as a smooth power law in size, data and compute

**7+** orders of magnitude of smooth trends

## Three straight lines on log-log axes

![Figure 1](https://cdn.instaxiv.com/figures/2001.08361/figure1.webp)

Test loss against compute, dataset size and parameters. When the other two factors are not the bottleneck, each follows a clean power law. (Figure 1)

## Shape barely matters; scale does

**Architecture details:** Depth, width and number of attention heads change loss by only a few percent when total parameters are held fixed.

**Total scale:** Parameters, data and compute dominate. Larger models are also more sample-efficient, reaching the same loss with fewer tokens.

Spend effort on scale before architecture tweaks.

## Each resource has its own exponent

$$
\begin{gathered} L(N) = \left(\frac{N_c}{N}\right)^{0.076} \qquad L(D) = \left(\frac{D_c}{D}\right)^{0.095} \\ L(C) = \left(\frac{C_c}{C}\right)^{0.050} \end{gathered}
$$

Small exponents mean slow but reliable gains: every 10× in parameters trims loss by the same fraction.

- $N$: Non-embedding parameters
- $D$: Dataset size in tokens
- $C$: Training compute, in PF-days
- $\alpha_N, \alpha_D, \alpha_C$: How fast loss falls per resource

## How to spend more compute, per the paper

1. **Grow the model most**: Optimal size scales as $N \propto C^{0.73}$; most new compute goes into parameters.
2. **Grow the batch some**: Batch size scales as $B \propto C^{0.24}$, tracking the critical batch size.
3. **Barely add steps**: Serial steps scale as $S \propto C^{0.03}$; stop well before convergence.

## Later work revised the recipe

- **Undertrained giants**: Chinchilla (2022) found data should scale as fast as parameters; this allocation over-weighted size.
- **Fixed learning-rate schedule**: Not tuning the schedule to each token budget biased the fits toward larger models.
- **Trends must bend**: The authors note the laws must eventually flatten, since natural language has nonzero entropy.

Best used when: Forecasting loss before committing compute, or comparing small pilot runs.

## Key takeaways

- Loss scales predictably with parameters, data and compute across seven orders of magnitude.
- Predictable curves let labs forecast a large run's loss from small pilot runs.
- This paper launched the scaling era; Chinchilla later corrected its allocation.

## Links

- arXiv: https://arxiv.org/abs/2001.08361
- PDF: https://arxiv.org/pdf/2001.08361

## Citation

```bibtex
@article{kaplan2020scaling,
  title   = {Scaling Laws for Neural Language Models},
  author  = {Kaplan, Jared and McCandlish, Sam and Henighan, Tom and Brown, Tom B. and Chess, Benjamin and Child, Rewon and Gray, Scott and Radford, Alec and Wu, Jeffrey and Amodei, Dario},
  journal = {arXiv preprint arXiv:2001.08361},
  year    = {2020},
  url     = {https://arxiv.org/abs/2001.08361}
}
```
