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

量化大语言模型中是否存在涌现能力:一项实证研究

Do Emergent Abilities Exist in Quantized Large Language Models: An Empirical Study

Renmin University of China(中国人民大学);Alibaba Group(阿里巴巴集团)

Peiyu Liu, Zikang Liu, Ze-Feng Gao, Dawei Gao, Wayne Xin Zhao, Yaliang Li, Bolin Ding, Ji-Rong Wen

AI总结:

本研究实证考察量化对LLM涌现能力(上下文学习、思维链推理、指令跟随)的影响,发现4位量化保留能力而2位严重退化,并提出细粒度分析与微调补偿方法。

摘要:

尽管大语言模型(LLMs)性能优越,但其部署和使用需要大量的计算资源。为克服这一问题,量化方法被广泛用于减少LLMs的内存占用并提高推理速度。然而,一个主要挑战是低位宽量化方法往往导致性能下降。理解量化如何影响LLMs的能力至关重要。与以往关注整体性能的研究不同,本研究旨在探究量化对涌现能力的影响,而涌现能力是区分LLMs与小语言模型的重要特征。具体而言,我们考察了量化LLMs中的上下文学习、思维链推理和指令跟随能力。我们的实证实验表明,这些涌现能力在4位量化模型中仍然存在,而2位模型在这些能力的测试中遭遇严重性能下降。为提高低位宽模型的性能,我们进行了两项特殊实验:(1)细粒度影响分析,研究哪些组件(或子结构)对量化更敏感;(2)通过模型微调进行性能补偿。我们的工作得出一系列重要发现,以理解量化对涌现能力的影响,并为LLMs的极低位宽量化可能性提供了启示。

英文摘要:

Despite the superior performance, Large Language Models~(LLMs) require significant computational resources for deployment and use. To overcome this issue, quantization methods have been widely applied to reduce the memory footprint of LLMs as well as increasing the inference rate. However, a major challenge is that low-bit quantization methods often lead to performance degradation. It is important to understand how quantization impacts the capacity of LLMs. Different from previous studies focused on overall performance, this work aims to investigate the impact of quantization on \emph{emergent abilities}, which are important characteristics that distinguish LLMs from small language models. Specially, we examine the abilities of in-context learning, chain-of-thought reasoning, and instruction-following in quantized LLMs. Our empirical experiments show that these emergent abilities still exist in 4-bit quantization models, while 2-bit models encounter severe performance degradation on the test of these abilities. To improve the performance of low-bit models, we conduct two special experiments: (1) fine-gained impact analysis that studies which components (or substructures) are more sensitive to quantization, and (2) performance compensation through model fine-tuning. Our work derives a series of important findings to understand the impact of quantization on emergent abilities, and sheds lights on the possibilities of extremely low-bit quantization for LLMs.

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

↑