Fine-tuning, RLHF & Alignment·Question 39 of 61AdvancedAI-75

Explain GRPO. Why has it displaced PPO for reasoning RL?

Type it the way you would explain it to an interviewer. A few sentences is enough; you can't break anything.

Model answer: the part to lead with

GRPO (Group Relative Policy Optimization, introduced in DeepSeekMath and used for DeepSeek-R1) is a PPO-style policy-gradient method that eliminates the learned value network (critic). Instead of estimating per-token advantages with a critic + GAE, GRPO samples a group of G responses (e.g., 8-64) per prompt, scores each with the reward function, and computes each response's advantage relative to its own group:

$$A_i = \frac{r_i - \mathrm{mean}(r_1..r_G)}{\mathrm{std}(r_1..r_G)}$$

Full worked answer with diagram

GRPO (Group Relative Policy Optimization, introduced in DeepSeekMath and used for DeepSeek-R1) is a PPO-style policy-gradient method that eliminates the learned value network (critic). Instead of estimating per-token advantages with a critic + GAE, GRPO samples a group of G responses (e.g., 8-64) per prompt, scores each with the reward function, and computes each response's advantage relative to its own group:

$$A_i = \frac{r_i - \mathrm{mean}(r_1..r_G)}{\mathrm{std}(r_1..r_G)}$$

That advantage is applied to the response's tokens in a PPO-like clipped objective, with a KL term against the reference model. The group mean serves as the baseline that the critic used to provide - but it's exact for that prompt (a Monte-Carlo baseline) rather than a function approximation.

Why it won for reasoning RL:

  • Cost and simplicity: the critic in PPO is a second model the size of the policy - training it, and keeping it accurate as the policy shifts, roughly doubles memory and adds a whole failure surface. GRPO deletes it. For frontier-scale models that's an enormous saving.
  • Critic quality was the weak link: with sparse, end-of-sequence rewards (correct/incorrect), learning accurate per-token values is hard; a bad critic gives noisy advantages. Group-relative scoring sidesteps the problem.
  • Perfect fit for verifiable rewards: math/code rewards are cheap binary checks, so sampling large groups per prompt is affordable, and group statistics are meaningful (a prompt where all samples fail gives zero advantage - automatic curriculum focusing gradient on solvable-but-unsolved problems).

Tradeoffs to name: many samples per prompt makes generation the compute bottleneck (mitigated by fast inference engines in the loop); uniform std-normalization has known biases (length effects; degenerate groups where all rewards are equal contribute nothing); and follow-up variants fix specific pieces: Dr. GRPO removes the length and std normalization biases, DAPO decouples the clip range and filters degenerate groups, and GSPO moves the importance ratio and clipping to the sequence level for stability on large and MoE models. Conceptually, it's "REINFORCE with a per-prompt Monte-Carlo baseline + PPO clipping" - cheap, scalable, and well-matched to verifiable-reward RL.

Worth sketching. it shows the group mean doing the critic's job, and the case where it does nothing at all.

flowchart LR
    A["One prompt"] --> B["Sample G responses"]
    B --> C["Reward each one"]
    C --> D["Advantage = reward minus<br/>group mean, over group std"]
    D --> E["Clipped update plus<br/>KL to reference"]
    E --> A
    C --> F{"All G pass,<br/>or all G fail?"}
    F -->|"yes"| G["Advantages are zero,<br/>no gradient from this prompt"]

What a good answer covers

  • GRPO (Group Relative Policy Optimization, introduced in DeepSeekMath and used for DeepSeek-R1) is a…
  • $$A_i = \frac{r_i - \mathrm{mean}(r_1..r_G)}{\mathrm{std}(r_1..r_G)}$$
  • That advantage is applied to the response's tokens in a PPO-like clipped objective, with a KL term…
  • The group mean serves as the baseline that the critic used to provide - but it's exact for that prompt…
  • Cost and simplicity: the critic in PPO is a second model the size of the policy - training it, and…

Key terms: Cost and simplicity · Perfect fit for verifiable rewards

Interviewer follow-ups to expect

  1. What happens to GRPO's gradient on prompts the model always (or never) solves, and what does that imply for data curation?

  2. Why is the KL-to-reference term still needed with verifiable rewards?

Worked answer from AI-Engineer-Interview-Questions by Om (MIT), reformatted for LLM Prep · answer text last updated 6 November 2026 · scoring and review schedule by LLM Prep