arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2412.09250cs.LGmath.GTstat.ML
收藏

GeLoRA:用于高效 LoRA 微调的几何自适应秩

GeLoRA: Geometric Adaptive Ranks For Efficient LoRA Fine-tuning

NYU Tandon School of Engineering(纽约大学坦登工程学院)

Abdessalam Ed-dib, Zhanibek Datbayev, Amine Mohamed Aboussalah

AI总结:

提出GeLoRA框架,通过计算隐藏状态表示的本征维度自适应选择LoRA秩,为性能与效率权衡提供理论基础,并在相同参数预算下优于现有基线。

摘要:

微调大型语言模型(LLMs)在计算上非常密集,因为它需要更新所有参数。低秩适应(LoRA)通过仅修改部分权重来提高效率,但引入了表达力与计算成本之间的权衡:较低的秩减少了资源消耗但限制了表达能力,而较高的秩以增加成本为代价增强了表达力。尽管自适应 LoRA 技术最近取得了进展,但现有方法未能为优化模型性能与效率之间的权衡提供理论基础。我们提出了几何低秩适应(GeLoRA),这是一个新颖的框架,它计算隐藏状态表示的本征维度以自适应地选择 LoRA 秩。我们证明本征维度为 LoRA 矩阵的最优秩提供了下界,从而允许进行平衡效率和表达力的有原则的选择。GeLoRA 根据其输入和输出表示的本征维度动态调整每一层的秩,认识到并非所有模型参数对微调的影响都相同。在多个任务上的实证验证表明,GeLoRA 在相同的参数预算内始终优于最近的基线。

英文摘要:

Fine-tuning large language models (LLMs) is computationally intensive because it requires updating all parameters. Low-Rank Adaptation (LoRA) improves efficiency by modifying only a subset of weights but introduces a trade-off between expressivity and computational cost: lower ranks reduce resources but limit expressiveness, while higher ranks enhance expressivity at increased cost. Despite recent advances in adaptive LoRA techniques, existing methods fail to provide a theoretical basis for optimizing the trade-off between model performance and efficiency. We propose Geometric Low-Rank Adaptation (GeLoRA), a novel framework that computes the intrinsic dimensionality of hidden state representations to adaptively select LoRA ranks. We demonstrate that the intrinsic dimension provides a lower bound for the optimal rank of LoRA matrices, allowing for a principled selection that balances efficiency and expressivity. GeLoRA dynamically adjusts the rank for each layer based on the intrinsic dimensionality of its input and output representations, recognizing that not all model parameters equally impact fine-tuning. Empirical validation on multiple tasks shows that GeLoRA consistently outperforms recent baselines within the same parameter budget.

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

↑