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

基于超网络的跨注意力头低秩适应

Hypernetwork-Driven Low-Rank Adaptation Across Attention Heads

The University of Texas at Austin(德克萨斯大学奥斯汀分校);University of Science, VNU-HCM(越南国家大学胡志明市分校科学大学);Vietnam National University, Ho Chi Minh City(越南国家大学胡志明市分校);Trivita AI

Nghiem T. Diep, Dung Le, Tuan Truong, Tan Dinh, Huy Nguyen, Nhat Ho

AI总结:

HyRA通过超网络生成联合低秩矩阵,提升多头自注意力的微调效率与效果,尤其在数据稀缺场景中表现优异。

摘要:

参数高效微调(PEFT)已逐渐成为一种强大的范式,用于将大规模预训练模型适应到下游任务中,且仅需少量额外参数。在PEFT方法中,低秩适应(LoRA)因其有效性而脱颖而出,通过在权重更新中插入可训练的低秩矩阵来实现高效的适应。然而,当应用于多头自注意力时,现有基于LoRA的方法通常独立微调每个注意力头,忽略了头之间潜在的交互和共享结构。为了解决这一限制,我们提出了超网络驱动的低秩适应(HyRA),该方法通过超网络生成层内所有注意力头的联合低秩矩阵。共享的生成器促进跨头信息共享,帮助低秩模块避免传统LoRA方法中出现的冗余特征学习。理论上,我们的方法在样本效率上显著优于标准LoRA。实验上,我们在全面的语言和视觉基准测试中评估了HyRA。我们的方法在广泛的任务中均优于现有的参数高效微调(PEFT)基线。值得注意的是,在低数据情况下,HyRA在LoRA之上实现了显著的改进,凸显了其在数据稀缺场景中的实际样本效率和有效性。

英文摘要:

Parameter-efficient fine-tuning (PEFT) has emerged as a powerful paradigm for adapting large-scale pre-trained models to downstream tasks with minimal additional parameters. Among PEFT methods, Low-Rank Adaptation (LoRA) stands out for its effectiveness by inserting trainable low-rank matrices into weight updates to enable efficient adaptation. However, when applied to multi-head self-attention, existing LoRA-based methods typically fine-tune each attention head independently, overlooking potential interactions and shared structure among heads. To address this limitation, we propose Hypernetwork-Driven Low-rank Adaptation (HyRA) that employs a hypernetwork to generate joint low-rank matrices for all attention heads within a layer. The shared generator promotes cross-head information sharing, helping low-rank modules avoid the redundant feature learning seen in traditional LoRA methods. Theoretically, our method achieves significantly better sample efficiency compared to standard LoRA. Empirically, we evaluate HyRA on a comprehensive suite of language and vision benchmarks. Our approach consistently outperforms existing parameter-efficient fine-tuning (PEFT) baselines across a wide range of tasks. Notably, in low-data regimes, HyRA achieves substantial improvements over LoRA, underscoring its practical sample efficiency and effectiveness in data-scarce scenarios.

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

↑