Log inStart free
LESSON 12.09 · 6 STAGES · 3 CONTROLS · 3 CHECKSPRO · PREVIEW

GRPO-style group-relative methods

Watch GRPO score each answer against the other answers in its group.


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.09 · GRPOROUND 10 · G 4 · 16 SAMPLES
01
Stage 1 of 6 · Sample a group
In round 10, group sampling draws 4 answers per prompt from the policy. Each dot is one sample.
Explain it simply

The policy is the model in training. For each of the 4 prompts, it writes 4 answers, called a group. Each dot sits in the row of the answer it drew. The bar shows how likely the policy is to write that answer.

Four panels, one per prompt. Each panel has 4 answer rows with a probability bar and the 4 sample dots of round 10.

prompts, answers, samplespolicy, rewards, plus advantageminus advantagegroups with no push (bars, stage 6)group with no pushround shown
1 · 2 + 3 =answerπgroupIt is 5.0.4660.0550.44Sure, it is 6, thanks!0.05chance right 0.892 · Capital of France?answerπgroupSure! Paris.0.47I think it is Rome.0.05Paris0.43Lyon, thanks.0.05chance right 0.903 · Opposite of hot?answerπgroupIt is cold, thanks.0.28Cold.0.60Warm, sure.0.04Hot0.08chance right 0.894 · 7 × 6 =answerπgroupSure, 42.0.30It is 48, thanks.0.06420.55I think it is 48.0.09chance right 0.85round 10: group sampling1 · 2 + 3 =answerπgroupIt is 5.0.4660.0550.44Sure, it is 6, thanks!0.05chance right 0.892 · Capital of France?answerπgroupSure! Paris.0.47I think it is Rome.0.05Paris0.43Lyon, thanks.0.05chance right 0.903 · Opposite of hot?answerπgroupIt is cold, thanks.0.28Cold.0.60Warm, sure.0.04Hot0.08chance right 0.894 · 7 × 6 =answerπgroupSure, 42.0.30It is 48, thanks.0.06420.55I think it is 48.0.09chance right 0.85round 10: group sampling
Toy: 4 prompts, 4 answers each, 30 GRPO rounds
STAGE 1 / 6
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
o1,…,oG∼πold(⋅∣q)\sy{o}{data}{o_1, \dots, o_G} \sim \sy{pi}{out}{\pi_{\text{old}}}(\cdot \mid q)
G=4, πold(right∣q2)=0.90G = 4,\ \pi_{\text{old}}(\text{right} \mid q_{2}) = 0.90

Draw G answers to the prompt from the old policy.

Common mix-ups

MYTHAn all-right group pushes its right answers up.

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

Predict, then reveal
3 CHECKS · PRO
Q01With the verifier and groups of 2, in round 1, which groups give no push?

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.