TL;DR
This paper introduces AERO, a novel approach to make Reinforcement Learning from Human Feedback (RLHF) for Large Language Models (LLMs) more efficient. AERO significantly reduces training time and computational cost by adaptively adjusting the number of generated responses (rollouts) per query, while maintaining or even improving performance on reasoning tasks.
What Problem Does This Paper Address?
Reinforcement Learning (RL) is crucial for fine-tuning LLMs to align with human preferences and improve their reasoning abilities. A popular method, Group Relative Policy Optimization (GRPO), generates multiple responses (rollouts) for each query and uses these to update the model. However, a major inefficiency arises when all generated responses for a query are either correct or incorrect. In such cases, the "advantage" signal becomes zero, leading to wasted computation and slower learning. This problem is exacerbated with larger models and complex reasoning tasks, making RLHF prohibitively expensive.
Methods
AERO tackles this inefficiency with a three-pronged adaptive strategy:
- Adaptive Rollout Allocation: Instead of a fixed number of rollouts per query, AERO dynamically adjusts the budget. It uses a small "probe" budget to categorize queries based on their initial success rate. Queries that are difficult (low success rate) might receive more exploration, while easier ones are handled more efficiently.
- Bayesian Posterior Estimation: For queries that are either all-correct or all-incorrect (zero-advantage cases), AERO employs a Bayesian approach. It maintains a posterior distribution over the query's success rate, which provides a stable, non-zero learning signal and prevents the gradient from collapsing.
- Rejection Sampling & Batch Curation: For queries with a mix of correct and incorrect responses but a low overall success rate, AERO uses rejection sampling. It retains all correct responses and strategically downsamples the incorrect ones to achieve a balanced ratio of correct to incorrect samples. This reduces computational overhead without sacrificing learning signal, and theoretical analysis suggests a 1:1 ratio is optimal.
Datasets
- Math Reasoning:
- Training: OpenR1-AERO (40k curated math problems).
- Evaluation: AIME, AMC, MATH-500, MinervaMath, OlympiadBench.
- Code Generation:
- Training: Prime-1.4K (1.4k curated code data).
- Evaluation: APPS, CodeContests, TACO.
Key Insights and Ideas
- Zero-advantage queries are a major bottleneck: The paper quantifies how often these occur and their significant impact on compute efficiency.
- Adaptive strategies are key to efficiency: Simply filtering out problematic queries isn't enough; intelligently reallocating resources and adapting the learning signal is crucial.
- Bayesian priors can stabilize gradients: Using a Beta-Binomial posterior for success rate estimation is a principled way to avoid zero-advantage dead zones.
- Balancing correct/incorrect rollouts is theoretically sound: The 1:1 ratio for rejection sampling is not just an empirical choice but is supported by theoretical analysis aimed at maximizing the policy gradient norm.
Key Results
AERO demonstrates significant improvements in both efficiency and performance:
- Compute Efficiency: Reduces total training compute by ~48% and wall-clock time per step by ~45% on average compared to GRPO.
- Performance: Matches or improves Pass@8 and Avg@8 metrics on math reasoning tasks across Qwen2.5-Math-1.5B, Qwen2.5-7B models, and also shows gains in code generation tasks. For example, on the 7B model, AERO achieves ~48% Avg@8 with significantly less compute than GRPO.
- Strategy Contributions: Ablation studies show that each of AERO's three core strategies contributes to the overall speedup and efficiency gains.
Limitations and Future Work
- Limitations: The paper focuses on specific LLM architectures (Qwen2.5) and reasoning tasks. While the principles are general, direct transferability to vastly different models or task types might require further investigation. The "rescue-threshold" parameter (S) in the iterative rescue phase could be further explored for optimal tuning across different model capabilities and task difficulties.
- Future Work: The authors suggest that AERO's adaptive rollout allocation and Bayesian stabilization techniques are promising directions for future research in efficient RLHF for LLMs. Further exploration of downsampling ratios beyond k=1 and investigating the impact of adaptive strategies on other RL algorithms could be valuable.
Summary updated