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

多未来 Drafting:用于树验证投机解码的混合块 Drafters

Multi-Future Drafting: Mixture Block Drafters for Tree-Verified Speculative Decoding

National College for Excellent Engineers, Beihang University(北京航空航天大学卓越工程师学院);Canva Research(Canva 研究院);Communication University of China(中国传媒大学);School of Artificial Intelligence, Beihang University(北京航空航天大学人工智能学院)

Haoyu Huang, Jialiang Kang, Linlin Yang, Xiao Yang, Baochang Zhang

AI总结:

该研究针对现有树验证投机解码中乘积排名产生大量嵌合体的问题,提出多未来 Drafting(MFD)方法,通过混合 DDTree 选择目标未来,在多个 Qwen 模型上实现最高 7.8 倍加速,优于单模式树和 DARTree。

摘要:

DFlash 等块 Drafters 可在一次前向传播中 Draft 一组未来 token,DDTree 等 Draft 树则通过 Drafters 各位置分布的乘积对前缀进行排名。在树验证下,接受 token 的期望数量等于树覆盖的概率质量。我们发现乘积会错误分配该质量:当延续可遵循多个未来时,它会将这些未来拼接成嵌合体(chimeras),即由目标从未生成的不同未来拼接而成的前缀,并给予其与原未来相同的预算。若不考虑平局,无论 Drafters 训练得多好,任何乘积排名的树若包含 m 个位置存在分歧的两个未来,都会产生 2^(m-1)-1 个嵌合体;实际中,64 节点树里嵌合体占比达 27%-33%。我们提出多未来 Drafting(MFD),它通过潜在变量而非链式法则恢复耦合:在 Drafters 输入处的 K 个学习模式嵌入可在同一次传播中 Draft K 个连贯块,混合 DDTree 则让验证器选择目标采用的未来,无损失且仅需 K+1 个额外向量。在 4B 至 27B 参数的四个 Qwen 目标模型上,批量大小为 1 时,MFD 实现最高 7.8 倍加速,比同等训练的最佳单模式树快 5%-8%,且在 Qwen3-4B 和 Qwen3-8B 上,比在相同提示下训练的已发布 DARTree 快 9%-16%。

英文摘要:

Block drafters such as DFlash draft a block of future tokens in one forward pass, and draft trees such as DDTree verify the prefixes ranked highest by the product of the drafter's per-position distributions. Under tree verification, the expected number of accepted tokens is the probability mass the tree covers. We show that a product misallocates it: when the continuation can follow several futures, it splices them into chimeras, prefixes stitched together from different futures that the target never produces, and gives them as much budget as the futures themselves. Barring ties, no product-ranked tree can hold two futures that disagree in $m$ positions without $2^{m-1}-1$ chimeras, however well the drafter is trained, and in practice chimeras make up 27-33% of a 64-node tree. We propose Multi-Future Drafting (MFD), which restores the coupling with a latent variable instead of the chain rule: $K$ learned mode embeddings at the drafter's input draft $K$ coherent blocks in the same pass, and a mixture DDTree lets the verifier pick the future the target takes, losslessly and with $K+1$ extra vectors. On four Qwen targets from 4B to 27B parameters, at batch size 1, MFD reaches up to 7.8$\times$ speedup, 5-8% faster than the best single-mode tree trained identically and, on Qwen3-4B and Qwen3-8B, 9-16% faster than the released DARTree trained on the same prompts.

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

↑