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

压缩大语言模型:真相鲜有纯粹,且从不简单

Compressing LLMs: The Truth is Rarely Pure and Never Simple

University of Texas at Austin(德克萨斯大学奥斯汀分校);Apple(苹果公司)

Ajay Jaiswal, Zhe Gan, Xianzhi Du, Bowen Zhang, Zhangyang Wang, Yinfei Yang

AI总结:

针对现有压缩LLM评估依赖困惑度指标的不足,本文提出知识密集型基准LLM-KICK,重新评估剪枝与量化方法,发现剪枝性能显著下降而量化更优,旨在推动更好的压缩方法发展。

摘要:

尽管现代大语言模型(LLMs)取得了显著成就,但它们面临着高昂的计算和内存开销。近期,多项研究在无需训练和无需数据的LLM压缩(剪枝和量化)方面取得了显著成功,实现了50-60%的稀疏度并将每个权重的位宽降至3或4比特,相对于未压缩的基线,困惑度仅有可忽略的下降。随着近期研究工作聚焦于开发日益复杂的压缩方法,我们的工作则退一步,重新评估现有最先进(SoTA)压缩方法的有效性,这些方法依赖于一个相当简单且被广泛质疑的指标——困惑度(即使对于稠密LLM也是如此)。我们引入了知识密集型压缩LLM基准(LLM-KICK),这是一个精心策划的任务集合,旨在重新定义压缩LLM的评估协议,因为压缩LLM与其稠密对应物高度对齐,而困惑度无法捕捉其真实能力中的细微变化。LLM-KICK揭示了许多当前SoTA压缩方法的优点和不幸困境:所有剪枝方法都遭受显著的性能下降,有时在微不足道的稀疏度(如25-30%)下即如此,并且在知识密集型任务中无法应对N:M稀疏性;当前的量化方法比剪枝更成功;然而,即使稀疏度达到≥50%,剪枝后的LLM仍是鲁棒的上下文检索和摘要系统;等等。LLM-KICK旨在全面评估压缩LLM在语言理解、推理、生成、上下文检索、上下文摘要等方面的能力。我们希望我们的研究能够促进更好的LLM压缩方法的发展。复现代码可在https://github.com/VITA-Group/llm-kick获取。

英文摘要:

Despite their remarkable achievements, modern Large Language Models (LLMs) face exorbitant computational and memory footprints. Recently, several works have shown significant success in training-free and data-free compression (pruning and quantization) of LLMs that achieve 50 - 60% sparsity and reduce the bit width to 3 or 4 bits per weight, with negligible degradation of perplexity over the uncompressed baseline. As recent research efforts are focused on developing increasingly sophisticated compression methods, our work takes a step back and re-evaluates the effectiveness of existing SoTA compression methods, which rely on a fairly simple and widely questioned metric, perplexity (even for dense LLMs). We introduce Knowledge-Intensive Compressed LLM BenchmarK (LLM-KICK), a collection of carefully curated tasks to redefine the evaluation protocol for compressed LLMs, which have significant alignment with their dense counterparts and perplexity fail to capture subtle change in their true capabilities. LLM-KICK unveils many favorable merits and unfortunate plights of current SoTA compression methods: all pruning methods suffer significant performance degradation, sometimes at trivial sparsity ratios (e.g., 25-30%), and fail for N:M sparsity in knowledge-intensive tasks; current quantization methods are more successful than pruning; yet, pruned LLMs even at $\geq 50$% sparsity are robust in-context retrieval and summarization systems; among others. LLM-KICK is designed to holistically access compressed LLMs' ability for language understanding, reasoning, generation, in-context retrieval, in-context summarization, etc. We hope our study can foster the development of better LLM compression methods. The reproduced codes are available at https://github.com/VITA-Group/llm-kick.

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

↑