TL;DR
Reinforcement learning (RL) has massively improved the reasoning capabilities of Large Language Models (LLMs), but standard methods often cause models to collapse into single, narrow solution paths. This paper introduces a diversity-aware policy optimization method that rewards LLMs for generating diverse correct answers during training. Integrated into the R1-zero framework, this approach boosts math reasoning performance by 3.5% on average while keeping the model's creative problem-solving abilities intact.
The Problem: Entropy Collapse in RL Fine-Tuning
The recent success of models like DeepSeek-R1 has proven that RL is a highly effective way to teach LLMs complex reasoning. By using simple rule-based rewards (e.g., "Is the final math answer correct?"), researchers can bypass the need for complex, human-annotated reward models.
However, in traditional RL, encouraging an agent to explore diverse actions is crucial to prevent it from getting stuck in local optima. In the realm of LLM reasoning, this concept of diversity has been largely ignored. Standard RL fine-tuning actually crushes the diversity of an LLM's outputs, causing "entropy collapse"—the model memorizes one specific way to solve a problem and stops exploring. The authors ask: Does promoting diverse reasoning paths help LLMs learn better? And if so, how do we encourage diversity without making the model spew nonsense?
Methods: R1-zero-Div
To tackle this, the authors first introduced a new metric called Potential@k to measure a model's latent ability to correct its own failures if given $k$ attempts. They discovered that models generating more diverse solutions naturally have higher reasoning potential.
Motivated by this, they developed R1-zero-Div, an enhancement to the standard R1-zero training framework (which relies on an RL algorithm called Group Relative Policy Optimization, or GRPO). Their approach introduces two key novelties:
- Token-level Entropy Bonus: Instead of just rewarding the model for getting the final answer right, they added a mathematical objective that rewards the model for token-level unpredictability (entropy). This prevents the model from overly relying on response length to game the diversity metric.
- Positive-Sample Exclusive: This is the crucial tweak. If you encourage diversity on wrong answers, the model just learns to be wrong in many different ways. The authors selectively apply the diversity bonus only to positive (correct) samples. This forces the model to explore valid, alternative reasoning paths without degrading the overall quality of the training signal.
Datasets
The model was trained on GSM8K (a standard dataset of grade-school math word problems) and evaluated across GSM8K, MATH500, Olympiad Bench, and College Math. (General reasoning was also evaluated on GPQA Diamond, as noted in the paper's appendix).
Key Insights and Ideas
- Diversity Predicts Potential: For capable models (those with a baseline accuracy > 40%), there is a strong positive correlation ($R^2 = 0.81$) between how diverse their generated equations are and their latent potential to solve difficult problems.
- Standard RL Kills Creativity: The authors tracked entropy during standard R1-zero training and found it collapses rapidly. The model quickly trades exploration for exploitation.
- The Quality-Diversity Trade-off: Pushing for diversity on all generated responses degrades overall performance. Selectively boosting diversity only on successful reasoning paths is the "sweet spot" that balances the discovery of new methods with the necessity of actually getting the right answer.
Key Results
- Accuracy Boost: R1-zero-Div achieved a 3.5% average improvement in Pass@1 accuracy across the four math benchmarks compared to standard R1-zero training.
- Preserved Diversity: The method successfully stopped the model from becoming a one-trick pony. On the GSM8K test set, their method scored 79.29 on the equation diversity metric, compared to just 75.02 for standard R1-zero.
- Scale Agnostic: The approach proved effective across different model sizes, showing consistent improvements on both the Qwen2.5-Math-7B and the smaller 1.5B parameter models.
- Qualitative Proof: The authors demonstrated instances where the R1-zero-Div model successfully generated two completely distinct, mathematically valid proofs for the same problem (e.g., solving a logarithmic system using substitution vs. reciprocal properties).
Limitations and Future Work
- Compute Constraints: Due to hardware limitations, the authors only tested their method on mid-sized models (1.5B and 7B parameters). It remains to be seen if the entropy regularization mechanics need adjustment when scaling up to massive, state-of-the-art models (e.g., 70B+ parameters).
- Statistical vs. Semantic Diversity: The method relies on token-level entropy, which is a statistical measure of variance. It doesn't explicitly understand semantic diversity (e.g., a user specifically requesting one algebraic solution and one geometric solution). Future work could explore bridging LLM reasoning with explicit, user-defined diversity optimization.
Summary updated