arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2611.25813cs.CL
收藏

基于多令牌预测的高效稳健草稿生成

Efficient and Robust Drafting with Multi-Token Prediction

Google(谷歌)

Filippo Galgani, Ziwei Ji, Omri Homburger, Ganesh Jawahar, Michelle Ramanovich, Ivan Korotkov, Luciano Martins, Utku Evci, Edouard Yvinec, Pooja Consul, Vivek Kumar, Tal Schuster

AI总结:

本文提出多令牌预测(MTP)架构,通过三项优化改进G-MTP,在Gemma 4模型系列上实现不同部署场景的推理加速,还提出参数高效微调方案以提升领域适应性。

摘要:

推测解码已成为加速大语言模型(LLM)推理的关键技术,其将生成过程解耦为草稿生成阶段与并行验证阶段。因此,设计一款既轻量化又足够准确、能近似目标模型预测结果的草稿生成器是核心挑战。本文提出一种高度优化的多令牌预测(MTP)架构,该架构扩展现有骨干大语言模型以高效生成高质量草稿。该架构围绕单个共享草稿生成头构建,包含三项核心架构优化:目标激活注入以锚定语义规划、零拷贝KV缓存交叉注意力以绕过预填充计算并降低内存开销、高效聚类词汇投影以减少全词汇解码的成本。在Gemma 4模型系列上测试这些改进,我们的G-MTP在大型服务器端部署中实现开箱即用的加速(最高达3.1×),在针对内存受限设备环境的较小模型中也实现加速(H100上最高达2.3×,智能手机GPU上最高达2.2×)。此外,本文提出G-MTP的参数高效微调方案,该方案使草稿生成器在领域偏移下与骨干大语言模型保持对齐,相比仅微调骨干模型,所需的目标前向传播次数最多减少1.83倍。

英文摘要:

Speculative decoding has emerged as a critical technique for accelerating Large Language Model (LLM) inference by decoupling generation into a drafting phase and a parallel verification phase. A crucial challenge is therefore designing a drafter that is both lightweight and accurate enough to approximate the predictions of the target model. We present a highly optimized Multi-Token Prediction (MTP) architecture that extends existing backbone LLMs to efficiently produce high-quality drafts. Built around a single shared drafting head, our approach features three core architectural optimizations: target activation injection to anchor semantic planning, zero-copy KV-cache cross-attention to bypass prefill compute and reduce memory overhead, and an efficient clustered vocabulary projection to reduce the cost of full-vocabulary decoding. Testing these improvements with the Gemma 4 model family, our G-MTP shows out-of-the-box speedups for both large server-side setups (up to 3.1$\times$) and smaller models targeting memory-constrained on-device environments (up to 2.3$\times$ on H100 and up to 2.2$\times$ on a smartphone GPU). In addition, we present parameter-efficient fine-tuning recipes for G-MTP that keep the drafter aligned with the backbone LLM under domain shift, requiring up to 1.83$\times$ fewer target forward passes than tuning only the backbone.

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

↑