LearnQuestion bank

Derive GRPO’s advantage estimate and explain why it needs no value network. Then explain what DAPO and GSPO each change, and why.

ResearchTechnicalHard

Answer it yourself first, out loud or on paper, then compare.

Answer

Model answer, written in a candidate's voice

In short

  • GRPO samples G responses per prompt, scores them with a verifiable reward, and uses (r_i - mean)/std as every token’s advantage
  • The group mean is a Monte-Carlo baseline, so no learned value network is needed
  • PPO-style clipped importance ratio, optionally with KL penalty to a reference policy; DeepSeek-R1-Zero showed reasoning emerging from rule-based rewards
  • DAPO: decoupled clipping with higher upper bound (entropy collapse), dynamic sampling (drop zero-advantage groups), token-level loss averaging, overlong reward shaping
  • GSPO: sequence-level importance ratio and clipping, lower variance, helps MoE routing mismatch between rollout and update
  • Practical issues: reward hacking, length growth, need for verifiers/tests, rollout cost dominating compute

In full

GRPO samples G responses per prompt, scores each with a verifiable reward r_i, and sets every token’s advantage to the group-normalised reward (r_i - mean_j r_j)/std_j(r_j); the group mean is a Monte-Carlo estimate of the expected reward for that prompt, so it acts as the baseline and no learned value network is needed. The policy is then updated with a PPO-style clipped importance ratio, optionally with a KL penalty to a frozen reference policy, and DeepSeek-R1-Zero showed reasoning behaviours emerging from exactly this recipe with rule-based rewards. DAPO changes four things: decoupled clipping with a higher upper bound to prevent entropy collapse, dynamic sampling that discards groups whose responses all get the same reward (zero advantage), token-level loss averaging so long responses are not under-weighted, and overlong reward shaping to penalise over-length outputs. GSPO instead computes the importance ratio and clipping at the sequence level, using the geometric mean of token ratios, which reduces variance and instability, especially for MoE models whose routing can shift between rollout and update. In practice the main risks are reward hacking, length growth, the need for reliable verifiers or tests, and rollout cost dominating training compute.

Checked against sources by an independent AI reviewer.

What a strong answer covers

  • GRPO samples a group of G responses per prompt, scores them with a (verifiable) reward, and uses the group-normalised reward (r_i − mean) / std as every token’s advantage, so the group baseline replaces a learned critic
  • Keeps a PPO-style clipped importance ratio, optionally with a KL penalty to a reference policy; DeepSeek-R1-Zero showed reasoning behaviours emerging from this with rule-based rewards
  • DAPO: decoupled clipping with a higher upper bound to avoid entropy collapse, dynamic sampling that drops groups where all responses get the same reward (zero advantage), token-level loss averaging so long responses count properly, and overlong reward shaping
  • GSPO: computes the importance ratio and clipping at sequence level rather than per token, reducing variance and instability, especially for MoE models whose routing changes between rollout and update
  • Practical issues: reward hacking, length growth, the need for verifiers or tests, and rollout cost dominating training compute

Common mistakes

  • Saying GRPO needs a reward model and a critic like PPO
  • Ignoring the zero-advantage problem when every sample in a group passes or fails

Follow-ups

  • A 2025 paper questioned whether RL with verifiable rewards expands reasoning beyond the base model or mainly sharpens pass@1. How would you test this?