TL;DR
Standard reinforcement learning for LLM reasoning often over-optimizes for accuracy, causing models to plateau and lose their ability to explore alternative solutions. This paper demonstrates that token-level entropy strongly correlates with crucial exploratory actions like logical transitions and self-correction. By adding a simple, one-line entropy-based adjustment to the RL advantage function, the authors significantly boost reasoning depth and Pass@K performance.
What Problem Does This Paper Address?
Reinforcement Learning from Verifiable Rewards (RLVR) has driven massive breakthroughs in scaling up LLM reasoning capabilities. However, purely accuracy-driven objectives suffer from a major drawback: they heavily incentivize exploitation over exploration. As training progresses, models quickly converge on narrow, over-optimized paths, leading to a performance plateau.
Strikingly, while RL-tuned models routinely beat their base models on Pass@1 accuracy, recent studies show they are often surpassed by the un-tuned base models on Pass@K metrics when K is very large. This indicates that standard RL fine-tuning inadvertently destroys the model's latent exploratory capacity, preventing it from finding diverse or rare correct solutions when given multiple attempts.
Methods
The authors introduce Entropy-Based Advantage Shaping, a minimal modification to standard policy gradient algorithms (like PPO and GRPO) requiring just a single line of code.
Instead of traditional maximum-entropy RL—which adds an entropy term directly to the loss function and can cause training instability—this approach modifies the advantage function ($A_t$) directly:
$$A_t^{\text{shaped}} = At + \min\left(\alpha \cdot H_t^{\text{detach}}, \frac{|A_t|}{\kappa}\right)$$
Key design features include:
- Gradient Detachment: The token entropy term ($H_t^{\text{detach}}$) is detached from the computational graph during backpropagation. This means it acts as a fixed offset to adjust the update magnitude without altering the original policy gradient optimization direction.
- Clipped Bonus: The bonus is capped by a fraction of the absolute original advantage ($\frac{|A_t|}{\kappa}$). This ensures the entropy term never dominates or reverses the sign of the true reward signal, preserving the fundamental direction of optimization.
This formulation creates a self-regulating loop: it amplifies the advantage of exploratory actions when the model is highly uncertain, but naturally diminishes as the model gains confidence and token entropy drops.
Datasets
The method was evaluated across several challenging mathematical reasoning benchmarks:
- AIME 2024 & AIME 2025 (American Invitational Mathematics Examination)
- AMC 2023 (American Mathematics Competitions)
- MATH500
Additionally, the authors validated the generalizability of their findings on code generation tasks using LiveCodeBench.
Key Insights and Ideas
- Entropy is a Signal, Not Just Noise: High token-level entropy isn't random uncertainty; it maps directly to three critical exploratory behaviors: pivotal tokens (logical connectors like "however", "because"), reflective actions (self-verification phrases like "let's check if this is correct"), and semantically rare solutions that deviate from the base model's typical output distribution.
- Tension Between Entropy and Confidence: Unlike standard max-entropy methods that uniformly encourage uncertainty, this method leverages the natural decay of entropy. Early in training, the model explores widely; as it discovers successful reasoning paths, confidence increases, entropy drops, and the exploration bonus automatically phases out, preventing reward hacking.
- Longer, Not More Repetitive: Encouraging exploration leads to significantly longer reasoning chains (more tokens generated). Crucially, it does not increase the n-gram repetition rate, proving that the model spends more time performing genuine multi-step reasoning rather than getting stuck in repetitive loops.
Key Results
- Breaking the Pass@K Ceiling: On the highly challenging AIME 2025 benchmark, the proposed method combined with PPO achieved a Pass@256 score of 56.7%, compared to 43.3% for standard PPO.
- Consistent Pass@1 Gains: Across all tested configurations (PPO and GRPO), adding the entropy advantage consistently improved Pass@1 accuracy (e.g., boosting GRPO on MATH500 from 55.3% to 58.5%).
- Stable Training Dynamics: Unlike explicit entropy regularization, which often suffers from sudden entropy spikes and optimization instability, the advantage-shaping approach maintains smooth, predictable training metrics throughout the entire training run.
Limitations and Future Work
- Backbone Dependencies: The method relies on base models that already possess latent reasoning capabilities (like the Qwen2.5 series). When tested on models lacking pre-existing reasoning traces (like vanilla Llama-3), the models quickly abandoned intermediate reasoning steps altogether, suggesting that prior supervised fine-tuning (SFT) on reasoning data remains a prerequisite.
- Domain Scope: Evaluation was focused primarily on highly structured, verifiable domains (mathematics and coding). Extending this exploration framework to more subjective, open-ended, or multi-modal reasoning tasks remains an open area for future research.
Summary updated