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

LoRAShear:高效的大语言模型结构化剪枝与知识恢复

LoRAShear: Efficient Large Language Model Structured Pruning and Knowledge Recovery

Microsoft(微软)

Tianyi Chen, Tianyu Ding, Badal Yadav, Ilya Zharkov, Luming Liang

AI总结:

LoRAShear通过LoRA依赖图分析和渐进式结构化剪枝,结合动态微调恢复知识,在仅损失1.0%性能的情况下将大语言模型占用空间减少20%,显著优于现有方法。

摘要:

大语言模型(LLMs)已经改变了人工智能的格局,但其庞大的规模在计算成本方面带来了重大挑战。我们提出LoRAShear,这是一种新颖高效的方法,用于对LLMs进行结构化剪枝并恢复知识。对于给定的通用LLMs,LoRAShear首先在LoRA模块上构建依赖图,以发现最小可移除结构并分析知识分布。随后,它在LoRA适配器上进行渐进式结构化剪枝,并实现固有的知识迁移,以更好地保留冗余结构中的信息。为了恢复剪枝过程中丢失的知识,LoRAShear深入研究并提出了一种带有动态数据适配器的动态微调方案,以有效缩小与完整模型之间的性能差距。数值结果表明,仅使用一个GPU并在几个GPU日内,LoRAShear就有效地将LLMs的占用空间减少了20%,而性能下降仅为1.0%,并且显著优于现有最先进的方法。源代码将在https://github.com/microsoft/lorashear上提供。

英文摘要:

Large Language Models (LLMs) have transformed the landscape of artificial intelligence, while their enormous size presents significant challenges in terms of computational costs. We introduce LoRAShear, a novel efficient approach to structurally prune LLMs and recover knowledge. Given general LLMs, LoRAShear at first creates the dependency graphs over LoRA modules to discover minimally removal structures and analyze the knowledge distribution. It then proceeds progressive structured pruning on LoRA adaptors and enables inherent knowledge transfer to better preserve the information in the redundant structures. To recover the lost knowledge during pruning, LoRAShear meticulously studies and proposes a dynamic fine-tuning schemes with dynamic data adaptors to effectively narrow down the performance gap to the full models. Numerical results demonstrate that by only using one GPU within a couple of GPU days, LoRAShear effectively reduced footprint of LLMs by 20% with only 1.0% performance degradation and significantly outperforms state-of-the-arts. The source code will be available at https://github.com/microsoft/lorashear.

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

↑