arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2403.12313cs.LGcs.CRcs.DC
收藏

改进隐私保护联邦学习中的LoRA

Improving LoRA in Privacy-preserving Federated Learning

Alibaba Group(阿里巴巴集团);Northeastern University(东北大学)

Youbang Sun, Zitao Li, Yaliang Li, Bolin Ding

AI总结:

针对隐私保护联邦学习中LoRA因数据异构、噪声放大和超参数敏感而不稳定的问题,提出FFA-LoRA,通过固定随机初始化矩阵仅微调零矩阵,提升性能并减半通信成本。

摘要:

低秩自适应(LoRA)是在预训练语言模型上最流行的任务特定参数高效微调(PEFT)方法之一,因其良好的性能和计算效率而受到青睐。LoRA在每个冻结的预训练模型模块之上注入两个可训练的低秩分解矩阵的乘积。然而,当应用于隐私保护联邦学习(FL)场景时,LoRA可能因以下事实而变得不稳定:1)数据异构性和多步本地更新的影响不可忽略,2)为保证差分隐私(DP)而对更新梯度施加的加性噪声可能被放大,3)最终性能易受超参数影响。导致这些现象的一个关键因素是本地客户端联合优化两个低秩矩阵与中央服务器分别聚合它们之间的不一致性。因此,本文提出了一种高效且有效的LoRA变体,即联邦冻结A LoRA(FFA-LoRA),以缓解这些挑战,并进一步将联邦微调大语言模型(LLMs)的通信成本减半。FFA-LoRA的核心思想是固定随机初始化的非零矩阵,仅微调零初始化的矩阵。与LoRA相比,FFA-LoRA在隐私保护FL中具有实践和理论上的优势。我们的实验表明,在各种FL任务中,FFA-LoRA相比原始LoRA提供了更一致的性能以及更好的计算效率。

英文摘要:

Low-rank adaptation (LoRA) is one of the most popular task-specific parameter-efficient fine-tuning (PEFT) methods on pre-trained language models for its good performance and computational efficiency. LoRA injects a product of two trainable rank decomposition matrices over the top of each frozen pre-trained model module. However, when applied in the setting of privacy-preserving federated learning (FL), LoRA may become unstable due to the following facts: 1) the effects of data heterogeneity and multi-step local updates are non-negligible, 2) additive noise enforced on updating gradients to guarantee differential privacy (DP) can be amplified and 3) the final performance is susceptible to hyper-parameters. A key factor leading to these phenomena is the discordance between jointly optimizing the two low-rank matrices by local clients and separately aggregating them by the central server. Thus, this paper proposes an efficient and effective version of LoRA, Federated Freeze A LoRA (FFA-LoRA), to alleviate these challenges and further halve the communication cost of federated fine-tuning LLMs. The core idea of FFA-LoRA is to fix the randomly initialized non-zero matrices and only fine-tune the zero-initialized matrices. Compared to LoRA, FFA-LoRA is motivated by practical and theoretical benefits in privacy-preserved FL. Our experiments demonstrate that FFA-LoRA provides more consistent performance with better computational efficiency over vanilla LoRA in various FL tasks.

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

↑