arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2412.18110cs.AI
收藏

SlimGPT:面向大语言模型的分层结构化剪枝

SlimGPT: Layer-wise Structured Pruning for Large Language Models

Alibaba Group(阿里巴巴集团)

Gui Ling, Ziyang Wang, Yuliang Yan, Qingwen Liu

摘要:

大语言模型(LLM)因其跨多个领域的卓越能力而受到广泛关注,其庞大的参数规模为实际部署带来了挑战。结构化剪枝是平衡模型性能和效率的有效方法,但在计算资源约束下的性能恢复是LLM剪枝的主要挑战。因此,我们提出了一个低成本和快速的结构化修剪方法LLM命名SlimGPT的基础上的最佳脑外科医生框架。我们提出了批量贪婪修剪快速和接近最优的修剪,它提高了头部的修剪误差估计的准确性,通过分组Cholesky分解和提高修剪效率的FFN通过动态组大小,从而实现近似局部最优的修剪结果在一个小时内。此外,我们从错误累积的角度探讨了分层剪枝的局限性,并提出了增量剪枝比,一种非均匀剪枝策略,以减少性能下降。LLaMA基准测试的实验结果表明,SlimGPT优于其他方法,并取得了最先进的结果。

英文摘要:

Large language models (LLMs) have garnered significant attention for their remarkable capabilities across various domains, whose vast parameter scales present challenges for practical deployment. Structured pruning is an effective method to balance model performance with efficiency, but performance restoration under computational resource constraints is a principal challenge in pruning LLMs. Therefore, we present a low-cost and fast structured pruning method for LLMs named SlimGPT based on the Optimal Brain Surgeon framework. We propose Batched Greedy Pruning for rapid and near-optimal pruning, which enhances the accuracy of head-wise pruning error estimation through grouped Cholesky decomposition and improves the pruning efficiency of FFN via Dynamic Group Size, thereby achieving approximate local optimal pruning results within one hour. Besides, we explore the limitations of layer-wise pruning from the perspective of error accumulation and propose Incremental Pruning Ratio, a non-uniform pruning strategy to reduce performance degradation. Experimental results on the LLaMA benchmark show that SlimGPT outperforms other methods and achieves state-of-the-art results.

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

↑