arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2411.02530cs.LGcs.AIcs.CL
收藏

大型语言模型量化技术的综合研究

A Comprehensive Study on Quantization Techniques for Large Language Models

Northeastern University(东北大学);University of Pittsburgh(匹兹堡大学);Columbia University(哥伦比亚大学)

Jiedong Lang, Zhehao Guo, Shuyu Huang

AI总结:

本研究全面综述了大型语言模型的量化技术,涵盖数学理论、常见方法及其在LLMs中的应用,旨在通过降低模型精度来减小模型规模并加速推理。

摘要:

自Transformer模型流行以来,大型语言模型(LLMs)在学术界和工业界得到了广泛的研究和应用,在人工智能领域展现出卓越的性能。然而,LLMs的计算需求巨大,运行所需的能源资源往往有限。例如,像GPT-3这样的流行模型拥有1750亿个参数,存储需求高达350 GB,这给在资源受限的物联网设备和嵌入式系统上的部署带来了重大挑战。这些系统通常缺乏处理如此大型模型的计算能力。量化是一种将模型值的精度降低为更小的离散值集合的技术,通过减小LLMs的规模并加速推理,提供了一种有前景的解决方案。在本研究中,我们对机器学习领域的量化技术进行了全面分析,特别关注其在LLMs中的应用。我们首先探讨了量化的数学理论,然后回顾了常见的量化方法及其实现方式。此外,我们考察了应用于LLMs的几种重要量化方法,详细介绍了它们的算法和性能结果。

英文摘要:

Large Language Models (LLMs) have been extensively researched and used in both academia and industry since the rise in popularity of the Transformer model, which demonstrates excellent performance in AI. However, the computational demands of LLMs are immense, and the energy resources required to run them are often limited. For instance, popular models like GPT-3, with 175 billion parameters and a storage requirement of 350 GB, present significant challenges for deployment on resource-constrained IoT devices and embedded systems. These systems often lack the computational capacity to handle such large models. Quantization, a technique that reduces the precision of model values to a smaller set of discrete values, offers a promising solution by reducing the size of LLMs and accelerating inference. In this research, we provide a comprehensive analysis of quantization techniques within the machine learning field, with a particular focus on their application to LLMs. We begin by exploring the mathematical theory of quantization, followed by a review of common quantization methods and how they are implemented. Furthermore, we examine several prominent quantization methods applied to LLMs, detailing their algorithms and performance outcomes.

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

↑