Paper Breakdowns  /  GPT-3
Paper 15~9 min readNeurIPS 2020
Paper Breakdown

GPT-3,
explained.

By 2020, the recipe for a new task was fixed: gather a labeled dataset, then fine-tune. GPT-3 asked a wilder question — what if you just made the model enormous, and then, instead of training it, simply showed it a few examples in the prompt? At 175 billion parameters, something new fell out: the model could learn a task from the words you handed it, with no fine-tuning at all.

Video breakdown
The animated walkthrough is in production.
Read the full breakdown below in the meantime ↓
01

The fine-tuning bottleneck

BERT had made a recipe famous: pre-train a big model once, then fine-tune it on each specific task with a labeled dataset. It worked brilliantly — but it had a cost that was easy to overlook. Every new task needed its own curated collection of thousands of labeled examples, and its own round of training that nudged the model's weights.

Humans don't work that way. You can be told "translate these to French" and shown one or two examples, and you're off — no dataset of ten thousand pairs, no retraining of your brain. The GPT-3 authors framed this squarely: the fine-tuning recipe was powerful but narrow, and it scaled poorly to the long tail of tasks nobody had built a dataset for. They wanted a model that could pick up a task the way a person does — from a short description and a handful of examples.

02

The bet: don't change the model — make it bigger

GPT-3's architecture is almost boringly familiar: it's the same autoregressive Transformer decoder as GPT-2, trained on the same humble objective — predict the next word, over and over, across a huge slice of the internet. The paper introduces essentially no new architecture. Its one radical move is scale.

GPT-2 had 1.5 billion parameters. GPT-3 has 175 billion — over a hundred times larger — trained on roughly 300 billion tokens of text. The hypothesis was that capability wasn't waiting on a cleverer design but on size, and that at some scale, new behaviors would simply emerge. The title says it all: Language Models are Few-Shot Learners. Scale was the whole idea.

The through-line

GPT-3 is the loudest evidence for the "scaling hypothesis" — that predictable gains come from making models, data, and compute bigger. It's the same bet the Scaling Laws and Chinchilla papers formalize; GPT-3 is where it stopped being a curve on a chart and started feeling like magic.

03

Zero-shot, one-shot, few-shot

The paper's central move is to stop fine-tuning entirely and instead put the "training" inside the prompt. It measures three settings, all with the model's weights frozen:

Zero-shot — you give only a task description. One-shot — you add a single worked example. Few-shot — you add several (often 10–100) examples before the real question. In every case the model just reads the prompt and continues it.

Few-shot prompt — teaching by example, in the text itself
sea otter  =>  loutre de mer
cheese  =>  fromage
plush giraffe  =>  girafe en peluche
otter  =>  ?
loutre  ·  model continues the pattern

Nothing here updates a single weight. The examples are just text the model reads on its way to generating the answer. And yet, at 175B, accuracy climbs steadily as you go from zero- to one- to few-shot — the extra examples genuinely help. Smaller models barely benefit; the effect grows with scale.

04

How it works under the hood

GPT-3 is a stack of 96 Transformer-decoder layers, 12,288-dimensional embeddings, 96 attention heads, and a context window of 2,048 tokens. Each layer is the standard decoder block: masked self-attention (each token attends only to tokens before it) followed by a feed-forward network. Trained on next-token prediction, it becomes a probability machine — given everything so far, what word comes next?

That single objective is deceptively powerful. To predict the next word well across the whole internet, the model has to implicitly pick up grammar, facts, translation, arithmetic, and reasoning patterns — because all of those show up in text. Few-shot prompting simply conditions that machine: the examples in the prompt shift the probabilities so the most likely continuation is the answer in the format you demonstrated.

05

In-context learning: the surprise

The headline phenomenon has a name: in-context learning. The model appears to "learn" the task from the examples in its context window, during a single forward pass, with no gradient descent and no weight change anywhere. Whatever adaptation is happening lives entirely in the activations as the model processes the prompt.

