TL;DR
This paper provides a rigorous theoretical autopsy of Group Relative Policy Optimization (GRPO), the algorithm behind models like DeepSeek-R1. The authors reveal that while GRPO elegantly removes the need for a "critic" model, it suffers from a fundamental "rank collapse" where the gradient signal only moves in approximately two directions, regardless of how many samples you generate.
What Problem Does This Paper Address?
In the world of Reinforcement Learning from Human Feedback (RLHF), Proximal Policy Optimization (PPO) has long been the gold standard. However, PPO is a resource hog; it requires a "critic" model (a value function) to estimate how "good" a specific state is, effectively doubling the memory footprint of training.
Group Relative Policy Optimization (GRPO) recently made waves by ditching the critic. Instead of a separate model, it generates a group of completions for a single prompt and uses their average reward as a baseline. While empirically successful in models like DeepSeek-R1, we didn't fully understand why it works or where its "simplicity" might actually be a bottleneck. This paper investigates the mathematical foundations of GRPO to find the catch.
Methods
The authors approach the problem through three lenses:
- First-Principles Derivation: They derive GRPO step-by-step from the Policy Gradient Theorem, showing it is a specific flavor of the REINFORCE algorithm using a group-mean baseline and "output-only" rewards (where the model only gets a score at the very end of a sequence).
- Spectral Analysis: They use Singular Value Decomposition (SVD) to analyze the "effective rank" of the gradient matrices during training. This measures how many independent "directions" of learning the gradient actually contains.
- Empirical Validation: They train a Nemotron-4B model on math reasoning tasks to see if their theoretical proofs hold up in practice.
Datasets
The study uses GSM8K (Grade School Math 8K), a standard benchmark for mathematical reasoning. The model used for the experiments is Nemotron-4B.
Key Insights and Ideas
- The "Participation Trophy" Problem (Uniform Credit Assignment): Because GRPO typically uses a single reward at the end of a sequence (e.g., "is the answer correct?"), the math shows that every single token in that sequence receives the exact same "advantage" score. The critical reasoning step gets the same credit as a filler word like "the." This is a major credit assignment failure.
- Rank Collapse: The most striking finding is that the GRPO gradient matrix collapses to an effective rank of $\approx 2$. This means that even if you generate 8 or 16 different completions ($R=8$ or $16$), the model is essentially only learning two things: "how to look more like the good sequences" and "how to look less like the bad ones."
- The Zero-Sum Constraint: Because the advantages within a group are calculated relative to the mean, they always sum to zero. This forces the model into a "natural curriculum." If a prompt is too easy (all correct) or too hard (all wrong), the advantages are all zero, and the model learns nothing. It only learns from the "frontier" where some attempts succeed and others fail.
- Multi-Turn Bias: The authors prove that GRPO is mathematically "biased" for multi-turn conversations. Because it lacks a critic to estimate the value of intermediate states, it conflates rewards already received with future potential, making it poorly suited for complex, multi-step interactions.
Key Results
- Consistent Low Rank: Across group sizes $R \in \{2, 4, 8\}$, the effective rank of the gradient remained near 2 throughout training. Adding more rollouts (increasing $R$) improves the quality of the direction the model moves in, but it doesn't add new dimensions of movement.
- Gradient Sparsity: The authors proved that "output-only" rewards induce gradient sparsity that actually intensifies as training progresses.
- Empirical Confirmation: SVD analysis of the
q_projandv_projlayers in the transformer confirmed that the top-1 singular value often explains 50-80% of the variance, supporting the "rank-2" theory.
Limitations and Future Work
The paper identifies a "bottleneck" for complex reasoning. If a model needs to learn which specific step in a 10-step proof was wrong, GRPO's uniform credit assignment is too blunt a tool.
Future Directions: * Adaptive Baselines: Exploring if "Leave-One-Out" (RLOO) baselines can break the rank-2 bottleneck. * Process Reward Models (PRMs): Moving toward "dense" rewards (scoring every step) to provide the token-level credit that GRPO currently lacks. * Rank-Aware Training: Using the effective rank as a signal to dynamically adjust the group size $R$ or switch to more complex reward models when learning saturates.
Summary updated