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

DPPA:面向大语言模型模型融合的剪枝方法

DPPA: Pruning Method for Large Language Model to Model Merging

Nanjing University of Science and Technology(南京理工大学);School of Artificial Intelligence, University of Chinese Academy of Sciences(中国科学院大学人工智能学院)

Yaochen Zhu, Rui Xia, Jiajun Zhang

AI总结:

针对复杂微调模型融合时现有剪枝方法效果下降的问题,提出两阶段DPPA方法,通过动态剪枝和动态分区放大,仅保留20%参数即可实现媲美高保留率方法的性能,融合性能提升近20%。

摘要:

模型融合旨在组合来自多个领域的微调模型,以提升模型在不同领域的能力,其核心问题是参数冲突的解决。现有大量研究在融合阶段解决该问题,最新研究则聚焦于在剪枝阶段处理这一问题。DARE方法在简单微调模型上应用时展现出了可观的效果,但当应用于相对于基线模型存在显著参数偏差的复杂微调模型时,该方法的效果往往会下降。本文提出了一种名为Dynamic Pruning Partition Amplification(DPPA,动态剪枝分区放大)的两阶段方法,用于应对复杂微调模型的融合挑战。首先,我们提出了动态剪枝(DP),这是一种基于幅度剪枝的改进方法,旨在提升高剪枝率下的性能。随后,我们提出了动态分区放大(DPA),这是一种重缩放策略,用于根据参数分区的重要性程度动态放大它们。实验结果表明,我们的方法仅保留20%的领域特定参数,却能达到与保留多达90%参数的其他方法相当的性能。此外,我们的方法在剪枝后表现出色,使模型融合性能提升了近20%。我们已将代码发布在Github上。

英文摘要:

Model merging is to combine fine-tuned models derived from multiple domains, with the intent of enhancing the model's proficiency across various domains. The principal concern is the resolution of parameter conflicts. A substantial amount of existing research remedy this issue during the merging stage, with the latest study focusing on resolving this issue throughout the pruning stage. The DARE approach has exhibited promising outcomes when applied to a simplistic fine-tuned model. However, the efficacy of this method tends to wane when employed on complex fine-tuned models that show a significant parameter bias relative to the baseline model. In this paper, we introduce a dual-stage method termed Dynamic Pruning Partition Amplification (DPPA), devised to tackle the challenge of merging complex fine-tuned models. Initially, we introduce Dynamically Pruning (DP), an improved approach based on magnitude pruning, which aim is to enhance performance at higher pruning rates. Subsequently, we propose Dynamically Partition Amplification (DPA), a rescaling strategy, is designed to dynamically amplify parameter partitions in relation to their significance levels. The experimental results show that our method maintains a mere 20% of domain-specific parameters and yet delivers a performance comparable to other methodologies that preserve up to 90% of parameters. Furthermore, our method displays outstanding performance post-pruning, leading to a significant improvement of nearly 20% performance in model merging. We make our code on Github.

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

↑