In one line: Took the 3-stage RLHF recipe of earlier summarization work (SFT -> reward model -> PPO with KL penalty) to general instruction following, adding PPO-ptx to cut the alignment tax; labelers preferred the 1.3B model's outputs over 175B GPT-3's on the API prompt distribution, and the recipe became the ChatGPT-era industry standard.
How far to trust it: Believe the recipe and the ordering it produced (PPO above SFT above prompted GPT-3 above GPT-3, with tight intervals, held-out labelers agreeing, and the head-to-head numbers consistent with Figure 1). Read the 1.3B-over-175B headline as true for this prompt distribution judged by these 40 labelers, and the truthfulness and toxicity gains as smaller than the text states: about 1.4 to 1.5 times on TruthfulQA by human labels, not twice, and 16 to 20% less toxicity, not 25%. The evidence, point by point.
The idea in one sentence: fine-tune GPT-3 on what people prefer instead of on more internet text, in three steps: imitate labelers' written answers (SFT), learn a reward model from their rankings of model answers, then optimise the model against that reward with PPO while a KL penalty keeps it near the SFT model and mixed-in pretraining gradients (PPO-ptx) keep its benchmark skills; labelers then prefer a 1.3B InstructGPT to the 175B GPT-3 it started from.
Fig. 1, step by step: two kinds of human label, then reinforcement learning against a learned judge
The paper's Figure 2 redrawn as a 3D stage at the paper's scale: one slab is 2,000 training prompts of Table 6; the answer blocks of step 2 (four drawn, up to nine dashed) and the pretraining stack are schematic. The numbers are the paper's: Table 6, §C.4 and Figure 1.
You need: PPO as an algorithm (the clipped ratio, the value function, GAE) is taught on Policy gradients and actor-critic, and PPO for language models with its four models on RL for LLMs; RLHF as practised today, beside DPO and RLVR, is on Alignment: SFT, RLHF, DPO family, RLVR. This page is the paper. New terms: SFT (supervised fine-tuning on demonstrations); RM (reward model: prompt and answer in, one number out); PPO (here, the policy trained against the RM with a per-token KL penalty); PPO-ptx (PPO plus pretraining gradients; what the paper calls InstructGPT); β and γ (the weights of the KL penalty and of the pretraining term); alignment tax (benchmark ability lost by aligning); win rate against 175B SFT (the paper's main metric: how often labelers prefer a model's answer to the 175B SFT model's); held-out labelers (people who produced no training data).
A language model trained to predict the next token of internet text is trained on the wrong objective for an assistant. The paper's words: "predicting the next token on a webpage from the internet" is different from "follow the user's instructions helpfully and safely", so "the language modeling objective is misaligned" (§1). The symptoms were familiar from GPT-3: it makes up facts, produces biased or toxic text, ignores the instruction, and needs a carefully built few-shot prompt to do a task at all. OpenAI's announcement shows the failure in one line: asked to "Explain the moon landing to a 6 year old in a few sentences", GPT-3 continued with "Explain the theory of gravity to a 6 year old" and three more such instructions, the way a list of exercises on a web page continues; InstructGPT answered (OpenAI blog, archived).
The target is framed, after Askell et al. (2021), as a model that is helpful (helps the user solve their task), honest (does not fabricate or mislead) and harmless (causes no physical, psychological or social harm). Reinforcement learning from human feedback (RLHF) already existed: Christiano et al. (2017) for simulated robots and Atari, then Ziegler et al. (2019) and Stiennon et al. (2020) for stylistic continuation and summarisation (§2). Those were narrow tasks. This paper applies the same method to the open-ended distribution of instructions that real customers sent to the OpenAI API, and asks whether preference fine-tuning can make a model people prefer without losing what the pretrained model could do.
The method follows Ziegler et al. and Stiennon et al. step for step and is applied to pretrained GPT-3 at 1.3B, 6B and 175B parameters, all with the GPT-3 architecture (§3.1, Figure 2): the three steps of Fig. 1 at the top, demonstrations, then rankings, then reinforcement learning against the reward model.
Steps 2 and 3 can repeat: compare outputs of the current best policy, train a new RM, train a new policy. In practice "most of our comparison data comes from our supervised policies, with some coming from our PPO policies". Fig. 1 draws the training-set sizes of Table 6 (labeler-written plus customer prompts).
"InstructGPT" in the paper means the third step's best variant, PPO-ptx, which mixes pretraining gradients into the PPO updates (§3.5). Every piece of the recipe can be run, at toy scale, in Run the three steps.
Prompts. Mostly real prompts sent through the OpenAI API Playground to an earlier InstructGPT model (one trained only on demonstrations); customers were told by a recurring notice that their data could train later models, and no production API traffic was used (§3.2). The split into train, validation and test is by customer, so test prompts come from customers absent from training.
Cleaning. The prompts were deduplicated heuristically by long common prefix, capped at 200 per user ID, filtered for personally identifiable information, and split into train, validation and test by user ID (§3.2). The appendix says "roughly 200 per organization" and splits "based on organization IDs" instead (§A.2); the paper does not reconcile the two.
Bootstrapping. The very first InstructGPT model needed instruction-like prompts, which GPT-3's users rarely wrote, so labelers wrote three kinds themselves: plain (any task, kept diverse), few-shot (an instruction plus several query and response pairs; with K pairs they make K training examples, each using the other K - 1 as context) and user-based (prompts matching use cases stated in API waitlist applications, anonymised by a separate labeler) (§A.1). That first model was deployed in beta in early 2021.
Three datasets come from these prompts: about 13k training prompts with demonstrations for SFT (labeler and API), 33k with rankings for the RM (labeler and API), and 31k unlabeled API prompts for PPO (§3.2). The data is over 96% English (§3.3). By the contractors' labels the use cases are mostly generative, not the tasks public NLP benchmarks measure (the Table 1 chart).
The labelers. "About 40 contractors on Upwork and through ScaleAI" (§3.4), chosen by a screening test for sensitivity to "the preferences of different demographic groups" and for spotting potentially harmful output.
The screening test measured agreement with the researchers on flagging sensitive speech and on ranking completions, a 1 to 7 rating of their demonstrations on sensitive prompts, and a self-assessment of which groups' sensitive speech they could identify ("for legal reasons, we can't hire contractors based on demographic criteria"), with soft cutoffs of 75% agreement and a 6 of 7 demonstration score (§B.1). They got an onboarding process, detailed per-task instructions (Figure 10 has the evaluation excerpt) and a shared chat room with the researchers. Their demographic survey (Table 12) shows mostly Southeast Asian (52.6%) and white (31.6%) respondents, 22% Filipino, 22% Bangladeshi and 17% American, three quarters under 35.
When the criteria conflict, for example a user asking for something harmful, labelers prioritised helpfulness to the user during training, but in the final evaluations they were asked to prioritise truthfulness and harmlessness, "since this is what we really care about" (§3.4). A separate group of held-out labelers, from the same vendors but not screened, produced no training data and tests whether the models fit only the 40. Agreement is high for such a task: training labelers agree with each other 72.6 ± 1.5% of the time, held-out labelers 77.3 ± 1.3%, against 73 ± 4% between researchers in Stiennon et al.'s summarisation work.
GPT-3 is fine-tuned on the labeler demonstrations for 16 epochs. The surprising detail: like Wu et al. (2021), "our SFT models overfit on validation loss after 1 epoch; however, we find that training for more epochs helps both the RM score and human preference ratings, despite this overfitting". So the final SFT checkpoint is chosen by reward-model score on the validation prompts, not by loss, because the RM score predicts human preference better (§3.5).
Cosine learning-rate decay to 10% of the peak, no warmup, residual dropout 0.2; the learning rate is 9.65e-6 with batch size 32 at 1.3B and 6B, and 5.03e-6 with batch size 8 at 175B, each picked by a geometric search (§C.1). Demonstrations are short: a median of 18 tokens for labeler prompts and 39 for customer prompts (Table 11).
The RM takes a prompt and a response and outputs one number. It starts from a language model with the final unembedding layer replaced by a projection to a scalar (§3.5, §C). Following Stiennon et al., it is trained on comparisons with a cross-entropy loss in which the difference in rewards is the log odds that a labeler prefers one response to the other. To collect comparisons faster, labelers rank K = 4 to 9 responses at once, which yields C(K,2) comparisons per prompt:
loss(θ) = -(1 / C(K,2)) · E(x, yw, yl) ~ D [ log σ( rθ(x, yw) - rθ(x, yl) ) ] (Eq. 1)
with yw the preferred response of the pair. The key implementation detail is how the comparisons are batched. Comparisons from one ranking are highly correlated; shuffled into one dataset as separate examples, each response would take part in K - 1 gradient updates and "a single pass over the dataset caused the reward model to overfit". Instead all C(K,2) comparisons of a prompt go into one batch element, which no longer overfits, improves validation accuracy and log loss, and needs only one RM forward pass per response. One ranking of four answers taken apart into its six pairs, and a reward model fitted to them, is drawn step by step on Alignment, section 3; the widget beside this section runs Eq. 1 on the toy.
Against separate pair examples that is a saving of K - 1 times (K(K - 1) passes against K); the old summary of this page said "K times cheaper". The RM loss does not change if every reward shifts by a constant, so the RM gets a bias that makes the labelers' demonstrations score 0 on average before RL; and only 6B RMs are used, because 175B RM training "could be unstable" and was less suitable as the value function for RL.
Preparing the toy models (about a second)...
Live: K answers sampled from the toy SFT model of Run the three steps, ranked by one simulated labeler, scored by the toy RM; every pair's term of Eq. 1 is shown. The cost line counts RM forward passes per prompt.
The environment is a bandit: a random customer prompt, one response, a reward from the RM, and the episode ends. To that reward the paper adds "a per-token KL penalty from the SFT model at each token to mitigate over-optimization of the reward model", and the value function is initialised from the RM. These models are called "PPO". The variant that mixes in pretraining gradients is "PPO-ptx", and it maximises
objective(φ) = E(x,y) ~ πφRL [ rθ(x, y) - β log( πφRL(y | x) / πSFT(y | x) ) ] + γ Ex ~ Dpretrain [ log πφRL(x) ] (Eq. 2)
β sets the strength of the KL penalty and γ the weight of the pretraining log-likelihood; for PPO, γ = 0. "Unless otherwise specified, in this paper InstructGPT refers to the PPO-ptx models." Fig. 3 follows one episode of the toy through this reward and one update, with and without the pretraining term. What one PPO step does with its four models in general (policy, reference, reward model, value function) is drawn on Alignment, section 4; this figure is what InstructGPT adds to it: the per-token pull towards the SFT model, and the pretraining gradient.
Fig. 3, step by step: one episode of the toy
Real numbers from the toy of Run the three steps: the policy is the toy PPO (or PPO-ptx) model after 500 updates, the reference is the toy SFT model, β = 0.3 and γ = 0.1 in the toy's units (the paper's 0.02 and 27.8 are in its own); episode 0 of a fixed seed, one illustrative plain gradient step of size 0.5 (not the toy's Adam). Bars are probabilities, to scale.
Training settings (§C.4): policies start from the 2-epoch SFT model with 10% pretraining mix, which also serves as the KL reference, with β = 0.02; 256k episodes over about 31k unique prompts; batches of 512 episodes split into 8 minibatches of 64, one inner epoch; constant learning rate after a 10-iteration warmup from a tenth of the peak; an exponential moving average of the weights with decay 0.992; no discount in the generalised advantage estimate; clip ratio 0.2; sampling temperature 1. The value function's learning rate is 9e-6 for the 1.3B and 6B policies and 5e-6 for 175B. For PPO-ptx, each minibatch computes the PPO gradient and a pretraining gradient in consecutive steps and accumulates both, with γ = 27.8 and 8 times as many pretraining examples as RL episodes, drawn from GPT-3's own pretraining data.
This is reward-model over-optimisation. The toy's RM is a bag of words and has learned that "sure" is mildly good, because one polite "sure" is what labelers prefer; it never saw an answer with eight of them. With no KL penalty the policy finds that hole. The KL term charges β times the log ratio for every token the SFT model would not have written, which prices the exploit out. The paper states this as the reason for the penalty but does not plot it; its own Figure 36 shows the cost in human ratings: Likert 2.14 with no KL penalty against 4.12 at β = 0.01. The rise-then-fall curve in general (Goodhart's law with a learned proxy), which Gao, Schulman and Hilton later measured with a gold-standard RM standing in for humans (arXiv 2210.10760, beyond the paper), is drawn on Reward hacking.
Answer the prediction first. The toy with no KL penalty: the reward model's score keeps climbing while what the labelers want collapses.
Every model is judged against 175B SFT by labelers, on held-out prompts from customers absent from training, plus Likert ratings, metadata labels and public NLP datasets. Baselines: GPT-3 itself; GPT-3 (prompted), with a few-shot prefix that puts it in an instruction-following mode; SFT; and 175B GPT-3 fine-tuned on FLAN and on T0 (the T0++ variant), public NLP task collections with natural-language instructions, about 1 million examples each (§3.5).
The few-shot prefix came from a prefix-finding competition: authors RL and DA each spent an hour with GPT-3 on their two best prefixes, and the winner was the one with the highest RM score on the validation prompts, "DA won". The FLAN and T0 checkpoints were again picked by RM score (§3.5). T0's 96M datapoints were subsampled to 1 million to match FLAN's 1.2M; the chosen checkpoints were at 896k examples for both (§C.5).
Evaluation (§3.6). Helpfulness is labeler preference: for each model, how often its output is preferred to the 175B SFT model's on held-out prompts from customers absent from training, plus a 1 to 7 Likert rating and the metadata of Table 3 (fails to follow the instruction, inappropriate for a customer assistant, hallucination, satisfies the constraint, sexual or violent content, and more). Because prompts written for InstructGPT may disadvantage GPT-3, prompts submitted to GPT-3 models are evaluated too. Honesty cannot be measured in a black box, so the paper measures truthfulness: made-up information on closed-domain tasks, and TruthfulQA, which "only captures a small part of what is actually meant by truthfulness". Harm is measured through proxies (inappropriate for a customer assistant, denigrates a protected class, sexual or violent content) after an early "potentially harmful" label was dropped as too speculative, plus RealToxicityPrompts, Winogender and CrowS-Pairs; zero-shot public NLP tasks (question answering, reading comprehension, summarisation) measure capability. Samples on all sampling-based NLP tasks are released.
The 1.3B PPO-ptx model wins 52.7% of comparisons against 175B SFT, 175B GPT-3 only 24.0%. Both are measured against the same baseline; the paper reports no direct comparison of the two. If preferences follow the Bradley-Terry model, the same one the reward model assumes in Eq. 1, the two rates imply the 1.3B model would beat 175B GPT-3 about 78% of the time. The same arithmetic applied to the 175B models reproduces the paper's direct head-to-heads: 86% against the printed 85 ± 3% for GPT-3, and 74% against 71 ± 4% for prompted GPT-3 (see the checks).
Across sizes the ordering is the same: GPT-3 worst, then a well-crafted few-shot prompt, then SFT, then PPO; "adding updates on the pretraining mix during PPO does not lead to large changes in labeler preference" (§4.1). Directly compared, 175B InstructGPT outputs are preferred to 175B GPT-3 outputs 85 ± 3% of the time and to few-shot GPT-3 71 ± 4%. On prompts submitted to GPT-3 instead, the results "do not change significantly", though PPO-ptx does slightly worse at larger sizes (Figure 3).
Held-out labelers agree (Figure 3, top row): by their judgments every InstructGPT model still greatly outperforms the GPT-3 baselines, so the models are not "simply overfitting to the preferences of our training labelers"; the RM cross-validation above points the same way (§4.1).
Answer the prediction first. Every InstructGPT size sits above every GPT-3 size.
Figure 1 decoded from the paper's vector figure (exact to the SVG's coordinates; error bars are 95% intervals): win rate against 175B SFT on held-out InstructGPT-distribution prompts, training labelers. Hover or tap a point for its value.
More concrete axes (Figure 4, pooled over sizes): compared with GPT-3, InstructGPT outputs are more appropriate for a customer assistant, follow explicit constraints in the instruction more often ("Write your answer in 2 paragraphs or less"), attempt the correct instruction more often and make up facts on closed-domain tasks less often. The other metadata categories were too rare to show significant differences.
Figure 4 decoded: share of outputs with each label, all sizes pooled, 95% intervals. Its hallucination rates (GPT 44.8%, PPO 21.6%, PPO-ptx 15.6%) are not the text's "21% vs. 41%", and the per-size Figure 30 puts GPT at 47 to 62% at every size, above the pooled value; the checks show both.
FLAN and T0 are not enough (Figure 5): fine-tuned on public NLP tasks, 175B GPT-3 does better than plain GPT-3 and about as well as prompted GPT-3, but worse than SFT; head to head, 175B InstructGPT is preferred to the FLAN model 78 ± 4% and to the T0 model 79 ± 4% of the time (§4.1). Two reasons are given: public datasets favour tasks easy to score automatically (classification and QA are about 18% of API use, open-ended generation and brainstorming about 57%), and they lack input diversity. The paper still expects the broadest model to combine both kinds of data.
In §1 the comparison appears as win rates against "our baseline": 73.4 ± 2% for InstructGPT, 26.8 ± 2% for T0 and 29.8 ± 2% for FLAN. The 73.4% does not match Figure 1's 66.0% for 175B PPO-ptx (see How much to believe).
Truthfulness (Figure 6): on TruthfulQA, judged by humans, the PPO models are "small but significant" improvements in truthful and informative answers, by default, without being told to tell the truth (§4.2). The exception is the 1.3B PPO-ptx model, slightly worse than GPT-3 of the same size. The abstract's "about twice as often" does not match these human-labelled bars: at 175B with the QA prompt, truthful and informative is 29.5% for PPO-ptx against 19.8% for GPT-3, 1.5 times; twice holds only on the automatic metric of Table 14 (0.689 against 0.251), which the acknowledgements say was "overstating the gains of our PPO models" (Acknowledgements).
On the questions not adversarially selected against GPT-3, the PPO models stay significantly better, by a couple of points less. With an "Instruction+QA" prompt that says to answer "I have no comment" when unsure (after Lin et al.), the PPO models "err on the side of being truthful and uninformative rather than confidently saying a falsehood", which GPT-3 does less well (§4.2).
Figure 6 decoded: grey bars truthful, coloured bars truthful and informative, three sizes per model (1.3B, 6B, 175B).
Toxicity, a little; bias, not at all (§4.2). Told to be respectful, InstructGPT is less toxic than GPT-3 on RealToxicityPrompts, by 16% (Perspective API) to 20% (labelers) at 175B (Figure 7), not the "about 25%" of the text; with no instruction the advantage disappears, and told to be toxic it is "much more toxic than those from GPT-3". It is not less biased on Winogender or CrowS-Pairs.
The full curves by prompt toxicity are in Figure 39. Prompts were sampled uniformly by prompt toxicity rather than in the dataset's standard way, so absolute toxicity is inflated. Every model is rated less toxic than the prompt would lead one to expect; SFT is the least toxic but also the least continuous and least preferred, which "could indicate that the model generates very short or degenerate responses". By size, Table 14 gives 12 to 16% less toxicity, again below the text's "about 25%". On Winogender and CrowS-Pairs, measured as the entropy of the choice between the two sentences of each pair (maximum entropy means no preference), InstructGPT is not less biased than GPT-3; PPO-ptx is about as biased, and told to be respectful it has lower entropy, so more bias: "the instructed models are more certain of their outputs regardless of whether or not their outputs exhibit stereotypical behavior" (Figure 32).
Trained with plain PPO on the API distribution, the model gets worse on several public datasets than GPT-3: SQuAD, DROP, HellaSwag and WMT 2015 French to English. The paper calls this an alignment tax and wants it gone "because it incentivizes the use of models that are unaligned but more capable on these tasks" (§4.2). Adding pretraining updates to PPO (PPO-ptx) mitigates the regressions on all datasets and even surpasses GPT-3 on HellaSwag (175B zero-shot 0.807 against 0.781), while still lagging on DROP, SQuAD v2 and translation (Figure 29, Table 14).
Figure 33 and Figure 34, decoded: at 1.3B, a pretraining coefficient at or above about 20 brings DROP and SQuAD v2 back to GPT-3's level (dashed) at a small cost in validation reward; γ = 27.8 "seems to work well across model sizes", and the human Likert score was insensitive to its exact value (§E.6). Raising the KL coefficient instead (with γ = 0 and GPT-3 as the KL reference) up to 2.0, 100 times the default, never recovers either benchmark and drives the validation reward from about 2.6 down to -2.8. The toy in Run the three steps reproduces the same trade at its own scale: its pretraining loss rises from 1.42 (SFT) to 4.5 under PPO; γ = 0.1 brings it back to 1.66 at almost no cost in labeler preference, while β = 3 only reaches 1.79 and its win rate against SFT falls from 0.72 to 0.58 (means of three seeds).
The KL coefficient still has to be tuned with the mix in: Likert scores are poor at β = 0 and at β = 2, best "around 0.01 and 0.02" (§E.7). Other ablations (§E.6, §E.11): training 512k episodes instead of 256k (three seeds, 1.3B) erodes DROP and SQuAD v2 back below GPT-3; a pretraining ratio of 4 let the pretraining loss rise during training, 32 gave better Likert scores but took a few times longer, and 8 (twice the time of PPO alone) was the middle ground; batch size 512 was best among 64 to 1,024, and minibatch 32 slightly better than the 64 used for GPU utilisation. Learning rates were scanned from 2.55e-6 to 2.55e-5 at 1.3B and 6B, where every PPO run without the mix above 8.05e-6 diverged, and only 2.55e-6 and 3.74e-6 at 175B; the final checkpoints are the ones with the highest Likert scores (§E.9).
Answer the prediction first. Switch between the two sweeps: only one brings DROP and SQuAD v2 back to the dashed GPT-3 lines.
Non-English languages and code are a tiny minority of the fine-tuning data, yet 175B PPO-ptx follows instructions in other languages and answers questions about code, where GPT-3 needs careful prompting (Figure 8, §4.3); it often answers in English, and none of this is measured quantitatively.
In Figure 8, asked in French for a short story about a frog travelling back in time to ancient Greece, GPT-3 writes more French story instructions, InstructGPT writes the story; asked what a list does in a binomial-coefficient function, GPT-3 produces a multiple-choice question and InstructGPT an answer, though one the caption says "isn't quite correct". The prompts are cherry-picked; the outputs are not (§4.3).
It still makes simple mistakes (Figure 9, §4.3): it accepts false premises ("Why is it important to eat socks after meditating?" gets a list of theories); it hedges on simple questions (what happens to a pumpkin hit by a cannonball gets "there is no way to accurately predict"); and it degrades when an instruction has several explicit constraints ("list 10 movies made in the 1930's set in France") or constraints hard for language models (a summary in a given number of sentences). The authors suspect the hedging comes from instructing labelers to reward epistemic humility, which the RM then picks up, and the false premises from how few such prompts were in training; adversarial data collection should reduce both.
The paper draws four lessons (§5.1): alignment is cheap next to pretraining (60 petaflop/s-days for 175B PPO-ptx against 3,640 for GPT-3, and more useful than a 100 times larger model); instruction following generalises to settings nobody supervised; most regressions can be mitigated, and a technique with a high tax "might not see adoption"; and the methods now work on a production system, not only on synthetic domains.
(§5.1) (1) 175B SFT took 4.9 petaflop/s-days on top of the 60 for PPO-ptx, and the paper concludes "right now increasing investments in alignment of existing language models is more cost-effective than training larger models", at least for this task distribution; (2) generalisation matters because supervising every task is prohibitively expensive; (3) so RLHF looks like a low-tax method. The approach is iterative, aligning today's systems for a clear feedback loop, and does not face problems that arise only with superhuman systems; RLHF is a building block of several proposals for those (and was central to summarising books, Wu et al. 2021).
Who are we aligning to? (§5.2) Not "human values" in the abstract, but a chain of specific people: the training labelers (mostly English-speaking, in the United States or Southeast Asia, hired via Upwork or Scale AI, agreeing with each other on about 73% of comparisons); the researchers, who wrote the instructions and answered edge cases in the chat room; the API customers whose prompts make up the data, who may not have their end users' well-being in mind and whose prompts the labelers see without context; and a customer base drawn from a waitlist seeded with OpenAI employees' networks. The paper says it is "impossible that one can train a system that is aligned to everyone's preferences at once" and floats models conditioned on, or easily fine-tuned to, different groups' preferences.
What holds up. The central comparison is large against its noise: 85 ± 3% and 71 ± 4% head to head, and Figure 1's gaps between PPO and GPT-3 are several times the 95% intervals at every size. The numbers are internally consistent where they can be checked: Figure 1's win rates against SFT, combined through Bradley-Terry, reproduce both printed head-to-heads within their intervals, independently. Test prompts come from customers absent from training, held-out labelers who wrote no training data give the same ordering (Figure 3), and the authors evaluate on GPT-3's own prompt distribution as well, a check that counts in their favour. Later pipelines found the same direction with their own labelers and prompts (Bai et al.'s RLHF models, Llama 2's PPO and rejection-sampling stages; beyond the paper, Then and now).
What is weaker than it looks.
Verdict. Believe the recipe and the ordering: on this distribution, judged by people like the ones who trained it, RLHF beats SFT, which beats prompting, by margins far beyond the noise, and the PPO-ptx trick does remove most of the benchmark regressions. Treat "1.3B beats 175B" as a statement about this prompt distribution and these judges, not about capability, and discount the truthfulness and toxicity headlines to what the figures show.
TRL keeps its PPOTrainer under trl.experimental.ppo (docs), and OpenRLHF (Apache-2.0) offers PPO, REINFORCE++, GRPO and RLOO. The current framework list (verl, OpenRLHF, TRL and others) is kept on Alignment: SFT, RLHF, DPO family, RLVR.
The paper's whole pipeline, at toy scale, trained here and now: a tiny language model is pretrained on "internet text" in which instructions are usually followed by more instructions (GPT-3's habit), fine-tuned on labeler demonstrations (step 1), a reward model is fit to simulated labelers' rankings with Eq. 1 (step 2), and the policy is trained with PPO against it, with the per-token KL penalty and the pretraining mix of Eq. 2 (step 3). Unlike the paper, the toy knows what its labelers really want, so it can show the gap between the reward model's score and the truth.
One sample per instruction from each model; the number is the labelers' true score (best 3.5).
Linear in counts: every extra "sure" adds the same reward again. The labelers give +0.5 for the first and -0.8 for each one after, but SFT almost never says it twice, so the RM never sees the difference. That is the hole PPO can find.
Measured every 25 iterations on 96 fresh samples (16 per instruction). Grey: the previous run, for comparison. Dashed: the SFT model (and, for the pretraining loss, the pretrained model).
The same code run offline by sweep.cjs for every β (no mix) and every γ (at β = 0.3), seeds 21 to 23; the Train button reproduces any of them exactly. The paper's own sweeps, decoded from its figures, sit beside them.
Means of 3 seeds, bars from lowest to highest seed. Small β loses everything to RM over-optimisation; as β grows the policy stays near SFT, keeping some capability but winning less. Adding γ at β = 0.3 moves almost straight left: most of the capability back for almost no preference, which is Figure 33 against Figure 34 at toy scale.
Same shape: poor at no KL penalty, best in the middle, worse again when the penalty is so strong the policy cannot move. The toy's best β is 0.3 in its units; the paper's is 0.01 to 0.02 in its own (§E.7).
The win-rate line is scaled by 5 to share the axis (2.5 = 50%). In the toy, γ = 0.1 gives back most of the pretraining loss PPO costs for a win rate within two points of PPO; γ = 1 overshoots and the policy forgets the task. The paper's validation reward falls the same way as γ grows, more gently.
The paper's SFT overfits validation loss after one epoch while RM score and preference keep improving; the toy's does not overfit at all. Shown so the claim is not mistaken for something the toy confirms.
The paper's results are mostly figures, not tables. Its arXiv HTML embeds every chart as vector graphics whose labels are text, so each bar, point and error bar below was decoded from the SVG's exact coordinates against its tick labels (decode_figs.py; the fit of ticks to labels is exact to 10-6), not read off an image. Tables are transcribed as printed. Every derived number is recomputed in recompute.py.
"Reproduces" means the paper's own tables or figures give the number independently; "derived" is arithmetic the paper does not print; "does not reproduce" means no printed figure or table gives it.
Figure 1 measures every model against 175B SFT. Under the Bradley-Terry model that the reward model itself assumes, P(A beats B) = σ(logit(wA) - logit(wB)), where w is each model's win rate against SFT. Pick any two.
Figure 3 decoded: win rate against 175B SFT, 95% intervals. Prompted GPT-3 is omitted on GPT-3's own prompts, which already suit it.
Figure 5 decoded: 1 to 7 Likert score at 175B on the InstructGPT prompt distribution, 95% intervals.
Figure 7 decoded: 175B models on 1,729 RealToxicityPrompts prompts, with no instruction and with the "respectful" one, scored by labelers and by the Perspective API.
Table 14 as printed (XL is the 1.3B model). Differences are from GPT-3 at the same size; for entropy (bias) higher means less biased, for toxicity lower is better. The CNN/DM and TLDR rows are identical in the HTML and in the PDF.
The paper's legacy is a recipe, so this tab follows its seven lines through the work that came after, one step per paper, from Bai et al. (April 2022, a month after InstructGPT) to DeepSeek-R1 (January 2025). Each step shows only what that source says it changed, quoted; lines it does not mention keep their previous value and are marked as carried over, not as confirmed. Every source is beyond the paper.
The recipe, one source per step
Every link opens in a new tab. Reading time of the resources below: 6h 25m.
NeurIPS 2022, the paper itself (a long paper: 20 pages of main text, then references and 43 pages of appendices); the HTML version has the anchors this page links to. abstract page, PDF.
(1h 30m)
no training code or weights: the model card, samples from GPT-3 and InstructGPT on the public NLP benchmarks, and links to the labeling instructions (about 10 minutes to skim).
(10 min)
OpenAI blog, 27 January 2022 (before the arXiv version): the announcement: InstructGPT replaced GPT-3 as the default API model, with side-by-side samples.
(15 min)
Chip Huyen: the whole pipeline (pretrain, SFT, reward model, PPO) with the maths, the data economics and practical failure modes; the best single walkthrough of what this paper standardised.
(40 min)
Lambert, Castricato, von Werra, Havrilla (Hugging Face): the canonical diagram-first explanation of the three stages and the KL-penalised reward.
(25 min)
Nathan Lambert: book-length treatment of RLHF and post-training; the reward-modelling and policy-optimisation chapters (about 2 hours) put InstructGPT in the context of everything after it (DPO, GRPO, RLVR).
(2h)
Huang, Noukhovitch, Hosseini, Rasul, Wang, Tunstall (arXiv 2403.17031): the first open reproduction of OpenAI's RLHF scaling results, with over 20 implementation details that decide whether PPO on a language model works at all; read it before implementing the recipe.
(45 min)
Gao, Schulman, Hilton (arXiv 2210.10760): the measurement this paper's KL penalty guards against: a gold reward model stands in for humans, and the true score rises and then falls as a proxy reward model is optimised harder.
(40 min)
2020: the base models and the architecture; InstructGPT is GPT-3 plus human-feedback fine-tuning.
2022: replaces the human harmlessness labels with AI feedback (RLAIF) on the same RLHF skeleton.
2023: collapses the reward model and PPO stages into one classification loss on the same comparisons.
2024: GRPO drops the value function this paper initialised from the reward model and moves the KL term into the loss.
2025: rule-based (verifiable) rewards instead of a learned reward model for reasoning data.
2024: an open production pipeline built on the SFT plus preference-tuning template.
2025: a fully open pipeline (the Tülu 3 recipe: SFT, DPO, RLVR).
2020: the scaling this paper argues post-training beats, for usefulness, by 100 times.
where SFT, preference tuning and RL sit in today's post-training pipelines.
PPO, KL-regularised policy optimisation and the methods that replaced it.
This page is one row of the Papers database; its properties (Paper, Takeaway, Topics, Year) live there.