Group-Based Policy Optimization

Michael BrenndoerferNovember 29, 20262 min read
Language AI HandbookAll chapters
Part 40 of 67Reasoning Post-Training and Verifiable Rewards
Chapter 301Group-Based Policy Optimization
Reading section 1 of 10 · Group-Based Policy Optimization · 2 minSection 1 of 10 · 2 min

Section 1 of 10 · 2 min read

Reading settings

Definitions

Choose how many terms have tooltips.

Article links

Make inline references clickable

Notes & comments

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!

Newsletter

Stay up to date

Get new articles, book updates, and notes on AI and technology.

Unsubscribe at any time. Privacy policy