GRPO: Group Relative Policy Optimization#
Coming Soon
This example is under development. Check back for a full GRPO walkthrough.
Algorithm Overview#
GRPO (Group Relative Policy Optimization) keeps PPO’s clipped surrogate objective but eliminates the learned critic by normalizing rewards within a group of rollouts generated from the same prompt.
No critic: advantages are computed by normalizing scores within the rollout group
Group normalization: for each prompt,
nresponses are sampled, reward mean and std are computed within the groupSymmetric clipping: standard PPO-style clip at
clip_ratioEfficient: no value function training, lower memory overhead than PPO
The advantage for response \(i\) in a group is
GRPO vs. PPO#
Aspect |
GRPO |
|
|---|---|---|
Critic / value model |
Required (GAE) |
Not used |
Advantage estimate |
\(\hat{A}_t\) from GAE on critic values |
Group-normalized score \((r_i-\mu)/\sigma\) |
Memory & compute |
Higher (actor + critic) |
Lower (actor only) |
Best fit |
Dense / shaped rewards, learned RMs |
Sparse / verifiable rewards (RLVR) |
See also
For the trainer architecture, cluster layout, and monitoring metrics shared by all RLVR recipes, see Common Infrastructure.