Introduction
Reinforcement learning (RL) traditionally relies on "entropy regularization" to encourage models to explore. However, this classic technique often fails when applied to Large Language Models (LLMs) due to their massive vocabularies and the sparsity of correct answers. This paper introduces AEnt (Adaptive Entropy regularization with token space clamping), a novel method that restricts entropy calculations to a smaller, high-probability token space and dynamically adjusts its strength. AEnt prevents premature convergence, stabilizes training, and consistently boosts LLM reasoning performance on complex math benchmarks.
The Problem: Massive Vocabularies and Entropy Collapse
In standard RL—like training a robot to walk—algorithms such as PPO or SAC use an entropy bonus. By rewarding the model for maintaining higher entropy (randomness or uncertainty in its policy), the model is forced to explore different actions rather than getting stuck repeating sub-optimal behavior.
However, researchers have noticed a frustrating quirk in LLM post-training: adding an entropy bonus yields weak to no performance gains. The authors prove mathematically that standard entropy regularization introduces a massive bias in LLMs. Because the "action space" (the LLM's vocabulary) is enormous—often over 100,000 tokens—and the "optimal actions" (the exact right tokens for a math proof) are incredibly sparse, pushing the model to explore all tokens equally just adds noise. It forces the model to consider complete gibberish, ruining the optimization process.
Conversely, without any entropy control, LLMs suffer from "entropy collapse." The model locks onto a single reasoning path too early, the policy gradient drops to zero, and learning completely halts even if the optimal answer hasn't been found.
The Solution: AEnt
To resolve this, the authors propose AEnt, which modifies standard policy optimization (like GRPO) in two key ways:
- Token Space Clamping: Instead of calculating the entropy bonus over the entire vocabulary, AEnt "clamps" the space. It only calculates entropy over the top $(1-p)$ percent of tokens—the ones the base model actually assigns a reasonable probability to. This forces the model to explore plausible alternative reasoning steps rather than exploring completely irrelevant or incorrect tokens.
- Adaptive Coefficient: In traditional RL, the weight of the entropy bonus ($\lambda$) is usually fixed. In LLMs, a fixed $\lambda$ can cause the model's entropy to explode mid-training, leading to endless, rambling responses. AEnt dynamically adjusts $\lambda$: if the policy's entropy drops below a target threshold, $\lambda$ increases to boost exploration; if entropy gets too high, $\lambda$ decreases to focus on reward maximization.
Key Results and Insights
The authors evaluated AEnt using base models like Qwen2.5-math-1.5b, DeepSeek-R1-distilled-Qwen-1.5b, and Qwen2.5-math-7b across rigorous math benchmarks (AIME 2024, MATH-Hard, MATH-500, AMC23, MinervaMath, and OlympiadBench).
- Consistent Benchmark Wins: AEnt outperformed standard GRPO and traditional Entropy Regularization (EntReg) on 5 out of 6 benchmarks. For instance, in the DeepSeek-R1-distilled-Qwen-1.5b setting, AEnt achieved 0.882 on MATH-500 (vs. GRPO's 0.865) and 0.392 on AIME24 (vs. GRPO's 0.367).
- Smart Exploration over Blind Exploration: By clamping the entropy to only the top tokens, the model explores variations of good reasoning. The paper provides a theoretical bound showing that the bias introduced by standard entropy regularization scales with the size of the action space and the sparsity of optimal actions, explaining why the traditional trick fails in the LLM era.
- Overcoming the Plateau: Training curves show that standard GRPO's entropy collapses early (around step 175), causing its test score to permanently plateau. AEnt maintains a healthy, stable entropy level, allowing the model's test score to continue climbing long after GRPO gets stuck.
Limitations and Future Work
While AEnt shows significant empirical success, the authors acknowledge a few limitations. First, there are theoretical gaps; while they provide strong proofs for why standard entropy fails, a formal theoretical analysis of the new clamped entropy metric is left for future work. Second, AEnt consumes slightly more compute per step than standard GRPO due to the extra forward/backward passes required for the clamped entropy regularizer and slightly longer generated responses.
Future directions include finding better ways to define the "clamped space." Instead of just taking the top-$p$ tokens, future work could group similar tokens, remove redundant actions, or calculate entropy in a latent representation space rather than at the raw token level. Testing AEnt on much larger models (e.g., 70B+) is also a promising next step.
Summary updated