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

基础模型低秩适配器中的不对称性

Asymmetry in Low-Rank Adapters of Foundation Models

MIT CSAIL(麻省理工学院计算机科学与人工智能实验室);University of Oxford(牛津大学);MIT-IBM Watson AI Lab(麻省理工学院-IBM沃森人工智能实验室)

Jiacheng Zhu, Kristjan Greenewald, Kimia Nadjahi, Haitz Sáez de Ocáriz Borde, Rickard Brüel Gabrielsson, Leshem Choshen, Marzyeh Ghassemi, Mikhail Yurochkin, Justin Solomon

AI总结:

本文发现LoRA中B和A矩阵作用不对称,证明仅微调B更有效且随机未训练的A几乎同样有效,并从信息论角度给出泛化上界,在多个模型上验证了结论。

摘要:

参数高效微调通过更新参数子集来优化大型预训练基础模型;在这一类方法中,低秩适配(LoRA)尤其有效。受探究微调过程中LoRA矩阵不同作用的努力启发,本文刻画并利用了低秩适配器矩阵重要性中出人意料的不对称性。具体而言,当通过添加乘积$BA$来更新神经网络的参数矩阵时,我们观察到$B$和$A$矩阵具有不同的功能:$A$从输入中提取特征,而$B$利用这些特征生成期望的输出。基于这一观察,我们证明微调$B$本质上比微调$A$更有效,并且一个随机未训练的$A$的表现应当几乎与经过微调的$A$一样好。借助信息论的视角,我们还对低秩适配器的泛化性给出了上界,表明仅训练$B$所带来的参数节省改善了该上界。我们通过在RoBERTa、BART-Large、LLaMA-2和ViTs上的实验支持了这些结论。

英文摘要:

Parameter-efficient fine-tuning optimizes large, pre-trained foundation models by updating a subset of parameters; in this class, Low-Rank Adaptation (LoRA) is particularly effective. Inspired by an effort to investigate the different roles of LoRA matrices during fine-tuning, this paper characterizes and leverages unexpected asymmetry in the importance of low-rank adapter matrices. Specifically, when updating the parameter matrices of a neural network by adding a product $BA$, we observe that the $B$ and $A$ matrices have distinct functions: $A$ extracts features from the input, while $B$ uses these features to create the desired output. Based on this observation, we demonstrate that fine-tuning $B$ is inherently more effective than fine-tuning $A$, and that a random untrained $A$ should perform nearly as well as a fine-tuned one. Using an information-theoretic lens, we also bound the generalization of low-rank adapters, showing that the parameter savings of exclusively training $B$ improves the bound. We support our conclusions with experiments on RoBERTa, BART-Large, LLaMA-2, and ViTs.

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

↑