Zenaique

Fill in the GRPO group relative advantage normalization step

Fill in blank·Hard·4.0 · 0·~1 min·Asked atLightning AiLocusServicenow·Relevant atGoogleMeta
Attempt it
In GRPO, the advantage for completion i in a sampled group is A_i = (R_i - ) / , where R_i is the reward for that completion and the denominator stabilizes scale across groups.
TL;DR

GRPO advantage subtracts the group mean reward and divides by group standard deviation: A_i = (R_i - mean) / std.

Memory aid
Sign in to see the mnemonic that makes this stick.
Easy to grasp

When the model tries five answers to the same question, you grade each answer. GRPO asks how much better or worse each answer is compared to the average of the group, not compared to some separate judge model. Subtract the average score, then divide by how spread out the scores were so big and small groups behave similarly.

Concept explanation~2 min read

Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.

The GRPO advantage formula is the critic replacement mechanism. It is the core of group-relative policy optimization: center rewards at the group mean, scale by group spread.

If you get this wrong, every downstream claim about DeepSeek-style RLVR training is unsound.

The template and accepted fills

Given rewards RiR_i for completion ii in a group sampled from the same prompt:

Ai=Ri−μGσG+ϵA_i = \frac{R_i - \mu_G}{\sigma_G + \epsilon}

First blank: mean of group rewards, also written group mean, μ, mu.

Second blank: standard deviation of group rewards: std, σ, sigma, group std.

Implementations add ε to σ_G to keep the division stable when variance is tiny.

On a whiteboard: write K samples and rewards R_i, subtract the mean, then divide by the std.

Why group-relative normalization
Scope of the group
Failure mode: zero variance
Connection to reasoning post-training
Sign in to unlock the full deep dive.

Situations where this technique stops working.

Sign in to see when this approach fails.

2–4 min · Everything important, quickly.

Sign in to see the quick scan of the deep dive.

Real products, models, and research that use this idea.

  • DeepSeek-R1 GRPO implementation normalizes verifiable math rewards within each prompt group
  • DAPO dynamic sampling ensures reward diversity so group std stays informative
Sign in to see more production examples.

What an interviewer would ask next. Try answering before peeking at the approach.

QWhy divide by standard deviation instead of only centering at the mean?
A

It stabilizes scale across groups with different reward spreads. Gradient magnitudes stay comparable when one prompt's rewards are tight and another's are wide.

1 more follow-up an interviewer would ask next. Sign in to reveal them.

Red flags & common mistakes

The phrases that signal junior thinking. Click to expand.

Most common mistake

Filling the blanks with global batch statistics or PPO value estimates instead of within-group mean and standard deviation.

Sign in to see all red flags and common mistakes.

60 second bullets to scan on the way to the call.

  • Write A_i = (R_i - mean) / std for the same prompt group

  • Contrast with PPO critic baseline

Sign in to unlock the revision sheet.

Primary sources. Browse if you want the original framing.

Similar questions

Same topic, related formats. Practice these next.

4 curated
Next question
Name practical UX patterns that keep reasoning model latency acceptable in production
Short answer·Medium