arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2502.01378cs.LG
收藏

CE-LoRA:面向语言模型的计算高效LoRA微调

CE-LoRA: Computation-Efficient LoRA Fine-Tuning for Language Models

Fudan University(复旦大学);Peking University(北京大学);HKUST(香港科技大学)

Guanduo Chen, Yutong He, Yipeng Hu, Kun Yuan, Binhang Yuan

AI总结:

本文指出LoRA反向传播中激活梯度计算是主要瓶颈,提出CE-LoRA算法,通过近似矩阵乘法和Double-LoRA技术提升计算效率,在保持收敛速率与不损失性能的前提下显著降低了计算成本。

摘要:

大型语言模型(LLMs)在各种任务中表现出色,但即使在微调计算时也需要大量计算资源。尽管低秩适应(LoRA)显著缓解了微调过程中的内存消耗,但其在降低计算成本方面的影响有限。本文将激活梯度的计算识别为LoRA反向传播中的主要瓶颈,并提出了计算高效LoRA(CE-LoRA)算法,该算法在保持内存效率的同时提高了计算效率。CE-LoRA利用两项关键技术:近似矩阵乘法,用仅涉及关键行和列的稀疏乘法替代大型完整矩阵的密集乘法;以及Double-LoRA技术,减少激活梯度中的误差传播。理论上,CE-LoRA以与LoRA相同的速率收敛,即 $ \mathcal{O}(1/\sqrt{T}) $,其中 $T$ 为迭代次数。实证评估证实,与LoRA相比,CE-LoRA显著降低了计算成本,且没有明显的性能下降。

英文摘要:

Large Language Models (LLMs) demonstrate exceptional performance across various tasks but demand substantial computational resources even for fine-tuning computation. Although Low-Rank Adaptation (LoRA) significantly alleviates memory consumption during fine-tuning, its impact on computational cost reduction is limited. This paper identifies the computation of activation gradients as the primary bottleneck in LoRA's backward propagation and introduces the Computation-Efficient LoRA (CE-LoRA) algorithm, which enhances computational efficiency while preserving memory efficiency. CE-LoRA leverages two key techniques: Approximated Matrix Multiplication, which replaces dense multiplications of large and complete matrices with sparse multiplications involving only critical rows and columns, and the Double-LoRA technique, which reduces error propagation in activation gradients. Theoretically, CE-LoRA converges at the same rate as LoRA, $ \mathcal{O}(1/\sqrt{T}) $, where $T$ is the number of iteartions. Empirical evaluations confirm that CE-LoRA significantly reduces computational costs compared to LoRA without notable performance degradation.

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

↑