通过 Householder 反射自适应弥合低秩与正交自适应之间的差距
Bridging The Gap between Low-rank and Orthogonal Adaptation via Householder Reflection Adaptation
AI总结:
本文提出基于 Householder 反射的自适应方法(HRA),通过将冻结权重矩阵与可学习正交矩阵相乘,弥合了低秩与正交自适应的差距,以更少参数在大型语言模型和图像生成器上实现更优性能。
摘要:
尽管遵循不同的技术路线,低秩和正交自适应技术均能基于少量可训练参数,高效地将大规模预训练模型适配至特定任务或领域。本研究弥合了这两种技术之间的差距,提出了一种基于 Householder 反射的简单且有效的自适应方法。给定一个预训练模型,我们的方法通过将每个冻结的权重矩阵与一个由可学习 Householder 反射(HRs)链构成的正交矩阵相乘,来微调其层。这种基于 HR 的正交微调等价于自适应的低秩自适应。此外,我们证明了与 HRs 对应的反射平面的正交性会影响模型容量和正则性。该分析促使我们对 HRs 的正交性进行正则化,从而导出了所提出的 Householder 反射自适应(HRA)方法的不同实现。与最先进的方法相比,HRA 在适配大型语言模型和条件图像生成器时,以更少的可训练参数实现了更优的性能。实验代码可在 https://github.com/DaShenZi721/HRA 获取,该方法已被合并至 PEFT 包中。
英文摘要:
While following different technical routes, both low-rank and orthogonal adaptation techniques can efficiently adapt large-scale pre-training models in specific tasks or domains based on a small piece of trainable parameters. In this study, we bridge the gap between these two techniques, proposing a simple but effective adaptation method based on Householder reflections. Given a pre-trained model, our method fine-tunes its layers by multiplying each frozen weight matrix with an orthogonal matrix constructed by a chain of learnable Householder reflections (HRs). This HR-based orthogonal fine-tuning is equivalent to an adaptive low-rank adaptation. Moreover, we show that the orthogonality of the reflection planes corresponding to the HRs impacts the model capacity and regularity. The analysis motivates us to regularize the orthogonality of the HRs, leading to different implementations of the proposed Householder reflection adaptation (HRA) method. Compared with state-of-the-art methods, HRA achieves superior performance with fewer learnable parameters when adapting large language models and conditional image generators. The code of the experiments is available at \url{https://github.com/DaShenZi721/HRA}, and the method has been merged into the \href{https://github.com/huggingface/peft}{PEFT} package.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。