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

大型语言模型高效推理综述

A Survey on Efficient Inference for Large Language Models

Infinigence-AI(智源人工智能);Tsinghua University(清华大学);Tsinghua Shenzhen International Graduate School(清华大学深圳国际研究生院);Peking University(北京大学)
Zixuan Zhou, Xuefei Ning, Ke Hong, Tianyu Fu, Jiaming Xu, Shiyao Li, Yuming Lou, Luning Wang, Zhihang Yuan, Xiuhong Li, Shengen Yan, Guohao Dai, Xiao-Ping Zhang… 展开作者

Zixuan Zhou, Xuefei Ning, Ke Hong, Tianyu Fu, Jiaming Xu, Shiyao Li, Yuming Lou, Luning Wang, Zhihang Yuan, Xiuhong Li, Shengen Yan, Guohao Dai, Xiao-Ping Zhang, Yuhan Dong, Yu Wang

AI总结:

本文综述了大型语言模型高效推理技术,分析低效原因,提出数据级、模型级和系统级优化分类,并通过对比实验提供定量见解,展望未来方向。

摘要:

大型语言模型(LLMs)因其在各种任务中的卓越性能而受到广泛关注。然而,LLM推理过程中巨大的计算和内存需求给资源受限场景下的部署带来了挑战。该领域的研究工作一直致力于开发旨在提高LLM推理效率的技术。本文对现有关于高效LLM推理的文献进行了全面综述。我们首先分析了导致LLM推理效率低下的主要原因,即模型规模庞大、二次复杂度的注意力操作以及自回归解码方式。然后,我们引入了一个全面的分类体系,将现有文献组织为数据级、模型级和系统级优化。此外,本文还对关键子领域内的代表性方法进行了对比实验,以提供定量见解。最后但同样重要的是,我们提供了一些知识总结并讨论了未来的研究方向。

英文摘要:

Large Language Models (LLMs) have attracted extensive attention due to their remarkable performance across various tasks. However, the substantial computational and memory requirements of LLM inference pose challenges for deployment in resource-constrained scenarios. Efforts within the field have been directed towards developing techniques aimed at enhancing the efficiency of LLM inference. This paper presents a comprehensive survey of the existing literature on efficient LLM inference. We start by analyzing the primary causes of the inefficient LLM inference, i.e., the large model size, the quadratic-complexity attention operation, and the auto-regressive decoding approach. Then, we introduce a comprehensive taxonomy that organizes the current literature into data-level, model-level, and system-level optimization. Moreover, the paper includes comparative experiments on representative methods within critical sub-fields to provide quantitative insights. Last but not least, we provide some knowledge summary and discuss future research directions.

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

↑