# Scaling laws for neural language models

Date: 23 January 2020 · Era: V · Transformers · Category: theory · Significance: 5/5
People: Jared Kaplan, Sam McCandlish, Tom Henighan, Dario Amodei
Organisations: OpenAI

Canonical: https://shapeofintelligence.com/timeline/2020-scaling-laws/ · Dataset and text CC BY 4.0

> Kaplan and colleagues at OpenAI find that language-model loss falls as a smooth power law in parameters, data and compute across seven orders of magnitude; size becomes a plan.

## What had to happen

34 events back to 1943, oldest first. Direct influences are marked *direct*.

- [1943 · A logical calculus of nervous activity](https://shapeofintelligence.com/md/timeline/1943-mcculloch-pitts-neuron/)
- [1949 · Cells that fire together wire together](https://shapeofintelligence.com/md/timeline/1949-hebb-organization-of-behavior/)
- [1958 · The perceptron learns](https://shapeofintelligence.com/md/timeline/1958-perceptron/)
- [1960 · ADALINE and the least-mean-squares rule](https://shapeofintelligence.com/md/timeline/1960-adaline-lms/)
- [1965 · Moore's law](https://shapeofintelligence.com/md/timeline/1965-moores-law/)
- [1969 · Perceptrons](https://shapeofintelligence.com/md/timeline/1969-perceptrons-book/)
- [1970 · Reverse-mode automatic differentiation](https://shapeofintelligence.com/md/timeline/1970-linnainmaa-backprop/)
- [1974 · Werbos applies backpropagation to neural networks](https://shapeofintelligence.com/md/timeline/1974-werbos-backprop/)
- [1980 · The Neocognitron](https://shapeofintelligence.com/md/timeline/1980-neocognitron/)
- [1982 · The Hopfield network](https://shapeofintelligence.com/md/timeline/1982-hopfield-network/)
- [1985 · The Boltzmann machine](https://shapeofintelligence.com/md/timeline/1985-boltzmann-machine/)
- [1986 · Backpropagation](https://shapeofintelligence.com/md/timeline/1986-backpropagation/)
- [1989 · LeNet reads handwritten postcodes](https://shapeofintelligence.com/md/timeline/1989-lenet/)
- [1990 · Finding structure in time](https://shapeofintelligence.com/md/timeline/1990-elman-network/)
- [1991 · The vanishing gradient problem](https://shapeofintelligence.com/md/timeline/1991-vanishing-gradient/)
- [1997 · Long short-term memory](https://shapeofintelligence.com/md/timeline/1997-lstm/)
- [1998 · MNIST and LeNet-5](https://shapeofintelligence.com/md/timeline/1998-mnist-lenet5/)
- [1999 · The first GPU](https://shapeofintelligence.com/md/timeline/1999-geforce-256/)
- [2003 · A neural probabilistic language model](https://shapeofintelligence.com/md/timeline/2003-neural-language-model/)
- [2006 · Deep belief networks and the word 'deep'](https://shapeofintelligence.com/md/timeline/2006-deep-belief-nets/)
- [2007 · CUDA](https://shapeofintelligence.com/md/timeline/2007-cuda/)
- [2009 · Deep learning moves to GPUs](https://shapeofintelligence.com/md/timeline/2009-gpu-deep-learning/)
- [2009 · ImageNet](https://shapeofintelligence.com/md/timeline/2009-imagenet/)
- [2010 · Rectified linear units](https://shapeofintelligence.com/md/timeline/2010-relu/)
- [2012 · Google Brain's network discovers cats](https://shapeofintelligence.com/md/timeline/2012-google-brain-cat/) *direct*
- [2012 · Dropout](https://shapeofintelligence.com/md/timeline/2012-dropout/)
- [2012 · AlexNet wins ImageNet](https://shapeofintelligence.com/md/timeline/2012-alexnet/)
- [2014 · Attention](https://shapeofintelligence.com/md/timeline/2014-bahdanau-attention/)
- [2014 · Sequence to sequence learning](https://shapeofintelligence.com/md/timeline/2014-seq2seq/)
- [2015 · Batch normalisation](https://shapeofintelligence.com/md/timeline/2015-batchnorm/)
- [2015 · Residual networks](https://shapeofintelligence.com/md/timeline/2015-resnet/)
- [2017 · Attention is all you need](https://shapeofintelligence.com/md/timeline/2017-attention-is-all-you-need/)
- [2018 · GPT: generative pre-training](https://shapeofintelligence.com/md/timeline/2018-gpt-1/)
- [2019 · GPT-2 and the model too dangerous to release](https://shapeofintelligence.com/md/timeline/2019-gpt-2/) *direct*

The paper posted on 23 January 2020 asked a plain empirical question: if you train transformers of different sizes on different amounts of text with different budgets of compute, how does the loss behave? The answer was a set of straight lines on log-log axes. Test loss fell as a power law in the number of parameters, in the size of the dataset and in the compute spent, each across many orders of magnitude, with no sign of levelling off. Architecture details mattered little; the exponents were what they were; and a model's performance could be predicted before it was trained.

That made scale a plan rather than a hope. Jared Kaplan's team, several of whom left to found Anthropic the next year, showed that for a fixed compute budget the best results came from a large model trained on relatively little data, stopped early, which is the recipe GPT-3 followed four months later. DeepMind's Chinchilla paper of 2022 corrected the exponents and found the data had been undervalued, but the shape of the result held.

The scaling laws are the reason the labs spent billions on compute, the reason the models kept improving, and the instrument on this page. Drag the compute and the loss follows the line.

## What it led to

46 events downstream, through 2026.

Built on it directly:

- [2020 · GPT-3](https://shapeofintelligence.com/md/timeline/2020-gpt-3/)
- [2021 · Anthropic is founded](https://shapeofintelligence.com/md/timeline/2021-anthropic-founded/)
- [2022 · Chinchilla: the models were undertrained](https://shapeofintelligence.com/md/timeline/2022-chinchilla/)
- [2023 · GPT-4](https://shapeofintelligence.com/md/timeline/2023-gpt-4/)

And, through them, by era:

- V · Transformers: 3 events
- VI · Everyone: 25 events
- VII · Agents: 14 events

## Sources

- [Scaling Laws for Neural Language Models (arXiv:2001.08361)](https://arxiv.org/abs/2001.08361) — paper
- [Deep Learning Scaling is Predictable, Empirically (arXiv:1712.00409)](https://arxiv.org/abs/1712.00409) — paper

---

The Shape of Intelligence by Jamie McKaye (https://jamiemckaye.com) · Markdown mirror of https://shapeofintelligence.com/timeline/2020-scaling-laws/

Before: [2019 · The Turing Award goes to deep learning](https://shapeofintelligence.com/md/timeline/2019-turing-award/) · After: [2020 · GPT-3](https://shapeofintelligence.com/md/timeline/2020-gpt-3/)
