AMUSD:面向大语言模型加速的异步多设备推测解码
AMUSD: Asynchronous Multi-Device Speculative Decoding for LLM Acceleration
AI总结:
AMUSD通过将草稿模型与验证模型解耦为异步并行执行,在多个设备上同时进行预测,相比推测解码平均提升29%,最高实现1.96倍自回归解码加速,且输出质量不变。
摘要:
大语言模型通常以自回归方式生成词元,将每个词元作为下一个词元的输入。近期关于推测解码(Speculative Decoding)的研究试图通过采用一个更小、更快的草稿模型来更快地生成候选词元,从而加速这一过程。随后,这些候选词元由更大的(原始)验证模型并行验证,与单独以自回归方式使用更大模型相比,整体上实现了加速。在这项工作中,我们提出了AMUSD(Asynchronous Multi-device Speculative Decoding,异步多设备推测解码),这是一个通过将草稿阶段和验证阶段解耦为连续的异步方法,从而进一步加速生成的系统。与传统的推测解码不同——在传统方法中,同一时间只有一个模型(草稿模型或验证模型)执行词元生成——AMUSD使两个模型能够在不同的设备(例如GPU)上独立进行预测。我们在多个数据集上评估了我们的方法,并表明AMUSD相比推测解码平均实现了29%的提升,相比传统自回归解码实现了最高1.96$\ imes$的加速,同时达到了相同的输出质量。我们的系统是开源的,可在 https://github.com/BradMcDanel/AMUSD/ 获取。
英文摘要:
Large language models typically generate tokens autoregressively, using each token as input for the next. Recent work on Speculative Decoding has sought to accelerate this process by employing a smaller, faster draft model to more quickly generate candidate tokens. These candidates are then verified in parallel by the larger (original) verify model, resulting in overall speedup compared to using the larger model by itself in an autoregressive fashion. In this work, we introduce AMUSD (Asynchronous Multi-device Speculative Decoding), a system that further accelerates generation by decoupling the draft and verify phases into a continuous, asynchronous approach. Unlike conventional speculative decoding, where only one model (draft or verify) performs token generation at a time, AMUSD enables both models to perform predictions independently on separate devices (e.g., GPUs). We evaluate our approach over multiple datasets and show that AMUSD achieves an average 29% improvement over speculative decoding and up to 1.96$\times$ speedup over conventional autoregressive decoding, while achieving identical output quality. Our system is open-source and available at https://github.com/BradMcDanel/AMUSD/.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。