Post-training at 2,000 ft¶
A pre-trained language model knows a great deal and wants nothing: it continues documents. Post-training is everything done afterwards to turn that document-continuer into an assistant that follows instructions, prefers good answers to bad ones, refuses what it should, and, since 2024, reasons its way to verifiably correct answers. The whole track is three kinds of signal (demonstrations, comparisons, verifiers) fed through two kinds of loss (imitation and reinforcement), with one leash holding the model near where it started.
10,000 ft
The jump from GPT-3 (2020) to ChatGPT (November 2022) was not a bigger network. It was post-training: OpenAI's InstructGPT paper showed that labellers preferred a 1.3B-parameter model fine-tuned on human feedback to the 175B-parameter GPT-3 it was built on (Ouyang et al., 2022). Since then post-training has grown from a thin finishing layer into a second training regime: instruction tuning, preference optimisation, reinforcement learning from human and AI feedback, and reinforcement learning against verifiers that produced the reasoning models of 2024–2026 (reasoning models). It sits between pre-training and application engineering, borrows its algorithms from reinforcement learning, and is where most of what people call "alignment" is actually implemented (the alignment problem).
The whole of post-training in one picture¶
Every box answers the same question differently: where does the training signal come from?
| Stage | The signal | The loss | What it mainly changes | Scale in published recipes |
|---|---|---|---|---|
| Instruction tuning (SFT) | Demonstrations: a prompt and an ideal answer | Cross-entropy on the answer tokens only | Format, register, turn-taking, when to stop | InstructGPT: about 13k prompts; Llama 2: 27,540 annotations; Tülu 3: 939,344 prompts |
| Reward modelling | Comparisons: answer A is better than B | Bradley–Terry logistic loss on score differences | Nothing in the policy yet; it builds the judge | InstructGPT: 33k prompts ranked 4–9 ways; Llama 2: over 1M binary comparisons |
| RLHF (PPO and kin) | The reward model's score of the policy's own samples | Policy gradient + KL penalty to the SFT model | Which of the answers it can already write it now prefers | InstructGPT: 31k prompts, 256k episodes |
| Direct preference optimisation | The comparisons themselves | A logistic loss on log-probability ratios | The same as RLHF, without a reward model or sampling | Zephyr, Tülu ⅔, most open chat models of 2023–2025 |
| RL with verifiable rewards | A checker: unit tests pass, the answer equals 42 | Policy gradient (GRPO and variants) | Long chains of reasoning that end in correct answers | DeepSeek-R1, Tülu 3 RLVR |
Numbers are from the papers: InstructGPT, Llama 2, Tülu 3.
The one equation behind most of the track
Almost every method here is a way of solving, approximately, the same problem: make the policy \(\pi\) score well under some reward \(r\) while staying close to a reference model \(\pi_{\text{ref}}\) (usually the SFT model),
Its exact solution is \(\pi^*(y\mid x) \propto \pi_{\text{ref}}(y\mid x)\,e^{r(x,y)/\beta}\): re-weight what the model already says by how good it is. PPO approaches that target by sampling and climbing; DPO solves for it in closed form from comparisons; best-of-\(n\) approximates it at inference time; RLVR uses a checker as \(r\). SFT is the odd one out: it has no reward, only imitation, and it builds the \(\pi_{\text{ref}}\) the others start from.
Three ideas recur on every page and are worth holding from the start:
- The model can only be steered towards what it can already do. Post-training mostly re-weights behaviours that pre-training made possible. LIMA reached strong chat quality from 1,000 examples (Zhou et al., 2023); imitation data could not add capabilities the base model lacked (Gudibande et al., 2023).
- Every learned judge can be gamed. Optimise hard against a reward model and the true quality first rises and then falls (Gao et al., 2022). The KL leash, early stopping, better reward models and verifiable rewards are all answers to this one problem.
- Humans disagree, so the ceiling is the agreement rate. InstructGPT's labellers agreed with each other about 73% of the time; its reward models predicted held-out labellers' choices 69.6% of the time. Post-training optimises a noisy, partial picture of what people want, and the noise has a shape (length, confidence, flattery) that the model will find.
The map of the track¶
Arrows mean "read this first". The left half is the classic 2022 recipe (SFT, reward model, PPO); the middle is its 2023–2024 simplifications; the right half is where the field went next.
How to work through this track¶
The track has two units. Unit 1 is the classic pipeline, taught in the order it runs. Unit 2 is what replaced or extended each piece. Times are for studying properly: deriving the maths, running the code, answering the questions.
- Instruction tuning (SFT) (60 min). The objective, chat templates, loss masking, where the data comes from and how little of it you need.
- Reward models and preference data (60 min). Bradley–Terry, collecting comparisons, evaluating a judge, and overoptimisation.
- RLHF with PPO (90 min). The KL-regularised objective, policy gradients, clipping, value functions and GAE, and the implementation details that make it work.
- DPO and direct preference optimisation (90 min). The closed-form trick, its derivation, its failure modes and the IPO/KTO/ORPO/SimPO family.
- RL with verifiable rewards: GRPO and reasoning (90 min). Group-relative advantages and how RL on checkable tasks produced reasoning models.
- Constitutional AI and RLAIF (60 min). Replacing human labels with model judgements guided by written principles.
- Parameter-efficient fine-tuning: LoRA and QLoRA (60 min). How to do all of the above on one GPU. Read it earlier if you want to run things now.
- Distillation and synthetic data (60 min). Teacher models as the data source for every stage.
- Model merging and continual learning (60 min). Combining fine-tunes and fighting forgetting.
A fast path for a builder who wants to fine-tune this week: pages 1, 7 and 4, then the LoRA project. A researcher's path: 1–5 in order, with the policy gradients and actor-critic and PPO pages from the RL track beside page 3.
-
Teach a document-continuer to answer: demonstrations, chat templates, masked loss, and the superficial-alignment hypothesis.
-
Reward models and preference data
Turn "A is better than B" into a differentiable score, and learn why every such score can be gamed.
-
The InstructGPT recipe: four models, a KL leash, clipped policy gradients and per-token credit assignment.
-
DPO and direct preference optimisation
The RLHF objective solved in closed form, so preference learning becomes a classification loss.
-
RL with verifiable rewards: GRPO and reasoning
Rewards from checkers instead of judges: the training method behind reasoning models.
-
A written constitution and AI feedback in place of most human harmlessness labels.
-
Parameter-efficient fine-tuning: LoRA and QLoRA
Low-rank adapters and 4-bit base weights: post-training on hardware you own.
-
Distillation and synthetic data
Strong models writing the training data for weaker ones, and where that stops working.
-
Model merging and continual learning
Averaging weights, task vectors, and keeping old skills while learning new ones.
Post-training in ten dates¶
| Date | Event | Read |
|---|---|---|
| Jun 2017 | Christiano et al. learn a reward from human comparisons; a simulated robot learns a backflip from 900 queries | RLHF with PPO |
| Sep 2019 | Ziegler et al. apply the same recipe to GPT-2 | RLHF with PPO |
| Sep 2020 | Learning to summarize from human feedback: a 1.3B RLHF model beats a supervised model ten times its size | reward models |
| Sep 2021 | FLAN: instruction tuning on 60+ datasets improves zero-shot performance on unseen tasks | SFT |
| Mar 2022 | InstructGPT: SFT → reward model → PPO becomes the standard recipe | RLHF with PPO |
| Nov 2022 | ChatGPT launches, trained with the InstructGPT recipe | the assistant era |
| Dec 2022 | Constitutional AI: AI feedback replaces human harmlessness labels | Constitutional AI |
| May 2023 | DPO: preference learning without a reward model or RL | DPO |
| Feb 2024 | GRPO introduced in DeepSeekMath | RLVR |
| Jan 2025 | DeepSeek-R1: large-scale RL with verifiable rewards produces an open reasoning model | RLVR |
Prerequisites from other tracks¶
- The language-modelling objective: SFT is the same loss on different data, so make sure next-token cross-entropy is second nature.
- Entropy, cross-entropy and KL divergence: the KL penalty, forward versus reverse KL, and the closed-form KL-regularised optimum all start there.
- Logistic regression: a reward model's loss is logistic regression on score differences.
- Decoding and sampling: RL trains on the model's own samples, so temperature and stopping matter.
- Policy gradients and actor-critic and PPO: needed for page 3; the RLHF page re-derives what it uses, but the RL track gives the general picture.
- Helpful: optimisers, labelling and human feedback, evals in practice.
The five best resources for this track¶
- Reinforcement Learning from Human Feedback — Nathan Lambert, 2025 (also arXiv 2504.12501). The only book on the subject: the whole pipeline, kept up to date, free online. Read it alongside this track.
- Training language models to follow instructions with human feedback — Ouyang et al., 2022. InstructGPT. Sections 3 and 4 and Appendix C are the recipe every later paper modifies.
- Direct Preference Optimization — Rafailov et al., 2023. Section 4 is the most important derivation in the track; it fits on one page.
- Tülu 3: Pushing Frontiers in Open Language Model Post-Training — Lambert et al., 2024. A fully open, modern recipe (SFT → DPO → RLVR) with data, code and ablations.
- Instruction finetuning and RLHF lecture (NYU CSCI 2590) — Hyung Won Chung. An hour from one of the FLAN and ChatGPT authors on why each stage exists.
Where this leads¶
- Start the track: Instruction tuning (SFT).
- Want to fine-tune something today? LoRA and QLoRA, then the LoRA project.
- Interested in why alignment is hard beyond the engineering? The alignment problem.