Skip to main content
QUICK REVIEW

[Paper Review] DP-DyLoRA: Fine-Tuning Transformer-Based Models On-Device under Differentially Private Federated Learning using Dynamic Low-Rank Adaptation

Jie Xu, Karthikeyan Saravanan|arXiv (Cornell University)|May 10, 2024
Privacy-Preserving Technologies in DataComputer Science3 citations
TL;DR

This paper proposes DP-DyLoRA, a novel differentially private federated learning method that combines dynamic low-rank adaptation (DyLoRA) with differential privacy to improve privacy-utility trade-offs in on-device fine-tuning of large transformer models. By allowing rank to vary dynamically while preserving differential privacy through careful noise calibration, DP-DyLoRA reduces accuracy degradation to under 2% and word error rate increase to under 7% under a stringent privacy budget of ε=2 with 1 million clients across NLU, CV, and ASR tasks.

ABSTRACT

Federated learning (FL) allows clients to collaboratively train a global model without sharing their local data with a server. However, clients' contributions to the server can still leak sensitive information. Differential privacy (DP) addresses such leakage by providing formal privacy guarantees, with mechanisms that add randomness to the clients' contributions. The randomness makes it infeasible to train large transformer-based models, common in modern federated learning systems. In this work, we empirically evaluate the practicality of fine-tuning large scale on-device transformer-based models with differential privacy in a federated learning system. We conduct comprehensive experiments on various system properties for tasks spanning a multitude of domains: speech recognition, computer vision (CV) and natural language understanding (NLU). Our results show that full fine-tuning under differentially private federated learning (DP-FL) generally leads to huge performance degradation which can be alleviated by reducing the dimensionality of contributions through parameter-efficient fine-tuning (PEFT). Our benchmarks of existing DP-PEFT methods show that DP-Low-Rank Adaptation (DP-LoRA) consistently outperforms other methods. An even more promising approach, DyLoRA, which makes the low rank variable, when naively combined with FL would straightforwardly break differential privacy. We therefore propose an adaptation method that can be combined with differential privacy and call it DP-DyLoRA. Finally, we are able to reduce the accuracy degradation and word error rate (WER) increase due to DP to less than 2% and 7% respectively with 1 million clients and a stringent privacy budget of $ε=2$.

Motivation & Objective

  • To address the performance degradation caused by differential privacy (DP) in federated fine-tuning of large transformer models on resource-constrained IoT devices.
  • To evaluate the practicality of parameter-efficient fine-tuning (PEFT) methods under differentially private federated learning (DP-FL) in realistic IoT settings with millions of clients.
  • To overcome the privacy-utility trade-off inherent in DP-FL by introducing a differentially private variant of dynamic low-rank adaptation (DyLoRA).
  • To empirically benchmark DP-PEFT methods across diverse domains—natural language understanding, computer vision, and speech recognition—under strict privacy constraints.
  • To demonstrate that DP-DyLoRA achieves superior privacy-utility trade-offs compared to existing DP-PEFT methods like DP-LoRA, especially under high client counts and low privacy budgets.

Proposed method

  • Adapts DyLoRA, a parameter-efficient fine-tuning method that dynamically adjusts the rank of low-rank update matrices during training, to the differentially private federated learning (DP-FL) setting.
  • Introduces a novel DP-compliant mechanism to ensure that the dynamic rank adaptation does not compromise the privacy guarantees of the central DP framework.
  • Applies Gaussian noise to the sum of client contributions at the server side, following central DP principles, to protect individual client data.
  • Uses secure aggregation to hide individual client contributions from the server while preserving the privacy of each client’s data.
  • Calibrates noise scale based on the sensitivity of the updated parameters, ensuring that the total contribution remains within a predefined privacy budget (ε=2).
  • Employs gradient clipping as a stabilizing mechanism during training, especially critical in non-private and DP-FL settings with DyLoRA due to its sensitivity to data heterogeneity.

Experimental results

Research questions

  • RQ1How does full fine-tuning under DP-FL perform in terms of accuracy and word error rate (WER) on large-scale transformer models across diverse domains?
  • RQ2Can parameter-efficient fine-tuning (PEFT) methods like LoRA and DyLoRA significantly improve the privacy-utility trade-off in DP-FL compared to full fine-tuning?
  • RQ3How does DP-LoRA compare to other DP-PEFT methods (e.g., DP-Adapter, DP-Compacter, DP-BitFit) in terms of model performance across NLU, CV, and ASR tasks?
  • RQ4What is the impact of dynamic rank adaptation (DyLoRA) on model stability and performance in non-private and DP-FL settings, especially under data heterogeneity?
  • RQ5Can a differentially private variant of DyLoRA (DP-DyLoRA) achieve better privacy-utility trade-offs than DP-LoRA while maintaining model expressiveness?

Key findings

  • Full fine-tuning under DP-FL leads to significant performance degradation, with accuracy drops exceeding 10% and WER increases over 15% on average across the evaluated datasets.
  • Parameter-efficient fine-tuning (PEFT) methods, particularly LoRA, significantly outperform full fine-tuning in DP-FL, reducing accuracy degradation and WER increase.
  • DP-LoRA consistently outperforms other DP-PEFT methods (e.g., DP-Adapter, DP-Compacter, DP-BitFit) across all domains and datasets, establishing it as the current SOTA for DP-FL.
  • DP-DyLoRA achieves less than 2% accuracy degradation and less than 7% WER increase compared to non-private LoRA or DyLoRA under a stringent privacy budget of ε=2 with 1 million clients.
  • DP-DyLoRA maintains model expressiveness comparable to DP-LoRA with r=16 while reducing the noise burden to levels similar to DP-LoRA with r=8, resulting in a superior privacy-utility trade-off.
  • DyLoRA training is unstable in non-private FL with large learning rates, but gradient clipping stabilizes convergence, indicating that DP-FL’s inherent clipping mechanism is crucial for DyLoRA’s success.

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.