LADDERS: Length-Aware Data Distribution and Existing-Response Speculation for Fast RL Rollout Generation

Shengpeng Yin, Hui-Ling Zhen, Xing Li, Mingxuan Yuan, Zishuo Wang, Yuxin PengNeurIPS 2026

TL;DR

When post-training Large Language Models (LLMs) with Reinforcement Learning (RL), up to 70% of your compute time isn't spent updating weights—it’s spent waiting for the model to finish talking. LADDERS cuts this generation bottleneck by up to 56% without hurting model accuracy or requiring extra neural networks. It does this through two clever tricks: predicting which prompts will trigger long-winded answers so GPUs can be balanced fairly, and letting the model reuse its own previous thoughts to "fast-forward" through repetitive phrasing.

What Problem Does This Paper Address?

Modern LLM alignment and reasoning rely heavily on RL pipelines, which follow a loop: generate answers (rollout generation), score them, and update the model. Rollout generation is notoriously slow for two reasons.

First, LLMs generate text one token at a time, so long answers take linearly more time. Second, when processing prompts in batches, GPUs suffer from a "straggler effect." Imagine a group of friends at a restaurant where the waiter won't bring the check until the slowest eater finishes their meal. In RL rollouts, short answers finish early, leaving GPUs sitting idle ("GPU bubbles") while waiting for one massive, multi-thousand-token reasoning chain to wrap up. Worse, because RL often generates multiple answers per prompt across several GPU workers, naive task splitting can accidentally dump several marathon prompts onto a single worker, spiking its memory pressure and stalling the whole cluster.

Figure 1: Two rollout-generation bottlenecks: tail latency within a batch and inter-worker strag- gling across decoding workers.

Standard speedups like speculative decoding—where a tiny "draft" model guesses upcoming tokens for the big model to verify—usually require hosting and constantly updating a second model alongside the changing RL policy, adding serious engineering headaches.

Methods

The authors introduce LADDERS, a lightweight plugin framework built on two complementary ideas:

Figure 2: Overview of LADDERS. (Left) A lightweight length predictor trained on a small length- labeled subset enables length-aware batching; an S-shaped allocation rule then balances multi-sample requests across decoding workers. (Right) Existing-response speculation uses a two-stage rollout: seed responses are first generated and inserted into prompt-specific suffix trees; later responses retrieve draft continuations from these trees and verify them under the target policy, avoiding an auxiliary draft model.
  1. Length-Aware Data Distribution (Fixing the Stragglers):
  2. Hidden-State Length Prediction: Before generating a single word, the LLM processes the prompt ("prefill"). LADDERS attaches a tiny MLP predictor to the final hidden state of the last prompt token to estimate how long the answer will be (trained in log-space to handle extreme outliers). From epoch two onward, it can simply use observed lengths from the prior epoch.
  3. Smart Batching & S-Shaped Allocation: Prompts are sorted by predicted length so batches contain similarly sized jobs. Then, when distributing multiple sample requests across GPU workers, LADDERS deals them out in an alternating, back-and-forth "S-shape" (like a snake draft in fantasy sports). If Worker 1 gets the longest task in round one, it gets the shortest task in round two, evening out the workload and KV-cache memory pressure.
  4. Existing-Response Speculation (Draft-Model-Free Speedup):
  5. Instead of using an external draft model, LADDERS splits a prompt's multi-sample rollout into two stages. In Stage 1, it generates a few "seed" responses normally and stores all their token sequences in a fast C++ suffix tree (annotated with how frequently paths occur).
  6. In Stage 2, when generating the remaining responses for that same prompt, the system queries the suffix tree to grab likely multi-token continuations as drafts, verifying them in parallel under the current policy. Because standard speculative verification rejects bad guesses and corrects the distribution, the outputs remain strictly on-policy—with zero cold-start delay.

Datasets

