GRPO (Group Relative Policy Optimization) has largely replaced PPO in 2025-2026 reasoning post-training recipes (DeepSeek-R1, Qwen2.5/3-Math, several open reasoning models). Explain the single biggest structural change GRPO makes versus PPO, the concrete memory and infrastructure win that follows, and one trade-off you give up by dropping that component.
GRPO drops PPO's critic network and uses the mean reward across N rollouts per prompt as the baseline. Big memory and infra savings at scale, the trade is higher variance unless N is large enough.
Picture grading a class of essays without a fixed answer key. With a key, every essay gets compared to one ideal and you mark each one above or below it. With no key, you instead read several essays on the same topic, take the class average, and grade each essay as better or worse than the rest of the batch. The class becomes its own benchmark. The first method needs a teacher who has spent ages writing keys; the second method needs only a stack of essays per topic. It is cheaper and faster, but the grades wobble if the batch is small and the topic is unusually easy or hard. GRPO is the second method applied to model rollouts.
Detailed answer & concept explanation~8 min readEverything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example.
Everything important, quickly.
5 min: critic removal as the defining change + group-mean baseline formula + normalisation by group std + memory and infra accounting + variance trade-off at small N + adoption in DeepSeek-R1 and Qwen + when PPO is still preferred.
Real products, models, and research that use this idea.
- DeepSeek-R1 used GRPO as its core RL stage in 2025, and the published recipe became the reference implementation for open reasoning models.
- Qwen 2.5 Math and Qwen 3 Math reasoning families adopted GRPO and showed it scales cleanly to 70B-class policies with group sizes of 16.
- Open-R1, the community open-source reproduction of DeepSeek-R1, defaults to GRPO via the verl training stack and documents the memory savings explicitly.
- Hugging Face TRL ships a GRPOTrainer in 2026, slotting next to PPOTrainer and DPOTrainer as a standard option for RL post-training.
What an interviewer would ask next. Try answering before peeking at the approach.
QWhy does GRPO normalise the advantage by the group standard deviation rather than just subtracting the mean?
QWhat happens to GRPO when the reward signal is very sparse, say only one rollout in 16 gets non-zero reward?
Don't say thisRed flags and common mistakes that signal junior thinking. Click to expand.
Red flags and common mistakes that signal junior thinking. Click to expand.
Calling GRPO a small tweak to PPO. The defining change is removing the critic entirely, which is what unlocks the memory and infra savings. Without that, you do not have GRPO.
The night-before-the-interview bullets. Scan these on the way to the call.
Primary sources. Skim if you want the original framing.
Same topic, related formats. Practice these next.