D3D:用于异步推测解码的解耦扩散起草

·

研究论文 · 2026/11/06

D3D 是一种独立的扩散草稿模型,消除了推测解码中草稿与验证之间的轮次依赖。它结合块级去噪与辅助自回归监督,无需目标模型隐藏状态即可生成长接受前缀,从而在验证期间异步草拟后续块。通过根据对接受长度的影响逐步剪枝层(移除36层中的5层仍保持超过99%的平均接受长度),D3D 降低了打包草拟的成本。在 Qwen3-8B 和 Qwen3-32B 目标模型上,D3D 在七个基准上平均分别实现 5.00 倍和 5.71 倍解码加速,优于 DFlash 的 4.03 倍和 3.67 倍;在 GSM8K 上使用 Qwen3-32B 时加速达 7.48 倍。

D3D 通过解耦草稿与验证,显著提升推测解码的加速比,且方法简洁有效,代码开源,对高效推理部署有直接价值。

Target-conditioned diffusion drafters predict candidate tokens in parallel, yet each new block must wait for updated target-model hidden states. This forces drafting and verification to run sequentially, limiting speedup even though each block is generated in one pass. We introduce D3D, a standalone diffusion drafter that removes this inter-round dependency. D3D combines blockwise denoising with auxiliary autoregressive supervision to achieve long accepted prefixes without target hidden states. This independence lets D3D draft successor blocks during verification in one packed pass, enabling asynchronous speculative decoding. We progressively prune layers according to their effect on acceptance length to reduce the cost of packed drafting. Removing five of 36 layers retains over 99\% of mean acceptance length across three benchmarks with Qwen3-8B as the target. Across seven benchmarks, D3D averages 5.00times and 5.71times decoding speedup with Qwen3-8B and Qwen3-32B targets, compared with 4.03times and 3.67times for DFlash. On GSM8K with Qwen3-32B, speedup reaches 7.48times. Code is publicly available at https://github.com/fudan-generative-vision/D3D.

阅读原文

参与讨论