Abstract
Reinforcement Learning (RL) via Group Relative Policy Optimization (GRPO) has significantly advanced Large Language Model (LLM) reasoning. However, standard GRPO often suffers from "distribution sharpening," where the model over-prioritizes high-probability solutions at the expense of diversity, harming multi-sample performance (pass@N). We introduce an unlikeliness reward that up-weights rare correct solutions, effectively lifting the long tail of the distribution. Applied to formal theorem proving in Lean 4, our method recovers sample diversity and achieves competitive results on the miniF2F benchmark.
Introduction
Reinforcement Learning is the primary driver for enhancing reasoning in LLMs, with GRPO emerging as a standard algorithm. Despite its success in improving single-attempt accuracy (pass@1), researchers have observed a decline in performance when models are given multiple attempts (pass@N for large N). This paper identifies "rank bias" as the cause: the optimizer tends to reinforce already-probable solutions, leading to a narrow output distribution. We propose a revised training recipe that rewards unlikely but correct solutions to maintain and recover diversity.
The Problem: Distribution Sharpening and Rank Bias
Distribution sharpening occurs when a model "doubles down" on solutions it already finds easy. In domains like mathematics or code generation, where verifiers can check thousands of potential answers, a diverse set of solutions is crucial.
The authors demonstrate that GRPO’s failure to improve pass@N stems from "rank bias." High-probability solutions offer a "path of least resistance" for gradients. Consequently, the model ignores rare solutions necessary for solving complex problems, causing diversity to collapse monotonically during standard training.
Methodology: Rewarding the Unlikely
To combat rank bias, we propose two primary interventions:
- Unlikeliness Reward: We modify the reward function to include a multiplicative penalty for solutions with high probability under the current model. Correct but "easy" proofs receive reduced rewards, while rare, low-probability correct proofs are boosted.
- Increasing PPO Epochs: Increasing optimization steps per batch (to 2 or 3 epochs) forces the model to focus on unlikely samples. Once high-probability samples hit the PPO clipping threshold, the optimizer is compelled to uplift rare samples to continue improving the objective.
These methods are combined with a higher KL-divergence penalty to ensure the model remains anchored to its base capabilities while exploring new proof paths.
Experimental Setup
The study focuses on formal theorem proving using Lean 4.
- Datasets: Training utilized a 10,000-problem subset of the Lean Workbook. Evaluation was performed on the miniF2F benchmark (Valid and Test sets).
- Training: The pipeline is fully open-source, designed to be budget-efficient compared to industrial-scale models.
Results and Discussion
The revised GRPO-Unlikeliness recipe demonstrated superior performance across several metrics:
- Problem Solving: On the training set, the Unlikeliness-2 variant solved 8,065/9,600 problems, outperforming both default GRPO (7,860) and the base model (7,707).
- Pass@N Robustness: Unlike default GRPO, which underperformed the base model at pass@512, the Unlikeliness model maintained a lead, indicating successful discovery of diverse solutions.
- Benchmark Performance: The final model achieved a 48.8% pass@32 on miniF2F-test, rivaling much larger models like DeepSeek-Prover-V1.5-RL.
A key insight was the "diversity recovery" observed in the Unlikeliness-2 variant. While diversity initially drops, the model eventually "self-corrects" as it is forced to explore the long tail of the distribution.
Conclusion and Future Work
By addressing rank bias through unlikeliness rewards and increased optimization epochs, we can lift GRPO beyond simple distribution sharpening. While this approach involves a slight trade-off in pass@1 accuracy and increased training costs, the gains in multi-sample reasoning are substantial. Future work will investigate applying these techniques to "thinking" models with long reasoning chains, where identifying "unlikely" but brilliant insights is critical.
Summary updated