This was genuinely unexpected. Learning, in machine learning, had always meant updating weights. GPT-3 showed a second, temporary kind of learning that happens at inference time, purely from what's in front of the model. It reframed the interface to AI: you no longer train a model for a task, you describe the task and show examples. That's the birth of prompting as a discipline.

Worth knowing

In-context learning is why "prompt engineering" exists. Because the model adapts to whatever pattern you put in context, the wording, ordering, and choice of examples measurably change the answer — a lever you pull with text, not training runs.

06

The real results

Across dozens of benchmarks, few-shot GPT-3 was often competitive with — sometimes matching — fine-tuned models that had seen thousands of task-specific examples. It did strong translation with no parallel-text fine-tuning, answered trivia, unscrambled words, and even did multi-digit arithmetic it was never explicitly taught. The clearest pattern was that more examples and more parameters both helped.

SettingWhat the model seesTrend at 175B
Zero-shottask description onlysolid baseline
One-shot+ one exampleclear jump
Few-shot+ ~10–100 examplesbest; rivals fine-tuned models

The scaling curves were the real message. Plot accuracy against model size and it keeps climbing — bigger models were not just a little better, they were qualitatively better at learning from context. The gap between few-shot and zero-shot also widened with scale, evidence that in-context learning is something large models grow into.

07

What it couldn't do

The paper is unusually candid about limits. GPT-3 makes things up — fluent, confident text that is simply wrong. It loses the thread over long passages, contradicting itself. It stumbles on tasks needing real multi-step reasoning, and its arithmetic falls apart past a few digits. Because it learned from the open internet, it also absorbed the web's biases around gender, race, and religion.

There's a deeper gap too: GPT-3 is trained only to continue text, not to follow instructions or be helpful. Ask it a question and it might answer — or it might continue with more questions, because that's a plausible continuation. Aligning that raw next-word engine to human intent was the unfinished business that InstructGPT and RLHF picked up next, and which ultimately produced ChatGPT.

08

Why it still matters

GPT-3 is the hinge between two eras. Before it, you adapted models by training them; after it, you adapted them by talking to them. In-context learning turned the prompt into the primary interface for AI, and made "few-shot" and "zero-shot" everyday vocabulary. Every prompt you write to a modern assistant is a descendant of this paper.

It also settled, loudly, that scale delivers — the conviction that drove the models that followed. GPT-3 wasn't aligned, wasn't a chatbot, and got plenty wrong. But it proved that a big enough next-word predictor is a general-purpose, promptable engine, and everything from InstructGPT to today's frontier models is a refinement of what GPT-3 first made undeniable.

The line to today

GPT-3 (capability) → InstructGPT (align it to follow instructions with RLHF) → ChatGPT (wrap it in a chat interface). If GPT-3 is the engine, the papers after it are the steering, the seatbelt, and the dashboard.

Frequently asked

Quick answers

What is GPT-3?

A 2020 OpenAI language model with 175 billion parameters — an autoregressive Transformer decoder trained to predict the next word. Its landmark finding: at that scale it can perform new tasks from a few examples in the prompt, with no fine-tuning.

What is in-context learning?

The model learns a task from examples placed in the prompt, during a single forward pass, with no weight updates. Show it a few input→output pairs and it infers and continues the pattern.

Zero-shot vs one-shot vs few-shot?

Zero-shot: task description only. One-shot: one example. Few-shot: several (10–100) examples before the real question. Accuracy generally rises across the three, more so for bigger models.

How is GPT-3 different from BERT?

BERT is a bidirectional encoder, fine-tuned per task. GPT-3 is a far larger left-to-right decoder that is prompted rather than fine-tuned. Scale and in-context learning are its distinguishing traits.

What are GPT-3's limits?

Confident falsehoods, weak long-range coherence, shaky reasoning and arithmetic, absorbed bias, and high cost — plus it isn't aligned to follow instructions, the gap InstructGPT later closed.

Finished this one? 0 / 30 Paper Breakdowns done

Explore the topic

See this alongside everything else on the same subject — handbooks, system designs, challenges and tools, in one place.

More Paper Breakdowns