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

CoRA:利用大语言模型公共子空间优化低秩适配

CoRA: Optimizing Low-Rank Adaptation with Common Subspace of Large Language Models

The University of Auckland(奥克兰大学)

Xiaojun Xiao, Sen Shen, Qiming Bao, Hongfei Rong, Kairui Liu, Zhongsheng Wang, Jiamou Liu

AI总结:

本文提出CoRA方法,通过用大模型公共子空间替换LoRA中的矩阵B,在冻结或增强初始化两种策略下减少参数或提升微调性能,实现更高效的大语言模型适配。

摘要:

在微调大语言模型(LLMs)时,在相同的计算约束下节省计算资源、保持有效性并改善结果至关重要。低秩适配(LoRA)策略通过减少可训练参数数量和计算成本,在大模型微调中平衡了效率与性能。然而,当前LoRA的进展可能主要集中在其微调方法上,而对LoRA的进一步压缩探索可能不如预期充分。由于LoRA的大部分参数可能仍然是冗余的,这可能导致不必要的计算资源浪费。本文提出CoRA:利用共享知识优化LoRA训练,将其矩阵B替换为来自大模型的公共子空间。我们的双重方法包括:(1)冻结替代矩阵B以将参数减半,同时针对特定任务训练矩阵A;(2)将替代矩阵B用作原始矩阵B的增强初始状态,在相同参数量下获得更好的结果。实验表明,第一种方法达到了与原始LoRA微调相同的效果,同时比参数减半更高效;第二种方法相比LoRA原始微调性能有所提升。实验结果总体证明了我们工作的有效性。

英文摘要:

In fine-tuning large language models (LLMs), conserving computational resources while maintaining effectiveness and improving outcomes within the same computational constraints is crucial. The Low-Rank Adaptation (LoRA) strategy balances efficiency and performance in fine-tuning large models by reducing the number of trainable parameters and computational costs. However, current advancements in LoRA might be focused on its fine-tuning methodologies, with not as much exploration as might be expected into further compression of LoRA. Since most of LoRA's parameters might still be superfluous, this may lead to unnecessary wastage of computational resources. In this paper, we propose \textbf{CoRA}: leveraging shared knowledge to optimize LoRA training by substituting its matrix $B$ with a common subspace from large models. Our two-fold method includes (1) Freezing the substitute matrix $B$ to halve parameters while training matrix $A$ for specific tasks and (2) Using the substitute matrix $B$ as an enhanced initial state for the original matrix $B$, achieving improved results with the same parameters. Our experiments show that the first approach achieves the same efficacy as the original LoRA fine-tuning while being more efficient than halving parameters. At the same time, the second approach has some improvements compared to LoRA's original fine-tuning performance. They generally attest to the effectiveness of our work.

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

↑