Papers · 2020 · Reading: 21 min, plus 3 in closed details.
Paper · NeurIPS 2020 (Outstanding Paper award) · arXiv 2005.14165

Language Models are Few-Shot Learners (GPT-3)

Tom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah, Jared Kaplan, Prafulla Dhariwal, Arvind Neelakantan, Pranav Shyam, Girish Sastry, Amanda Askell, Sandhini Agarwal, Ariel Herbert-Voss, Gretchen Krueger, Tom Henighan, Rewon Child, Aditya Ramesh, Daniel M. Ziegler, Jeffrey Wu, Clemens Winter, Christopher Hesse, Mark Chen, Eric Sigler, Mateusz Litwin, Scott Gray, Benjamin Chess, Jack Clark, Christopher Berner, Sam McCandlish, Alec Radford, Ilya Sutskever, Dario Amodei (31 authors)
OpenAI · May 2020 (arXiv v1 28 May 2020; v4 22 July 2020)

In one line: Scaling a plain GPT decoder to 175B params (300B tokens, ~3640 pfs-days) makes in-context learning strong: tasks specified by prompt and a few examples alone, no fine-tuning, with the gain from examples growing with size; sometimes at or past fine-tuned SOTA (TriviaQA closed-book, LAMBADA), near chance on others (WiC, ANLI).

175B parameters
96 layers, dmodel 12,288, trained on 300B tokens
3.14 × 10²³ FLOPs, about 3,640 petaflop/s-days · Table 2.1
1.8 → 14.8 points
few-shot minus zero-shot, averaged over 41 accuracy tasks, from 125M to 175B
recomputed from Table H.1: larger models use the prompt better · Table H.1
71.2 % TriviaQA
few-shot, closed book, no gradient updates
fine-tuned open-domain RAG: 68.0 · Table 3.3

How far to trust it: Believe the trend: across 41 accuracy tasks and eight sizes, larger models gain more from examples in the prompt. Treat any single score as one prompt and one draw of examples, with no error bars, mostly on development sets, partly contaminated, and compared with fine-tuned systems that ran under different rules. The evidence, point by point.

The idea in one sentence: scale GPT-2's decoder, unchanged, to 175B parameters and a task can be given entirely in the prompt (an instruction plus a few examples, no gradient updates), and the benefit of those examples grows with model size; that made the prompt, not a fine-tuning run, the interface to a language model.

Examples in the prompt help more the bigger the model. Fig. 1 stands the paper's eight models side by side, to scale from Table 2.1, and puts in front of each its mean accuracy over the 41 accuracy rows of Table H.1, without and with demonstrations. Drag it to turn it.

  1. Eight models, one recipe. Each stack is one GPT-3 size: its height is its layers (12 for the 125M model, 96 for 175B), its width and depth its dmodel (768 to 12,288), so its volume is to scale with its non-embedding parameters, 12 × layers × dmodel². Same architecture, same data, 300 billion tokens each; only the size differs.
  2. The seven smaller models, up close. From 125M to 13B the stacks grow from 12 layers of 768 to 40 layers of 5,140. The 175B model is 96 layers of 12,288, about 14 times the parameters of 13B: the step the paper's whole bet rests on.
  3. Zero-shot: the instruction alone. The orange bar is each model's mean accuracy with no demonstrations in the prompt: 23.3% at 125M, rising slowly to 42.4% at 175B.
  4. Few-shot: the same frozen weights, examples in the prompt. The dots are demonstrations entering each model's context, the same for every size; no weight changes. The blue bar is the few-shot mean: 25.1% at 125M, 57.2% at 175B.
  5. The gap widens with size. The dark top of each blue bar is few minus zero: 1.8, 2.6, 3.7, 4.2, 5.9, 6.0, 9.2 and 14.8 points. Bigger models use the same examples better: "larger models are more proficient meta-learners". The same numbers as curves are in The scaling pattern.

