RollPacker: Taming Long-Tail Rollouts for RL Post-Training with Tail Batching
Wei Gao (Hong Kong University of Science and Technology), Yuheng Zhao (Hong Kong University of Science and Technology), Dakai An (Hong Kong University of Science and Technology), Tianyuan Wu (Hong Kong University of Science and Technology), Lunxi Cao (Hong Kong University of Science and Technology), Shaopan Xiong (Alibaba Group), Ju Huang (Alibaba Group), Weixun Wang (Alibaba Group), Siran Yang (Alibaba Group), Wenbo Su (Alibaba Group), Jiamang Wang (Alibaba Group), Lin Qu (Alibaba Group), Bo Zheng (Alibaba Group), Wei Wang (Professor · Hong Kong University of Science and Technology)
23rd USENIX Symposium on Networked Systems Design and Implementation (NSDI '26) · Day 2 · Learning at Line Rate
Overview
Reinforcement learning (RL) post-training has become a foundational phase for state-of-the-art Large Language Models (LLMs) such as Qwen, DeepSeek, Kimi, and OpenAI's models, particularly for instilling advanced reasoning and coding capabilities. A standard RLVR (Reinforcement Learning with Verifiable Rewards) workflow iterates over three core stages: rollout, where an actor model generates responses from batches of prompts; reward, where these responses are evaluated; and training, where models update their weights using algorithms like GRPO (Group Relative Policy Optimization). Profiling reveals that the rollout phase dominates over 60% of end-to-end training time across diverse task domains.

Key moments
- 0:00 Introduction and RL post-training rollout bottleneck
- 2:00 Long-tail response distribution and GPU bubble problems
- 3:20 Tail batching mechanism and speculative execution strategy
- 6:30 Preserving training accuracy and quality validation
- 8:50 RollPacker system overview and key components
- 10:10 Parallelism planner and adaptive tensor parallelism selection
- 12:15 Stream trainer design for dynamic GPU scaling
- 13:55 Evaluation results and end-to-end speedup performance
RollPacker: Taming Long-Tail Rollouts for RL Post-Training with Tail Batching
Speakers: Wei Gao (Hong Kong University of Science and Technology); Yuheng Zhao (Hong Kong University of Science and Technology); Dakai An (Hong Kong University of Science and Technology); Tianyuan Wu (Hong Kong University of Science and Technology); Lunxi Cao (Hong Kong University of Science and Technology); Shaopan Xiong (Alibaba Group); Ju Huang (Alibaba Group); Weixun Wang (Alibaba Group); Siran Yang (Alibaba Group); Wenbo Su (Alibaba Group); Jiamang Wang (Alibaba Group); Lin Qu (Alibaba Group); Bo Zheng (Alibaba Group); Wei Wang (Professor, Hong Kong University of Science and Technology)
Conference: USENIX NSDI
YouTube: https://www.youtube.com/watch?v=DzfmJzAzMG0
Overview
Reinforcement learning (RL) post-training has become a foundational phase for state-of-the-art Large Language Models (LLMs) such as Qwen, DeepSeek, Kimi, and OpenAI's models, particularly for instilling advanced reasoning and coding capabilities. A standard RLVR (Reinforcement Learning with Verifiable Rewards) workflow iterates over three core stages: rollout, where an actor model generates responses from batches of prompts; reward, where these responses are evaluated; and training, where models update their weights using algorithms like GRPO (Group Relative Policy Optimization). Profiling reveals that the rollout phase dominates over 60% of end-to-end training time across diverse task domains.
The primary bottleneck in the rollout stage stems from a severe long-tail distribution in response lengths. While most generated responses are short, a small fraction can be up to 30 times longer than the median, causing substantial GPU bubbles and low hardware utilization in synchronous training settings. Existing solutions either attempt state overlapping—which yields limited gains because reward computation consumes less than 15% of pipeline latency—or adopt aggressive asynchronous training that compromises on-policy semantics and degrades accuracy.
To resolve this tension, researchers from the Hong Kong University of Science and Technology and Alibaba Group developed RollPacker, a systems framework built around tail batching. By combining speculative prompt execution, adaptive tensor parallelism planning, LLM-as-a-judge offloading, and a stream trainer, RollPacker achieves more than a 2x end-to-end speedup over standard synchronous baselines while strictly preserving on-policy training accuracy.
Background
▶ Watch: Introduction and RL post-training rollout bottleneck (0:00)
In the systems and machine learning landscape, post-training LLMs via reinforcement learning presents unique distributed systems challenges. Unlike standard supervised fine-tuning (SFT) where sequence lengths are fixed in the dataset, RL rollout generates sequences dynamically based on the current policy's generations. As models tackle complex reasoning and multi-step coding problems, the variance in response lengths explodes.
In synchronous RL training loops, all workers must wait for the slowest generation to complete before moving to the reward and gradient update phases. Consequently, a single outlier response with an extreme token length stalls an entire GPU cluster, creating prominent execution bubbles. Prior attempts to mitigate this have relied on relaxed synchronization to maximize hardware saturation. However, asynchronous updates introduce stale policy data, breaking the mathematical guarantees of on-policy RL and leading to training instability and degraded final model accuracy.
Simultaneously, alternative approaches like state overlapping—overlapping rollout generation with reward computation—fail to move the needle significantly because reward evaluation constitutes a minor fraction of overall step latency. This left a critical gap in the systems literature: how to eliminate rollout tail latency without sacrificing the mathematical rigor and convergence stability of synchronous, on-policy RL training.
Key Findings
▶ Watch: Tail batching mechanism and speculative execution strategy (3:20)
RollPacker demonstrates that taming long-tail rollouts does not require abandoning strict on-policy training semantics. The core findings, architectural discoveries, and benchmark results include:
- Over 2x End-to-End Speedup: RollPacker achieves more than a 2x speedup over standard baseline RL trainers across multiple model scales (7B, 14B, and 33B parameters) and diverse sequence length configurations (up to 33k response lengths).
- Preserved Model Accuracy: Extensive validation across 7B, 14B, and 33B models confirms that tail batching maintains identical validation score trajectories compared to baseline synchronous training, proving that prompt reordering introduces zero accuracy penalty.
- Dynamic Workload Adaptation: The introduction of tail batching effectively balances short, fast rounds with controlled long rounds, eliminating the systemic GPU bubbles caused by length variance.
- KV Cache Pressure Disparity: Speculative execution in short rounds increases concurrent rollout tokens by up to 1.6x compared to long rounds, creating severe, variable KV cache memory pressure that necessitates adaptive system-level resource management.
- Linear Scalability: Scaling batch sizes from 128 to 512 alongside GPU cluster expansion demonstrates that RollPacker maintains its performance advantages and scaling efficiency over baseline architectures.
Technical Deep Dive
▶ Watch: RollPacker system overview and key components (8:50)
The architectural foundation of RollPacker rests on four integrated components designed to handle the asymmetric computational and memory demands of long-tail RL rollouts.
Tail Batching and Speculative Execution
Inspired by speculative execution paradigms from distributed data processing frameworks like Apache Spark, tail batching addresses response length variance by launching redundant prompts and requests. Instead of requesting the exact target batch size, RollPacker launches additional prompts (e.g., launching 4 prompts instead of 3, each generating 4 responses). The system collects the fastest subset that fulfills the quota and aborts the remainder.
To prevent data distribution drift and ensure no prompt is permanently discarded, excluded long prompts are routed to a long prompt queue. Once this queue accumulates enough prompts to form an independent batch, RollPacker triggers a dedicated long round. In this round, the model generates from scratch with the current weights using standard execution (no speculation), ensuring every prompt eventually participates in training while preserving strict on-policy semantics.
Parallelism Planner
Because speculative execution temporarily increases concurrent token generation, short rounds exhibit significantly higher KV cache memory pressure than long rounds. RollPacker introduces an adaptive tensor parallelism (TP) planner that adjusts the TP configuration on a per-step basis. Utilizing offline profiling data combined with online monitoring of preemption counts, the planner dynamically scales TP sizes up or down (halving or doubling) to optimize memory utilization with negligible execution overhead.
Reward Scheduler with LLM-as-a-Judge Offloading
Evaluating complex completions often relies on heavyweight LLM-as-a-judge models. Traditional RL systems dedicate a fixed pool of GPUs exclusively to judge models, resulting in abysmal hardware utilization (often around 20%). RollPacker collocates the judge model directly with the actor model on the rollout GPUs, utilizing MPS (Multi-Process Service) to minimize kernel interference. Furthermore, to reclaim precious GPU memory for the actor's KV cache, RollPacker implements a layer-wise pipeline that offloads the judge model's parameters to host CPU memory.
Stream Trainer
Even with tail batching, long rounds still suffer from internal completion variance. RollPacker addresses this via a stream trainer that dynamically scales down rollout GPUs as responses complete, reassigning them immediately to the training phase. Ongoing rollouts on reclaimed GPUs are migrated to surviving instances using a recomputation-based policy. The newly freed GPUs asynchronously fetch completed responses, compute gradients, and buffer them. Once the rollout stage concludes, these gradients are normalized by response count and applied in a synchronized weight update.
Experimental Setup & Results
▶ Watch: Parallelism planner and adaptive tensor parallelism selection (10:10)
RollPacker was evaluated using a multitask RL workload across various model scales from the Qwen family, specifically targeting models with 7 billion, 14 billion, and 33 billion parameters, with response lengths scaling up to 33k tokens. The evaluation compared RollPacker against standard synchronous ver (verification/baseline) implementations and fused baseline architectures.
- Headline Speedup: RollPacker delivers greater than a 2x end-to-end training speedup. The performance delta widens as response lengths increase, with the most dramatic gains observed on the 33B model configuration processing 33k-token response lengths, where long-tail variance is most pronounced.
- Component Contributions: Ablation analysis indicates that tail batching primarily targets long sequence variance; the parallelism planner resolves high-capacity KV cache bottlenecks on larger model scales; and the stream trainer optimizes resource allocation during uneven rollout-to-training transitions.
- Step Breakdown: While rollout remains the dominant phase in long rounds, RollPacker's frequent, highly accelerated short rounds dramatically lower the overall average step time across the entire training lifecycle.
- Cluster Scaling: Benchmarks scaling batch sizes from 128 to 512 alongside proportional GPU expansion demonstrate that RollPacker sustains consistent throughput gains over baseline systems without encountering memory saturation or scaling plateaus.
Practical Implications
▶ Watch: Evaluation results and end-to-end speedup performance (13:55)
For infrastructure teams and ML engineers deploying LLM post-training pipelines, RollPacker offers a practical blueprint for resolving the hardware underutilization inherent in reasoning-focused RL.
- Eliminating Hardware Bubbles: Deploying tail batching allows infrastructure teams to saturate GPU clusters without resorting to asynchronous approximations that jeopardize model alignment and convergence stability.
- Memory Planning Realities: Practitioners must account for the dynamic memory footprint introduced by speculative prompt execution. Static memory allocators will fail under the 1.6x surge in concurrent rollout tokens observed in short rounds, making adaptive TP planners mandatory for stability.
- Resource Collocation: The layer-wise offloading and MPS-based collocation techniques demonstrated in RollPacker's reward scheduler prove that expensive judge models do not require dedicated, underutilized GPU silos.
- Open-Source Accessibility: To facilitate adoption and production integration, RollPacker has been fully open-sourced and is available on GitHub for community deployment.
Key Takeaways
- Rollout phases dominate RL post-training (exceeding 60% of end-to-end time), heavily penalized by extreme long-tail response distributions that create severe GPU bubbles.
- Tail batching adopts speculative execution (launching redundant prompts and racing to completion) combined with a deferred long prompt queue to eliminate bubbles while strictly preserving on-policy training semantics.
- An adaptive parallelism planner adjusts tensor parallelism per step based on real-time preemption counts to manage the volatile KV cache pressure induced by short-round speculation.
- A reward scheduler utilizing MPS collocation and layer-wise CPU offloading solves the chronic underutilization (approx. 20%) of dedicated LLM-as-a-judge GPU pools.
- The stream trainer dynamically reclaims idle rollout GPUs mid-phase, reassigning them to asynchronous gradient computation to maximize cluster utilization.
- RollPacker achieves over a 2x end-to-end training speedup across 7B, 14B, and 33B models with response lengths up to 33k tokens, and the complete codebase is available open-source on GitHub.
About the Speaker(s)
The research presented was a collaborative effort between the Hong Kong University of Science and Technology (HKUST) and Alibaba Group. The work was supervised by Professor Wei Gao and Professor Wei Wang at HKUST, with primary contributions from student researchers including Yuheng Zhao, Dakai An, Tianyuan Wu, and Lunxi Cao, alongside engineering and research teams from Alibaba Group including Shaopan Xiong, Ju Huang, Weixun Wang, Siran Yang, Wenbo Su, Jiamang Wang, Lin Qu, and Bo Zheng.
Reviews
→ Top-rated talks at 23rd USENIX Symposium on Networked Systems Design and Implementation (NSDI '26)
All talks from 23rd USENIX Symposium on Networked Systems Design and Implementation (NSDI '26)