Reinforcement Learning (RL) has emerged as a primary driver for enhancing the reasoning capabilities of Large Language Models (LLMs). By rewarding models for generating correct final answers, researchers have achieved significant performance gains on complex mathematical and coding benchmarks. However, a critical side effect often accompanies these gains: diversity collapse. As models become more proficient at solving specific problems, they tend to converge on a narrow set of reasoning paths, losing the ability to explore alternative solutions.
A recent study by researchers from FAIR (Meta), CMU, and NYU, titled "Outcome-based Exploration for LLM Reasoning," investigates this phenomenon and proposes a novel solution: outcome-based exploration. By shifting the focus of exploration from individual tokens to the final answer space, the authors demonstrate improved accuracy and preserved generation diversity, which are essential for effective test-time scaling.
The Challenge: Diversity Collapse in RL
Standard RL algorithms for reasoning, such as GRPO, typically reward models based on the correctness of the final output. While effective for boosting pass@1 accuracy, this approach often causes the model to "collapse" onto a few specific reasoning trajectories.
This loss of diversity is particularly detrimental for test-time scaling (e.g., pass@k), where multiple samples are generated to find the correct answer. If a model's outputs are nearly identical, increasing the number of samples yields diminishing returns. The researchers identify a "transfer of diversity degradation": as a model becomes over-confident in its solutions for easier problems, its exploratory capacity diminishes even for unsolved, harder problems.
Methodology: Outcome-based Exploration
Traditional exploration techniques like Upper Confidence Bound (UCB) are difficult to apply to the near-infinite token space of LLMs. Instead, the authors leverage the fact that most reasoning tasks have a relatively small set of distinct final answers. This "outcome space" serves as a tractable proxy for exploration.
The paper introduces two primary algorithmic approaches:
- Historical Exploration (UCB-Con): The model maintains a count of how frequently it has produced specific final answers for each question. It receives an exploration bonus for generating novel answers, balanced by a constant baseline to prevent excessive penalization of correct but frequent answers.
- Batch Exploration: This method discourages the model from producing redundant answers within a single training batch, forcing real-time diversity during the optimization process.
Experimental Results
The proposed methods were evaluated on high-stakes math benchmarks, including MATH-500, AIME, and AMC23, using Llama-3.1-8B and Qwen-2.5-7B models.
As shown in the figure above, UCB-Con and Batch Exploration consistently outperform the standard GRPO baseline. Notably, the performance gap widens as k increases, indicating that the exploration-trained models maintain a much richer set of potential solutions compared to the "last" iteration of vanilla RL.
Key Insights
- Mitigating Overoptimization: Vanilla RL often exhibits a performance peak followed by a decline as training continues—a sign of over-fitting to a narrow set of solutions. Outcome-based exploration acts as a regularizer, maintaining stable performance over longer training durations.
- Expanding the Frontier: By rewarding the discovery of new answers, these methods allow models to solve a greater variety of unique questions during training, effectively expanding the model's knowledge frontier.
The figure above illustrates how vanilla RL (blue line) suffers from a sharp drop in the number of unique answers (Diff@k) as training progresses, whereas outcome-based exploration (orange line) maintains high diversity and superior Pass@k performance.
Conclusion and Future Work
Outcome-based exploration provides a robust framework for training reasoning LLMs that are both accurate and diverse. While currently focused on verifiable domains like mathematics and code, future research may extend these principles to subjective tasks or multi-turn agentic workflows. By ensuring models don't "forget" how to be creative, this approach paves the way for more effective test-time scaling and reliable AI reasoning.
Summary updated