Preference and RL tuning
For engineers
RLHF, DPO, AI feedback and reinforcement learning with verifiable rewards, plus the reward hacking each method invites and how to choose among them
110 questions across four stages: Understand, Apply, Solve and Judge.
Try 5 questions
Practice items, not counted towards your mastery. No account needed.
Check yourself · 1 of 5
What does the KL penalty in RLHF do?
Check yourself · 2 of 5
What does DPO train on?
Check yourself · 3 of 5
In Constitutional AI, what plays the role of the human labeller for preference pairs?
Check yourself · 4 of 5
Why is a unit-test reward often harder to exploit than a learned reward model?
Check yourself · 5 of 5
In reinforcement learning from a learned or coded reward, what does reward hacking mean?
Topics
- RLHF with reward models5 min read · Collect ranked answer pairs, train a reward model, then optimise the policy with PPO and a KL penalty that keeps it near the starting model
- Direct preference optimization with pairs5 min read · DPO and its relatives learn from chosen and rejected answers without a separate reward model, and depend on good pairs and a reference model
- AI feedback and constitutional methods5 min read · Using models as labellers against written principles, as in RLAIF and Constitutional AI, to scale preference data, and the biases a judge model adds
- RL with verifiable rewards5 min read · Rewarding answers that pass unit tests or match checked math results, with GRPO and similar methods behind today's reasoning models
- Reward hacking and over-optimization5 min read · Models exploit weak rewards through length bias, flattery or special-casing tests, so held-out evals and reading samples are essential
- Choosing among SFT, DPO and RL5 min read · Cost, data needs, stability and tooling of each tuning method, and which kind of problem each one fits best
Start here
- Training language models to follow instructions with human feedback (InstructGPT) (opens in a new tab)PaperFree
OpenAI's original RLHF recipe: demonstrations, ranked outputs, a reward model and PPO, with results on a 1.3B model.
- Direct Preference Optimization: Your Language Model is Secretly a Reward Model (opens in a new tab)PaperFree
The DPO paper: the loss, the role of the reference model and beta, and why no reward model is needed.
- RLHF Book (Nathan Lambert) (opens in a new tab)BookFree
A free, practical walk through reward models, PPO, DPO, rejection sampling and RL with verifiable rewards.
Helps to know first
110 questions · last verified 2026-12