HUT:一种基于Hadamard更新变换的更高效微调方法
HUT: A More Computation Efficient Fine-Tuning Method With Hadamard Updated Transformation
AI总结:
针对PEFT方法捕捉参数动态不足且相关性弱的问题,提出直接更新变换范式及HUT方法,利用Hadamard变换和低秩矩阵高效更新权重,在RoBERTa和GPT-2上验证了与现有方法相当或更优的质量且计算复杂度更低。
摘要:
针对下游任务对预训练语言模型进行微调已在自然语言处理领域取得了显著成果。然而,随着模型参数规模的迅速增大,微调所有参数变得不切实际。为解决这一问题,参数高效微调(PEFT)方法仅更新一部分参数。大多数PEFT方法(如LoRA)采用增量更新方式,即将学习到的权重矩阵增量添加到原始参数上。尽管这些方法有效,但它们在捕捉复杂参数动态方面存在局限,且未能保持原始参数与更新参数之间的强相关性。为克服这些挑战,我们提出了直接更新变换(UT)范式,该范式直接构建从原始参数到更新参数的变换。这种方法确保了原始参数与更新参数之间的相关性得以保留,充分利用了预训练期间学到的语义特征。基于这一范式,我们提出了Hadamard更新变换(HUT)方法。HUT利用Hadamard变换与两个低秩矩阵高效更新原始权重矩阵,提供了一种更具表达力和灵活性的更新机制。这使得HUT能够通过函数变换捕捉更丰富的参数特征,在降低计算复杂度的同时保持或提升模型质量。理论分析和在RoBERTa及GPT-2上的广泛实验验证了HUT的有效性。结果表明,在模型质量方面,HUT与其它PEFT方法表现相当或更优,同时显著降低了计算复杂度。
英文摘要:
Fine-tuning pre-trained language models for downstream tasks has achieved impressive results in NLP. However, fine-tuning all parameters becomes impractical due to the rapidly increasing size of model parameters. To address this, Parameter Efficient Fine-Tuning (PEFT) methods update only a subset of parameters. Most PEFT methods, such as LoRA, use incremental updates, which involve adding learned weight matrix increments to the original parameters. Although effective, these methods face limitations in capturing complex parameter dynamics and do not maintain a strong correlation between the original and updated parameters. To overcome these challenges, we propose the direct Updated Transformation (UT) paradigm, which constructs a transformation directly from the original to the updated parameters. This approach ensures that the correlation between the original and updated parameters is preserved, leveraging the semantic features learned during pre-training. Building on this paradigm, we present the Hadamard Updated Transformation (HUT) method. HUT efficiently updates the original weight matrix using the Hadamard transformation with two low-rank matrices, offering a more expressive and flexible update mechanism. This allows HUT to capture richer parameter features through functional transformations, reducing computational complexity while maintaining or improving model quality. Theoretical analysis and extensive experiments on RoBERTa and GPT-2 validate the effectiveness of HUT. Results show that HUT performs on par with or better than other PEFT methods in terms of model quality, while significantly reducing computational complexity.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。