arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2605.30852cs.CL
收藏

推测性流水线解码:通过流水线并行实现更高准确度和零气泡推测

Speculative Pipeline Decoding: Higher-Accuracy Drafting with Hidden Latency via Pipeline Parallelism

Oregon State University(俄勒冈州立大学);DeepSolution(深思解决方案)

Yijiong Yu, Huazheng Wang, Shuai Yuan, Ruilong Ren, Ji Pei

AI总结:

提出推测性流水线解码(SPD)框架,利用流水线并行将目标LLM划分为n个流水线阶段并行处理n个token,通过推测模块聚合中间特征预测下一token,实现有限难度、高接受率和零延迟气泡,显著提升理论加速比。

摘要:

推测性解码(SD)通过草稿-验证范式加速低并发LLM推理。然而,主流方法通常依赖多token预测,这引入了逐渐增加的预测难度和串行草稿延迟。为了解决这些问题,我们提出了推测性流水线解码(SPD),这是一个突破性的框架,释放了流水线并行的真正潜力。通过将目标LLM划分为$n$个流水线阶段,SPD允许LLM并行处理$n$个token以加速解码。为了在单序列解码中持续填充流水线,推测模块聚合不同流水线深度的中间特征来预测下一个token,与目标模型的流水线步骤严格并行执行,从而实现有限的难度、更高的接受率和零延迟气泡。我们的实验表明,与主流基线相比,SPD实现了显著更高的理论加速比,为LLM解码加速提供了高度可扩展的解决方案。我们的代码可在https://github.com/yuyijiong/speculative_pipeline_decoding获取。

英文摘要:

Speculative Decoding (SD) accelerates low-concurrency LLM inference with a draft-then-verify paradigm. Mainstream methods, however, rely on multi-token prediction, which incurs compounding prediction difficulty and exposed draft latency. We propose Speculative Pipeline Decoding (SPD), which partitions the target LLM into $n$ pipeline stages so that $n$ tokens of a single sequence advance in parallel. To keep the pipeline saturated, a Pipeline Draft Module (PDM) aggregates multi-depth target features to predict the next token and runs concurrently with each pipeline step, yielding bounded prediction difficulty, higher acceptance, and hidden draft latency. Experiments show that SPD achieves higher theoretical and wall-clock speedup than EAGLE-3 at moderate pipeline width, while more aggressive widths still leave room for further gains. Our code is available at https://github.com/yuyijiong/speculative_pipeline_decoding

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