TL;DR
Large language model (LLM) reinforcement learning is dominated by rollout generation, where a few exceptionally long outputs can stall an entire batch and leave GPUs sitting idle. APRIL (Active Partial Rollouts) over-provisions rollout requests, terminates generation as soon as the target quota of completed rollouts is met, and buffers incomplete trajectories to resume in subsequent steps. By eliminating GPU idle "bubbles" without throwing away partial tokens, APRIL boosts rollout throughput by an average of 22.5% (up to 49.5%) and slightly improves final task accuracy.
What Problem Does This Paper Address?
In modern LLM reinforcement learning (RL) frameworks—such as those powering DeepSeek-R1 or OpenAI's reasoning models—the rollout phase accounts for over 90% of total training wall-clock time. Standard synchronous RL engines dispatch batches of prompts and wait until every sample finishes autoregressive generation before updating model weights.
Because reasoning trajectory lengths follow a heavy long-tail distribution, faster-generating instances finish early while a small minority run out to the maximum context length (e.g., 16,384 or 32,768 tokens). This causes severe GPU underutilization (inference "bubbles"). While fully asynchronous RL pipelines decouple generation from updates to avoid idling, they introduce extreme policy staleness, architectural complexity, and training instability.
Methods
APRIL introduces a preemptive scheduling strategy at the RL orchestration layer that retains synchronous training dynamics while borrowing asynchronous throughput benefits:
- Over-Provisioned Generation: At training step $k$, the inference engine launches $N'$ requests (e.g., $2\times$ the target batch size $N$).
- Early Termination: As soon as $N$ completed rollouts are collected, the engine halts generation across remaining sequences.
- Continuation Buffering: Instead of discarding tokens from unfinished trajectories, APRIL caches their intermediate states in a continuation buffer.
- Prioritized Resumption: In step $k+1$, incomplete rollouts are pulled from the buffer and resumed before newly scheduled prompts are initiated.
- Instance-Level Grouping: For algorithms requiring grouped baseline rewards (e.g., GRPO), rollouts are tracked per input prompt instance (e.g., 8 rollouts per prompt) so groups complete intact.
- System Optimization: Integrated into the open-source slime RL framework, APRIL incorporates a HIP port of
torch_memory_saveron AMD MI300 GPUs (and NVIDIA H100s) to dynamically pause/resume memory allocations across alternating rollout and training phases without breaking CUDA/HIP graph execution.
Standard: [--- Rollout 1 (Fast) ---][ Idle / Bubble ] -> [ Train ]
[----------- Rollout 2 (Long-Tail) -------------] -> [ Train ]
APRIL: [--- Prompt A (Done) ---] -> [ Train ]
[--- Prompt B (Partial) -][ Paused & Buffered ] -> [ Next Step ]
Datasets
The authors evaluate APRIL on math reasoning tasks using:
- Training Datasets:
DAPO-Math-17k,DeepMath-103K, andDeepScaleR. - Evaluation Benchmark:
AIME-2024(American Invitational Mathematics Examination 2024), assessing competition-grade reasoning. - Models Evaluated: Qwen3-4B and Qwen3-8B using GRPO and DAPO algorithms.
Key Insights and Ideas
- Intra-group variance is dramatically smaller than inter-group variance: Rollout lengths across different prompts fluctuate wildly ($\sigma \approx 4,000\text{--}4,500$ tokens), but rollouts sampled from the same prompt have much lower variance ($\sigma < 1,500$ tokens for GRPO). Grouping rollouts at the instance level prevents intra-group long-tail bottlenecks.
- Mild off-policy data acts as an implicit regularizer: Carrying over partial rollouts means roughly 40% of tokens in step $k+1$ were generated by recent policy checkpoints ($\pi(\theta_{k-m})$ where $m \le 5$). Rather than destabilizing policy gradients, this mild behavioral diversity prevented "length explosion" late in training—a failure mode observed in standard baselines where generations hit maximum length limits and cause reward collapse.
Key Results
- Throughput Gains: Rollout throughput (tokens generated per second across 8 GPUs) increased by an average of 22.5%.
- On GRPO: +31.3% (Qwen3-4B) and +36.9% (Qwen3-8B), peaking at a +49.5% throughput speedup on DeepMath-103K.
- On DAPO: +10.8% (Qwen3-4B) and +9.1% (Qwen3-8B).
- Downstream Accuracy: APRIL improved final AIME-2024 benchmark accuracy by an average of 2.1% over the synchronous baseline.
- Notable gains included +8.2% on Qwen3-4B (GRPO, DeepMath) and +12.8% on Qwen3-4B (DAPO, DeepMath: 66.3% vs. 53.5%).
Limitations and Future Work
- Bounded Policy Staleness: In tested setups, rollouts completed within at most 5 policy iterations ($m \le 5$). How APRIL behaves if severe tail rollouts span many more update steps remains an open question.
- Domain Generalization: Empirical validation focused on mathematical reasoning with verifiable reward functions. Extending APRIL to non-verifiable, open-ended instruction following or complex multi-step agent environments with larger intra-instance variance remains for future study.
Summary updated