G-MTP:面向LLM推理加速的多Token预测草稿架构
Efficient and Robust Drafting with Multi-Token Prediction
研究提出G-MTP多Token预测架构,通过共享草稿头与目标激活注入、零拷贝KV-cache交叉注意力、聚类词表投影三项优化加速LLM推理。在Gemma 4系列上,服务器端最高加速3.1倍,H100上小模型加速2.3倍,手机GPU上加速2.2倍。作者同时给出参数高效微调方案,在领域偏移下保持草稿器与主干对齐,所需目标前向次数最多减少1.83倍。
论文给出多Token预测草稿架构的三项优化,并报告服务器与手机GPU上的推理加速数据,可供关注端侧LLM部署的读者参考。
arXiv:2611.25813v1 Announce Type: new Abstract: 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.
来源:arXiv (AI + Vision + Imaging) · arxiv.org