Rewarding the Unlikely: Lifting GRPO Beyond Distribution Sharpening

Andre Wang He, Daniel Fried, Sean Welleck

TL;DR

Reinforcement learning (RL) is great for teaching language models complex reasoning, but a popular algorithm called GRPO gets stuck reinforcing only the most obvious solutions, hindering its ability to find rarer, correct ones. This paper introduces "unlikeliness reward" to specifically boost these rare solutions, significantly improving performance on tasks requiring many attempts, like formal theorem proving.

What Problem Does This Paper Address?

Large language models (LLMs) are increasingly being trained with reinforcement learning (RL) to improve their reasoning abilities, especially in domains like formal theorem proving where correctness can be automatically verified. A common RL algorithm for this is Group Relative Policy Optimization (GRPO). However, the authors observe that GRPO, while good at improving single-sample accuracy, struggles with tasks that require finding any correct solution among many attempts (measured by "pass@N"). Specifically, GRPO tends to "sharpen" the model's output distribution, meaning it gets better at producing the already most likely solutions but fails to discover or reinforce less probable, yet still correct, solutions. This is problematic for theorem proving, where a perfect verifier allows for many attempts to find a valid proof. The core problem is that GRPO's optimization objective inadvertently favors common solutions, leading to a "rank bias" that limits its effectiveness for multi-sample performance metrics.

Methods

The paper introduces two key methods to combat GRPO's rank bias:

  1. Unlikeliness Reward: This is a novel modification to the reward function. Instead of just rewarding correct proofs, it explicitly penalizes reinforcing already high-probability solutions. For a group of generated proofs, the reward for a correct proof is adjusted based on its rank (how likely it was under the original model). Rarer correct proofs receive a higher effective reward, encouraging the model to explore and learn them.
  2. Increased PPO Epochs: The authors also found that increasing the number of gradient update steps (PPO epochs) per batch helps. This allows the model to perform more updates, and after high-probability solutions have been optimized, subsequent steps are forced to consider lower-probability ones, indirectly amplifying their learning signal.

They combine these into a revised training recipe.

Datasets

  • Lean Workbook: A large dataset of approximately 140K Lean 4 theorem statements.
  • miniF2F-valid: An additional set of 244 problems.
  • miniF2F-test: A standard benchmark for neural theorem proving, used for final evaluation.

The authors created a training set (Dtrain) of 9.6K problems and a validation set (Dval) of 200 problems from the Lean Workbook and miniF2F-valid datasets. For their final large-scale experiment, they used a larger subset of Lean Workbook (11K theorems) excluding those in Dval.

Key Insights and Ideas

  • GRPO's "Rank Bias": The core insight is that GRPO doesn't just learn better solutions; it learns to only reinforce the most likely solutions, neglecting the long tail of rare but correct ones. This is a fundamental limitation for tasks requiring multiple attempts.
  • Unlikeliness is Key for Pass@N: To improve performance on metrics like pass@N (where N is large), RL algorithms must specifically increase the probability of low-probability correct solutions. Simply improving the probability of already likely solutions yields diminishing returns.
  • Unlikeliness Reward as a Direct Fix: The proposed "unlikeliness reward" directly targets this bias by making rare correct solutions more attractive to the learning algorithm.
  • PPO Epochs as a Complementary Tweak: While not a primary solution, increasing PPO epochs acts as a helpful secondary mechanism to expose the model to less likely samples.
  • Rank Bias vs. Clipping Bias: The paper argues that GRPO's rank bias is a distinct phenomenon from "clipping bias" (where the clipping mechanism itself favors high-probability outputs), suggesting that simply relaxing clipping isn't enough.

Key Results

  • Improved Pass@N: The "unlikeliness reward" significantly boosts pass@N performance, especially for larger values of N, outperforming standard GRPO.
  • Increased Sample Diversity: The unlikeliness reward also leads to more diverse proof generation, preventing the model from collapsing into a narrow set of solutions.
  • Competitive Performance: The authors' revised GRPO recipe, incorporating unlikeliness reward and increased PPO epochs, achieves competitive performance with state-of-the-art models like DeepSeek-Prover-V1.5-RL on the miniF2F-test benchmark.
  • GRPO-Default's Failure: Standard GRPO was shown to improve pass@N for small N but degrade performance for larger N on their validation set.
  • Unlikeliness Reward Reverses Rank Bias: Analysis of "uplift rates" (how much GRPO increases the probability of a sample) shows that GRPO-Unlikeliness-2 effectively reinforces low-probability solutions, unlike GRPO-Default which favors high-probability ones.

Limitations and Future Work

  • Lightweight Solution: The authors acknowledge that their solution is lightweight and that future work could explore other strategies for uniformly reinforcing correct samples or optimizing for specific inference-time algorithms.
  • Inference-Aware RL: Developing inference-aware RL algorithms that are efficient to train remains an open challenge.
  • Complex Reasoning Paths: The paper notes that GRPO's behavior might differ qualitatively in more complex reasoning scenarios involving planning, backtracking, or self-critique, suggesting future work to explore how methods that amplify rare correct solutions can enhance exploration and generalization in such models.
  • Hyperparameter Tuning: While they found increased PPO epochs helpful, it also made training slower and potentially unstable, suggesting a need for careful tuning.

Summary updated

BibTeX
@misc{he2025rewarding,
  author = {Andre Wang He and Daniel Fried and Sean Welleck},
  title = {{Rewarding the Unlikely: Lifting GRPO Beyond Distribution Sharpening}},
  year = {2025},
  eprint = {2506.02355},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2506.02355},
}
Figure