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

联邦学习中低秩适配的选择性聚合

Selective Aggregation for Low-Rank Adaptation in Federated Learning

The University of Hong Kong(香港大学);Stanford University(斯坦福大学);Shenyang Institute of Automation, Chinese Academy of Sciences(中国科学院沈阳自动化研究所);Materials Innovation Institute for Life Sciences and Energy (MILES), HKU-SIRI(香港大学-SIRI生命科学与能源材料创新研究所)

Pengxin Guo, Shuang Zeng, Yanran Wang, Huijie Fan, Feifei Wang, Liangqiong Qu

AI总结:

该研究通过分析联邦学习中LoRA的A、B矩阵的功能差异,提出仅聚合通用知识对应的A矩阵的FedSA-LoRA方法,并扩展到多种LoRA变体,构建通用融合范式,实验验证了其在自然语言任务上的有效性。

摘要:

我们从学习得到的$A$、$B$矩阵的不对称性分析视角,研究联邦学习中的LoRA(低秩适配)。研究中我们发现,$A$矩阵负责学习通用知识,而$B$矩阵侧重捕获客户端专属知识。基于这一发现,我们提出联邦共享A低秩适配(Federated Share-A Low-Rank Adaptation,FedSA-LoRA):该方法使用两个低秩可训练矩阵$A$和$B$建模权重更新,但仅将$A$矩阵上传至服务器进行聚合。此外,我们深入探究了rsLoRA、VeRA等其他LoRA变体中学习到的$A$、$B$矩阵的关系,发现了一致的规律,据此将FedSA-LoRA方法扩展到这些LoRA变体,得到FedSA-rsLoRA和FedSA-VeRA。由此我们建立了LoRA与联邦学习融合的通用范式,为后续LoRA变体结合联邦学习的研究提供指导。在自然语言理解与生成任务上的大量实验结果证明了所提方法的有效性。我们的代码可在https://github.com/Pengxin-Guo/FedSA-LoRA 获取。

英文摘要:

We investigate LoRA in federated learning through the lens of the asymmetry analysis of the learned $A$ and $B$ matrices. In doing so, we uncover that $A$ matrices are responsible for learning general knowledge, while $B$ matrices focus on capturing client-specific knowledge. Based on this finding, we introduce Federated Share-A Low-Rank Adaptation (FedSA-LoRA), which employs two low-rank trainable matrices $A$ and $B$ to model the weight update, but only $A$ matrices are shared with the server for aggregation. Moreover, we delve into the relationship between the learned $A$ and $B$ matrices in other LoRA variants, such as rsLoRA and VeRA, revealing a consistent pattern. Consequently, we extend our FedSA-LoRA method to these LoRA variants, resulting in FedSA-rsLoRA and FedSA-VeRA. In this way, we establish a general paradigm for integrating LoRA with FL, offering guidance for future work on subsequent LoRA variants combined with FL. Extensive experimental results on natural language understanding and generation tasks demonstrate the effectiveness of the proposed method. Our code is available at https://github.com/Pengxin-Guo/FedSA-LoRA.

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

↑