arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2404.11502cs.CLcs.AI
收藏

面向大语言模型推理效率的从粗到细评估

Towards Coarse-to-Fine Evaluation of Inference Efficiency for Large Language Models

Gaoling School of Artificial Intelligence, Renmin University of China(中国人民大学高瓴人工智能学院);School of Information, Renmin University of China(中国人民大学信息学院)

Yushuo Chen, Tianyi Tang, Erge Xiang, Linjiang Li, Wayne Xin Zhao, Jing Wang, Yunpeng Chai, Ji-Rong Wen

AI总结:

针对现有大语言模型推理效率优化方法难以比较效果、底层机制不易理解的问题,本研究从粗到细分析多类代码库推理性能,结合应用场景评估与Transformer模块细粒度分析,为代码库评估和推理策略优化提供支撑。

摘要:

在现实场景中,大语言模型(LLMs)可作为助手帮助用户完成工作,同时也能支撑高级应用的开发。对于LLMs的广泛应用而言,推理效率是一项核心关注点,现有工作已对其展开了大量研究,并提出了众多优化算法与代码库来提升推理效率。尽管如此,用户仍难以比较上述所有方法的效果,也难以理解其底层机制。在本研究中,我们对各类代码库的推理性能开展了细致的从粗到细分析。为评估整体效果,我们考察了两个实际应用中的四类使用场景。我们还进一步针对Transformer架构中的每个模块,提供了理论与实证相结合的细粒度分析。我们的实验得出了全面的结果,对研究人员评估代码库、改进推理策略具有重要价值。

英文摘要:

In real world, large language models (LLMs) can serve as the assistant to help users accomplish their jobs, and also support the development of advanced applications. For the wide application of LLMs, the inference efficiency is an essential concern, which has been widely studied in existing work, and numerous optimization algorithms and code libraries have been proposed to improve it. Nonetheless, users still find it challenging to compare the effectiveness of all the above methods and understand the underlying mechanisms. In this work, we perform a detailed coarse-to-fine analysis of the inference performance of various code libraries. To evaluate the overall effectiveness, we examine four usage scenarios within two practical applications. We further provide both theoretical and empirical fine-grained analyses of each module in the Transformer architecture. Our experiments yield comprehensive results that are invaluable for researchers to evaluate code libraries and improve inference strategies.

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

↑