The Impact of Initialization on LoRA Finetuning Dynamics
Simons Institute(西蒙斯研究所);UC Berkeley(加州大学伯克利分校);Dept of Statistics(统计系)
Soufiane Hayou, Nikhil Ghosh, Bin Yu
备注:
TDLR: Different Initializations lead to completely different finetuning dynamics. One initialization (set A random and B zero) is generally better than the natural opposite initialization. arXiv admin note: text overlap with arXiv:2402.12354
本文分析 LoRA 两种零乘积初始化方案,证明 B 零初始化、A 随机初始化因支持更大稳定学习率而平均性能更优,并通过 LLM 实验验证。
摘要:
本文研究了 Hu 等人(2021)最初提出的低秩适配(Low Rank Adaptation,LoRA)中初始化的作用。本质上,为了从预训练模型开始作为微调的初始化,人们可以将 B 初始化为零、将 A 初始化为随机值(PEFT 软件包中的默认初始化),也可以反过来。在这两种情况下,乘积 BA 在初始化时都等于零,这使得微调从预训练模型开始。这两种初始化方案看似相似,原则上应产生相同的性能,并共享相同的最优学习率。我们证明这是一种错误的直觉:第一种方案(将 B 初始化为零、将 A 初始化为随机值)平均而言比另一种方案产生更好的性能。我们的理论分析表明,其背后原因可能是,与第二种初始化相比,第一种初始化允许使用更大的学习率(且不会导致输出不稳定),从而使第一种方案的学习更高效。我们通过在 LLM 上的大量实验验证了这些结果。
英文摘要:
In this paper, we study the role of initialization in Low Rank Adaptation (LoRA) as originally introduced in Hu et al. (2021). Essentially, to start from the pretrained model as initialization for finetuning, one can either initialize B to zero and A to random (default initialization in PEFT package), or vice-versa. In both cases, the product BA is equal to zero at initialization, which makes finetuning starts from the pretrained model. These two initialization schemes are seemingly similar. They should in-principle yield the same performance and share the same optimal learning rate. We demonstrate that this is an incorrect intuition and that the first scheme (initializing B to zero and A to random) on average yields better performance compared to the other scheme. Our theoretical analysis shows that the reason behind this might be that the first initialization allows the use of larger learning rates (without causing output instability) compared to the second initialization, resulting in more efficient learning of the first scheme. We validate our results with extensive experiments on LLMs.
LQ-LoRA: Low-rank Plus Quantized Matrix Decomposition for Efficient Language Model Finetuning
Carnegie Mellon University(卡内基梅隆大学);Columbia University(哥伦比亚大学);Mohamed bin Zayed University of Artificial Intelligence(穆罕默德·本·扎耶德人工智能大学);Petuum Inc.(Petuum公司);Massachusetts Institute of Technology(麻省理工学院)
Efficient Multilingual ASR Finetuning via LoRA Language Experts
Auditory Cognition and Computational Acoustics Lab(听觉认知与计算声学实验室);MoE Key Lab of Artificial Intelligence(人工智能MoE重点实验室);AI Institute School of Computer Science, Shanghai Jiao Tong University(计算机学院人工智能研究所,上海交通大学);Tencent AI Lab(腾讯AI实验室)
Less is More: Extreme Gradient Boost Rank-1 Adaption for Efficient Finetuning of LLMs
Nanyang Technological University(南洋理工大学);The Chinese University of Hong Kong(香港中文大学);Data61;CSIRO(联邦科学与工业研究组织);Tsinghua University(清华大学);Australian National University(澳大利亚国立大学)
Initialization using Update Approximation is a Silver Bullet for Extremely Efficient Low-Rank Fine-Tuning
Mohamed bin Zayed University of Artificial Intelligence(穆罕默德·本·扎耶德人工智能大学);Georgia Institute of Technology(佐治亚理工学院);Massachusetts Institute of Technology(麻省理工学院)
Institute of Science Tokyo(东京科学研究院);RIKEN Center for AI Project(RIKEN人工智能项目研究中心);Ubiquitous Knowledge Processing Lab (UKP Lab), Department of Computer Science, Technical University of Darmstadt(通用知识处理实验室(UKP实验室),计算机科学系,达姆施塔特技术大学);National Research Center for Applied Cybersecurity ATHENE, Germany(应用网络安全国家研究中心ATHENE,德国);Huawei Hong Kong Research Center(华为香港研究中心)
Learning in the Fisher Subspace: A Guided Initialization for LoRA Fine-Tuning
Department of Computer Science(计算机科学系);Information Engineering, National Cheng Kung University(信息工程系,国立成功大学);Department of Artificial Intelligence, Chang Gung University(人工智能系,长庚大学);Department of Computer Science, National Tsing Hua University(计算机科学系,国立清华大学)
ProtoBERT-LoRA: Parameter-Efficient Prototypical Finetuning for Immunotherapy Study Identification
Johns Hopkins University School of Medicine(约翰斯·霍普金斯大学医学院);Takeda Pharmaceuticals(武田制药);Boston University Graduate School of Arts and Science(波士顿大学文理研究生院);University of Maryland School of Medicine(马里兰大学医学院);Johns Hopkins University Bloomberg School of Public Health(约翰斯·霍普金斯大学布隆伯格公共卫生学院)
SC-LoRA: Balancing Efficient Fine-tuning and Knowledge Preservation via Subspace-Constrained LoRA
Shanghai Qi Zhi Institute(上海启智研究院);Institute for Interdisciplinary Information Sciences, Tsinghua University(清华大学交叉信息研究院);Institute of Information Engineering, Chinese Academy of Sciences(中国科学院信息工程研究所);Xiongan AI Institute(雄安人工智能研究院)