# SpecOPD: Branch-Parallel On-Policy Distillation for Speculative Decoding

DevFeed: [SpecOPD: Branch-Parallel On-Policy Distillation for Speculative Decoding](<https://devfeed.tech/articles/specopd-branch-parallel-on-policy-distillation-for-speculative-decoding-115389.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2611.02846>)

Author: Tianyu Liu, Jun Zhang, Wenjie Huang, Yuhao Shen, Tianqi Xu, Xinyue Hao, Hongyaoxing Gu, Xuyang Liu, Baolin Zhang, Yating Zhu, Shuang Ge, Jun Dai, Lei Chen, Yue Li, Mingchen Wan

Published: 2026-11-03T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Artificial Intelligence](<https://devfeed.tech/sources/arxiv-artificial-intelligence.md>)

Topics: [Model Optimizer](<https://devfeed.tech/topics/model-optimizer.md>), [Large Language Model](<https://devfeed.tech/topics/llm.md>), [LLM optimization](<https://devfeed.tech/topics/llm-optimization.md>), [Post-training optimization](<https://devfeed.tech/topics/post-training-optimization.md>), [High-Performance Computing](<https://devfeed.tech/topics/high-performance-computing.md>)

Tags: [abstract](<https://devfeed.tech/tags/abstract.md>), [acceptance](<https://devfeed.tech/tags/acceptance.md>), [advanced](<https://devfeed.tech/tags/advanced.md>), [agentic](<https://devfeed.tech/tags/agentic.md>), [architectures](<https://devfeed.tech/tags/architectures.md>), [arxiv](<https://devfeed.tech/tags/arxiv.md>), [attention](<https://devfeed.tech/tags/attention.md>), [autoregressive](<https://devfeed.tech/tags/autoregressive.md>), [block](<https://devfeed.tech/tags/block.md>), [blocks](<https://devfeed.tech/tags/blocks.md>), [branch](<https://devfeed.tech/tags/branch.md>), [but](<https://devfeed.tech/tags/but.md>), [can](<https://devfeed.tech/tags/can.md>), [coding](<https://devfeed.tech/tags/coding.md>), [collect](<https://devfeed.tech/tags/collect.md>), [cs-ai](<https://devfeed.tech/tags/cs-ai.md>), [decoding](<https://devfeed.tech/tags/decoding.md>), [distillation](<https://devfeed.tech/tags/distillation.md>), [parallel](<https://devfeed.tech/tags/parallel.md>), [policy](<https://devfeed.tech/tags/policy.md>), [speculative-decoding](<https://devfeed.tech/tags/speculative-decoding.md>)

## AI overview

SpecOPD speeds on-policy distillation for speculative decoding by collecting draft-sampled supervision across independent branches at reference anchors, avoiding sequential draft-and-verify rollouts. It packs branches into proposal trees to share target-prefix computation, using tree masks for full attention, branch-consistent indexer groups for sparse attention, and indexed state replay for linear attention. An E2E-TV surrogate trains the drafter to increase acceptance length. Across three target model configurations, three draft architectures, and four task domains, the abstract reports up to 41.45% higher mean acceptance length, 16.09x supervised-token throughput versus sequential-rollout OPD under native configurations, and 3.56x generation speedup versus autoregressive decoding.

## Source excerpt

arXiv:2611.02846v1 Announce Type: new Abstract: Speculative decoding (SD) accelerates large language model inference by reducing the sequential cost of token-by-token generation. Advanced SD methods reduce proposal cost with parallel drafters that predict entire blocks in one forward pass, but overall speedup still depends on acceptance length. On-policy distillation (OPD) can push well-trained drafters beyond acceptance-length plateaus, yet conventional pipelines collect supervision through sequential draft-and-verify rollouts. Our key insight is that on-policy supervision need not inherit these dependencies: a draft block can be supervised using only its reference prefix and draft-sampled history. We propose SpecOPD, a branch-parallel OPD framework that parallelizes draft sampling and target supervision across independent branches drawn from the evolving drafter policy at reference anchors. We pack these branches into proposal trees to share target-prefix computation, using tree masks for full attention, branch-consistent indexer groups for sparse attention, and indexed state replay for linear attention to preserve each branch's history. We train the drafter with an E2E-TV surrogate that directly targets acceptance length. Our study spans 8B full-attention (GQA), 27B full-linear (GQA--GDN), and 125B sparse-linear (QSA--GDN) targets, three parallel draft architectures (DFlash, DSpark, and DFlash V2), and four task domains (dialogue, coding, mathematics, and agentic). SpecOPD achieves up to 41.45% higher mean acceptance length, $16.09\times$ supervised-token throughput over sequential-rollout OPD under native configurations, and up to $3.56\times$ generation speedup over autoregressive decoding.