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

超越投机博弈:大语言模型中的投机执行综述

Beyond the Speculative Game: A Survey of Speculative Execution in Large Language Models

Beijing Institute of Technology(北京理工大学)

Chen Zhang, Zhuorui Liu, Dawei Song

AI总结:

本文是首篇关于大语言模型中投机执行的综述,系统总结了以“先起草后验证”方式加速解码的现有文献,并提出了统一框架、分类法及未来发展方向。

摘要:

随着(因果)大语言模型(LLMs)规模的日益庞大,推理效率已成为伴随性能提升而产生的核心关注点之一。与内存占用相比,延迟瓶颈似乎更为重要,因为一个 LLM(例如 GPT-4)每天可能会收到数十亿个请求。该瓶颈主要归因于 LLMs 的自回归特性,即在解码过程中只能按顺序生成 token。为了缓解这一瓶颈,源自计算机体系结构领域的投机执行思想,以“先起草后验证”(draft-then-verify)的方式被引入到 LLM 解码中。在这种机制下,利用某些启发式方法快速起草一系列 token,随后由 LLM 并行验证这些 token。由于将代价高昂的顺序推理进行了并行化,LLM 解码速度可以得到显著提升。受近年来 LLMs 成功的推动,该方向的研究文献不断涌现。然而,目前缺乏一篇定位性综述来总结当前的研究现状,并为这一极具前景领域的未来发展绘制路线图。为满足这一需求,我们提出了首篇综述论文,在一个综合框架和系统性分类法中回顾并统一了 LLMs 中投机执行的文献(例如 blockwise parallel decoding、speculative decoding 等)。基于该分类法,我们对当前技术进行了批判性回顾和比较分析。最后,我们强调了进一步发展该领域的各种关键挑战和未来方向。

英文摘要:

With the increasingly giant scales of (causal) large language models (LLMs), the inference efficiency comes as one of the core concerns along the improved performance. In contrast to the memory footprint, the latency bottleneck seems to be of greater importance as there can be billions of requests to a LLM (e.g., GPT-4) per day. The bottleneck is mainly due to the autoregressive innateness of LLMs, where tokens can only be generated sequentially during decoding. To alleviate the bottleneck, the idea of speculative execution, which originates from the field of computer architecture, is introduced to LLM decoding in a \textit{draft-then-verify} style. Under this regime, a sequence of tokens will be drafted in a fast pace by utilizing some heuristics, and then the tokens shall be verified in parallel by the LLM. As the costly sequential inference is parallelized, LLM decoding speed can be significantly boosted. Driven by the success of LLMs in recent couple of years, a growing literature in this direction has emerged. Yet, there lacks a position survey to summarize the current landscape and draw a roadmap for future development of this promising area. To meet this demand, we present the very first survey paper that reviews and unifies literature of speculative execution in LLMs (e.g., blockwise parallel decoding, speculative decoding, etc.) in a comprehensive framework and a systematic taxonomy. Based on the taxonomy, we present a critical review and comparative analysis of the current arts. Finally we highlight various key challenges and future directions to further develop the area.

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

↑