Log inStart free
LESSON 12.C2 · 6 STAGES · 3 CONTROLS · 3 CHECKSPRO · PREVIEW

Preference optimization pipelines compared

Watch PPO, DPO and GRPO tune one toy policy from the same ranked pairs.


Pro lesson. Stage 1 is free to watch. Pro opens all 6 stages, 3 controls and 3 checks, in this lesson and every other.

Go Pro · $8.25/mo
EXPLAINER · 12.C2 · PREFERENCE BAY4 PROMPTS · 4 PAIRS · REFERENCE 59% RIGHT
01
Stage 1 of 6 · Shared data
The ranked pairs mark ✓ chosen and ✗ rejected. Every row starts at the reference policy.
Explain it simply

At the top you see four short questions. For each one, a person ranked two answers: the tick marks the one they liked, the cross the other one. Each row below starts from the same untuned model. Its bars show how often it gives each of the four answers to each question.

Four prompt cards, each with a chosen and a rejected answer. Three rows, PPO, DPO and GRPO, each show the same reference policy: 16 bars, 59% right on average.

prompts and samplestrained modelsfrozen modelsright answers, push up, scoreswrong answers, push down, KLreference policy
Shared data4 prompts,a ranked pair each1 · 2 + 3 =✓ It is 5.✗ 62 · Capital of France?✓ Sure! Paris.✗ I think it is Rome.3 · Opposite of hot?✓ It is cold, thanks.✗ Cold.4 · 7 × 6 =✓ Sure, 42.✗ It is 48, thanks.PPOreward model + PPOβ 10.15DPOon the 4 pairsβ 10.15GRPOreward model + groupsβ 0.040.15shared data, every policy at the referenceprompt 1prompt 2prompt 3prompt 4Shared data4 prompts,a ranked pair each1 · 2 + 3 =✓ It is 5.✗ 62 · Capital of France?✓ Sure! Paris.✗ I think it is Rome.3 · Opposite of hot?✓ It is cold, thanks.✗ Cold.4 · 7 × 6 =✓ Sure, 42.✗ It is 48, thanks.PPOreward model + PPOβ 10.15DPOon the 4 pairsβ 10.15GRPOreward model + groupsβ 0.040.15shared data, every policy at the referenceprompt 1prompt 2prompt 3prompt 4
Toy: 4 prompts, 4 answers each, one ranked pair each; one shared 4-weight policy
STAGE 1 / 6
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
∑yπref(y∣x)=1\textstyle\sum_{y} \sy{ref}{out}{\pi_{\mathrm{ref}}(y \mid x)} = 1
0.30+0.20+0.35+0.15=10.30 + 0.20 + 0.35 + 0.15 = 1

Each prompt's 4 reference probabilities sum to 1.

Common mix-ups

MYTHDPO has no reward model, so it avoids the reward model's flaws.

The fix, and 1 more mix-up with the diagram to show them, come with Pro.

Predict, then reveal
3 CHECKS · PRO
Q01With the reward model, if β goes from 1 to 2, does PPO's KL go up or down?

Make your guess, then test it in the diagram. All 3 checks come with Pro.

PRO LESSON · YOU WATCHED STAGE 1 OF 6
Unlock the full explainer
  • 5 more stages and 3 live controls
  • 2 mix-up cards and 3 predict-then-reveal checks
  • Watch it as a narrated video, in three voices
  • Every Pro lesson and capstone · 656 in total

$99 a year, or $15 a month. Cancel any time.