what's grpo objective?
- User
what's grpo objective?
Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
what's grpo objective?
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
GRPO (Group Relative Policy Optimization) is a reinforcement learning algorithm designed to optimize language models by balancing reward maximization with policy stability. Its objective function combines three key components:
Clipped Surrogate Loss
Limits policy updates to prevent drastic changes:
[
\mathcal{L}{\text{clip}}(\theta) = \frac{1}{N} \sum{i=1}^N \min\left( \frac{\pi_\theta(r_i|p)}{\pi_{\theta_{\text{old}}}(r_i|p)} A_i, \ \text{clip}\left( \frac{\pi_\theta(r_i|p)}{\pi_{\theta_{\text{old}}}(r_i|p)}, 1-\epsilon, 1+\epsilon \right) A_i \right)
]
Group-Normalized Advantages
Computes relative rewards within response groups:
[
A_i = \frac{R_\phi(r_i) - \mu_{\mathcal{G}}}{\sigma_{\mathcal{G}}}
]
KL Divergence Penalty
Maintains policy similarity to reference model:
[
\mathcal{L}{\text{KL}} = w_1 \mathbb{D}{\text{KL}}(\pi_\theta || \pi_{\text{ref}})
]
[ \mathcal{L}{\text{GRPO}}(\theta) = \underbrace{\mathcal{L}{\text{clip}}(\theta)}{\text{Reward Maximization}} - \underbrace{w_1\mathbb{D}{\text{KL}}(\pi_\theta || \pi_{\text{ref}})}_{\text{Policy Stability}} ]
| Feature | PPO | GRPO |
|---|---|---|
| Advantage Calc | Value network | Group normalization |
| Memory Usage | High (2 networks) | Low (1 network) |
| Training Cost | Expensive | Reduced 30-50%[6] |
| Exploration | Entropy bonus | Group sampling |
GRPO's group-based approach simplifies implementation while maintaining training stability, making it particularly effective for LLM alignment tasks like mathematical reasoning[2][5]. The method has demonstrated state-of-the-art results in models like DeepSeekMath 7B, achieving 60.9% accuracy on MATH benchmark through self-consistency[5].