Group-Based Policy Optimization
Language AI HandbookAll chapters Eight completions answer the same question. Seven are correct and one is wrong. If the verifier awards 1 for a correct answer and 0 otherwise, what signal does each completion send to its tokens? Group Relative Policy Optimization (GRPO) answers with the scores from that same prompt, avoiding a learned critic. Its reward can come from a verifier or a learned reward model. The choice of reward and the choice of optimizer are separate.
Proximal Policy Optimization (PPO) supplies the clipped surrogate that GRPO adapts. In actor-critic implementations of PPO, a learned value function helps estimate how much better or worse a sampled action was than expected. Estimating that expectation can reduce variance, but it adds another component to train.
A separate trainable critic adds parameters and forward and backward computation. Extra optimizer state depends on the optimizer. A shared-backbone value head changes those costs. GRPO avoids fitting a critic by estimating a baseline from several completions of each prompt.
For each prompt, GRPO samples responses under a behavior policy and compares their rewards. The outcome-supervised version centers and scales each response’s reward within its group and supplies the resulting advantage to that response’s tokens. A group mean that includes the response being scored depends on that very response, so the usual action-independent baseline proof does not directly apply.
DeepSeekMath, by Shao et al., introduced GRPO in 2024 and described both outcome and process supervision. Later work revisits the objective, including how it weights tokens and how it handles groups with tied rewards.
We will derive the clipped objective, work through tied rewards, and run the update on a small CPU policy. The toy makes the arithmetic visible. The original DeepSeekMath setting and later variants are described separately.
Comments
Add to the conversation
A question, a correction, or an example from your own work.
No comments yet. Be the first to share your thoughts!