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

GraLoRA: 颗粒化低秩适应用于参数高效微调

GraLoRA: Granular Low-Rank Adaptation for Parameter-Efficient Fine-Tuning

SqueezeBits;POSTECH

Yeonjoon Jung, Daehyun Ahn, Hyungjun Kim, Taesu Kim, Eunhyeok Park

AI总结:

GraLoRA通过颗粒化低秩适应提升参数高效微调效果,实现比LoRA更高的准确性和鲁棒性。

摘要:

低秩适应(LoRA)是一种流行的参数高效微调(PEFT)方法,因其简单和有效而受到青睐。尽管最近有改进,但LoRA仍然存在根本性的限制:当瓶颈扩大时会过拟合。它在秩32-64时表现最佳,但其准确性在更高秩时停滞或下降,仍然无法达到全微调(FFT)性能。我们发现根本原因是LoRA的结构瓶颈,它会将无关的输入通道引入梯度纠缠并扭曲梯度传播。为了解决这个问题,我们引入了一种新的结构,即颗粒化低秩适应(GraLoRA),它将权重矩阵分成子块,每个子块都有自己的低秩适配器。几乎不增加计算或存储成本,GraLoRA克服了LoRA的局限性,有效增加了表示能力,并更接近FFT行为。在代码生成和常识推理基准上的实验表明,GraLoRA在LoRA和其他基线方法上始终表现更优,达到HumanEval+上Pass@1的绝对增益最高+8.5%。这些改进在模型大小和秩设置上都保持一致,使GraLoRA成为PEFT的可扩展且稳健的解决方案。代码、数据和脚本可在https://github.com/SqueezeBits/GraLoRA.git获取。

英文摘要:

Low-Rank Adaptation (LoRA) is a popular method for parameter-efficient fine-tuning (PEFT) of generative models, valued for its simplicity and effectiveness. Despite recent enhancements, LoRA still suffers from a fundamental limitation: overfitting when the bottleneck is widened. It performs best at ranks 32-64, yet its accuracy stagnates or declines at higher ranks, still falling short of full fine-tuning (FFT) performance. We identify the root cause as LoRA's structural bottleneck, which introduces gradient entanglement to the unrelated input channels and distorts gradient propagation. To address this, we introduce a novel structure, Granular Low-Rank Adaptation (GraLoRA) that partitions weight matrices into sub-blocks, each with its own low-rank adapter. With negligible computational or storage cost, GraLoRA overcomes LoRA's limitations, effectively increases the representational capacity, and more closely approximates FFT behavior. Experiments on code generation and commonsense reasoning benchmarks show that GraLoRA consistently outperforms LoRA and other baselines, achieving up to +8.5% absolute gain in Pass@1 on HumanEval+. These improvements hold across model sizes and rank settings, making GraLoRA a scalable and robust solution for PEFT. Code, data, and scripts are available at https://github.com/SqueezeBits/GraLoRA.git

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

↑