Search

Search papers and lessons

Emergent Abilities of Large Language Models

Jason Wei, Yi Tay, Rishi Bommasani et al. · 2022

Wei et al. (2022) collect abilities that language models show only above a certain scale, near random below it and well above random above it, so small models cannot predict them.

On this page

  • Colour = topic mix
  • Discrete math
  • Calculus
  • Neural network basics
  • Linear algebra
  • Probability
  • Pre-training
  • ReadReady to readNot yet

TL;DR

Jason Wei and colleagues survey a set of abilities that language models show only once they are large enough. They call an ability emergent if it is absent in smaller models and present in larger ones. Performance on these tasks stays near random for a long stretch of scale and then rises well above random, so extrapolating from small models does not predict it. The paper collects these cases from prompting and fine-tuning work and asks whether more scaling will bring further abilities.

Builds on: Chain-of-Thought Prompting, Instruction Tuning, Neural Scaling Laws · Leads to: Scaling Laws for Neural Language Models, the loss-based picture this paper qualifies

Why it mattered

The paper gave the field a name and a collected list of cases for this pattern. Its examples come from GPT-3, LaMDA, Gopher, Chinchilla and PaLM, so the claim is not tied to one model family. It also made clear that the pattern affects how models are compared and planned. A team that trains a model cannot tell from its small versions whether a new task will work at full size.

The paper lists few-shot arithmetic, multi-step reasoning with chain-of-thought prompts, and instruction following as abilities that appear at a particular scale. These examples are the reference cases that later discussions of prompting and instruction tuning point back to. The paper also raised the question of whether scaling alone will keep unlocking new abilities, and it lists the limits of that plan.

The problem

Scaling laws had made language-model performance predictable. Kaplan and colleagues had shown that cross-entropy loss falls as a power law in parameters, data and compute, across more than seven orders of magnitude. That predictability is about the loss, and it is not always the same as predictability of a downstream task. Some tasks did not improve smoothly. They sat at chance level and then jumped.

The paper focuses on one concrete question: which abilities of language models show that jump, at what scale, and under which settings. It limits itself to pre-trained Transformer language models, and to the prompting and fine-tuning methods built on them. It does not claim that any particular scale is required, only that the examples it gathers are what the field has observed so far.

How it works

The paper's method is a survey with a clear test. Trace one ability through it: three-digit addition given to GPT-3 in a few-shot prompt.

  1. Define the ability. An ability counts as emergent if it is not present in smaller models and is present in larger ones. A small model that scores at random does not show the ability, even if a fit to its other numbers suggests a trend.
  2. Choose the axis. Plot performance against training compute in FLOPs (floating-point operations, a count of arithmetic work), which the paper uses as its main scale measure, and against parameter count in an appendix. The two give similar curves, because most dense Transformer families grow compute and parameters together.
  3. Read the curve. For GPT-3 the paper reports close-to-zero performance over several orders of magnitude of training compute, then a sharp jump near 2⋅10222 \cdot 10^{22} FLOPs, which corresponds to the 13B-parameter model. Check: 2⋅1022/(3.1⋅1023)≈0.0652 \cdot 10^{22} / (3.1 \cdot 10^{23}) \approx 0.065, so the jump comes at about one-fifteenth of the training compute that the 175B GPT-3 model is listed at in the paper's table.
  4. Collect examples. The paper gathers abilities from published results and from BIG-Bench, a suite of over 200 community-written tasks, and tabulates each one with its emergence scale.
  5. Test the metric. Because emergence could be an artefact of harsh scoring, the paper also computes cross-entropy loss on the target answers, which still improves at small scale even where exact match is flat.
  6. Look ahead. The paper lists tasks where no model yet beats random. These are the candidates for future emergence.
00.20.40.60.8100.20.40.60.81scale (schematic)performance
  • schematic: performance vs scale
Schematic only, not data: performance sits near chance until a threshold and then rises well above it. The paper's curves are plotted against training FLOPs and parameters.
flowchart LR
  A[Small models: near random] --> B{Threshold scale}
  B -->|below| C[Ability absent]
  B -->|above| D[Ability present: well above random]
  C --> E[Emergent: absent small, present large]
  D --> E

The math

Scale and chance (step 2 in symbols)

Let NN be the number of parameters and CC the training compute in FLOPs. The paper uses CC as the main x-axis, and it notes that dense Transformer families keep CC roughly proportional to NN for a fixed training set, so the two axes give the same shape.

A chance baseline is needed to say when a score is "near random". For a four-way multiple-choice task, such as the MMLU benchmark, a model that guesses uniformly scores 0.250.25. The cross-entropy loss of the same guess is −ln⁡0.25=ln⁡4≈1.386-\ln 0.25 = \ln 4 \approx 1.386 nats per answer. A model can beat that loss before it beats the accuracy of 0.250.25, which is why the paper compares the two metrics.

Emergence as a threshold (step 3 in symbols)