Drawn from the page's own data: shapes from Table 2.1 (13B at its printed dmodel of 5,140), accuracies recomputed from Table H.1 by recompute.py; bars to scale from 0%.

You need: the decoder-only Transformer (The transformer from zero) and the idea that loss falls as a power law in scale (Scaling Laws for Neural Language Models). New terms:

  • in-context learning: the model picks up a task from text in its context window, inside one forward pass, with frozen weights.
  • zero-shot, one-shot, few-shot: the prompt holds an instruction and 0, 1 or K demonstrations (K typically 10 to 100) before the test input.
  • demonstration: one solved example (context and completion) placed in the prompt.

In-context learning and the few-shot protocol in general (many-shot, why random labels barely hurt, induction heads, how order and format move scores, and the step to chains of thought) are owned by Test-time compute and reasoning, section 10; this page keeps what GPT-3 itself did and measured.

Problem

§1 Introduction

By 2020 the dominant recipe was BERT-style: pretrain one model, then fine-tune it on every new task. The architecture was task-agnostic, but every task still needed "a dataset of thousands to hundreds of thousands of examples specific to that task" (§1). The authors give three reasons to drop that requirement: many useful tasks have no large labelled dataset, a model fine-tuned on a narrow distribution can exploit its quirks, and people learn a task from a brief directive or a few demonstrations.

The three reasons in the paper's words (§1)
  • Applicability. Many useful tasks (correcting grammar, generating examples of a concept, critiquing a story) have no large labelled dataset, and collecting one per task does not scale.
  • Spurious correlations. A large model fine-tuned on a narrow distribution can exploit quirks of that distribution, so "the performance of fine-tuned models on specific benchmarks, even when it is nominally at human-level, may exaggerate actual performance on the underlying task".
  • Humans do not need it. "A brief directive in natural language" or "a tiny number of demonstrations" is usually enough for a person.

GPT-2 had hinted at the alternative: condition a language model on a task description and let it continue, which the paper names in-context learning. But results were "far inferior to fine-tuning": 4% on Natural Questions, and a 55 F1 on CoQA more than 35 points behind the state of the art (§1). The bet: in-context learning means absorbing many skills during pretraining and recognising the task at inference, and log loss improves smoothly with scale (Kaplan et al. 2020), so "it is plausible that in-context learning abilities might show similarly strong gains with scale". The paper tests it by training one model ten times larger than any dense language model before it, plus seven smaller ones to measure the trend.

Idea: the task goes in the prompt, the weights stay frozen

§2, Figures 1.1 and 2.1

There is deliberately no architectural novelty; the contribution is scale plus a systematic study of a way of using the model (§2). A task is specified purely in the text: an optional natural-language instruction, then K demonstrations, then one final context the model must complete. No gradient updates, ever. Few-shot uses as many examples as fit in the 2,048-token window; one-shot is one demonstration plus the instruction, the way a crowdworker is usually shown a task; zero-shot is the instruction alone, most convenient and sometimes "unfairly hard" because the format is ambiguous. The authors call one-shot and zero-shot "the fairest comparisons to human performance"; fine-tuning GPT-3 was possible "in principle" but left to future work.

Fig. 2 runs the paper's own Figure 2.1 example through both routes: the same three English to French pairs and the same test word, counted in GPT-3's real tokens. Predict first: how many of the 175 billion weights change on the in-context route?

