Log inStart free
LESSON 12.06 · 6 STAGES · 2 CONTROLS · 3 CHECKSPRO · PREVIEW

Reward modeling

Watch a reward model learn scores from pairs of answers that a labeler ranked.


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

Go Pro · $8.25/mo
EXPLAINER · 12.06 · REWARD MODEL4 PROMPTS · 4 PAIRS
01
Stage 1 of 6 · Preference data
A preference dataset holds a prompt and two answers per row. A labeler marks the chosen answer ✓.
Explain it simply

Each row is one question with two answers. A person read both answers and ticked the one they liked more. The tick is the only signal: no row says how good an answer is. Solid teal chips hold a right answer, and solid brick chips hold a wrong one. Italic words are polite.

Four prompts. Each prompt has a chosen answer with a tick and a rejected answer with a cross.

prompts, answersweightsscores, Pwrong token, loss
12 + 3 =2Capital of France?3Opposite of hot?47 × 6 =✓Itis5.✗6✓Sure!Paris.✗IthinkitisRome.✓Itiscold,thanks.✗Cold.✓Sure,42.✗Itis48,thanks.preference data12 + 3 =2Capital of France?3Opposite of hot?47 × 6 =✓Itis5.✗6✓Sure!Paris.✗IthinkitisRome.✓Itiscold,thanks.✗Cold.✓Sure,42.✗Itis48,thanks.preference data
Toy: 4 prompts, 2 ranked answers each
STAGE 1 / 6
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
D={(x, yw, yl)}\sy{d}{data}{\mathcal{D}} = \{(\sy{x}{data}{x},\ \sy{yw}{data}{y_w},\ \sy{yl}{data}{y_l})\}
∣D∣=4 pairs|\mathcal{D}| = 4 \text{ pairs}

Each row holds a prompt, a chosen answer and a rejected answer.

Common mix-ups

MYTHA positive score means a good answer.

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

Predict, then reveal
3 CHECKS · PRO
Q01With labels as ranked and 0 steps, how many pairs score the chosen answer higher?

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 2 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.