FDEInterviews logo
NeurIPS 2020

Language Models are Few-Shot Learners

The 2020 OpenAI paper that showed a big enough model can learn a task from a few examples in its prompt, no fine-tuning, and made prompting a discipline.

Breakdown by FDE Interviews · 13 min read · Updated

About the original · 2020
AUTHORS
Brown, Mann, Ryder, Subbiah, et al.
FROM
OpenAI
PUBLISHED
May 2020 · NeurIPS 2020
CITED BY
64,801Semantic Scholar · Oct 2026
IN THIS BREAKDOWN · 10 SECTIONS

You can read 17% of this breakdown.

01

The paper in one minute

In 2020 the standard recipe for a language task was to take a pre-trained model and fine-tune it on thousands of labeled examples of that one task. A new task meant a new dataset and a new model. People do not work that way. Show a person one or two examples and a sentence of instructions and they usually get it.

OpenAI asked whether a big enough language model could do the same. They trained GPT-3, a decoder-only Transformer with 175 billion parameters, on 300 billion tokens of web text, books and Wikipedia, and then never fine-tuned it. Every task was given to the model as text: an instruction, sometimes a handful of solved examples, then the case to solve. They called this in-context learning, and named three settings by how many examples the prompt contains: zero-shot, one-shot and few-shot.

The results moved the field. On closed-book TriviaQA, GPT-3 went from 64.3% zero-shot to 71.2% few-shot, the best published result for that setting in 2020, ahead of fine-tuned systems. On SuperGLUE, 32 examples per task in the prompt beat a BERT-Large model fine-tuned on 125,000. Small models could barely do any of this; the ability grew with size.

The paper is also unusually frank about where it failed, and those failures are as useful as the wins. Almost every LLM product since starts from its premise: describe the task in the prompt.

THE IDEA, VISUALLY
THE TASK IS SPECIFIED IN THE PROMPT, NOT IN THE WEIGHTS ZERO-SHOT Instruction: classify ticket Refund never arrived → ? 0 examples ONE-SHOT Instruction: classify ticket App crashes at login → bug Refund never arrived → ? 1 example FEW-SHOT Instruction: classify ticket App crashes at login → bug Charged twice → billing How do I export? → how-to Refund never arrived → ? K examples (10 to 100) Same 175B weights in all three. No gradient updates; the examples are just more text in a 2,048-token window. TRIVIAQA, CLOSED BOOK GPT-3 175B accuracy, Section 3.2 64.3% zero 68.0% one 71.2% few 71.2% few-shot was state of the art for closed-book QA, fine-tuned systems included.
In-context learning. The task lives in the prompt: an instruction, optionally a few worked examples, then the new case. GPT-3's weights never change.
Research notes: the problem, approach and results
175Bparams

ten times larger than any previous non-sparse language model

32examples

per SuperGLUE task in the prompt, beating BERT-Large fine-tuned on 125,000

52%

human accuracy at spotting GPT-3's news articles, against 50% for a coin toss

THE PROBLEM

Every new language task needed its own labeled dataset of thousands of examples and its own fine-tuned model.

THE IDEA

Scale a plain next-token predictor to 175 billion parameters and describe the task in the prompt, with zero, one or a few examples.

THE RESULT

Strong results across dozens of benchmarks with no task-specific training, and a new way of building with models: prompting.

02

Why it matters to an FDE

This paper defines the first decision on almost every engagement: do we prompt, or do we train? It names the spectrum. Fine-tuning changes weights with thousands of examples. Few-shot puts 10 to 100 examples in the prompt. Zero-shot gives only an instruction. It also states the trade-off plainly: few-shot needs far less data, but it was then "much worse than state-of-the-art fine-tuned models" on many tasks.

Two findings matter more on a deployment than the headline scores.

Comparing two texts was a blind spot. GPT-3 scored 49.4% on WiC, a two-way choice where chance is 50%, and was near chance on ANLI. Both ask whether two pieces of text mean the same thing or whether one implies the other. That is exactly the shape of many enterprise asks: does this clause match our policy, does this invoice match the purchase order. Modern models are far stronger, but this is still the task type to test hardest before promising anything.

More examples is not always better. On the LAMBADA benchmark, one-shot accuracy (72.5%) came in below zero-shot (76.2%), though the paper notes zero-shot used a different prompt format. Prompt design is an experiment, not a formula, and each example you add costs tokens on every request.

THE FULL BREAKDOWN

Understand the mechanism. Try it on a real problem.

Unlock this breakdown and 49 more papers.

Premium opens every paper in full, plus every answer, concept, course and guide on the site. One payment for six months of access.

6 months · One payment · No auto-renewal

Get Premium · ₹2,000 / $25
  • ◇1 architecture diagram
  • </>1 runnable code experiment
  • ▦3 results tables
  • ?5 interview questions with answers
  1. 03Key takeaways

    The ideas to keep, the cost of examples worked out, the training mix and the misreadings to avoid

    Free account
  2. 04How it works

    The model, the data, the evaluation protocol and why scale changes the picture, with a diagram

    Premium
  3. 05The numbers that matter

    The results that matter for building, including the weak spots and the cost of training

    Premium
  4. 06Try it yourself

    A harness that measures what each extra example costs, and the baseline your prompt must beat

    Premium
  5. 07Where it breaks

    The limits the authors listed themselves, and what changed after the paper

    Premium
  6. 08Using it on a deployment

    A decision procedure for prompt versus fine-tune, and how to test a prompt properly

    Premium
  7. 09Interview angles

    Five questions this paper prepares you for, with answer hints

    Premium
Back to the paper library →