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

MineDraft: 批量并行推测解码框架

MineDraft: A Framework for Batch Parallel Speculative Decoding

Massachusetts Institute of Technology(麻省理工学院);Toyota Research Institute(丰田研究院);Toyota Motor Corporation(丰田公司)

Zhenwei Tang, Arun Verma, Zijian Zhou, Zhaoxuan Wu, Alok Prakash, Daniela Rus, Bryan Kian Hsiang Low

AI总结:

提出MineDraft框架,通过批量并行设计将草稿生成与验证阶段重叠,显著提升推测解码的吞吐量和端到端延迟。

摘要:

推测解码(SD)通过使用较小的草稿模型提出草稿令牌,随后由较大的目标模型验证,从而加速大型语言模型推理。然而,标准SD的性能通常受限于这些草稿和验证阶段的严格顺序执行。为解决此问题,本文提出MineDraft,一种批量并行推测解码(PSD)框架,旨在通过将草稿生成与验证重叠来有效隐藏草稿延迟。我们的理论分析表明,PSD比标准SD高效得多。MineDraft通过一种新颖的批量并行设计实现PSD,该设计维护两个请求批次,将一个批次的草稿生成与另一个批次的验证重叠。我们的实验结果显示,与标准SD相比,MineDraft在吞吐量(最高提升75%)和端到端延迟(最高降低39%)方面均有显著改进。此外,我们已将MineDraft实现为vLLM的插件,展示了其在生产级推理系统中的实用性。

英文摘要:

Speculative decoding (SD) accelerates large language model inference by using a smaller draft model to propose draft tokens that are subsequently verified by a larger target model. However, the performance of standard SD is often limited by the strictly sequential execution of these drafting and verification stages. To address this, this paper proposes MineDraft, a batch parallel speculative decoding (PSD) framework designed to effectively hide drafting latency by overlapping it with verification. Our theoretical analysis shows that PSD is substantially more efficient than standard SD. MineDraft realizes the PSD through a novel batch-parallel design that maintains two batches of requests, overlapping drafting for one batch with verification for the other. Our experimental results show significant improvements of \alg{} in both throughput (up to 75%) and end-to-end latency (up to 39%) over standard SD. Furthermore, we have implemented MineDraft as a plugin for vLLM, demonstrating its practicality for production-ready inference systems.

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

↑