Figure 2.1's task: three examples, then "cheese =>".
  1. A frozen, pretrained model. GPT-3 175B as pretraining left it; the glass plates stand for its 96 layers of weights. Nothing about the task is in them and nothing will be written to them: the task has to arrive as text in the context, the tray in front, one slot per token, 2,048 slots (64 × 32) to scale.
  2. The task description. "Translate English to French:" costs 7 tokens (purple). In zero-shot this line and the query are the whole prompt.
  3. Example 1 goes into the prompt, not into the weights. One demonstration appended (10 tokens, blue), drawn from the task's training set: this is one-shot. The weights have not moved; only the context has grown.
  4. Example 2. Another 11 tokens. Each demonstration is drawn at random from the task's training set (§2.4).
  5. Example 3: few-shot. Three demonstrations; with the instruction the prompt is now 39 tokens. The paper uses as many as fit, typically 10 to 100 (K = 64 for TriviaQA, 32 per SuperGLUE task).
  6. The query. "cheese =>" (3 tokens, orange): 42 of the 2,048 slots are used, about 2%. The model must infer from the pattern alone that a French translation should follow.
  7. One forward pass answers. The context streams up through the frozen layers and the model continues with " fromage" (2 tokens, green). No gradient was computed; the same weights serve the next task with a different prompt. Any "learning" happened inside the forward pass (Figure 1.1).

The tray is the 2,048-token window to scale; token counts are exact under GPT-2's byte-level BPE, which GPT-3 reuses (counted with tiktoken r50k_base, src/count_tokens.py). The eight plates stand for 96 layers. Fine-tuning normally uses thousands of examples; three are shown to keep the two routes on the same input.

Why call it learning. The paper frames pretraining as an outer loop of gradient descent that produces an inner-loop learner: inside one forward pass the model adapts to the pattern in its context (Figure 1.1). It names this "meta-learning" and stays agnostic on whether the inner loop learns the task "from scratch" or "simply recognizes patterns seen during training" (footnote 1, §1; the question returns in Limitations, and the later evidence on it is on Test-time compute and reasoning, section 10). The headline measurement is the in-context learning curve: accuracy against K, which on a symbol-removal task gets steeper with model size (Figure 1.2).

Model: GPT-2, scaled, in eight sizes

§2.1, Table 2.1

"The same model and architecture as GPT-2": a decoder-only Transformer with GPT-2's modified initialisation, pre-normalisation and reversible byte-level BPE tokenisation, with one change: "alternating dense and locally banded sparse attention patterns" in the layers, as in the Sparse Transformer (§2.1). Eight sizes span three orders of magnitude so that scaling can be measured (the stacks of Fig. 1), from 125M to 175B; every model has a 2,048-token context and dff = 4 dmodel, and every one is trained for 300 billion tokens.

GPT-3 175B: 96 layers, dmodel 12,288, 96 heads of 128 dimensions, batch 3.2M tokens, learning rate 0.6 × 10⁻⁴ (Table 2.1). Larger models get a larger batch and a smaller learning rate, the batch guided by the measured gradient noise scale (§2.3). The shapes were chosen for "computational efficiency and load-balancing" across GPUs, since loss is "not strongly sensitive" to them.

Two printed shapes that do not quite reproduce

Counting the parameters from these shapes reproduces the appendix's counts within 0.3% for all eight, but only if the 13B model's printed dmodel of 5,140 is read as 5,120 (40 heads × 128); and XL's 24 heads × 128 = 3,072 does not equal its dmodel of 2,048 (the recount).

Data: 300 billion tokens, sampled by quality, not size

§2.2, Table 2.2, Appendix A

Common Crawl alone ("nearly a trillion words") would be big enough to train the largest model without repeating a sequence, but unfiltered it is low quality. Three steps (§2.2, Appendix A):

  • Filter 41 monthly Common Crawl shards (2016 to 2019) with a classifier trained to tell curated text (WebText, Wikipedia, books) from raw crawl: 45 TB of compressed plaintext became 570 GB, "roughly equivalent to 400 billion" tokens. Reference-set classifiers like this one are compared with later ones on Quality classifiers and data selection.
  • Fuzzy deduplication at the document level, within and across datasets.
  • Add curated corpora: WebText2, two internet book corpora (Books1, Books2) and English Wikipedia (how each step works).

