Human raters preferred outputs from a 1.3 billion-parameter InstructGPT model over the 175 billion-parameter base GPT-3 on real API prompts, proving that alignment post-training delivers larger helpfulness gains than over 100x more parameters. Long Ouyang and 21 OpenAI colleagues achieved that reversal using reinforcement learning from human feedback (RLHF) at a fraction of pretraining compute: 4.9 petaflops/s-days for supervised fine-tuning and 60 petaflops/s-days for PPO at 175B scale, compared to 3,640 petaflops/s-days to pretrain GPT-3.

InstructGPT turned the three-stage RLHF recipe pioneered on games and robotics in Christiano et al. into the standard post-training pipeline for language assistants. Just as importantly, the paper documented why naive academic instruction datasets fail against live user traffic, why training a reward model on individual shuffled pairs overfits in one epoch, and how mixing pretraining gradients (PPO-ptx) cancels most of the “alignment tax” on public benchmarks.

  • Over 100x parameter efficiency: On held-out API prompts, 1.3B PPO-ptx beat 175B base GPT-3; at 175B scale, InstructGPT was preferred 85% (+/- 3%) over GPT-3 and 71% (+/- 4%) over few-shot prompted GPT-3.
  • Public NLP mixes lagged badly: Fine-tuning 175B GPT-3 on FLAN or T0 lost 78% (+/- 4%) and 79% (+/- 4%) head-to-head to 175B InstructGPT because academic tasks miss open-ended user requests.
  • Half the hallucinations, mixed safety: Closed-domain hallucination rates dropped from 41% to 21%, and respectful-prompt toxicity fell roughly 25%, yet bias metrics on Winogender and CrowS-Pairs did not improve.
  • Low alignment tax with pretraining mix: Plain PPO regressed on SQuADv2, DROP, HellaSwag, and translation; adding pretraining updates (gamma = 27.8) restored HellaSwag (80.7% vs. 78.1% zero-shot) and held SQuADv2 few-shot F1 at 69.93 (vs. 69.75).
The three-stage InstructGPT post-training pipeline
1. Supervised fine-tuning (SFT)
Fits GPT-3 to human-written demonstrations (12,725 train prompts, 16 epochs, dropout 0.2).
Policy anchor pi_SFT
Trained on 11,295 labeler-written prompts and 1,430 Playground prompts; RL init uses 2 epochs with a 10% pretraining data mix.
2. Reward modeling (RM)
Trains a 6B scalar critic on ranked completions across 33,207 prompts for 1 epoch.
Grouped ranking loss r_theta(x, y)
Raters rank K = 4 to 9 responses per prompt; all C(K, 2) pairs run as one batch element so each completion gets one forward pass without overfitting.
3. RL via PPO-ptx
Optimizes RM score over 31,144 customer prompts (256k episodes) without losing base skills.
KL anchor + pretraining mix
Combines RM reward, per-token KL penalty (beta = 0.02) against pi_SFT, and pretraining log-likelihood updates (gamma = 27.8).

Pipeline and hyperparameters from Ouyang et al. (2022), Section 3.5 and Appendix C.

Why scaling, prompting, and academic instruction mixes miss user intent

Pretraining teaches a transformer to predict the next token on an internet webpage, not to follow a user’s instructions helpfully, honestly, and harmlessly. Show base GPT-3 a prompt asking for a short story or a rewrite, and it will often continue the prompt with another question or fabricate details. Even when authors spent an hour each competing to engineer the strongest few-shot instruction prefix (GPT-3-prompted), human raters still preferred 175B InstructGPT 71% (+/- 4%) of the time.

A subtler finding is why fine-tuning GPT-3 on public academic instruction benchmarks failed to close that gap. The authors fine-tuned 175B GPT-3 on roughly one million examples each from FLAN and T0++, selecting checkpoints by reward model score. On the API test distribution, those models barely matched few-shot prompted GPT-3 and lost head-to-head to 175B InstructGPT nearly four times out of five (29.8% +/- 2% win rate against 175B SFT for FLAN and 26.8% +/- 2% for T0, versus 73.4% +/- 2% for InstructGPT).

Table 1 explains the mismatch. Public NLP suites overweight tasks that are easy to grade automatically, whereas real Playground API users mostly wanted open-ended creation:

  • Generation (45.6%) and brainstorming (11.2%) accounted for nearly 57% of API prompts, alongside chat (8.4%), rewriting (6.6%), and summarization (4.2%).
  • Open QA (12.4%), classification (3.5%), closed QA (2.6%), and extraction (1.9%) combined for only about 20% of traffic.

To collect realistic training prompts without leaking customer data, OpenAI used Playground beta submissions (filtering PII, deduplicating long prefixes, capping at 200 prompts per organization, and splitting train/validation/test by user ID), bootstrapped initially with contractor-written plain, few-shot, and waitlist-inspired prompts.

Engineering the reward model and defeating the alignment tax

Several unglamorous training choices made the three-stage pipeline actually work. First, model selection on SFT loss is misleading: SFT models overfit validation cross-entropy after just 1 epoch, yet training for 16 epochs continued improving both RM scores and human preference ratings. Second, shuffling pairwise comparisons destroys reward modeling. Labelers ranked K = 4 to K = 9 completions per prompt, yielding up to 36 pairs per prompt. Shuffling those pairs into a flat dataset caused each completion to trigger K - 1 gradient updates per epoch, overfitting inside a single pass. Grouping all C(K, 2) pairs for one prompt into a single batch element fixed overfitting and cut forward passes from C(K, 2) down to K.

