GPT-3 and Few-Shot Learning at Scale


Paper: Brown et al., Language Models are Few-Shot Learners, NeurIPS 2020. arXiv:2005.14165

The big claim

What happens if you scale a language model to 175 billion parameters and train it on a huge web corpus — and then never update its weights for a new task? GPT-3’s answer: it learns new tasks in context, just from the prompt. This is “few-shot” (or zero-shot) learning with no gradients.

Three inference modes

Given a task, you can condition the model differently:

The surprise: few-shot consistently beat zero-shot, and sometimes approached fine-tuned models — with zero parameter updates.

Scale

Model Params Train tokens
GPT-3 175B ~300B

Trained on CommonCrawl, WebText2, Books, Wikipedia. The architecture is a 96-layer decoder-only Transformer (d_model = 12288, 96 heads), essentially GPT-2 scaled ~100×.

Why in-context learning works (intuition)

A model this large has effectively “seen” most task patterns during pretraining. The prompt is a retrieval key that activates the relevant behavior stored in its parameters. Modern views frame in-context learning as implicit Bayesian inference or a learned algorithm executed over the context.

Key results

A minimal call

import openai  # or any OpenAI-compatible endpoint

resp = openai.chat.completions.create(
    model="gpt-3.5-turbo",  # spiritual successor
    messages=[
        {"role": "system", "content": "You are a terse translator."},
        {"role": "user", "content": "Translate to French: The model learned in context."},
    ],
)
print(resp.choices[0].message.content)

Why it matters

GPT-3 shifted the field from “train a model per task” to “prompt one giant model.” It made in-context learning a first-class capability and set the stage for instruction tuning (InstructGPT) and the ChatGPT moment. If you only read one paper about scale, read this one.

References

© 2026 Jiawei    粤ICP备18035774号