APRIL: Active Partial Rollouts in Reinforcement Learning to Tame Long-tail Generation

Yuzhen Zhou, Jiajun Li, Yusheng Su, Gowtham Ramesh, Zilin Zhu, Xiang Long, Chenyang Zhao, Jin Pan, Xiaodong Yu, Ze Wang, Kangrui Du, Jialian Wu, Ximeng Sun, Jiang Liu, Qiaolin Yu, Hao Chen, Zicheng Liu, Emad Barsoum

TL;DR

Reinforcement learning (RL) for large language models spends over 90% of its time generating rollouts, a process severely bottlenecked by a "long-tail" distribution where a few exceptionally long responses keep GPUs idle. This paper introduces APRIL (Active Partial Rollouts in Reinforcement Learning), a framework-agnostic scheduling mechanism that over-provisions rollout requests, stops early when the target batch size is met, and recycles incomplete rollouts for future iterations. APRIL boosts rollout throughput by 22.5% on average while surprisingly improving final model accuracy by 2.1%.

What Problem Does This Paper Address?

Large-scale RL (via algorithms like GRPO or PPO) has become essential for unlocking reasoning and coding capabilities in state-of-the-art models like DeepSeek-R1 and GPT-o. However, it is incredibly computationally expensive. The primary culprit is the rollout phase—where the model generates text responses to prompts so they can be scored and used for policy updates. This phase typically accounts for over 90% of total RL training time.

In standard synchronous RL frameworks, a batch of prompts is sent to the inference engine, and the system must wait until every single response is fully generated before updating the model weights. Because LLM generation length is highly variable, math and coding tasks often exhibit a "long-tail" distribution: a few outlier prompts require massive reasoning traces, causing the entire batch to stall while faster GPU workers sit completely idle. This creates a "training bubble" that severely tanks hardware utilization.

Figure 1: (Above) In the standard synchronous RL training paradigm, GPU utilization is often suboptimal. (Below) Our APRIL mechanism mitigates this issue by reducing the bubble during RL.

Methods

The authors propose APRIL (Active Partial Rollouts in Reinforcement Learning) to eliminate these idle bubbles through a clever preemptive scheduling strategy at the system layer:

  1. Over-provisioned Generation: Instead of requesting exactly $N$ rollouts (the target batch size), APRIL requests $N'$ rollouts ($N' > N$, typically doubling the batch size).
  2. Early Termination: As soon as the required $N$ rollout sequences finish completely, the inference engine actively aborts the remaining unfinished rollouts.
  3. Buffering Continuations: Instead of throwing away these partial, aborted responses, APRIL saves them in a continuation buffer.
  4. Prioritized Resumption: In the next training step, APRIL pulls these incomplete rollouts from the buffer first and resumes their generation from where they left off, filling the rest of the over-provisioned batch with new prompts.
Figure 2: APRIL over-provisions instances, stops once the target number of instances finishes their rollouts, and updates the policy model. Incomplete rollouts are stored in the data buffer and resumed in later steps, thereby reducing idle time and improving training efficiency.

This approach introduces a mild "off-policy" element, as a resumed rollout was initiated under an older policy version but completed under the current one. However, the authors show this mix actually benefits training.

Datasets

The authors evaluated APRIL across three math reasoning datasets for training:

  • DAPO-Math-17k
  • DeepMath-103K
  • DeepScaleR

To evaluate final performance, they used the highly challenging AIME-2024 benchmark (American Invitational Mathematics Examination), which serves as a standard for assessing advanced mathematical reasoning in LLMs.

Key Insights and Ideas

  • The Long-Tail is Severe: Quantitative analysis reveals that while more than half of rollout responses finish within a few thousand tokens, a long tail of outliers stretches all the way to the maximum limit (e.g., 32k tokens), proving that synchronous waiting is fundamentally flawed.
Figure 3: Distribution of rollout response lengths re- veals a pronounced long-tail peak in rollout of RL.
  • Off-Policy Data as a Regularizer: Intuitively, mixing data from previous policy versions might destabilize training. Surprisingly, APRIL found the opposite. Tokens carried over from truncated instances made up about 40% of subsequent steps, yet this acted as a regularizer. It prevented the policy from exploding into pathologically long generation modes late in training, improving overall stability.
  • Intra-group Homogeneity: LLM generation lengths for the same prompt are highly homogeneous compared to lengths across different prompts. By managing completion at the instance/prompt level, APRIL avoids re-introducing a severe long-tail effect within the group itself.

Key Results

  • Throughput Gains: APRIL improved token throughput by 22.5% on average across different models (Qwen3-4B, Qwen3-8B) and algorithms (GRPO, DAPO, GSPO), reaching up to 49.5% for Qwen3-8B using GRPO on the DeepMath dataset.
  • Accuracy Boost: Rather than degrading performance, APRIL achieved 2.1% higher final accuracy on average across tasks, with a maximum improvement of 8.2% on GRPO and 12.8% on DAPO for specific configurations.
  • Hardware & Framework Agnostic: APRIL was successfully integrated into the open-source slime RL framework and tested on both NVIDIA H100 and AMD MI300 GPUs. On AMD, they implemented a custom torch_memory_saver extension to handle the memory pressure of co-allocated training and inference engines sharing the same GPUs.

Limitations and Future Work

While APRIL proved highly stable, the authors note that no rollout in their experiments required more than 5 successive policy versions to complete ($m \le 5$). If a rollout were to stall so severely that it depended on excessively old policies (high staleness), it might introduce adverse off-policy effects. Mapping the exact theoretical and practical boundaries of this off-policy tolerance remains an open question for future exploration.

Summary updated

BibTeX
@misc{zhou2025april,
  author = {Yuzhen Zhou and Jiajun Li and Yusheng Su and Gowtham Ramesh and Zilin Zhu and Xiang Long and Chenyang Zhao and Jin Pan and Xiaodong Yu and Ze Wang and Kangrui Du and Jialian Wu and Ximeng Sun and Jiang Liu and Qiaolin Yu and Hao Chen and Zicheng Liu and Emad Barsoum},
  title = {{APRIL: Active Partial Rollouts in Reinforcement Learning to Tame Long-tail Generation}},
  year = {2025},
  eprint = {2509.18521},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2509.18521},
}
Figure