Reinforcement Learning (RL) has become the go-to method for fine-tuning Large Language Models (LLMs), especially for complex reasoning tasks like those seen in "o1-style" models. However, a major bottleneck remains: the rollout phase. While training happens in parallel, generating responses (rollout) is sequential and highly variable. This variability creates a "long tail" of straggler requests that leave expensive GPUs sitting idle while they wait for the last few responses to finish.
TAILROLL is a new online scheduler designed to eliminate this waste by dynamically rebalancing work and even terminating "useless" stragglers early.
TL;DR
TAILROLL accelerates RL-based LLM post-training by addressing the "rollout barrier" through two key mechanisms: in-flight request migration between engines and sufficiency-gated early termination for group-based RL algorithms like GRPO. It reduces rollout idle time by up to 74% and cuts end-to-end training time by over 20% without sacrificing model performance.
What Problem Does This Paper Address?
In RL post-training (like PPO or GRPO), the system generates multiple responses for each prompt, scores them, and then updates the model. The "rollout" (generation) phase often accounts for 50–76% of the total training step time.
The core issue is multimodal-heavy response lengths. Most responses might be short, but a small fraction (the "tail") can be orders of magnitude longer. Because a training step usually waits for the entire batch to finish before proceeding, engines that finish early sit idle. This creates "bubbles" of wasted accelerator capacity.
The authors distinguish between two types of waste:
- Imbalance Waste ($W_{imb}$): Caused by uneven request placement or contention during decoding.
- Straggler Waste ($W_{strag}$): Caused by waiting for the single longest request in the batch.
Methods
TAILROLL introduces a lightweight control layer that operates an observe–decide–execute loop. It monitors engine load every few seconds and intervenes at "chunk" boundaries (e.g., every 512 tokens).
1. In-Flight Migration
To fix imbalance, TAILROLL moves active decoding requests from overloaded engines to idle ones. Instead of the complex and slow process of transferring a massive KV-cache, TAILROLL uses stateless handoff. It sends only the prompt and the tokens generated so far to the target engine. The target engine then performs a single, fast parallel prefill to reconstruct the KV-cache before resuming sequential decoding. This is efficient because prefill is roughly 10x faster per token than decoding.
2. Sufficiency-Gated Termination
For algorithms like GRPO, where rewards are calculated relative to a group of "sibling" responses, the marginal value of a single straggler is low if enough other siblings have already finished. TAILROLL can abort a straggler once a minimum number of siblings ($k_{min}$) are complete. The partial response is kept (with the loss masked) so the training step can proceed immediately.
Datasets
The authors evaluated TAILROLL across ten configurations using Qwen3-14B and Qwen3-32B models on several workloads:
- Multimodal (Normal/Heavy): Replayed from Azure multimodal inference traces.
- Straggler Pool: A manufactured distribution with a rare 0.4% extreme tail.
- CodeAgent: Multi-turn code-generation traces.
- Multitask: A mix of multimodal, coding, and math tasks.
- AMC12: A native long-Chain-of-Thought (CoT) reasoning workload based on competition math problems.
Key Insights and Ideas
- The Rollout Barrier is Real: In every workload tested, the longest request ($L$) was the binding constraint on step time, not the average load.
- Asynchrony Isn't Enough: While asynchronous training (processing one batch while generating the next) masks some latency, it doesn't eliminate the idle time within the rollout window. In fact, it can worsen imbalance as new requests pile onto already-loaded engines.
- Migration vs. Termination: Migration helps when the tail is still "deeply batched" (many requests running), as it relieves contention. Termination is the only way to shorten the step once the tail has drained to a single request.
- Stateless is Faster: Re-prefilling a migrated request is often cheaper than the overhead of managing a shared KV-cache pool or transferring KV blocks over the network.
Key Results
- Waste Reduction: TAILROLL reduced the "bubble ratio" (idle time) by 21–74% across all workloads.
- Speedups: It cut rollout time by 24–34% and total end-to-end training step time by 21–22% on long-CoT tasks.
- Throughput: Generation throughput increased by up to 33%.
- Latency: p95 request latency dropped by 28–37%, and p95 Time-to-First-Token (TTFT) improved by 71–88% due to reduced engine contention.
- Model Quality: Training runs showed that TAILROLL preserved or even slightly improved the final reward compared to the baseline.
Limitations and Future Work
- Context Length: For extremely long-context or multi-turn trajectories, the cost of re-prefill might eventually exceed the cost of KV-cache transfer. Future work could allow the scheduler to choose between the two.
- Vision-Language Models: The current work focuses on text; extending this to balance the distinct resource demands of vision encoding vs. text decoding is a promising direction.
- Adaptive Parameters: The authors suggest using online trajectory-length statistics to adaptively tune termination thresholds ($k_{min}$) during a run.
Summary updated