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

Speculative Streaming:无需辅助模型的快速LLM推理

Speculative Streaming: Fast LLM Inference without Auxiliary Models

Apple(苹果公司)

Nikhil Bhendawade, Irina Belousova, Qichen Fu, Henry Mason, Mohammad Rastegari, Mahyar Najibi

AI总结:

提出Speculative Streaming单模型推测解码方法,通过将微调目标改为future n-gram预测将草稿融合进目标模型,在多任务上实现1.8-3.1倍加速且参数高效。

摘要:

Speculative decoding是一种基于辅助draft模型预测来加速大型目标语言模型推理的突出技术。尽管有效,但在特定应用场景中,它通常需要对draft模型和目标模型进行微调以实现高接受率。随着下游任务数量的增加,这些draft模型给推理系统增加了显著的复杂性。我们提出了Speculative Streaming,这是一种单模型speculative decoding方法,通过将微调目标从next token prediction更改为future n-gram prediction,将draft过程融合到目标模型中。Speculative Streaming在Summarization、Structured Queries和Meaning Representation等多种任务中,将解码速度提高了1.8 - 3.1倍,且不牺牲生成质量。此外,Speculative Streaming具有参数高效性。它在使用约10000倍更少的额外参数的情况下,实现了与Medusa风格架构相当或更高的加速,使其非常适合资源受限的设备。

英文摘要:

Speculative decoding is a prominent technique to speed up the inference of a large target language model based on predictions of an auxiliary draft model. While effective, in application-specific settings, it often involves fine-tuning both draft and target models to achieve high acceptance rates. As the number of downstream tasks grows, these draft models add significant complexity to inference systems. We propose Speculative Streaming, a single-model speculative decoding method that fuses drafting into the target model by changing the fine-tuning objective from next token prediction to future n-gram prediction. Speculative Streaming speeds up decoding by 1.8 - 3.1X in a diverse set of tasks, such as Summarization, Structured Queries, and Meaning Representation, without sacrificing generation quality. Additionally, Speculative Streaming is parameter-efficient. It achieves on-par/higher speed-ups than Medusa-style architectures while using ~10000X fewer extra parameters, making it well-suited for resource-constrained devices.

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

↑