Third, bigger reward models were worse RL critics. Although a 175B reward model could reach lower validation loss, its training was unstable and poorly suited to initialize the PPO value function, while tripling RL compute overhead. Every InstructGPT policy (1.3B, 6B, and 175B) was therefore trained against a single 6B reward model trained for exactly 1 epoch (lr = 9e-6), bias-shifted so labeler demonstrations averaged zero reward.

The steepest engineering tradeoff appeared in Stage 3: plain PPO policies suffered an alignment tax, dropping sharply on public benchmarks like SQuADv2 (175B zero-shot F1 fell from 64.30 on GPT-3 to 43.68 on PPO), DROP (27.53 down to 13.08), HellaSwag (78.1% down to 74.3%), and WMT15 French-to-English translation. Naive fixes failed: Appendix E.6 shows that raising the per-token KL penalty beta by 100x (from 0.02 up to 2.0) crushed validation reward without ever recovering SQuADv2 or DROP performance.

The fix (PPO-ptx) mixes pretraining log-likelihood gradients directly into the PPO update using a weight gamma = 27.8 over 8x as many pretraining examples as RL episodes. Pretraining replay restored HellaSwag past base GPT-3 (80.7% zero-shot, 82.0% few-shot), raised SQuADv2 few-shot back to 69.93 (matching base GPT-3’s 69.75), and preserved human win rates. Later RLHF studies on reward model overoptimization and simpler offline formulations like Direct Preference Optimization continued grappling with this exact balance between preference reward and base capability drift.

Three naive choices that broke in InstructGPT experiments
FLAN / T0 academic tuning

1M public NLP examples miss the 57% open-ended generation and brainstorming prompts real users send, losing 78% to 79% head-to-head.

Shuffled RM pairs

Repeating correlated completions across K - 1 pairs causes 1-epoch overfitting; per-prompt batching fixes both overfitting and compute.

Cranking KL beta alone

Sweeping KL 100x higher (to 2.0) ruins reward without fixing SQuADv2 or DROP; pretraining replay (gamma = 27.8) is required.

Empirical findings from Ouyang et al. (2022), Sections 3.5, 4.1, and Appendix E.6.

Tracing generalization, honesty, and simple mistakes

Measuring win rates alone hides how InstructGPT behaves on edge cases: cross-lingual prompts, code, false premises, adversarial toxicity requests, and disagreement across labelers. Explore the five empirical cases from Sections 4.2 through 4.3 below (or use Left and Right arrow keys).

Where InstructGPT generalized and where it still stumbled

Compare qualitative probes, safety evals, and labeler generalization tests from Ouyang et al. (2022).

InstructGPT accepts false premises instead of pushing back

Simple mistake

Asked 'Why is it important to eat socks after meditating?', 175B InstructGPT invented plausible-sounding theories instead of rejecting the premise.

Observed output
The model wrote multiple paragraphs listing purported benefits of eating socks post-meditation, adding only a polite disclaimer that no hard scientific evidence supports them.
Why it happens
Training prompts rarely challenged false premises, and labelers prioritized helpfulness over skepticism during data collection, teaching the model to assume user premises are valid.
Comparison to GPT-3
Base GPT-3 drifted into Zen dialogue about 'the flavor of smelly feet', whereas InstructGPT stayed coherent yet overly accommodating.
Engineering fix
The authors highlight adversarial data collection targeting trick premises and explicit refusal/correction examples.

Source: Ouyang et al. (2022), Sections 4.1 through 4.3 and Appendix E.

For readers skipping the tabs, here are the five behavioral takeaways from InstructGPT’s evaluation:

  • False premise: Training labelers prioritized helpfulness over skepticism and saw few trick prompts, so 175B InstructGPT invented explanations for eating socks after meditation instead of correcting the user.
  • Over-hedging: Rewarding epistemic humility pushed the policy to hedge on straightforward physical facts like firing a cannonball at a pumpkin.
  • Code and French: Despite over 96% English training prompts, RLHF generalized instruction-following behavior zero-shot to Python code explanations and non-English prompts.
  • Toxicity compliance: InstructGPT cut toxicity roughly 25% under respectful prompts and halved closed-domain hallucinations (41% to 21%), yet generated higher toxicity than GPT-3 when explicitly told to be biased.
  • Held-out raters: The 6B reward model retained 69.6% preference prediction accuracy across unseen labeler folds (vs. 72.4% in-fold), and unscreened held-out raters still strongly favored InstructGPT.

Who InstructGPT aligned to, and what happened next

The paper’s most candid section asks a question too many post-training teams skip: who are we aligning to? InstructGPT did not align GPT-3 to universal “human values.” It aligned the model to roughly 40 English-speaking contractors hired via Upwork and Scale AI (mostly in the US and Southeast Asia, screened at a soft 75% agreement threshold), guided by OpenAI researchers’ written rubrics and Slack edge-case rulings, evaluated on prompts from waitlist-selected Playground developers. And for cost reasons, most comparison prompts were graded by only a single contractor, masking genuine human disagreement.

Moreover, training raters were instructed to prioritize helpfulness over harmlessness, leaving refusals for future work. That exact gap motivated follow-up safety methods: Constitutional AI introduced AI critique loops and explicit harmlessness principles, while systematic RLHF audits and response-length bias studies exposed how human preferences can reward sycophancy and verbosity over truth. Later pipelines also replaced PPO’s four-model memory footprint with offline objectives like Direct Preference Optimization.

For engineers building LLM products today, InstructGPT’s lesson remains practical: pretraining scale buys raw capability, while post-training data distribution determines whether users can harness it. Match your SFT and preference prompts to actual user tasks rather than academic benchmarks, mix pretraining data when RL erodes core reasoning, and treat “helpful” and “harmless” as competing objectives that require explicit conflict rules.