TL;DR
Post-training Large Language Models (LLMs) with Reinforcement Learning (RL) is notoriously slow because generating long responses bottlenecks the entire pipeline. The authors introduce the Adaptive Scheduling Pipeline (ASP), an offline scheduler that predicts response lengths, groups similar prompts together, and interleaves fast and slow batches to keep parallel training hardware humming steadily. The result is up to a 3.22$\times$ boost in end-to-end throughput—and a real-world telecom model training cycle shaved down from over three months to two.
What Problem Does This Paper Address?
Teaching an LLM to reason via RL is a two-act play: first, the model generates responses to prompts (rollout), and second, it learns from rewards on those responses (training). Because rollout is memory-bandwidth-bound and training is compute-bound, running them sequentially leaves expensive accelerators sitting idle.
Modern systems decouple these stages asynchronously: "producer" nodes continuously generate answers and drop them into a queue for "consumer" trainer nodes. However, variable response lengths introduce three distinct "bubbles" of wasted time:
- Padding bubbles: Within a single minibatch, short answers finish early, leaving hardware waiting on the longest answer.
- Skewness bubbles: Heavy-tailed, massive reasoning traces hold up entire generation actors.
- Sorting bubbles: The newly identified catch-22. If you sort prompts from shortest to longest to fix padding and skewness, the generators flood the training queue early on with fast answers (causing samples to go stale while waiting) and trickle to a halt later on when chewing through long answers (starving the trainer).
Methods
ASP resolves this local-vs.-global conflict before training even starts via a three-step offline preprocessing pass, adding zero runtime scheduling overhead:
- Step 1: Output-Length Prediction. A lightweight fine-tuned model (Qwen 2.5 1.5B) estimates how long each prompt's response will be and sorts the dataset accordingly. Exact accuracy isn't needed—just a rough ranking to separate short answers from marathons.
- Step 2: Dynamic Programming Minibatching. Instead of rigid batch sizes, ASP allows minibatch sizes to flex slightly, using dynamic programming to slice the sorted dataset so prompts sharing a batch have nearly homogeneous lengths.
- Step 3: Balanced Batch-Group Ordering. Using simulated annealing, ASP shuffles these homogeneous minibatches into consecutive groups with equal total predicted workload—mixing fast and slow minibatches so the training queue receives a steady heartbeat of data.
This schedule feeds into a decoupled system (Figure 1) featuring a Control Unit (CU) that manages backpressure on a centralized Training Queue, alongside periodic, non-blocking weight refreshes from the Training Unit (TU) to Generation Units (GUs) so policy lag stays bounded and observable.
Datasets
The authors rely on two existing benchmarks (no new datasets are introduced):
- DEEPSCALER: Challenging math problems (capped at 8,192 output tokens) used to test throughput, scheduling ablations, and hardware scaling.
- MAZE-REASONING-GRPO-V0.1: A maze-solving task evaluated on solution formatting ("integrity") and path validity ("correctness"), chosen to test RL convergence on a task not already saturated by base pre-trained models.
Key Insights and Ideas
- Naive sorting cures local pain by causing global chaos: Grouping prompts by length slashes wasted padding inside a GPU, but dispatching them in sorted order quadruples the variance in workload arriving at the trainer over time.
- Random shuffling isn't enough: Simply shuffling homogeneous batches leaves noticeable workload spikes; explicit optimization (Step 3) drops batch-group load variation below even the original unsorted baseline.
- Rough guesses still win: Ablations show the length predictor doesn't need to be an oracle—even noisy rankings (Kendall's $\tau$ down to ~0.44–0.64) preserve strong padding reductions while balanced ordering keeps the queue stable across the board.
Key Results
Evaluated with Group Relative Policy Optimization (GRPO) on Ascend 910B3 NPUs using Qwen3 models (dense 8B/32B and MoE 30B-A3B):
- Major Speedups: Under matched 64-NPU setups, ASP cuts mean iteration time by 75.1–76.8% vs. hybrid baseline MindSpeed-RL (delivering 3.22$\times$ higher throughput, from 18 to 58 tokens/s/NPU) and by 59.9–62.5% vs. disaggregated baseline
verl. - Pure Scheduling Gains: Holding the asynchronous architecture fixed, turning on ASP's offline scheduler alone cuts iteration time by 10.9%, boosts throughput by 23.4%, and trims first-iteration startup time by 30.5%.
- Clean Scaling & Convergence: Scaling generation NPUs by 3$\times$ yields a near-linear 2.69$\times$ speedup. Even with an estimated off-policy lag of ~3.3 trainer steps, maze-reasoning reward curves match synchronous baselines with no visible degradation.
- Production Impact: Deployed internally for telecom-domain RL post-training, ASP cut wall-clock training time from over three months to two months.
Limitations and Future Work
While the paper lacks a dedicated limitations section, several boundaries emerge from the experiments:
- Predictor Quality Floor: Sensitivity sweeps reveal that if length-prediction ranking quality degrades severely (reaching Kendall's $\tau = 0.25$), sorting's local padding benefit turns marginally negative.
- Static Offline Schedule: The predictor stays frozen during training. This worked here because mean output length drifted by only 1.6%, which may not hold in RL regimes where response lengths explode mid-training.
- Training-Side Scaling Ceilings: At 128 NPUs, the bottleneck shifts from rollout generation back to the trainer's own scaling plateau, meaning further speedups require training-side innovations rather than rollout scheduling.
Summary updated