In the rapidly evolving landscape of Large Language Model (LLM) post-training, Reinforcement Learning (RL) has become the gold standard for boosting reasoning capabilities. Methods like DeepSeek's Group Relative Policy Optimization (GRPO) have gained massive traction because they eliminate the need for memory-heavy "critic" models. However, GRPO has a hidden flaw: it is prone to training instability.
A new paper, Geometric-Mean Policy Optimization, introduces a deceptively simple "plug-and-play" fix that significantly stabilizes training and boosts performance across math, multimodal, and agentic tasks.
The Problem: Outliers and Instability in GRPO
When training LLMs using RL, an importance sampling ratio ($\rho$) dictates how much the model should adjust its parameters based on a reward. Ideally, this ratio stays near 1. If it swings wildly, the model makes overly aggressive updates.
The authors observed that in GRPO, which averages token-level rewards using an arithmetic mean, a single "outlier" token with an extreme importance ratio can hijack the entire update signal. This leads to:
- Unstable Policy Updates: The model's behavior shifts too drastically in a single step.
- Entropy Collapse: The model becomes "too certain" too quickly, stopping exploration and getting stuck in sub-optimal reasoning patterns.
- Limited Scaling: To prevent crashes, researchers often use tight "clipping" (restricting how much the model can change), which unfortunately also stifles the model's ability to learn complex new behaviors.
The Solution: Geometric-Mean Policy Optimization (GMPO)
The core innovation is replacing the arithmetic mean with a geometric mean. Instead of summing up token rewards and dividing by the sequence length, GMPO multiplies them and takes the $n$-th root.
Mathematically, the geometric mean is far less sensitive to extreme outliers. If one token has a massive importance ratio, the geometric mean dampens its impact on the final update signal, preventing the massive spikes seen in standard GRPO training.
Key Technical Refinements
- Token-level Clipping: Unlike some versions of GRPO that clip at the sequence level, GMPO clips at the individual token level. This prevents a single bad token from discarding the gradient for an entire informative sequence.
- Wider Clipping Range: Because the geometric mean is inherently more stable, the authors found they could use a wider clipping range ($e^{-0.4}$ to $e^{0.4}$) compared to GRPO’s standard (0.8 to 1.2). This allows the model to explore more freely without the risk of divergence.
- Normalization Factor: A power-based normalization term ($1/|o|$) ensures that longer responses don't naturally generate larger, unstable importance ratios.
Key Insights and Empirical Results
The authors evaluated GMPO across a diverse battery of benchmarks, including mathematical reasoning (AIME24, AMC, MATH500), multimodal reasoning (Geometry3K), and agentic tasks (ALFWorld).
- The "Balanced Weight" Insight: From a gradient perspective, GRPO weights each token's gradient by its own importance ratio. GMPO weights every token in a sequence by the geometric mean of all ratios in that sequence, providing a much more balanced, sequence-aware update signal.
- Preventing Entropy Collapse: GMPO maintains higher token entropy throughout training. While GRPO often suffers from premature entropy collapse (where the model stops trying new things), GMPO keeps the model "curious" for longer.
- Math Accuracy: GMPO-7B improved the average Pass@1 across five math benchmarks by 4.1% (63.4% vs. 59.3% for GRPO).
- Agentic Prowess: On the ALFWorld benchmark, GMPO saw a massive 13.1% improvement in overall accuracy (85.9% vs. 72.8%) using a Qwen2.5-1.5B model.
- MoE Stability: In Mixture-of-Experts settings, GMPO-32B achieved 96.7% on MATH500, outperforming GRPO by 2.1%.
Conclusion and Future Work
GMPO proves that sometimes the most effective solution to a complex optimization problem isn't a more complex algorithm, but a more robust way to calculate an average. While GMPO is a significant step forward, the authors note that hyperparameter sensitivity (like finding the perfect clipping range for different model sizes) remains an empirical task. Future work may explore scaling these geometric aggregations to 70B+ parameter models to further validate their stabilizing benefits.
Summary updated