InstructGPT,
explained.
GPT-3 could do almost anything — and reliably do the wrong thing. Ask it a question and it might answer, or ramble, or list more questions, because it was only ever trained to continue text. InstructGPT closed that gap with a deceptively simple idea: don't just show the model more text, show it what humans actually prefer — and teach it to chase that. It's the recipe that turned a raw predictor into an assistant.
What changes here: the objective stops being prediction
Rung 1, so the comparison is against the pretrained model it starts from. A language model is trained to predict likely continuations of text, and that is simply not the same task as doing what a user asked. Given an instruction, the most likely continuation in the training corpus might be more instructions, a restatement, or a plausible-sounding evasion. The model is not failing; it is succeeding at a different objective from the one you want. Naming that as an objective mismatch rather than a capability gap is this rung's framing contribution.
The fix is a three-step pipeline, and every rung above modifies exactly one of its steps. One: collect demonstrations of the desired behaviour and fine-tune on them supervised. Two: collect human rankings of several model outputs for the same prompt and train a reward model to predict them. Rankings rather than scores is a deliberate choice — people are consistent when comparing two things and inconsistent when assigning absolute numbers. Three: optimise the model against that reward with PPO, plus a penalty for drifting too far from the step-one model, because a reward model is only accurate near the outputs it was trained on.
The unit to carry up the ladder is the result that made this recipe universal: a 1.3B-parameter InstructGPT was preferred by human evaluators over the 175B base model it was derived from. Same pretraining family, roughly a hundredth of the parameters, better outputs. That is the strongest statement anywhere on this site that post-training is not polish — it is a capability multiplier large enough to substitute for two orders of magnitude of scale.
The alignment gap
GPT-3 was trained on one objective: predict the next word across the internet. That makes it astonishingly capable and subtly misaligned. Its goal is "what text is likely to come next," which is not the same as "what would be helpful, honest, and safe to say." The two often coincide — and often don't.
So raw GPT-3 would answer a question with another question (a plausible continuation), invent citations, ignore an instruction it found less likely, or happily produce toxic text if the prompt leaned that way. The model wasn't broken; it was doing exactly what it was trained to do. The problem was that next-word prediction is a proxy for helpfulness, not the thing itself. InstructGPT's question: how do you train for the thing itself, when "helpful" has no loss function?
The idea: put a human in the loop
You can't write down a formula for "a good answer." But a person can look at two answers and say which is better. InstructGPT's insight is to turn that human judgment into a training signal — a technique called reinforcement learning from human feedback, or RLHF.
The plan has three stages: first teach the model the general shape of good answers from human demonstrations; then distill thousands of human comparisons into a reward model that can score any answer; then let the language model practice against that reward, improving toward what people prefer. Humans can't rank every output the model will ever produce — so you train a model to imitate their taste, and optimize against that.
Step 1 — Supervised fine-tuning
Start simple. Collect a set of real prompts (many from the OpenAI API), and have human labelers write the ideal response to each. Then fine-tune GPT-3 on these prompt→response pairs with ordinary supervised learning. This is SFT: the model learns, by imitation, the general format and manner of a helpful answer — follow the instruction, stay on topic, be direct.
SFT alone already makes a big difference. But it has a ceiling: it can only imitate the specific demonstrations written, and writing demonstrations is slow and expensive. Worse, for any prompt there are many good answers and the model has no way to learn which is better — imitation treats every demonstration as equally correct. To go further, you need a signal about preference, not just a single target.
Step 2 — The reward model
Ranking is cheaper than writing. So instead of asking labelers to author perfect answers, InstructGPT shows them several answers the SFT model generated for the same prompt and asks them to rank them best to worst. These comparisons are the raw material of alignment.
A separate reward model — itself a Transformer — is then trained to predict those human preferences: given a prompt and a candidate answer, output a single scalar "how much a human would like this." Trained on enough comparisons, it becomes a stand-in for human judgment that can score any answer instantly, at scale, without a person in the loop. It's how you compress "human taste" into something an optimizer can chase.
People are inconsistent at assigning absolute scores ("is this a 7 or an 8?") but reliable at relative judgments ("A is better than B"). Building the reward model from pairwise comparisons plays to what humans are actually good at.
The objective that turns "A beats B" into a scalar reward is Bradley-Terry. Model the probability a human prefers answer A as a sigmoid of the reward gap, then train the reward model to maximize the probability of the human's actual choice:
That single formula is the heart of RLHF — and the same loss DPO later optimizes directly, skipping the RL.
It's simpler than it looks: push the winner's reward up and the loser's down until the gaps reproduce the rankings. Trained on enough pairs, the scalar it outputs is a model of human taste — and the runnable version below recovers a full ranking from comparisons alone, no scores ever shown.
Step 3 — Reinforcement learning with PPO
Now the model can practice. Treat the language model as a policy: it takes a prompt, generates an answer, and the reward model scores it. Using PPO (Proximal Policy Optimization), the policy is nudged to produce answers the reward model rates highly. Over many rounds, the model drifts toward outputs humans prefer — more helpful, more on-instruction, less toxic.
There's a crucial safety belt. If you let the policy optimize the reward model freely, it will find degenerate outputs that game the score — reward hacking — and drift into gibberish the reward model happens to like. So a KL-divergence penalty tethers the policy to the original SFT model, punishing it for straying too far. The result is aligned, but still fluent and sane.
The result that surprised everyone
The headline finding is startling: human labelers preferred the 1.3-billion-parameter InstructGPT over the 175-billion-parameter GPT-3 — a model over a hundred times smaller. Alignment beat scale. InstructGPT followed instructions more faithfully, made up facts less often, and produced toxic output less frequently, all while being far cheaper to run.
| Model | Size | Human preference |
|---|---|---|
| GPT-3 (base) | 175B | baseline |
| GPT-3 + few-shot prompt | 175B | better |
| InstructGPT (RLHF) | 1.3B | preferred over 175B GPT-3 |
There was a cost the paper names honestly — an alignment tax: aligning the model slightly dented performance on some raw NLP benchmarks. But by mixing in a little pre-training gradient during RL, they kept the tax small. The trade — a touch of benchmark score for a lot of helpfulness — was plainly worth it.
What it doesn't solve
InstructGPT is aligned — but aligned to whom? The preferences come from a small pool of contractors following OpenAI's guidelines. "Helpful and harmless" is defined by that specific group, and the paper is candid that this is not a neutral, universal standard. Scale the method and you scale one set of values.
It also doesn't cure hallucination — the model still states falsehoods confidently, just less often. A determined user can still jailbreak it into harmful output. And the reward model is a leaky proxy: optimize hard enough and the policy learns to please the reward model rather than actual humans. RLHF made models dramatically more useful without making them truthful or safe by construction — those remain open problems.
Why it still matters
InstructGPT is the missing half of the modern assistant. GPT-3 supplied the raw capability; InstructGPT supplied the alignment that made that capability usable by ordinary people typing ordinary requests. A few months after this paper, the same recipe — SFT, reward model, PPO — wrapped in a chat interface, became ChatGPT.
RLHF is now the default finishing step for frontier models, and the ideas here seeded a whole research line: reward modeling, preference optimization, and lighter-weight successors like DPO that skip the separate reward model entirely. If GPT-3 proved a big model is a powerful engine, InstructGPT proved that human preference is the steering wheel — and that steering can matter more than horsepower.
GPT-3 (capability) → InstructGPT (align with RLHF) → ChatGPT (chat interface). This paper is the middle link — the one that made the other two add up to a product hundreds of millions of people use.
What the authors admit, and what happened next
Three admissions, all of which became research areas. The alignment tax: the aligned model gets worse on some academic benchmarks than the base model, and the paper reports this rather than selecting metrics that hide it. Whose preferences: the model is aligned to the preferences of a small group of contractors and a handful of researchers' guidelines, which the paper states plainly — "aligned" is a relation to a specific group, not a property. And reward over-optimisation: push hard enough against a learned reward and you find its errors rather than the behaviour it was meant to encode, which is what the drift penalty exists to contain.
The pipeline's operational cost is also real and under-stated at the time: step three holds four models in play at once, and reinforcement learning on a language model is delicate to keep stable.
How it held up: the three steps became the industry default within a year, and the fact that a chat assistant feels like a different kind of artefact from a language model is this paper's doing. Every rung above is an attack on one of its three steps — rungs 2 and 3 on where the data comes from, rungs 4 and 5 on the cost of the gradient step, rungs 6 and 7 on the optimiser, rungs 8 and 9 on what the reward measures. The admission that has aged most importantly is the second one, because it reframes alignment as a question about whose values are being encoded — which is what the next rung makes explicit and auditable.
Train a reward model from preferences
Step 2 is the crux of RLHF, and it's small enough to run. This trains a real reward model with the Bradley-Terry objective: eight answers with a hidden quality, a pile of "A beats B" human judgments, and a scalar reward per answer learned by gradient descent — the model is never shown a score. Watch the loss fall and the learned rewards line up with the true ranking it was never told. This is exactly how human taste gets compressed into a number an optimizer can chase.
Write the body of pref. Everything else in the file is
already written; this is the function the paper is about. Press ▶ Run to check it against
the 5 assertions below — they start red.
- The preference model is a monotonic sigmoid of the reward gap
- Equal rewards give a coin-flip preference
- Training reduces the Bradley-Terry loss
- The learned reward ranks the truly-best answer on top
- The model reproduces the human ranking with high accuracy
5 questions on this paper
Answer each one out loud before you open it. Recalling an answer is what makes it stick; recognising one you have just read is not. Your score is kept on this device.
What is InstructGPT?
Show answer
InstructGPT is a 2022 OpenAI model and paper ('Training language models to follow instructions with human feedback') that fine-tunes GPT-3 to follow instructions and be helpful, using reinforcement learning from human feedback (RLHF). It is the direct methodological ancestor of ChatGPT.
What is RLHF?
Show answer
RLHF — reinforcement learning from human feedback — is a three-step recipe for aligning a language model to human preferences: (1) supervised fine-tuning on human-written demonstrations, (2) training a reward model from human rankings of model outputs, and (3) optimizing the model against that reward with reinforcement learning (PPO).
What are the three steps of InstructGPT?
Show answer
Step 1: supervised fine-tuning (SFT) — train GPT-3 on prompts paired with human-written ideal answers. Step 2: reward modeling — humans rank several model outputs for a prompt, and a reward model learns to predict those preferences. Step 3: reinforcement learning — use PPO to update the policy to maximize the reward model's score, with a KL penalty keeping it close to the SFT model.
Why did the smaller InstructGPT beat GPT-3?
Show answer
Human labelers preferred outputs from the 1.3-billion-parameter InstructGPT over the 175-billion-parameter GPT-3 because InstructGPT was aligned to actually follow the instruction and be helpful, while raw GPT-3 merely continues text. Alignment, not size, drove the preference — showing that how a model is trained can matter more than how big it is.
What are InstructGPT's limitations?
Show answer
InstructGPT still makes factual errors and can be steered into harmful outputs. It is aligned to the preferences of a specific, small group of labelers and OpenAI's guidelines — 'whose values?' is unresolved. Optimizing a reward model can also be gamed (reward hacking), and there is an 'alignment tax' where performance on some benchmarks dips.
Teaching a base model to follow
A pre-trained model completes text; it does not take instructions. Nine papers on getting from one to the other, from RLHF to a loss with no reward model in it.
Explore the topic
See this alongside everything else on the same subject — handbooks, system designs, challenges and tools, in one place.
More Paper Breakdowns
- Attention Is All You NeedThe paper that introduced the Transformer — the architecture underneath GPT, BERT, Claude, and Gemini. Self-attention, Query/Key/Value, multi-head attention, positional encoding, and the real BLEU results, explained in depth with analogies and animated visuals, not just equations.Read →
- BERTThe paper that made "pre-train once, fine-tune anywhere" the default for NLP. Bidirectional context, masked language modeling, next-sentence prediction, the [CLS]/[SEP] tokens, and the GLUE sweep — explained with analogies, not just equations.Read →
- Chain-of-Thought PromptingShow a model a few worked examples with their reasoning and it starts solving problems it used to fail. Why reasoning emerges only at scale, the GSM8K jump, zero-shot "Let's think step by step", and how CoT seeded modern reasoning models.Read →
- LoRAThe paper that made fine-tuning affordable. Freeze the giant pretrained model and train two tiny low-rank matrices instead — up to 10,000x fewer trainable parameters, no extra inference latency, and swappable per-task adapters. The road to QLoRA and PEFT.Read →
- Direct Preference OptimizationRLHF without the RL. Align a model to human preference pairs with one simple classification-style loss — no separate reward model, no unstable reinforcement learning. Why "your LM is secretly a reward model", and how DPO became the default alignment method.Read →
- ChinchillaThe compute-optimal scaling law that said models were too big. Parameters and training tokens should scale together — ~20 tokens per parameter — so a 70B model trained on 1.4T tokens beat the 280B giants. Why every model since trains on trillions of tokens.Read →