Module 5 · Where the weights come from

Preference training, from reward models to DPO

In this lesson

  • 9 min read
  • 5 reading sections
  • Knowledge check
  • Lesson 8 of 10 in this chapter

This chapter’s goalExplain what each training stage optimises and what it cannot fix, estimate the compute cost of a training run from parameter and token counts, and choose between prompting, retrieval and fine-tuning by what each one actually changes.

This chapter’s media

The film explains chapter ideas. The audiobook narrates the complete teaching text.

FormatEnglishहिंदी
Chapter filmNot availableNot available
Full audiobookNot availableNot available

A little at a time

Explore an idea, try it, then check what stays.

Step 1 of 6Free · no account needed
Lesson steps

The problem it solves

After supervised fine-tuning, a model can follow instructions. It still has no signal about which of two acceptable answers people actually prefer, and writing that down as examples is hard: it is much easier for a person to say which of two responses is better than to produce the ideal one.

Preference training turns that comparison into a training signal.

The classical pipeline

Collect comparisons. Show annotators a prompt and two responses; record which they prefer. Tens to hundreds of thousands of pairs.

Train a reward model. A separate model (often the same architecture with the output layer replaced by a single score) is trained so that preferred responses score higher. It has learned a function from response to number that approximates human preference.

Optimise the policy against it. The language model generates, the reward model scores, and reinforcement learning (usually PPO) adjusts the language model to earn higher scores.

Your place and first choices stay on this browser. Classroom credit is recorded separately.

Every lesson here is open. Your progress is recorded once you pass the AI, Actually Explained exam.

Stuck on something?Ask Anjali, your AI tutor

How to cite: Addaly (2026) ‘Preference training, from reward models to DPO’, in How a Language Model Actually Works. Edited by M. Mun. Addaly. Available at: https://addaly.com/learn/how-llms-work/preference-training (Accessed: 29 November 2026).