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

DFlare: 扩展块扩散推测解码的草稿容量

DFlare: Scaling Up Draft Capacity for Block Diffusion Speculative Decoding

School of Computer Science, Peking University(北京大学计算机科学系);Tencent(腾讯)

Jiebin Zhang, Zhenghan Yu, Song Liu, Eugene J. Yu, Zheng Li, Dawei Zhu, Jiangshan Duo, Weimin Xiong, Yifan Song, Guanghua Yu, Jianchen Zhu, Sujian Li

AI总结:

提出DFlare方法,通过轻量级逐层融合机制扩展草稿模型容量,在多个基准上实现平均5.52倍加速。

摘要:

块扩散推测解码通过同时预测一个块内的所有令牌,供目标模型并行验证,从而加速LLM推理。一次性预测整个块需要足够强大的草稿模型和有效利用目标模型的内部知识。然而,最先进的方法DFlash限制所有草稿层共享仅从少数目标层导出的单个融合表示,限制了逐层表达能力并阻碍了草稿容量的进一步扩展。在本文中,我们提出\modelname,通过轻量级逐层融合机制扩展DFlash的狭窄条件瓶颈:每个草稿层关注其自身可学习的广泛目标层组合,开销可忽略,同时注入更丰富的目标知识并为每个草稿层提供不同的输入。这种增强的逐层表达能力使得草稿模型能够扩展到更深的架构并获得一致的性能提升。我们进一步将训练数据从80万样本扩展到240万样本,以充分利用扩大的容量。在涵盖数学推理、代码生成和对话的六个基准上,\modelname在Qwen3-4B上平均加速5.52倍,在Qwen3-8B上平均加速5.46倍,在GPT-OSS-20B上平均加速3.91倍,分别比DFlash提高约11%、8%和5%。我们的代码可在https://github.com/Tencent/AngelSlim获取。

英文摘要:

Block diffusion speculative decoding accelerates LLM inference by predicting all tokens within a block simultaneously for the target model to verify in parallel. Predicting an entire block at once requires a sufficiently capable draft model and effective utilization of the target model's internal knowledge. However, the state-of-the-art method DFlash constrains all draft layers to share a single fused representation derived from only a few target layers, limiting per-layer expressiveness and hindering further scaling of draft capacity. In this paper, we present \modelname, which flares out the narrow conditioning bottleneck of DFlash through a lightweight layer-wise fusion mechanism: each draft layer attends to its own learnable combination of a broad set of target layers at negligible overhead, simultaneously injecting richer target knowledge and providing every draft layer with a distinct input. This enhanced per-layer expressiveness enables scaling the draft model to deeper architectures with consistent gains. We further scale training data from 800K to 2.4M samples to fully exploit the enlarged capacity. On six benchmarks spanning mathematical reasoning, code generation, and conversation, \modelname attains average wall-clock speedups of 5.52x on Qwen3-4B, 5.46x on Qwen3-8B, and 3.91x on GPT-OSS-20B, improving over DFlash by roughly 11\%, 8\%, and 5\% respectively. Our code is available at https://github.com/Tencent/AngelSlim.

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

↑