arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2610.33379cs.LG
收藏

提前一次调用:带扩散草稿的打包自推测解码

One Call Ahead: Packed Self-Speculative Decoding with Diffusion Drafting

University of Michigan, Ann Arbor(密歇根大学安娜堡分校)

Yuxiao Chen, Changxiao Cai

AI总结:

提出 Packed-SS 自推测解码调度,通过单次模型调用完成验证与草稿生成,输入大小随推测宽度线性增长,在 Nemotron 等模型上实现更高吞吐量与更低平均耗时。

摘要:

自回归(AR)语言模型按顺序生成 token,因此生成长输出的成本很高。推测解码通过使用轻量级草稿模型为目标 AR 模型提出多个 token 以便并行验证来缓解这一问题,而基于扩散的草稿模型可在一次前向传播中生成整个草稿块。在同时具备 AR 模式和扩散模式的模型中,单个网络既负责草稿生成又负责验证,但草稿生成仍需等待验证,因此标准调度每次迭代需要两次连续的模型调用。现有的一次调用调度避免了等待,但输入大小随推测宽度呈二次方增长。受此效率瓶颈的启发,我们提出 Packed-SS,这是一种自推测解码调度,可在单次模型调用中完成验证和草稿生成,输入大小随推测宽度呈线性增长,同时保留目标模型的分布。关键思路是让扩散草稿模型提前一次调用:在验证当前草稿的同时,模型从已验证的旧前缀构建下一个草稿,并保留未解决的后缀用于下一次迭代。在草稿模型的温和单调性假设下,我们进一步证明,在贪心设置中,Packed-SS 所需的模型调用次数不超过标准的两次调用解码。在 Nemotron 3B/8B 和 SetDLM 1.7B 上的实验表明,在贪心解码下,与两个基线相比,它具有更高的吞吐量和更低的平均 wall time。

英文摘要:

Autoregressive (AR) language models generate tokens sequentially, so generating long outputs is costly. Speculative decoding mitigates this by using a lightweight drafter to propose multiple tokens for the target AR model to verify in parallel, while a diffusion-based drafter can produce an entire draft block in one forward pass. In models with AR and diffusion modes, one network both drafts and verifies, but drafting still waits for verification, so the standard schedule needs two sequential model calls per iteration. Existing one-call schedules avoid the wait but incur input size quadratic in the speculative width. Motivated by this efficiency bottleneck, we introduce Packed-SS, a self-speculative decoding schedule that verifies and drafts in a single model call with input size linear in the speculative width, while preserving the target model's distribution. The key idea is to let the diffusion drafter run one call ahead: while verifying the current draft, the model simultaneously constructs the next draft from an older verified prefix and keeps its unresolved suffix for the next iteration. Under a mild monotonicity assumption on the drafter, we further show that Packed-SS requires no more model calls than the standard two-call decoding in the greedy setting. Experiments on Nemotron 3B/8B and SetDLM 1.7B show higher throughput and lower mean wall time than both baselines under greedy decoding.

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

↑