Write the score as s(N)s(N) and the random level as s0s_0. A compact form of the paper's definition says that s(N)≈s0s(N) \approx s_0 for all NN below some threshold N∗N^*, and s(N)s(N) rises clearly above s0s_0 for NN above it. No fit to the points below N∗N^* predicts the jump, because the fit is flat there. This is what "cannot be predicted by simply extrapolating" means in the abstract.

Cross-entropy as a continuous signal (step 5 in symbols)

For a target sequence yy and a model that assigns it probability pθ(y)p_\theta(y), the paper uses the per-token cross-entropy L=−1T∑t=1Tlog⁡pθ(yt∣y<t)\mathcal{L} = -\frac{1}{T}\sum_{t=1}^{T} \log p_\theta(y_t \mid y_{\lt t}), where TT is the number of tokens in the target. For exact match, the score is either 00 or 11 per example, so an average over examples can stay flat while L\mathcal{L} falls. The appendix shows that L\mathcal{L} improves at small scale for all six emergent BIG-Bench tasks it studies, even where exact match and accuracy are at chance.

Results

Few-shot prompting. The paper's Table 1 lists the emergence scale for each ability. Some examples in training FLOPs and parameters: three-digit addition and subtraction at 2.3⋅10222.3 \cdot 10^{22} FLOPs (13B, GPT-3); the MMLU benchmark at 3.1⋅10233.1 \cdot 10^{23} FLOPs (175B, GPT-3) for the 57-topic average and 5.0⋅10235.0 \cdot 10^{23} FLOPs (280B) for the 26-topic subset; word-in-context at 2.5⋅10242.5 \cdot 10^{24} FLOPs (540B, PaLM). On TruthfulQA, small Gopher models stay at random until the largest size, 280B.

Augmented prompting. Chain-of-thought on math word problems emerges at 1.3⋅10231.3 \cdot 10^{23} FLOPs (68B, LaMDA). Instruction following after fine-tuning, in the FLAN model, emerges at 1.3⋅10231.3 \cdot 10^{23} FLOPs (68B). Eight-digit addition with a scratchpad helps from about 9⋅10199 \cdot 10^{19} FLOPs (40M parameters), which is much smaller than the other examples. Calibration measured by P(True), which asks a model how likely its own answer is to be true, emerges at 2.6⋅10232.6 \cdot 10^{23} FLOPs (52B, an Anthropic model).

Limits. The paper does not claim a fixed threshold. It says the emergence scale depends on the data, the metric and the training recipe. It reports 14 BIG-Bench tasks where a 62B PaLM model does better than the 137B LaMDA and 175B GPT-3 models, which shows that the threshold can move. It also notes that dozens of BIG-Bench tasks remain at chance even for the largest models, and that the cause of emergence is not known. Its own analyses of metrics do not explain why the jump happens, and they do not predict when it will happen.

Reading guide

Check yourself

QuestionA four-way multiple-choice task is scored by accuracy. A model answers at random. What is its expected accuracy, and what is the cross-entropy per answer if it assigns probability one quarter to each option?Show answer

The expected accuracy is 0.250.25, because it picks one of four options at random. The cross-entropy per answer is −ln⁡(0.25)=ln⁡4≈1.386-\ln(0.25) = \ln 4 \approx 1.386 nats. This is the chance level on both metrics, and it is the baseline that the paper's "near random" language refers to.

QuestionWhy can an ability look emergent under exact match even when the model's probabilities improve smoothly?Show answer

Exact match gives each example a score of 00 or 11. A model can move the probability of the correct answer up steadily without crossing the point where its top answer is right, so the average accuracy stays flat near chance until enough examples flip. Cross-entropy measures the probability itself, so it improves even while accuracy is still at chance. The appendix finds this for all six emergent BIG-Bench tasks it studies.

QuestionPaLM 62B reaches above-random performance on 14 BIG-Bench tasks where LaMDA 137B and GPT-3 175B are near random. What does the paper suggest as the reason, and why does this matter for the idea of a fixed threshold?Show answer

The paper offers possible reasons: PaLM 62B may have higher-quality training data, with more multilingual and code data than LaMDA, and architectural differences such as split digit encodings. The fact that a smaller model succeeds where larger ones fail shows that the emergence scale moves with data and architecture, so no single parameter count is the threshold for these abilities.

QuestionA team plans to train a larger model and wants to know whether a task will become emergent at the new size. Using the paper's argument, what can they conclude from their small models' results, and what should they do instead?Show answer

They cannot conclude much. If the task is at chance for every small model, extrapolating a flat curve says nothing about the jump the paper describes. They should evaluate the task at several scales with a continuous metric such as cross-entropy alongside the downstream metric, watch for the point where the metric starts to fall, and treat the threshold as a property of the data, metric and training recipe rather than of a fixed number of parameters.

Sources

Read the full paper

Jason Wei, Yi Tay, Rishi Bommasani et al., 2022. arXiv:2206.07682