用哈达玛变换高效微调大模型,保留原始语义特征。
HUT: A More Computation Efficient Fine-Tuning Method With Hadamard Updated Transformation
- 直接构建原始与更新参数间的变换,保持语义关联。
- 仅用两个低秩矩阵实现权重更新,计算开销大幅降低。
- 在罗伯塔和GPT-2上效果优于或持平现有方法,适合资源受限场景。
为下游任务微调预训练语言模型虽取得显著成果,但全量参数微调因模型规模激增而变得不切实际。为此,参数高效微调(PEFT)方法仅更新部分参数。主流方法如LoRA采用增量更新,即在原参数上叠加学习到的权重增量,虽有效但难以捕捉复杂参数动态,且削弱了原始与更新参数间的相关性。为此,本文提出直接更新变换(UT)范式,直接构建从原始参数到更新参数的变换,确保两者间相关性得以保持,从而利用预训练阶段学到的语义特征。在此基础上,提出哈达玛更新变换(HUT)方法,通过两个低秩矩阵的哈达玛变换高效更新原始权重矩阵,提供更具表现力和灵活性的更新机制。该方法能通过函数变换捕获更丰富的参数特征,在降低计算复杂度的同时维持甚至提升模型性能。理论分析与大量实验在RoBERTa和GPT-2上验证了HUT的有效性:其模型质量达到或超过其他PEFT方法,同时显著减少计算开销。
原文摘要 · Abstract (English)
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.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。