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

通过多粒度梯度低秩投影实现内存高效的大语言模型训练

Memory-Efficient LLM Training by Various-Grained Low-Rank Projection of Gradients

Johns Hopkins University(约翰斯·霍普金斯大学)

Yezhen Wang, Zhouhao Yang, Brian K Chen, Fanyi Pu, Bo Li, Tianyu Gao, Kenji Kawaguchi

AI总结:

本文提出 VLoRP 框架,通过引入投影粒度这一新自由度扩展低秩梯度投影,并设计自适应优化器 ProjFactor,在固定内存预算下提升大语言模型微调的稳定性、效率与收敛性。

摘要:

在低秩适配器(LoRA)成功的基础上,低秩梯度投影(LoRP)已成为内存高效微调的一种有前景的解决方案。然而,现有的 LoRP 方法通常将梯度矩阵的每一行视为默认投影单元,投影粒度的作用尚未得到充分探索。在这项工作中,我们提出了一个新框架 VLoRP,它在秩超参数之外引入了一个额外的自由度,用于控制内存效率与性能之间的权衡。通过该框架,我们系统地研究了投影粒度的影响,证明即使在固定内存预算下,更细粒度的投影也能带来更高的稳定性和效率。针对 VLoRP 的优化,我们提出了 ProjFactor,一种自适应内存高效优化器,它显著降低了内存需求,同时确保具有竞争力的性能,即使存在梯度累积的情况下也是如此。此外,我们提供了 VLoRP 的理论分析,证明了其在 SGD 和 ProjFactor 下优化轨迹的下降性和收敛性。我们进行了大量实验来验证我们的发现,涵盖常识推理、MMLU 和 GSM8K 等任务。

英文摘要:

Building upon the success of low-rank adapter (LoRA), low-rank gradient projection (LoRP) has emerged as a promising solution for memory-efficient fine-tuning. However, existing LoRP methods typically treat each row of the gradient matrix as the default projection unit, leaving the role of projection granularity underexplored. In this work, we propose a novel framework, VLoRP, that extends low-rank gradient projection by introducing an additional degree of freedom for controlling the trade-off between memory efficiency and performance, beyond the rank hyper-parameter. Through this framework, we systematically explore the impact of projection granularity, demonstrating that finer-grained projections lead to enhanced stability and efficiency even under a fixed memory budget. Regarding the optimization for VLoRP, we present ProjFactor, an adaptive memory-efficient optimizer, that significantly reduces memory requirement while ensuring competitive performance, even in the presence of gradient accumulation. Additionally, we provide a theoretical analysis of VLoRP, demonstrating the descent and convergence of its optimization trajectory under both SGD and ProjFactor. Extensive experiments are conducted to validate our findings, covering tasks such as commonsense reasoning, MMLU, and GSM8K.

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

↑