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

面向大型语言模型的一次性敏感度感知混合稀疏度剪枝

One-Shot Sensitivity-Aware Mixed Sparsity Pruning for Large Language Models

Shanghai Jiao Tong University(上海交通大学);Meituan(美团)

Hang Shao, Bei Liu, Bo Xiao, Ke Zeng, Guanglu Wan, Yanmin Qian

AI总结:

本文提出一种基于Hessian敏感度感知的混合稀疏度剪枝方法,无需重训练即可将大型语言模型剪枝至至少50%稀疏度,通过自适应分配稀疏度减少误差,且兼容量化以进一步压缩模型。

摘要:

来自生成式预训练Transformer(GPT)家族的各种大型语言模型(LLMs)在广泛的文本生成任务中取得了出色的表现。然而,由于高推理延迟,庞大的模型规模阻碍了它们在实际应用中的实用。因此,通过量化、剪枝和其他手段提高LLMs的效率一直是LLM研究中的关键问题。在这项工作中,我们提出了一种基于Hessian敏感度感知混合稀疏度剪枝的方法,无需任何重训练即可将LLMs剪枝至至少50%的稀疏度。该方法基于敏感度自适应分配稀疏度,使我们能够在保持整体稀疏度水平的同时减少剪枝引起的误差。当稀疏度极高时,所提方法的优势更加明显。此外,我们的方法与量化兼容,能够进一步压缩LLMs。我们已发布了可用代码。

英文摘要:

Various Large Language Models~(LLMs) from the Generative Pretrained Transformer(GPT) family have achieved outstanding performances in a wide range of text generation tasks. However, the enormous model sizes have hindered their practical use in real-world applications due to high inference latency. Therefore, improving the efficiencies of LLMs through quantization, pruning, and other means has been a key issue in LLM studies. In this work, we propose a method based on Hessian sensitivity-aware mixed sparsity pruning to prune LLMs to at least 50% sparsity without the need of any retraining. It allocates sparsity adaptively based on sensitivity, allowing us to reduce pruning-induced error while maintaining the overall sparsity level. The advantages of the proposed method exhibit even more when the sparsity is extremely high. Furthermore, our method is compatible with quantization, enabling further compression of LLMs. We have released the available code.

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

↑