Abstract
Reinforcement Learning with Verifiable Rewards (RLVR) has become a cornerstone for enhancing the complex reasoning capabilities of Large Language Models (LLMs). However, the internal dynamics of how models learn during this process have remained largely opaque. This paper investigates the fine-grained evolution of policy entropy during RLVR training. We identify two distinct learning phases: an initial stage focused on eliminating negative behaviors (e.g., formatting errors) and a subsequent plateau stage where the model refines logical reasoning. Based on these insights, we propose two novel advantage-shaping techniques—PPL-based and Position-based—that prioritize high-impact tokens and coherent reasoning paths. Our methods demonstrate significant performance gains in mathematical reasoning benchmarks, with models exhibiting longer, more detailed reasoning chains.
Introduction
The success of models like DeepSeekMath and OpenAI's o1 has highlighted the power of Reinforcement Learning with Verifiable Rewards (RLVR) for complex reasoning. A central challenge in RLVR is managing the entropy-performance trade-off: balancing the exploration of new reasoning strategies with the exploitation of known correct paths. While previous work has viewed this trade-off through a coarse lens, this study provides a microscopic analysis of entropy dynamics across training steps, response sequences, and individual token positions.
Empirical Analysis of RLVR Dynamics
By analyzing the Group Relative Policy Optimization (GRPO) training process on Qwen2.5 models, we uncovered a two-stage learning trajectory that explains how models transition from basic instruction following to complex reasoning.
The Two-Phase Learning Process
Training begins with a "rising stage" characterized by a rapid increase in accuracy. This surge is primarily driven by the model learning what not to do. As shown in Figure 1, entropy on negative samples (incorrect responses) drops significantly as the model quickly learns to avoid formatting issues, language inconsistencies, and irrelevant content.
Following this is a "plateau stage" where accuracy gains slow. In this phase, learning concentrates on a small subset of high-entropy tokens. Interestingly, the tokens driving the most significant parameter updates shift from general semantic text to "formal reasoning" tokens, such as numbers, mathematical operators, and logical connectors.
Proposed Methods: Advantage Shaping
Leveraging these insights, we introduce two reward-shaping techniques to focus RL updates on the most impactful components of a reasoning chain.
1. PPL-based Advantage Shaping
We observed that the most robust learning signals originate from low-perplexity (PPL) responses. High-PPL explorations often result in chaotic, out-of-distribution reasoning that degrades model performance. Our PPL-based shaping adjusts token advantages to down-weight updates from high-PPL samples, ensuring the model prioritizes fluent and coherent reasoning paths.
2. Position-based Advantage Shaping
Token entropy typically follows a U-shaped curve, peaking at the start and end of a response. We found that optimizing tokens appearing later in the sequence—where final decisions and answer finalization occur—yields superior performance. This method applies a multiplier to the advantage of late-position tokens during the plateau stage, encouraging the model to "think longer" and engage in self-correction.
Key Results
We evaluated our methods using the STILL-3 dataset (90K math problems) across several benchmarks, including AIME and MATH500. The proposed advantage-shaping methods consistently outperformed the standard GRPO baseline. For the Qwen2.5-Math-7B model, we observed an average accuracy improvement of 2.31% across math benchmarks.
Beyond quantitative gains, models trained with targeted reward shaping produced significantly more detailed reasoning. The average response length for the PPL-shaping model increased from ~969 to ~1841 tokens. Case studies revealed deeper step-by-step derivations and enhanced self-correction behaviors compared to the baseline.
Conclusion
This work demystifies the entropy dynamics of RLVR, revealing that effective learning is highly localized in time and sequence position. By focusing reinforcement on low-perplexity, late-sequence tokens, we can significantly enhance the reasoning depth and accuracy of LLMs. Future research will explore the applicability of these dynamics to non-mathematical domains such as coding and open-ended logic.
Summary updated