What is GRPO? Group Relative Policy Optimization, Explained
Why it exists: the critic was the expensive part
Classic PPO needs a second model — the critic — trained alongside the policy to estimate how good each state is. That's roughly half the training compute, a whole second set of hyperparameters, and on very long rollouts the critic's estimates get unstable. For reasoning models that emit thousands of tokens per answer, the critic was becoming the bottleneck of the whole pipeline.
DeepSeek's insight was almost embarrassingly simple: if you're already sampling a group of answers per prompt, the samples ARE the baseline. You don't need a learned value function to know which answer was good — you can compare the answers to each other. The best of the group becomes the target, the worst becomes the cautionary tale.
How GRPO works, step by step
The loop is short once the critic is gone:
- Sample: for one prompt, generate a group of G completions (usually 8 to 64) from the current policy.
- Score: give each completion a reward — a math answer match, passing unit tests, a format check. (The reward side of this is RLVR: verifiable rewards, not a learned judge.)
- Normalize: turn rewards into advantages: Ai = (ri − mean) / std. Better than the group's average gets a positive advantage, worse gets a negative one. Every token in one completion shares its advantage.
- Update: optimize the policy with PPO's clipped surrogate objective — large updates get clipped so training stays stable — plus a KL penalty keeping the new policy near the reference model. In the original formulation the KL term lives in the loss, not folded into the reward.
- Repeat: no critic to train, no GAE to tune, one fewer optimizer.
GRPO vs PPO: the quick comparison
- Advantages: PPO estimates them with a learned value network + GAE; GRPO computes them from group normalization of the rollout batch.
- Models trained: PPO trains two (actor + critic); GRPO trains one.
- Long outputs: the critic adds memory cost and gets unstable on long rollouts — GRPO's cost scales with rollouts you were sampling anyway.
- What's kept: the clipped importance-ratio objective and KL regularization are straight from PPO. GRPO is a critic-free PPO, not a different family.
The fine print: GRPO's built-in biases
Critic-free doesn't mean bias-free. Three gotchas show up in practice:
- Length bias: the original loss averages per response (1/|oi|), so a long WRONG answer gets less penalty per token than a short one. During training, incorrect responses quietly grow longer. (This is the first bug Dr. GRPO fixes.)
- Difficulty bias: dividing by the group's std gives oversized advantages to prompts with near-uniform rewards — the very easy and the near-impossible — overweighting exactly the prompts that teach the least. (Dr. GRPO's second fix.)
- Zero-signal groups: if all G completions get the same reward — all right or all wrong — every advantage is zero and there's no gradient at all. DAPO handles this with dynamic sampling: throw out the all-equal groups and re-sample.
- Coarse credit: one advantage per response means a correct final answer reinforces its confused reasoning steps too. GRPO is outcome supervision only; it can't tell the model which part of the chain of thought was the good part.
The family: Dr. GRPO, DAPO, GSPO
Since 2025, GRPO has become a family rather than a single algorithm. The variants differ in where the advantage comes from, how the loss is averaged, and how the update is clipped:
- Dr. GRPO (Liu et al., 2025): drops the length normalization and the std division — the minimalist fix for both biases above. The authors' R1-Zero-style recipe hit 43.3% on AIME 2024 with a 7B base model.
- DAPO (Yu et al., 2025): decoupled clipping (0.2 low / 0.28 high), token-level loss across the group, dynamic sampling, and no KL at all — built to stabilize long chain-of-thought RL, where the policy is supposed to move far from initialization.
- GSPO (Qwen team, 2025): sequence-level importance ratios with per-sequence normalization — the stable choice for MoE models (Qwen3).
Worth knowing: the largest controlled comparisons (including an October 2026 survey) suggest the algorithm choice mostly changes how fast you converge, not the final ceiling. The reward signal and the data mix matter more than the acronym.
How to try GRPO yourself
You don't need a frontier cluster. The dynamics show up at small scale:
- Use an existing implementation — TRL (Hugging Face), verl, or OpenRLHF all ship GRPO. Don't write your own loop first.
- Pick a task with verifiable rewards: math problems with known answers, or coding tasks with unit tests. The SWE-Gym entry in the directory gives you software-engineering tasks with real tests; LIFT-Bench gives instruction-following tasks with verifiers that punish reward hacking.
- Browse the LLM-agents category for more environments with checkable end states — they're the natural GRPO sandboxes.
- Watch response length alongside the reward curve: if wrong answers keep getting longer, you're seeing the length bias — switch to Dr. GRPO's settings or DAPO.
- Read the October 30 briefing for GRPO turning up in a wild place — researchers steering image generation with neural feedback, running on-policy GRPO on EEG-derived rewards.
Frequently asked questions
What does GRPO stand for?
GRPO stands for Group Relative Policy Optimization. It is a critic-free reinforcement learning algorithm introduced in DeepSeekMath (2024) that trains a language model by sampling a group of completions per prompt and reinforcing the ones that score above the group's average reward.
How is GRPO different from PPO?
PPO learns a separate value network (a critic) to estimate advantages for each token. GRPO drops the critic entirely and computes advantages from group-relative normalization: each answer's advantage is its reward minus the group mean, divided by the group standard deviation. It keeps PPO's clipped surrogate objective and KL regularization.
Why doesn't GRPO need a value network?
Because the baseline can come from the batch itself. GRPO samples G completions for the same prompt, scores each, and measures every answer against the group's average — so there is no critic to train, no GAE, and one fewer optimizer. This also removes the critic's instability and memory cost on the very long rollouts that reasoning models produce.
What are Dr. GRPO and DAPO?
Two 2025 fixes for GRPO's built-in biases. Dr. GRPO removes the per-response length normalization and the standard-deviation division, fixing a verbosity bias (wrong answers growing longer) and a difficulty bias (over-weighting trivial or impossible prompts). DAPO adds decoupled clipping, dynamic sampling that drops zero-gradient groups, token-level loss, and drops the KL term — stabilizing long chain-of-thought RL.
Which models were trained with GRPO?
DeepSeek-R1-Zero used pure GRPO with rule-based rewards and no supervised fine-tuning to reach contest-level math, and the R1 family, Qwen, Kimi, and most open reasoning models followed. Open-source implementations exist in TRL, verl, and OpenRLHF.
What do you think?
Have you trained with GRPO — or watched a PPO critic eat your GPU budget? Tell us what you ran and what the reward curve looked like — the best stories get featured in a future briefing.
The lab notebook is rlenvlab's blog — guides and the daily RL Briefing on the environments ecosystem. More from the lab notebook →