ReGRA:用于互补低秩微调的残差梯度适配
ReGRA: Residual-Gradient Adaptation for Complementary Low-Rank Fine-Tuning
AI总结:
ReGRA是一种两阶段低秩微调方法,通过利用残差梯度和正交正则化提升固定秩预算的使用效率,在相同总秩下性能优于同类方法,可匹配两倍秩的LoRA适配器。
摘要:
低秩适配(LoRA)通过学习低秩权重更新实现参数高效微调。增加秩可扩展适配能力,但无法保证所有学习到的方向都能提升下游性能。在秩为16的LoRA诊断实验中,我们发现仅保留前几个奇异分量可获得最佳性能,而添加更多分量会导致性能下降。受此启发,我们提出残差梯度适配(ReGRA),这是一种用于更有效利用固定秩预算的两阶段方法。第一阶段后,ReGRA在校准集上估计任务梯度,并去除其在第一阶段更新诱导的双侧子空间上的投影;随后聚合残差梯度方向以初始化第二阶段适配器,且不改变第一阶段更新,正交正则化器鼓励两次更新捕捉互补方向。两次更新均可合并到预训练权重中,不会增加额外推理开销。在多个基准数据集上,ReGRA在总秩相同的情况下比其他方法性能更强,甚至可匹配秩为其两倍的LoRA适配器。消融研究及进一步分析支持其核心设计选择的贡献,代码可在https://github.com/Fanyao-Li/ReGRA获取。
英文摘要:
Low-rank adaptation (LoRA) enables parameter-efficient fine-tuning by learning low-rank weight updates. Increasing rank expands adaptation capacity, but does not guarantee that all learned directions improve downstream performance. In a diagnostic experiment with rank-16 LoRA, we show that retaining only the top singular components achieves the best performance, whereas adding further components degrades it. Motivated by this, we propose Residual-Gradient Adaptation (ReGRA), a two-stage method for making more effective use of a fixed rank budget. After the first stage, ReGRA estimates task gradients on a calibration set and removes their projections onto the two-sided subspace induced by the first-stage update. It then aggregates the residual-gradient directions to initialize a second-stage adapter without changing the first-stage update. An orthogonality regularizer encourages the two updates to capture complementary directions. Both updates can be merged into the pretrained weights, incurring no additional inference overhead. Across diverse benchmark sets, ReGRA achieves stronger performance than alternatives with the same total rank and even matches LoRA adapters with twice the rank. Ablation studies and further analysis support the contribution of its core design choices. Code is available at https://github.com/Fanyao-Li/ReGRA.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。