arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2501.14713cs.CLcs.LG
收藏

FlexiGPT:基于低秩权重共享的大语言模型剪枝与扩展

FlexiGPT: Pruning and Extending Large Language Models with Low-Rank Weight Sharing

Samsung Research America(三星美国研究院);Florida State University(佛罗里达州立大学)

James Seale Smith, Chi-Heng Lin, Shikhar Tuli, Haris Jeelani, Shangqian Gao, Yilin Shen, Hongxia Jin, Yen-Chang Hsu

AI总结:

提出基于低秩权重共享的LLM剪枝与扩展方法,通过重要性评分剪除模型块并利用低秩适配器替换,在30%和40%压缩率下实现SOTA,且能以极低参数和训练成本扩展小模型。

摘要:

大型语言模型(LLM)在自然语言处理(NLP)领域的快速激增,催生了对相关技术的迫切需求,这些技术需能在不牺牲性能的前提下,实现于内存受限设备上的高效部署。我们提出了一种LLM剪枝方法,该方法基于重要性评分选择性剪除模型块,并用低参数替换策略将其替代。具体而言,我们提出了一种原则性度量标准,利用权重共享机制替换每个剪枝块,该机制利用模型中未剪枝的对应部分以及块特定的低秩适配器。此外,我们通过输出特征归一化以及基于低秩SVD重建的适配器初始化方案,促进了这些替换块的学习。实证评估表明,相较于现有方法取得了显著的性能提升,在30%压缩率下于6项基准中的5项达到SOTA,在40%压缩率下于6项基准全部达到SOTA。我们还证明该方法能扩展较小模型,仅使用扩展训练约0.3%的token且带来极小额外参数成本,便在6项基准上均提升了性能。

英文摘要:

The rapid proliferation of large language models (LLMs) in natural language processing (NLP) has created a critical need for techniques that enable efficient deployment on memory-constrained devices without compromising performance. We present a method to prune LLMs that selectively prunes model blocks based on an importance score and replaces them with a low-parameter replacement strategy. Specifically, we propose a principled metric to replace each pruned block using a weight-sharing mechanism that leverages unpruned counterparts from the model and block-specific low-rank adapters. Furthermore, we facilitate the learning of these replacement blocks with output feature normalization and an adapter initialization scheme built on low-rank SVD reconstructions. Empirical evaluations demonstrate substantial performance gains over existing methods, achieving state-of-the-art performance on 5/6 benchmarks for a compression rate of 30% and 6/6 benchmarks for a compression rate of 40%. We also demonstrate that our approach can extend smaller models, boosting performance on 6/6 benchmarks using only ~0.3% tokens of extended training with minimal additional parameter costs.

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

↑