[论文解读] Improving LoRA in Privacy-preserving Federated Learning
本论文提出 Federated Freeze-A LoRA (FFA-LoRA) 通过冻结非零的 LoRA A 矩阵、仅训练 B,来改进隐私保护联邦学习中的 LoRA,降低通信量并缓解数据异质性、DP 噪声放大和超参数敏感性。
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.
研究动机与目标
- 确定在隐私保护的联邦学习中,原生 LoRA 为何出现不稳定和性能下降。
- 提出 FFA-LoRA 以解决 FL 中局部更新与全局聚合之间的不一致性。
- 证明 FFA-LoRA 在跨任务与不同隐私等级下实现更一致的性能和更低的通信成本。
提出的方法
- 模型更新遵循 LoRA 形式 W = W0 + BA,A0 为随机初始化,B 初始化为零;在 FFA-LoRA 中不需要 alpha。
- FFA-LoRA 在初始化后冻结 A0,只训练 B,使更新为 W = W0 + BA0。
- 从理论和实证角度论证这可避免 LoRA 中存在的聚合不匹配、DP 噪声放大以及对 alpha 的敏感性。
- 在 RoBERTa 与 LLaMA 上进行跨筒仓 FedAvg 下有/无 DP-SGD 的实验。
- 在语言理解(GLUE)和生成任务(GSM-8K)以及不同隐私预算下进行评估。

实验结果
研究问题
- RQ1数据异质性是否会在隐私保护的 FL 中削弱 LoRA,FFA-LoRA 是否能缓解此效应?
- RQ2在 FFA-LoRA 中冻结 A 对 DP-SGD 的噪声放大和收敛有何影响?
- RQ3与 LoRA 相比,FFA-LoRA 对超参数选择(alpha、秩 r)和初始化方案是否鲁棒?
- RQ4相较于 LoRA,在 FL 中 FFA-LoRA 的通信与计算收益如何?
- RQ5结果是否在隐私约束下同时扩展到语言理解与生成任务?
主要发现
- FFA-LoRA 在隐私保护的 FL 中在各任务与各隐私预算下持续优于原生 LoRA。
- 在 DP-SGD 下,FFA-LoRA 通过消除 A 与 B 之间的半二次耦合来减少噪声放大并稳定收敛。
- FFA-LoRA 将可训练参数减半,在大多数设置下在不牺牲性能的前提下降低了通信和计算。
- 在数据异质性场景中,FFA-LoRA 展现出比 LoRA 更小的性能下降,特别是在强异质性的 MNLI 上。
- 增加秩 r 对 LoRA 的回报趋于递减,但 FFA-LoRA 在 r 选择和 DP 设置下仍然鲁棒。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。