So the mix is quality-weighted, not size-proportional: Common Crawl and Books2 are seen less than once (0.44 and 0.43 epochs), Wikipedia 3.4 times, "a small amount of overfitting in exchange for higher quality training data". By word count 93% of the data is English and 7% other languages (§3.3). A filter was meant to remove every overlap with the benchmarks' development and test sets, but "a bug in the filtering caused us to ignore some overlaps", and retraining was too expensive; Contamination measures the damage.

Common Crawl is most of the data but not most of the mix

Top bar: tokens available in each source; bottom bar: its share of the 300B training tokens, both to scale (Table 2.2). Common Crawl is 82% of the data but 60% of the mix. The epochs column does not all follow from the other two columns; see the recount.

Training and compute

§2.3, Appendix B, Appendix D

The model is split "within each matrix multiply and ... across the layers" (the first as in Megatron-LM, the second pipeline-style), on V100 GPUs in "a high-bandwidth cluster provided by Microsoft" (§2.3).

Compute (Appendix D) uses the standard estimate of 6 FLOPs per parameter per token (why 6 is on Pretraining; it ignores attention). For 175B: 6 × 174.6 × 10⁹ × 300 × 10⁹ = 3.14 × 10²³ FLOPs, or 3,637 petaflop/s-days (one is 8.64 × 10¹⁹ FLOPs), the paper's 3.64 × 10³. That is 9.5 times T5-11B's 382, which was trained on 1 trillion tokens with half its parameters active per token. Following the scaling laws, the authors "train much larger models on many fewer tokens than is typical": GPT-3 3B and RoBERTa-Large (355M) each took about 50 petaflop/s-days (Figure 2.2).

The training recipe in one line

Adam (β2 = 0.95), gradient clipping at 1.0, warmup then cosine decay to 10%, a batch-size ramp, weight decay 0.1, and full 2,048-token sequences with documents packed (every setting).

175B took about ten times T5-11B's compute

Figure 2.2 rebuilt from Table D.1, petaflop/s-days on a log scale; every bar recomputed as multiplier × parameters × tokens and matching the printed value to the printed precision (independently). GPT-3 175B sees 1.7 tokens per parameter; Chinchilla later argued for about 20 (Why it matters).

Evaluation: how a frozen model is scored

§2.4, Appendix G

Demonstrations are drawn at random from the task's training set for each test example, and K is tuned on the development set when a separate test set exists. Answers are scored by likelihood (multiple choice, normalised per token) or generated with beam search (free form). Most scores are on development sets, because the model was "too large to fit on the test server"; only SuperGLUE, TriviaQA and PIQA were submitted to test servers (§2.4).

Every scoring rule (§2.4)
  • Demonstrations are separated by one or two newlines. LAMBADA and StoryCloze have no training set, so examples come from the development set; the original Winograd has one set, so they come from it. Exact phrasings are in Appendix G.
  • Multiple choice: compare the likelihood of each completion, normalised per token. On ARC, OpenBookQA and RACE the authors instead divide by the completion's unconditional probability, P(completion | context) / P(completion | answer_context), with answer_context the string "Answer: " or "A: ".
  • Binary classification: options get meaningful names ("True", "False") and are scored as multiple choice.
  • Free-form answers: beam search, width 4, length penalty α = 0.6, scored by F1, BLEU or exact match.
  • Splits: test sets when public; otherwise the development set.

The scaling pattern, the paper's real result

§3, Figures 1.3 and 3.1