No new benchmarks were introduced; the authors used established datasets across diverse domains:

  • Predictor Training & Transfer: MATH, DeepScaleR, and GSM8K (math reasoning), plus MBPP (code), UltraFeedback (general chat), and GPQA (science QA) to test generalization.
  • RL Training: Subsets of MATH (1,024 prompts).
  • Final Evaluation: Math reasoning benchmarks MATH500, AIME24, AIME25, and AMC23.

Key Insights and Ideas

  • LLMs "know" how much they are about to write before they start: Just by looking at the final prompt token's hidden representation, a tiny predictor trained on only 5% of the dataset achieves >0.70 Spearman rank correlation with true output lengths across math, code, and chat. You don't need exact token counts to schedule well—you just need the relative ordering right.
  • Self-speculation gets faster as RL progresses: Because RL samples multiple trajectories for the exact same prompt (and repeats prompts across epochs), responses naturally share overlapping phrases and reasoning steps. Reusing these via suffix trees gives free speculative decoding that actually accelerates over training as the tree accumulates better continuations.
  • Zero-compromise integration: Because verification enforces the target policy's exact math, and scheduling only reorders work, LADDERS acts purely as a systems accelerator—it doesn't alter the RL objective or degrade accuracy.

Key Results

Tested on Qwen3-1.7B and Qwen3-8B using GRPO in the verl framework:

  • End-to-End Speedup: LADDERS slashed total rollout generation time by 40% on Qwen3-1.7B (4.70h down to 2.84h) and 56% on Qwen3-8B (16.88h down to 7.42h), easily beating the SPEC-RL baseline (13% and 19% reductions).
  • Both Halves Matter: Ablations on Qwen3-8B showed Length-Aware Scheduling alone cut time by 47%, while Speculative Decoding alone cut it by 33%.
  • Drastically Lower Variance: Length-aware batching dropped within-step length standard deviation on Qwen3-8B from 2302.01 tokens down to 764.80, while S-shaped allocation cut single-pass generation time by up to 41%.
  • Negligible Overhead & Preserved Accuracy: The C++ suffix-tree build/delete cycle took less than 0.8% of step time (~0.33 KiB per cached token), and final Pass@1 scores on MATH500, AIME, and AMC23 matched or slightly exceeded vanilla baselines.

Limitations and Future Work

Not discussed in the paper. (Note: Pages 1–10 of the provided manuscript conclude with the summary and references without a dedicated limitations or future work section.)

Summary updated

Abstract

Reinforcement learning (RL) has become central to post-training large language models, but its rollout generation stage is often the dominant system bottleneck. The inefficiency comes from two sources. First, autoregressive decoding makes latency grow with response length. Second, response lengths vary widely within a batch: short sequences finish early, but the batch remains blocked by the longest sequence, leaving GPU capacity underutilized. This effect is amplified in multi-sample rollouts, where long responses can also concentrate on a few decoding workers and delay synchronization. We propose LADDERS (Length-Aware Data Distribution and Existing-Response Speculation), a lightweight framework for accelerating RL rollout generation. LADDERS first uses hidden-state-based length prediction to group prompts with similar expected response lengths, and then applies an S-shaped allocation rule to balance multi-sample requests across workers. It further reuses responses already generated by the policy as draft continuations through prompt-specific suffix trees, enabling speculative decoding without an auxiliary draft model. Experiments on Qwen3-1.7B and Qwen3-8B show that LADDERS reduces rollout generation time by up to 56% while preserving final task performance, and can be integrated into existing RL systems with minimal engineering effort.
BibTeX
@inproceedings{yin2026ladders,
  author = {Shengpeng Yin and Hui-Ling Zhen and Xing Li and Mingxuan Yuan and Zishuo Wang and Yuxin Peng},
  title = {{LADDERS: Length-Aware Data Distribution and Existing-Response Speculation for Fast RL Rollout Generation}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=xMa3rFEald},
}
Figure