Beat the long tail: Distribution-Aware Speculative Decoding for RL Training

Zelei Shao, Vikranth Srivatsa, Sanjana Srivastava, Qingyang Wu, Alpay Ariyak +10 more
11/17/2025
cs.LG

No confident code implementation found for this paper.

Abstract

Reinforcement learning(RL) post-training has become essential for aligning large language models (LLMs), yet its efficiency is increasingly constrained by the rollout phase, where long trajectories are generated token by token. We identify a major bottleneck:the long-tail distribution of rollout lengths, where a small fraction of long generations dominates wall clock time and a complementary opportunity; the availability of historical rollouts that reveal stable prompt level patterns across training epochs. Motivated by these observations, we propose DAS, a Distribution Aware Speculative decoding framework that accelerates RL rollouts without altering model outputs. DAS integrates two key ideas: an adaptive, nonparametric drafter built from recent rollouts using an incrementally maintained suffix tree, and a length aware speculation policy that allocates more aggressive draft budgets to long trajectories that dominate makespan. This design exploits rollout history to sustain acceptance while balancing base and token level costs during decoding. Experiments on math and code reasoning tasks show that DAS reduces rollout time up to 50% while preserving identical training curves, demonstrating that distribution-aware speculative decoding can significantly accelerate RL post training without compromising learning quality.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{shao2025beat,
  title  = {Beat the long tail: Distribution-Aware Speculative Decoding for RL Training},
  author = {Zelei Shao and Vikranth Srivatsa and Sanjana Srivastava and Qingyang Wu and Alpay Ariyak and Xiaoxia Wu and Ameen Patel and Jue Wang and Percy Liang and Tri Dao and Ce Zhang and Yiying Zhang and Ben Athiwaratkun and Chenfeng Xu and Junxiong Wang},
  year   = {2025},
  eprint = {2511.13841},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2511.13841v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2511.13841.svg)](https://codeofpaper.com/paper/2511.13841)

Discussion