The headline pattern matters more than any single number. Validation loss keeps the Kaplan power law in compute "for an additional two orders of magnitude with only small deviations" (Figure 3.1; its fitted line is printed as L = 2.57 · C−0.048, C in petaflop/s-days, embedding parameters excluded). Six extra-small models down to 100,000 parameters were added for that plot. And lower loss does turn into task performance: zero-shot accuracy grows steadily with size, but few-shot grows faster, so the gap widens (the curves beside this section, the paper's Figure 1.3, and Fig. 1 at the top); "larger models are more proficient meta-learners".

Figure 1.3 is itself "not ... a rigorous or meaningful benchmark", the authors warn, and they do not say which 42 tasks it averages (the check). The Refit the scaling curves tab replots any task, fits the seven smaller models and asks whether 175B was predictable from them.

Examples in the prompt help more the bigger the model
Mean accuracy over the 41 accuracy rows of Table H.1, the same model at eight sizes in three settings. Notice the lines spreading apart: few minus zero is 1.8, 2.6, 3.7, 4.2, 5.9, 6.0, 9.2 and 14.8 points from 125M to 175B. It widens from 125M to 175B on 36 of the 41 tasks and from 13B to 175B on 28. This is the paper's Figure 1.3 recomputed from its own appendix table (independently: the figure prints no values, and adding SQuAD 2.0 exact match as a 42nd row moves the 175B few-shot mean from 57.2 to 57.4).

Task by task, in brief

§3.1 to §3.8, Tables 3.1 to 3.8

Nine groups of tasks, each in zero-, one- and few-shot at all eight sizes. "SOTA" is almost always a fine-tuned model, so a near miss is a different kind of system coming close. The full account, with every number the paper quotes, is beside Table H.1 in the tables tab.

  • Language modelling and completion: new state of the art on PTB, perplexity 20.5 against 35.8 (Table 3.1), and LAMBADA, 86.4% few-shot, 18.4 points above the previous best; there the fill-in-the-blank prompt format ("Alice went to visit her friend ___. → Bob") is itself a demonstration of what prompting buys (Table 3.2).
  • Closed-book QA: TriviaQA 71.2% few-shot beats not only fine-tuned closed-book T5 but also the fine-tuned open-domain RAG system that retrieves over 21M documents; Natural Questions stays well below, 29.9 against 36.6 closed-book (T5+SSM) and 44.5 open-domain (Table 3.3).
  • Translation: few-shot into English beats prior unsupervised NMT by 5.4 BLEU on average (Fr→En 39.2, De→En 40.6, Ro→En 39.5) though translation was never trained for and only 7% of the data is not English; out of English it is much weaker (Table 3.4).
  • SuperGLUE: 71.8 few-shot with 32 examples per task and no gradient updates, above fine-tuned BERT-Large (69.0), and "less than eight total examples per task" already pass it; still far below the fine-tuned SOTA of 89.0 (Table 3.8).
  • Clear failures: WiC at 49.4%, chance; ANLI at chance for every model below 175B, which "shows signs of life" on Round 3 (40.2%); weak QuAC (44.3 F1), RACE (46.8%) and DROP (36.5 F1).

The consistent weak spot is comparing two pieces of text: whether a word means the same in two sentences (WiC), whether one sentence implies another (ANLI, RTE, CB), plus several reading-comprehension sets (§3.7). The authors suspect the unidirectional decoder (Limitations).

Synthetic and qualitative tasks

§3.9, Tables 3.9 to 3.12

Tasks "designed especially to probe in-context learning", unlikely to appear verbatim in the training data (§3.9; every number in the detail).

Arithmetic: ten tests of 2,000 random problems, asked as "Q: What is 48 plus 76? A:", the answer generated exactly. Few-shot 175B gets 2-digit addition 100%, subtraction 98.9%, 3-digit addition 80.4% (the text says 80.2), 4-digit about 25%, 2-digit multiplication 29.2% (Table 3.9). The jump is sharp: even 13B solves 2-digit addition and subtraction only about half the time (55.5% and 52.4%, Figure 3.10).

Few-shot 3-digit addition: GPT-3 13B gets 8.4%. What does 175B get, with the same examples and no other change?

Not memorised, the authors argue: only 17 of 2,000 three-digit addition problems (0.85%) and 2 of 2,000 subtraction problems appear in the training data, and wrong answers often forget to carry a 1. Word manipulation (unscrambling, removing inserted symbols) and using a made-up word after one definition also work for 175B and are near zero for small models; one-shot halves the word scores and zero-shot rarely solves any, which the authors read as learning at test time (Table 3.10). SAT analogies: 65.2% few-shot against 57% for the average college applicant.

Can people tell? Given a real title and subtitle, 175B wrote news articles of about 200 words that people identified as machine-written at a mean of 52% (95% interval 49 to 54%), "barely above chance", against 86% for a deliberately bad control model; for about 500-word articles, again 52% (Tables 3.11 and 3.12, charted in the tables tab).

Contamination: measured after the fact

§4, Appendix C, Table C.1, Figure 4.2

Because of the filtering bug, the authors measured how much the leftover overlap matters instead of preventing it (§4). For each benchmark they built a "clean" subset with every example that shares an N-gram with the training data removed, deliberately over-flagging, and compared the score on the clean subset with the full score. Training curves show little overfitting even at 175B (Figure 4.1), so contamination was expected to be frequent but weak. (How such N-gram rules perform on real data, false positives included, is on Decontamination, PII and data governance.)

How the overlap was flagged (Appendix C)

N is the 5th-percentile example length in words, at least 8 and at most 13; 2-grams for the short word tasks (Appendix C). The overlap was computed against the full corpus, though training used only about 40% of the filtered Common Crawl.

In 9 of the 42 benchmarks of Table C.1, more than half the examples are flagged as possibly seen in training. What happens to the scores when only the clean examples are kept?

Six groups were flagged and examined one by one (case by case): in reading comprehension (over 90% flagged) the passages were in the training data but not the questions; the word-task flags were palindromes; PIQA (29% flagged, 3 points lower clean) and Winograd (45% flagged, 2.6% lower, 132 schemas really present) keep an asterisk; the Wikipedia language-modelling benchmarks and the Children's Book Test were almost entirely contained and are not reported.

LAMBADA had "substantial genuine contamination", yet its clean subset scored within 0.5% of the full set. The stated weakness: a clean subset may not be drawn from the same distribution, so memorisation could be cancelled by an easier clean subset; "the sheer number of shifts close to zero suggests this is unlikely".

Limitations, as the authors state them

§5
  • Text synthesis: samples "still sometimes repeat themselves semantically", lose coherence over long passages, contradict themselves, and include non sequiturs; 500 uncurated samples are released to show it. Informally, "common sense physics" is hard: "If I put cheese into the fridge, will it melt?"
  • Comparison tasks (WiC, ANLI, some reading comprehension) stay near chance. The design is autoregressive only, with no bidirectional architecture or denoising objective, so tasks that need "looking back and comparing two pieces of content" or re-reading a long passage may suffer; a large bidirectional model would probably fine-tune better.
  • The objective weights every token equally, with no notion of what matters, and only predicts text rather than taking "goal-directed actions"; there is no grounding in video or physical interaction. Suggested remedies: "learning the objective function from humans", reinforcement learning fine-tuning, more modalities.
  • Learning or recognising? It is ambiguous whether few-shot prompting learns a task "from scratch" at inference or identifies one learned in pretraining, and it may differ by task: word scrambling and nonsense words seem learned on the spot, translation must come from pretraining.
  • Cost and sample efficiency: 175B is "expensive and inconvenient to perform inference on"; distillation at this scale is untried; pretraining sees far more text than a human does in a lifetime.
Shared with deep learning, and the broader impacts (§5, §6)

Shared with deep learning: decisions are hard to interpret, predictions are not well calibrated on novel inputs, and the model inherits the biases of its data.

Broader impacts (§6, Tables 6.1 and 6.2): three concerns, studied briefly (the detail). Misuse: text good enough to pass as human makes misinformation, spam and phishing cheaper; the authors found discussion but "no successful deployments" since GPT-2 (§6.1). Bias: "internet-trained models have internet-scale biases"; 83% of 388 occupations were more likely followed by a male word, and race and religion prompts drew skewed sentiment and stereotypes (§6.2). Energy: thousands of petaflop/s-days to train, but generating 100 pages costs "on the order of 0.4 kW-hr" (§6.3).

How much of this to believe

§2.4, §4, Appendices C and H

What holds up. The scaling pattern rests on eight models trained the same way and 63 evaluations of each in three settings, not on one benchmark: few-shot gains more from size than zero-shot on 36 of the 41 accuracy rows of Table H.1, and the average gap grows at every step (recomputed). It has replicated in every large model family since: Gopher reports gains from scale on most of 152 tasks, PaLM "continued benefits of scaling" few-shot, and Chinchilla beats GPT-3 with 40% of its parameters on every task its Tables 7 to 9 share with it. The memorisation check on arithmetic and the contamination study are more than most 2020 papers did, and the authors volunteer their own weak points (the filtering bug, the asterisks, the dropped benchmarks), which counts in their favour.

What to discount:

  • One draw of examples, no error bars. Each score is one prompt and one random draw of demonstrations; the only spread given is ANLI R3's "standard deviation of 1.2%" (Figure 3.9). Table C.1 was run "with a different seed for the random examples", a free second draw: of 41 matching scores 25 are identical and the mean absolute difference is 0.4 points, but WiC moves 3.9, WSC 1.9, CB 1.7, BoolQ 1.5, RTE 1.4 (both draws). Later work found the order of the same four examples alone moves GPT-3 2.7B from 54.3% to 93.4% on SST-2 (Zhao et al. 2021).
  • Small sets. Binomial standard errors at the paper's own scores: CB 5.1 points (56 examples), WSC 4.3, COPA 2.7, RTE 2.7, against TriviaQA's 0.5; CB few-shot goes 69.6, 67.9, 60.7, 66.1, 82.1 from XL to 175B.
  • Not like for like. The "SOTA" columns are fine-tuned systems, often on test sets, while most GPT-3 numbers are development-set scores (§2.4); Figure 3.8 calls its own reference lines "not directly comparable". K was tuned on development sets and WiC was tried in "a number of different phrasings", a mild prompt search the baselines did not get.
  • Contamination is bounded, not excluded: a clean subset may simply be easier, as the authors say; PIQA and Winograd keep asterisks.
Three smaller points: the aggregate, inconsistencies, estimated compute
  • A loosely defined aggregate: Figure 1.3 averages "42" unlisted tasks of very different scales (WiC zero-shot is 0.00 at every size in Table H.1, unexplained); the direction survives any reasonable choice, the exact curve does not.
  • Small inconsistencies: 80.2% against 80.4%, word-task scores quoted from the other draw, "200B" for the submitted model, ANLI R3 as a 1,500-example dev set against a 1,200-example test set, 13B's dmodel 5,140 (every check). None changes a conclusion.
  • Estimates presented as measurements: compute is the 6ND estimate, which ignores attention, not a measured FLOP count.

Verdict. Believe the qualitative claim firmly: in-context learning improves with scale faster than zero-shot ability, and a frozen model can be pointed at new tasks by text alone. Treat individual numbers as single draws good to a few points, and "competitive with fine-tuned SOTA" as true for a handful of tasks (TriviaQA, LAMBADA, PIQA, COPA, ReCoRD, CoQA) and false for most.

Why it matters (beyond the paper)

§8 Conclusion
  • Prompting became the interface to NLP. Before, every task meant a dataset and a fine-tuning run; after, one frozen model served arbitrary tasks specified in natural language. It shipped that way two weeks after the paper, as the OpenAI API (dates in the closed block below).
  • It validated the scaling bet at about 10 times the previous largest dense model (Turing-NLG, 17B) and set the template: Chinchilla's Table 1 lists Jurassic-1 (178B), Gopher (280B) and MT-NLG (530B), all on about 300B tokens "following ... the training setup of GPT-3"; PaLM (540B) was built "to further our understanding of the impact of scale on few-shot learning".
  • Zero-, one- and few-shot became the evaluation protocol for base models (Chinchilla's Table 6 has GPT-3 at 43.9% on 5-shot MMLU), and data curation (filtering, deduplication, contamination analysis) became part of the method.
  • Emergence, and its critique. The sharp jumps seeded the "emergent abilities" literature (Wei et al. 2022); Schaeffer et al. 2023 re-scored the GPT-3 family and found the jumps "appear due to the researcher's choice of metric", exact match being all or nothing.
  • Closed weights. Released only through the API, the pattern of frontier labs since, so the model in this paper cannot be run outside OpenAI.
  • Its weaknesses set the next agenda. GPT-3 did not follow instructions reliably or stay factual and harmless; InstructGPT fixed that with RLHF on GPT-3 itself, and labelers preferred a 1.3B InstructGPT to the 175B GPT-3 "despite having over 100x fewer parameters". Its parameters-heavy, tokens-light recipe is what Chinchilla corrected (chart).
  • The open question is still open. Randomly replacing the labels in the demonstrations "barely hurts performance" (Min et al. 2022), so examples convey format and label space more than the mapping; induction heads offer a mechanism for copying patterns from context (Olsson et al. 2022).
The API and the shutdown of the model (dated; checked 2 October 2026)

The OpenAI API launched on 11 June 2020 as "a general-purpose 'text in, text out' interface" on "weights from the GPT-3 family", programmed "by showing it just a few examples". The base model davinci was shut down on 4 January 2024 and its replacement davinci-002 on 28 September 2026 (OpenAI deprecations).

GPT-3 saw about a tenth of the tokens per parameter later recipes use

Training tokens per parameter, log scale. GPT-3 from Table 2.1; Chinchilla 70B on 1.4T and its Table 3 estimate that a compute-optimal 175B model needs 3.7T tokens (arXiv 2203.15556); LLaMA 65.2B on 1.4T and 6.7B on 1.0T (Table 2); Llama 3 405B on 15.6T (arXiv 2407.21783). At GPT-3's own budget of 3.14 × 10²³ FLOPs, Chinchilla's Table 3 interpolated (optimal size growing as compute0.50) gives about 50B parameters on about 1.06T tokens: derived here, not a number Chinchilla prints. Compute-optimal allocation itself is taught on Pretraining.

Connections

  • Attention Is All You Need: GPT-3 is the decoder half of the Transformer scaled about three orders of magnitude.
  • Scaling Laws for Neural Language Models: the direct motivation (Kaplan is a co-author); GPT-3 extends the loss power law two more orders of magnitude and sized its models by it.
  • Chinchilla: showed 175B parameters on 300B tokens is heavily undertrained; rebalanced the parameters-to-tokens ratio GPT-3 popularised.
  • BERT: the rival paradigm this paper displaced for generation tasks; the paper attributes its comparison-task failures partly to lacking bidirectionality.
  • T5: the fine-tuned encoder-decoder road, and the closed-book QA and compute baseline here.
  • InstructGPT: RLHF on GPT-3 to fix the instruction-following and alignment gaps documented here.
  • Megatron-LM and ZeRO: the model-parallel and memory techniques that make 100B-plus dense training feasible.
  • Topics: Topic: llm-landscape (the GPT lineage), Topic: llm-training-and-post-training (pretraining at scale, scaling laws), Topic: data-curation-and-datasets (Common Crawl filtering, deduplication, quality-weighted mixing, contamination), Topic: benchmarks (the zero-, one- and few-shot protocol as an evaluation standard).
  • Test-time compute and reasoning, section 10: owns in-context learning and the few-shot protocol this paper named, and what came after it (many-shot, the role of demonstrations, induction heads, chain-of-thought prompting).