Follow the pipeline from the first comparison.
The course page shows all chapters.
Mirage Academy ยท RLHF
You build or tune language models and want to know how human preferences change them. This course follows the pipeline in order: human comparisons, a reward model, policy optimization with PPO, DPO as the direct route, newer group-relative methods, and the ways the whole thing fails.
The course
This Masters level course in English is meant for engineers and product people who build AI features. Watch the intro, then see which chapter covers which stage.

You build or tune language models, and you want to know how human preferences actually change them. This course takes you from instruction tuning to preference learning, one stage at a time. The course follows the pipeline in order. First you collect human comparisons between two answers. Next you train a reward model on those comparisons. Then you optimise the policy against it with PPO. Finally you evaluate the result and watch for reward hacking. You then compare two routes. PPO trains the policy against a separate reward model. DPO learns directly from preference pairs instead. Chapter six adds newer group-relative methods. In the capstone you run a small preference experiment end to end, from comparisons to an evaluated model. If you want to understand how preferences shape models, start with chapter one.
Which chapter covers which stage
Chapters 1 and 2
Chapter 1 sets out the three stages of classic RLHF and why instruction tuning is not the end. Chapter 2 is about collecting the comparisons, and about how far you can trust them.
An example comparison, invented for this page
PROMPTExplain what a mortgage is to a new customer.
Annotator agreement, the share who chose the majority answer: 80%
Ask for a choice between two answers, or for a full ranking, and see what each costs.
Write the instructions the labelers follow, and measure how often they agree.
Learn which habits of the people choosing can tilt the comparisons.
Combine several imperfect judgments into one label.
Catch labelers and batches that drift before they reach training.
Chapter 3
Chapter 1 introduces preferences as a Bradley-Terry probability, and chapter 3 builds the reward model on it. The model learns scores such that the answer people prefer scores higher.
Example scores, invented for this page
Gap between the scores: 1.5
The rule: the probability that answer A is preferred over answer B is 1 divided by (1 plus e to the power of minus the score gap). It depends on the gap only, and equal scores give 50 percent.
How a language model becomes a model that outputs a score.
Fit the scores to the comparisons you collected.
Check whether a high score means what it should.
See what happens when a policy chases the score too hard.
Reward the final answer, or reward each step.
Chapter 4
PPO scores each token with a clipped objective. Pick a better or a worse token and a ratio, and see when the clip takes over and the gradient goes to zero.
The ratios and the two advantages are examples. The clip range is 0.8 to 1.2.
Dotted line: the score by ratio. Faint line: ratio times advantage. Vertical dotted lines: the clip edges at 0.8 and 1.2.
Ratio 1.4, token Better than expected: score 1.20, gradient Zero.
The rule: score = min(ratio x advantage, clip(ratio, 0.8, 1.2) x advantage). The ratio is the new policy's probability of the token divided by the old policy's, and the advantage says whether the token was better or worse than expected. The clipped term is the smaller one only when the ratio has moved past the edge in the direction the advantage likes, and there the gradient is zero.
Policy, action and reward, read as language-model terms.
Whether a token did better or worse than expected.
The rule on this page, with the reasons behind it.
What a PPO run has to hold at once.
Know when to halt a run that has gone off course.
Chapter 5
You then compare the two routes. PPO trains the policy against a separate reward model, and DPO learns from the pairs directly.
Both start from human comparisons.
The loss that turns a preference pair into an update.
Why DPO needs no separate reward model.
The knob that sets how far the policy may move.
A way DPO goes wrong, and how to spot it.
Choose between the two routes for your case.
Chapter 6
Chapter 6 covers feedback from AI, group-relative advantage, verifiable rewards and other preference losses. The picture shows the group-relative idea on six samples.
Example rewards, invented for this page. Average reward of the group: 0.5
Under each bar: the reward, then the advantage.
In its plain form: a sample's advantage is its reward minus the average reward of its group. A sample above the average gets a positive advantage and one below it a negative one, and the advantages of a group add up to zero.
Use a model instead of a person to judge the answers.
Compare each sample with the others drawn for the same prompt.
Use a reward that a program can check.
Variants of the pair-based loss, and when they apply.
Pick a method for the data and the budget you have.
Chapter 7
A policy can learn to please the reward model without getting better for people. The chapter shows how to check the proxy against a human check and how to pick the checkpoint.
A drawn shape for illustration, not measured data
Proxy reward from the reward modelHuman checkDotted line: the best checkpoint by the human check
optimization steps, left to right
How a policy finds the gaps in a reward model.
Compare the score you optimize with what people say.
Count the comparisons that end level.
Ask whether a difference is more than noise.
Choose the run state to keep, and say why.
Chapter 8
You ask a question, prepare the data, build a toy reward model, test best-of-N and drift, and write the report.
Example rewards, invented for this page
Best of eight picks sample 4Average reward: 0.53
How you learn
Lessons come with an Academy AI coach that you talk to by voice.
Engineers and technical product people who work on AI features and want to understand how preference training changes a model. The level is Masters.
Reinforcement learning from human feedback. People compare answers, a reward model learns from the comparisons, and the language model is then optimized against that reward. Chapters 1 to 4 follow these stages.
PPO trains the policy against a separate reward model. DPO learns directly from preference pairs instead. Chapters 4 and 5 teach both, and chapter 5 ends on how to choose between them.
A model that gives an answer a score so that the answer people prefer scores higher. Chapter 3 covers its architecture, training on pairs, calibration and overoptimization.
A policy that scores well with the reward model without getting better for people. Chapter 7 covers how to spot it and how to pick a checkpoint.
The capstone: a small preference experiment end to end. You ask the question, prepare the data, build a toy reward model, test best-of-N and drift, and write the report.
Yes. Everything here is in English, and no German version exists.
You finish with a certificate or a confirmation of participation, depending on your path. It carries no state recognition.
The course page shows all chapters.