arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2402.07721cs.LGcs.CL
收藏

LoRA-drop:基于输出评估的高效LoRA参数剪枝

LoRA-drop: Efficient LoRA Parameter Pruning based on Output Evaluation

Faculty of Computing, Harbin Institute of Technology(哈尔滨工业大学计算学部)

Hongyun Zhou, Xiangyu Lu, Wang Xu, Conghui Zhu, Tiejun Zhao, Muyun Yang

AI总结:

针对大模型LoRA微调的资源消耗问题,提出基于LoRA输出评估重要性的剪枝方法LoRA-drop,重要层保留独立LoRA、其余层共享LoRA,在NLU和NLG任务上仅保留平均50%参数即可达到与全量微调、LoRA相当的性能。

摘要:

低秩适配(Low-Rank Adaptation, LoRA)是目前最常用的参数高效微调(Parameter-efficient fine-tuning, PEFT)方法,它为每一层引入辅助参数,以在有限计算资源下微调预训练模型。但在扩展到更大模型时,其训练过程仍面临资源消耗挑战。以往多数研究采用剪枝技术解决该问题,即移除被判定为不重要的LoRA参数,但这些工作仅分析LoRA的参数特征(如参数量、参数大小和梯度)来评估重要性。实际上,LoRA的输出(LoRA参数与隐藏状态的乘积)会直接影响最终结果。初步实验表明,一小部分LoRA元素的输出值显著偏高,对层输出有实质性影响。受该观察启发,我们提出LoRA-drop。具体而言,LoRA-drop基于LoRA输出来评估其重要性,随后为重要层保留LoRA,其余层共享同一个LoRA。我们在自然语言理解(NLU)和自然语言生成(NLG)任务上,使用不同规模的模型开展了大量实验。结果显示,LoRA-drop在平均保留50% LoRA参数的情况下,能取得与全量微调及LoRA相当的性能。

英文摘要:

Low-Rank Adaptation (LoRA) is currently the most commonly used Parameter-efficient fine-tuning (PEFT) method, it introduces auxiliary parameters for each layer to fine-tune the pre-trained model under limited computing resources. However, it still faces resource consumption challenges during training when scaling up to larger models. Most previous studies have tackled this issue by using pruning techniques, which involve removing LoRA parameters deemed unimportant. Nonetheless, these efforts only analyze LoRA parameter features to evaluate their importance, such as parameter count, size, and gradient. In fact, the output of LoRA (product of LoRA parameter and hidden state), directly impacts the final results. Preliminary experiments indicate that a fraction of LoRA elements possesses significantly high output values, substantially influencing the layer output. Motivated by the observation, we propose LoRA-drop. Concretely, LoRA-drop evaluates the importance of LoRA based on the LoRA output. Then we retain LoRA for important layers and the other layers share the same LoRA. We conduct abundant experiments with models of different scales on NLU and NLG tasks. Results demonstrate that LoRA-drop can achieve performance comparable to full fine-tuning and LoRA, while retaining 50\% of the LoRA parameters on average.

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

↑