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

AutoLoRA:基于元学习的低秩适配矩阵秩自动调优

AutoLoRA: Automatically Tuning Matrix Ranks in Low-Rank Adaptation Based on Meta Learning

UC San Diego(加州大学圣地亚哥分校);Tsinghua University(清华大学)

Ruiyi Zhang, Rushi Qiang, Sai Ashish Somayajula, Pengtao Xie

AI总结:

AutoLoRA提出基于元学习的框架,自动为LoRA各层确定最优秩,通过选择变量和阈值化避免穷举搜索,提升微调性能,并在多种NLP任务上验证有效性。

摘要:

大规模预训练后接任务特定微调已在各种自然语言处理任务中取得了巨大成功。由于微调大型预训练模型的所有参数会带来巨大的计算和内存挑战,因此已开发出多种高效的微调方法。其中,低秩适配(LoRA)在冻结的预训练权重之上微调低秩增量更新矩阵,已被证明特别有效。然而,LoRA在所有层中统一分配秩,且依赖穷举搜索来寻找最佳秩,这导致了高计算成本和次优的微调性能。为解决这些局限性,我们引入了AutoLoRA,一个基于元学习的框架,用于自动识别每个LoRA层的最佳秩。AutoLoRA将低秩更新矩阵中的每个秩为1的矩阵与一个选择变量关联,该变量决定该秩为1的矩阵是否应被丢弃。我们开发了一种基于元学习的方法来学习这些选择变量。最佳秩通过阈值化这些变量的值来确定。我们在自然语言理解、生成和序列标注上的全面实验证明了AutoLoRA的有效性。

英文摘要:

Large-scale pretraining followed by task-specific finetuning has achieved great success in various NLP tasks. Since finetuning all parameters of large pretrained models poses substantial computational and memory challenges, several efficient finetuning methods have been developed. Among them, low-rank adaptation (LoRA), which finetunes low-rank incremental update matrices on top of frozen pretrained weights, has proven particularly effective. Nonetheless, LoRA's uniform rank assignment across all layers, along with its reliance on an exhaustive search to find the best rank, leads to high computation costs and suboptimal finetuning performance. To address these limitations, we introduce AutoLoRA, a meta learning based framework for automatically identifying the optimal rank of each LoRA layer. AutoLoRA associates each rank-1 matrix in a low-rank update matrix with a selection variable, which determines whether the rank-1 matrix should be discarded. A meta learning based method is developed to learn these selection variables. The optimal rank is determined by thresholding the values of these variables. Our comprehensive experiments on natural language understanding, generation, and sequence labeling demonstrate the effectiveness of AutoLoRA.

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

↑