Enhancing Efficiency and Exploration in Reinforcement Learning for LLMs

Mengqi Liao, Xiangyu Xi, Ruinian Chen, Jia Leng, Yangen Hu, Ke Zeng, Shuai Liu, Huaiyu Wan · DOI · OpenReview

TL;DR

This paper tackles the inefficiency and exploration limitations of using Reinforcement Learning (RL) to train Large Language Models (LLMs). They propose a novel method to dynamically allocate training "rollouts" based on question difficulty, saving resources on easy questions and focusing on hard ones. Additionally, they introduce a temperature scheduler to maintain stable policy entropy, encouraging better exploration without sacrificing precision.

What Problem Does This Paper Address?

Large Language Models (LLMs) are increasingly being trained with Reinforcement Learning (RL) to improve their reasoning and problem-solving abilities, especially in complex domains like mathematics. However, current RL approaches for LLMs suffer from two main issues:

  1. Inefficiency: They often allocate the same amount of training "rollouts" (i.e., attempts to generate an answer and receive feedback) to every question, regardless of its difficulty. This is wasteful because simple questions, which an LLM can already answer reasonably well, don't benefit much from extensive RL training. Conversely, challenging questions require many more rollouts to explore potential solutions and learn effectively.
  2. Limited Exploration: While RL aims to improve response precision, it can sometimes lead LLMs to focus too narrowly on high-reward paths, potentially neglecting other correct or creative solutions. This can result in a performance plateau or even a drop compared to the base LLM before RL tuning. Standard techniques like entropy regularization, meant to boost exploration, can sometimes destabilize training or lead to model collapse, especially with sparse rewards common in rule-based RL.

Methods

The authors introduce two key innovations:

  1. Dynamic Rollout Budget Allocation: Instead of a fixed number of rollouts per question, they propose a mechanism to dynamically adjust this budget.
  2. Question Difficulty Modeling: They estimate question difficulty based on the cumulative average reward and ranking of answers during training iterations. Questions with lower average rewards are considered harder.
  3. Budget Reallocation: Rollout budgets are transferred from easier questions to more challenging ones. This is managed by defining minimum and maximum sampling budgets (Gmin, Gmax) and a total budget per batch, ensuring efficient resource utilization. They also incorporate a curriculum learning-like approach where Gmin and Gmax are gradually adjusted over epochs.
  4. Adaptive Temperature Scheduling: To encourage stable exploration, they propose a temperature scheduler for the LLM's output distribution.
  5. Maintaining Stable Entropy: Standard entropy regularization can introduce harmful gradients. This new method aims to maintain a stable policy entropy level by adaptively adjusting the temperature parameter of the softmax distribution used for token generation. This ensures consistent exploration without destabilizing the training process.
  6. Annealing Mechanism: An annealing mechanism is also introduced. In the early stages of training, higher exploration is encouraged. As training progresses, the mechanism gradually reduces the expected entropy, shifting the focus towards exploiting high-value actions for better precision.

Datasets

The paper uses several established datasets for training and evaluation:

  • Training Datasets: MATH, AIME 1983-2023, Omni-MATH, and AMC (prior to 2023). They also mention processing the DeepScaleR 40k dataset and filtering it to reduce simple problems.
  • Evaluation Benchmarks: AIME 2024, AMC 2023, MATH 500, and OlympiadBench.

Key Insights and Ideas

  • Difficulty-Aware RL is Crucial: The core idea that not all problems are created equal in RL training is fundamental. Tailoring resource allocation (rollouts) to problem difficulty is a straightforward yet powerful way to boost efficiency.
  • Exploration Needs Nuance: Simply adding entropy regularization isn't always the answer for exploration. The paper highlights that it can sometimes hurt performance. A more controlled approach, like adaptive temperature scheduling, is needed to balance exploration and exploitation effectively.
  • Annealing for Gradual Focus: The annealing mechanism provides a smooth transition from exploration to exploitation, mimicking a learning curriculum and potentially leading to more robust final models.
  • Pass@k as a Measure of Exploration: The authors emphasize using pass@k metrics (especially pass@16) as they better reflect a model's ability to find diverse solution paths, which is a direct outcome of good exploration.

Key Results

  • Performance Gains: The proposed method (integrating dynamic rollout allocation, temperature scheduling, and annealing) significantly outperforms baselines like GRPO and DAPO on the AIME benchmark. For the 7B model, they achieved a 5.31% increase in pass@1 and a 3.33% increase in pass@16 on AIME 2024 compared to training with GRPO only.
  • Improved Pass@16: Across various benchmarks, their method consistently shows higher pass@16 scores, indicating enhanced exploratory potential.
  • Stability: The temperature scheduler leads to lower variance in validation accuracy during training, suggesting more stable learning.
  • Ablation Studies: Removing dynamic rollout budgeting significantly degrades performance on the most challenging AIME benchmark, highlighting its importance.

Limitations and Future Work

  • Annealing vs. Temperature Scheduling: The paper notes that annealing might be more beneficial for simpler problems, while maintaining higher entropy (without annealing) is better for more challenging ones. They suggest exploring setting different temperatures for problems of varying difficulty.
  • Rollout Budget Scaling: They acknowledge that increasing G and Gmax (the minimum and maximum rollout budgets) could further amplify the effectiveness of dynamic rollout budget allocation, but this was limited by computational resources.
  • Domain and Algorithm Scope: Experiments were limited to GRPO and the mathematics domain. They believe the approach is generalizable to other RL algorithms and domains but did not explore this extensively due to resource constraints.
  • Difficulty Metric: Problem difficulty was modeled using cumulative average reward. They suggest exploring other methods for difficulty assessment.

Summary updated

BibTeX
@misc{liao2025enhancing,
  author = {Mengqi Liao and Xiangyu Xi and Ruinian Chen and Jia Leng and Yangen Hu and Ke Zeng and Shuai Liu and Huaiyu Wan},
  title = {{Enhancing Efficiency and Exploration in Reinforcement Learning for LLMs}},
  year = {2025},
  eprint = {2505.18573},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2505.18573},
}
Figure