SPEC-RL: Accelerating On-Policy Reinforcement Learning with Speculative Rollouts

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Liu, Bingshuai, Wang, Ante, Min, Zijun, Yao, Liang, Zhang, Haibo, Liu, Yang, Han, Xu, Li, Peng, Zeng, Anxiang, Su, Jinsong
Natura: Preprint
Pubblicazione: 2025
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866918282414522368
author Liu, Bingshuai
Wang, Ante
Min, Zijun
Yao, Liang
Zhang, Haibo
Liu, Yang
Han, Xu
Li, Peng
Zeng, Anxiang
Su, Jinsong
author_facet Liu, Bingshuai
Wang, Ante
Min, Zijun
Yao, Liang
Zhang, Haibo
Liu, Yang
Han, Xu
Li, Peng
Zeng, Anxiang
Su, Jinsong
contents Large Language Models (LLMs) increasingly rely on reinforcement learning with verifiable rewards (RLVR) to elicit reliable chain-of-thought reasoning. However, the training process remains bottlenecked by the computationally expensive rollout stage. Existing acceleration methods-such as parallelization, objective- and data-driven modifications, and replay buffers-either incur diminishing returns, introduce bias, or overlook redundancy across iterations. We identify that rollouts from consecutive training epochs frequently share a large portion of overlapping segments, wasting computation. To address this, we propose SPEC-RL, a novel framework that integrates SPECulative decoding with the RL rollout process. SPEC-RL reuses prior trajectory segments as speculative prefixes and extends them via a draft-and-verify mechanism, avoiding redundant generation while ensuring policy consistency. Experiments on diverse math reasoning and generalization benchmarks, including AIME24, MATH-500, OlympiadBench, MMLU-STEM, and others, demonstrate that SPEC-RL reduces rollout time by 2-3x without compromising policy quality. As a purely rollout-stage enhancement, SPEC-RL integrates seamlessly with mainstream algorithms (e.g., PPO, GRPO, DAPO), offering a general and practical path to scale RLVR for large reasoning models. Our code is available at https://github.com/ShopeeLLM/Spec-RL
format Preprint
id arxiv_https___arxiv_org_abs_2509_23232
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle SPEC-RL: Accelerating On-Policy Reinforcement Learning with Speculative Rollouts
Liu, Bingshuai
Wang, Ante
Min, Zijun
Yao, Liang
Zhang, Haibo
Liu, Yang
Han, Xu
Li, Peng
Zeng, Anxiang
Su, Jinsong
Machine Learning
Artificial Intelligence
Computation and Language
Large Language Models (LLMs) increasingly rely on reinforcement learning with verifiable rewards (RLVR) to elicit reliable chain-of-thought reasoning. However, the training process remains bottlenecked by the computationally expensive rollout stage. Existing acceleration methods-such as parallelization, objective- and data-driven modifications, and replay buffers-either incur diminishing returns, introduce bias, or overlook redundancy across iterations. We identify that rollouts from consecutive training epochs frequently share a large portion of overlapping segments, wasting computation. To address this, we propose SPEC-RL, a novel framework that integrates SPECulative decoding with the RL rollout process. SPEC-RL reuses prior trajectory segments as speculative prefixes and extends them via a draft-and-verify mechanism, avoiding redundant generation while ensuring policy consistency. Experiments on diverse math reasoning and generalization benchmarks, including AIME24, MATH-500, OlympiadBench, MMLU-STEM, and others, demonstrate that SPEC-RL reduces rollout time by 2-3x without compromising policy quality. As a purely rollout-stage enhancement, SPEC-RL integrates seamlessly with mainstream algorithms (e.g., PPO, GRPO, DAPO), offering a general and practical path to scale RLVR for large reasoning models. Our code is available at https://github.com/ShopeeLLM/Spec-RL
title SPEC-RL: Accelerating On-Policy Reinforcement Learning with Speculative Rollouts
topic Machine Learning
Artificial Intelligence
Computation and Language
url https://arxiv.org/abs/2509.23232