arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2412.01447cs.CLcs.AI
收藏

PLD+:利用语言模型工件加速 LLM 推理

PLD+: Accelerating LLM inference by leveraging Language Model Artifacts

Adobe Research(奥多比研究院)

Shwetha Somasundaram, Anirudh Phukan, Apoorv Saxena

AI总结:

提出 PLD+ 免调优推理加速算法,利用输入输出重叠及推理产生的注意力与隐藏状态,在五类输入引导任务上超过免调优方法,并在四项任务中优于 EAGLE。

摘要:

为降低自回归 LLM 推理相关的延迟,投机解码已成为一种新颖的解码范式,其方式是草拟未来 token 并并行验证。然而,投机解码的实际部署受到其额外计算资源和微调需求的阻碍,这限制了它的开箱即用性。为应对这些挑战,我们提出 PLD+,这是一套用于加速 LLM 推理过程的新颖算法,尤其适用于输入引导型任务。这些任务包括代码编辑、文本编辑、摘要生成等,其输出通常与输入存在大量重叠——PLD+ 正是为利用这一属性而设计。PLD+ 还利用推理过程中生成的工件(注意力状态和隐藏状态)来提升推理速度。我们在五个输入引导型任务上测试了该方法;通过大量实验发现,PLD+ 优于所有无需调优的方法。在贪心设置下,它甚至在四个任务上优于最先进的依赖调优方法 EAGLE(在平均加速比方面最高领先 2.31)。我们的方法无需调优,不需要任何额外计算,并且可以轻松用于加速任意 LLM 的推理。

英文摘要:

To reduce the latency associated with autoretrogressive LLM inference, speculative decoding has emerged as a novel decoding paradigm, where future tokens are drafted and verified in parallel. However, the practical deployment of speculative decoding is hindered by its requirements for additional computational resources and fine-tuning, which limits its out-of-the-box usability. To address these challenges, we present PLD+, a suite of novel algorithms developed to accelerate the inference process of LLMs, particularly for input-guided tasks. These tasks, which include code editing, text editing, summarization, etc., often feature outputs with substantial overlap with their inputs-an attribute PLD+ is designed to exploit. PLD+ also leverages the artifacts (attention and hidden states) generated during inference to accelerate inference speed. We test our approach on five input-guided tasks and through extensive experiments we find that PLD+ outperforms all tuning-free approaches. In the greedy setting, it even outperforms the state-of-the-art tuning-dependent approach EAGLE on four of the tasks. (by a margin of upto 2.31 in terms of avg. speedup). Our approach is tuning free, does not require any additional compute and can easily be used for accelerating inference of any LLM.

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

↑