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

MoRA:面向参数高效微调的高秩更新

MoRA: High-Rank Updating for Parameter-Efficient Fine-Tuning

Beihang University(北京航空航天大学);Microsoft Corporation(微软公司)

Ting Jiang, Shaohan Huang, Shengyue Luo, Zihan Zhang, Haizhen Huang, Furu Wei, Weiwei Deng, Feng Sun, Qi Zhang, Deqing Wang, Fuzhen Zhuang

AI总结:

针对 LoRA 低秩更新限制 LLM 学习与记忆新知识的问题,本文提出 MoRA,利用方阵和无参数降维、升维算子在同等可训练参数量下实现高秩更新,并支持权重合并部署。

摘要:

低秩自适应是大语言模型中一种流行的参数高效微调方法。本文分析了 LoRA 所实现的低秩更新带来的影响。研究结果表明,低秩更新机制可能会限制 LLM 有效学习和记忆新知识的能力。受此观察启发,我们提出了一种名为 MoRA 的新方法,该方法采用方阵实现高秩更新,同时保持相同数量的可训练参数。为实现这一点,我们引入了相应的无参数算子,用于降低方阵的输入维度并提高其输出维度。此外,这些算子确保权重可以合并回 LLM,使我们的方法能够像 LoRA 一样部署。我们在指令微调、数学推理、持续预训练、记忆和预训练五项任务上对该方法进行了全面评估。结果显示,我们的方法在记忆密集型任务上优于 LoRA,并在其他任务上取得了与之相当的性能。

英文摘要:

Low-rank adaptation is a popular parameter-efficient fine-tuning method for large language models. In this paper, we analyze the impact of low-rank updating, as implemented in LoRA. Our findings suggest that the low-rank updating mechanism may limit the ability of LLMs to effectively learn and memorize new knowledge. Inspired by this observation, we propose a new method called MoRA, which employs a square matrix to achieve high-rank updating while maintaining the same number of trainable parameters. To achieve it, we introduce the corresponding non-parameter operators to reduce the input dimension and increase the output dimension for the square matrix. Furthermore, these operators ensure that the weight can be merged back into LLMs, which makes our method can be deployed like LoRA. We perform a comprehensive evaluation of our method across five tasks: instruction tuning, mathematical reasoning, continual pretraining, memory and pretraining. Our method outperforms LoRA on memory-intensive tasks and achieves comparable performance on other tasks.

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

↑