arXiv(opens in a new tab)cs.LGSep 2026Cited by 2 papers on PaperVantage

Manuscript Offprint

arXiv:2609.07108

Online Draft Co-Training for Speculative Decoding in Large-Scale, Long-Context RL Post-Training

Zili Wang, Zhaopeng Qiu, Yuekai Zhang, Shuang Yu, Junjie Lai

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Abstract. Speculative decoding accelerates rollout generation, which dominates the cost of reinforcement learning (RL) post-training. Online co-training can further increase the draft's accuracy, yielding greater speedups. However, scaling this approach to co-training on large models with long contexts poses two obstacles: (1) branch attention is unsupported by standard causal context-parallel (CP) implementations, and (2) target features span across pipeline-parallel (PP) stages. We address both with an end-to-end system for large-scale online draft co-training. For CP, we extend packed, load-balanced zigzag ring attention by merging rank-local branch attention with causal main-sequence attention. For PP, TapChannel transports intermediate target features across stages via a separate path, leaving the pipeline schedule unaffected. Experiments demonstrate that co-trained drafts closely track the policy baseline while delivering substantial rollout and end-to-end speedups across model scales up to 122B. Our CP design achieves strong scaling at 256K tokens with significant memory savings over prior work, and our PP transport incurs modest overhead. Code can be found here.

1 INTRODUCTION

Reinforcement learning (RL) post-training has become a standard paradigm for building reasoning and agentic Large Language Models (LLMs) (Shao et al., 2024; Yu et al., 2025; GLM-5-Team et al., 2026). The wall-clock time of RL post-training is often dominated by rollout generation. Speculative decoding (SD) mitigates this through parallel verification (Leviathan et al., 2023; Chen et al., 2023): a small draft model generates multiple draft tokens, and the target policy verifies them in parallel, accelerating autoregressive generation without changing the output distribution. Recent RL frameworks have therefore integrated SD into their rollout engines, demonstrating that rollout speedups can translate into end-to-end training acceleration (Zhang et al., 2026; Chen et al., 2026b; Liu et al., 2025; Iso et al., 2026; Kim et al., 2026; veRL Team, 2026; Zhu et al., 2025).

Online co-training can further extend the draft model's acceptance length as the RL policy evolves, yielding greater rollout speedups (Zhao, 2024; Zhang et al., 2026; Chen et al., 2026b; Wang et al., 2026a). However, scaling this approach to large-model, long-context RL post-training is non-trivial. Advanced drafts such as EAGLE-3, DFlash, and

DSpark introduce branch-structured attention and consume intermediate hidden states from the target model (Li et al., 2026c; Chen et al., 2026a; Cheng et al., 2026). Standard causal context parallelism (CP) does not support this branch structure, while under pipeline parallelism (PP), the required target features may reside on stages remote from the draft. Consequently, the draft cannot simply inherit the system's existing parallelism configuration.

We address this by designing two mechanisms that extend the system's existing CP and PP parallelism configuration to support large-scale draft co-training. For CP, each branch query attends to two key sets: a causal prefix of the main sequence and the keys of the branch tokens. We compute the causal component with packed zigzag-ring attention, handle the branch-local component on the owning rank, and merge the two results. This unified mechanism supports EAGLE-3, DFlash, and DSpark. For PP, we introduce TapChannel, which transports intermediate target features across distributed PP stages on a side path independent of pipeline communication, leaving the pipeline schedule unchanged. Together, these two mechanisms yield a complete system design that makes online draft co-training practical for RL post-training on large models with long contexts.

Experiments across draft families, targets at various scale, and single- and multi-turn RL workloads demonstrate stable learning and scalable system performance. Co-trained drafts closely track the baseline in reward and accuracy, yielding 1.50–1.88× end-to-end speedups. Our CP implementation outperforms USP by up to 2.9× in latency with a 2.7× reduction in per-GPU memory, achieving scaling at 256K tokens, while TapChannel enables online co-training with modest PP overhead.

Our contributions are summarized as follows:

  • Branch attention under CP. We decompose draft branch attention into a causal main-sequence component and a rank-local branch component, and merge both results to recover the attention output. This unified mechanism supports EAGLE-3, DFlash, and DSpark within a packed, load-balanced zigzag-ring execution.

  • Out-of-schedule target-feature transport under PP. We introduce TapChannel, which delivers intermediate target features across distributed PP stages without entering or altering the pipeline schedule.

  • End-to-end draft co-training at scale. We integrate our CP and PP mechanisms into NeMo-RL (nem, 2025) framework, enabling online draft co-training on large models with long contexts. We evaluate our system across three draft families, target model sizes from 8B to 122B, and both single- and multi-turn RL workloads, measuring learning stability, rollout speedups, and system overhead.

References (34)