Skip to main content
QUICK REVIEW

[Paper Review] Improving LoRA in Privacy-preserving Federated Learning

Youbang Sun, Zitao Li|arXiv (Cornell University)|Mar 18, 2024
Privacy-Preserving Technologies in DataComputer Science5 citations
TL;DR

The paper proposes Federated Freeze-A LoRA (FFA-LoRA) to improve LoRA in privacy-preserving federated learning by freezing the non-zero LoRA A matrices and training only B, reducing communication and mitigating data heterogeneity, DP-noise amplification, and hyperparameter sensitivity.

ABSTRACT

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.

Motivation & Objective

  • Identify why vanilla LoRA under privacy-preserving FL experiences instability and degraded performance.
  • Propose FFA-LoRA to address discordances between local updates and global aggregation in FL.
  • Demonstrate that FFA-LoRA achieves more consistent performance and lower communication cost across tasks and privacy levels.

Proposed method

  • Model updates follow LoRA as W = W0 + BA with random A0 and B initialized to zero; alpha is not needed in FFA-LoRA.
  • FFA-LoRA freezes A0 after initialization and only trains B, making the update W = W0 + BA0.
  • Argue theoretically and empirically that this avoids aggregation mismatch, DP-noise amplification, and alpha sensitivity present in LoRA.
  • Conduct experiments on RoBERTa and LLaMA under cross-silo FedAvg with and without DP-SGD.
  • Evaluate across language understanding (GLUE) and generation tasks (GSM-8K) and various privacy budgets.
Figure 1: Frobenius norm of noise terms within a single update.
Figure 1: Frobenius norm of noise terms within a single update.

Experimental results

Research questions

  • RQ1Does data heterogeneity degrade LoRA in privacy-preserving FL, and can FFA-LoRA mitigate this effect?
  • RQ2How does freezing A in FFA-LoRA impact DP-SGD noise amplification and convergence?
  • RQ3Is FFA-LoRA robust to hyper-parameter choices (alpha, rank r) and initialization schemes compared to LoRA?
  • RQ4What are the communication and computation benefits of FFA-LoRA relative to LoRA in FL?
  • RQ5Do results extend to both language understanding and generation tasks under privacy constraints?

Key findings

  • FFA-LoRA consistently outperforms vanilla LoRA in privacy-preserving FL across tasks and privacy budgets.
  • Under DP-SGD, FFA-LoRA reduces noise amplification and stabilizes convergence by eliminating the semi-quadratic coupling between A and B.
  • FFA-LoRA halves trainable parameters, reducing communication and computation without sacrificing performance in most settings.
  • In heterogeneous data scenarios, FFA-LoRA exhibits smaller performance degradation than LoRA, particularly on MNLI under strong heterogeneity.
  • Increasing rank r offers diminishing returns in LoRA but FFA-LoRA remains robust across r choices and DP settings.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.