Skip to main content
QUICK REVIEW

[Paper Review] FedPrompt: Communication-Efficient and Privacy Preserving Prompt Tuning in Federated Learning

Haodong Zhao, Wei Du|arXiv (Cornell University)|Aug 25, 2022
Privacy-Preserving Technologies in DataComputer Science6 citations
TL;DR

FedPrompt proposes a communication-efficient and privacy-preserving federated learning framework that tunes only soft prompts while freezing large pre-trained language models (PLMs), reducing communication costs to just 0.01% of full model parameters. It achieves high accuracy on both IID and Non-IID data and demonstrates robustness against standard backdoor attacks, with differential privacy further enhancing security.

ABSTRACT

Federated learning (FL) has enabled global model training on decentralized data in a privacy-preserving way by aggregating model updates. However, for many natural language processing (NLP) tasks that utilize pre-trained language models (PLMs) with large numbers of parameters, there are considerable communication costs associated with FL. Recently, prompt tuning, which tunes some soft prompts without modifying PLMs, has achieved excellent performance as a new learning paradigm. Therefore we want to combine the two methods and explore the effect of prompt tuning under FL. In this paper, we propose "FedPrompt" to study prompt tuning in a model split aggregation way using FL, and prove that split aggregation greatly reduces the communication cost, only 0.01% of the PLMs' parameters, with little decrease on accuracy both on IID and Non-IID data distribution. This improves the efficiency of FL method while also protecting the data privacy in prompt tuning. In addition, like PLMs, prompts are uploaded and downloaded between public platforms and personal users, so we try to figure out whether there is still a backdoor threat using only soft prompts in FL scenarios. We further conduct backdoor attacks by data poisoning on FedPrompt. Our experiments show that normal backdoor attack can not achieve a high attack success rate, proving the robustness of FedPrompt. We hope this work can promote the application of prompt in FL and raise the awareness of the possible security threats.

Motivation & Objective

  • To reduce communication overhead in federated learning for large pre-trained language models (PLMs) by tuning only soft prompts instead of full model parameters.
  • To preserve data privacy by avoiding raw data exchange and minimizing model parameter transmission.
  • To evaluate the security of prompt-based federated learning against backdoor attacks, especially via data poisoning.
  • To investigate the effectiveness of differential privacy (LDP) in protecting soft prompt updates in FedPrompt.
  • To compare FedPrompt with existing prompt tuning methods (e.g., P-tuning, Prefix-Tuning) in terms of accuracy and communication efficiency.

Proposed method

  • FedPrompt employs a split aggregation strategy, freezing PLM parameters and only training and aggregating soft prompts across clients.
  • Soft prompts are initialized as trainable embeddings and inserted before input tokens, with a [MASK] token used to predict label words.
  • The global model is updated via FedAvg, where only soft prompt parameters are aggregated and redistributed to clients.
  • Differential privacy (Laplace noise) is applied to gradients of soft prompts to defend against gradient inversion attacks.
  • Backdoor attacks are evaluated via data poisoning, where malicious clients inject triggers into training data to implant backdoors in the global prompt.
  • Experiments compare FedPrompt with full fine-tuning and other prompt tuning methods (P-tuning, Prefix-Tuning) across multiple NLP tasks and models.

Experimental results

Research questions

  • RQ1Can prompt tuning in federated learning significantly reduce communication costs while maintaining high model accuracy?
  • RQ2How does FedPrompt perform under both IID and Non-IID data distribution settings?
  • RQ3Is FedPrompt vulnerable to backdoor attacks when soft prompts are shared across clients?
  • RQ4Can differential privacy effectively protect soft prompt updates without severely degrading model performance?
  • RQ5How does FedPrompt compare to other prompt tuning methods (e.g., P-tuning, Prefix-Tuning) in terms of accuracy and communication efficiency?

Key findings

  • FedPrompt reduces communication cost to only 0.01% of full PLM fine-tuning, achieving 90.16% accuracy on SST-2 with BERT.
  • The method maintains high accuracy (92.43% on ROBERTA, 92.69% on T5) across multiple models under both IID and Non-IID data distributions.
  • Backdoor attacks via data poisoning achieve only 100% success rate on malicious clients but remain ineffective on benign clients and the global model, indicating strong robustness.
  • Applying Laplace noise (LDP) reduces accuracy by approximately 5% but effectively protects against gradient inversion attacks.
  • Among prompt tuning methods, standard prompt tuning (FedPrompt) achieves the best balance of accuracy and communication cost, outperforming P-tuning and Prefix-Tuning in efficiency.
  • Optimal local training iterations for FedPrompt are around 1000–1500; fewer iterations slow convergence, while too many risk local overfitting.

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.