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

LLM推理揭秘:综述与Roofline模型洞察

LLM Inference Unveiled: Survey and Roofline Model Insights

Infinigence-AI(智源人工智能);Illinois Institute of Technology(伊利诺伊理工学院);Carnegie Mellon University(卡内基梅隆大学);University of California, Berkeley(加利福尼亚大学伯克利分校);Peking University(北京大学);Tencent AI Lab(腾讯人工智能实验室);Institute of Automation, CAS(中国科学院自动化研究所);University of Wisconsin, Madison(威斯康星大学麦迪逊分校)

Zhihang Yuan, Yuzhang Shang, Yang Zhou, Zhen Dong, Zhe Zhou, Chenhao Xue, Bingzhe Wu, Zhikai Li, Qingyi Gu, Yong Jae Lee, Yan Yan, Beidi Chen, Guangyu Sun, Kurt Keutzer

AI总结:

本文综述高效LLM推理技术,提出基于roofline模型的分析框架,系统梳理模型压缩、算法改进及硬件系统优化方法,并开源LLM-Viewer工具,为理解部署瓶颈和硬件选择提供指导。

摘要:

高效大语言模型(LLM)推理领域正在迅速发展,呈现出机遇与挑战的独特融合。尽管该领域已经扩展并充满活力,但一直缺乏一个简洁的框架来分析各种LLM推理方法,以提供对该领域的清晰理解。本综述不同于传统文献回顾,不仅总结了当前研究现状,还引入了一个基于roofline模型的框架,用于系统分析LLM推理技术。该框架识别了在硬件设备上部署LLM时的瓶颈,并提供了对实际问题的清晰理解,例如为什么LLM受限于内存带宽、它们需要多少内存和计算量,以及如何选择合适的硬件。我们系统地整理了高效LLM推理的最新进展,涵盖关键领域,如模型压缩(例如知识蒸馏和量化)、算法改进(例如提前退出和专家混合),以及硬件和系统级增强。本综述的独特之处在于用roofline模型分析这些方法,帮助我们理解它们对内存访问和计算的影响。这种独特的方法不仅展示了当前研究格局,还为实际部署提供了宝贵的见解,使我们的工作成为该领域新研究人员以及希望加深对高效LLM部署理解的人不可或缺的资源。分析工具LLM-Viewer已开源。

英文摘要:

The field of efficient Large Language Model (LLM) inference is rapidly evolving, presenting a unique blend of opportunities and challenges. Although the field has expanded and is vibrant, there hasn't been a concise framework that analyzes the various methods of LLM Inference to provide a clear understanding of this domain. Our survey stands out from traditional literature reviews by not only summarizing the current state of research but also by introducing a framework based on roofline model for systematic analysis of LLM inference techniques. This framework identifies the bottlenecks when deploying LLMs on hardware devices and provides a clear understanding of practical problems, such as why LLMs are memory-bound, how much memory and computation they need, and how to choose the right hardware. We systematically collate the latest advancements in efficient LLM inference, covering crucial areas such as model compression (e.g., Knowledge Distillation and Quantization), algorithm improvements (e.g., Early Exit and Mixture-of-Expert), and both hardware and system-level enhancements. Our survey stands out by analyzing these methods with roofline model, helping us understand their impact on memory access and computation. This distinctive approach not only showcases the current research landscape but also delivers valuable insights for practical implementation, positioning our work as an indispensable resource for researchers new to the field as well as for those seeking to deepen their understanding of efficient LLM deployment. The analyze tool, LLM-Viewer, is open-sourced.

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

↑