Tunable Soft Prompts are Messengers in Federated Learning

Chenhe Dong, Yuexiang Xie, Bolin Ding, Ying Shen, Yaliang Li
11/12/2023
cs.CL

Official code: alibaba/FederatedScope (1,545 stars, Apache-2.0, PyTorch, last commit 2024-08-10).

Abstract

Federated learning (FL) enables multiple participants to collaboratively train machine learning models using decentralized data sources, alleviating privacy concerns that arise from directly sharing local data. However, the lack of model privacy protection in FL becomes an unneglectable challenge, especially when people want to federally finetune models based on a proprietary large language model. In this study, we propose a novel FL training approach that accomplishes information exchange among participants via tunable soft prompts. These soft prompts, updated and transmitted between the server and clients, assume the role of the global model parameters and serve as messengers to deliver useful knowledge from the local data and global model. As the global model itself is not required to be shared and the local training is conducted based on an auxiliary model with fewer parameters than the global model, the proposed approach provides protection for the global model while reducing communication and computation costs in FL. Extensive experiments show the effectiveness of the proposed approach compared to several baselines. We have released the source code at \url{https://github.com/alibaba/FederatedScope/tree/fedsp/federatedscope/nlp/fedsp}.

View on arXivView PDF

Code Implementations(1)

PyTorchApache-2.0

An easy-to-use federated learning platform

1,545261Shell, PythonMar 24, 20222 years agoApache-2.0
federated-learningmachine-learningpytorch

Cite this paper

@article{dong2023tunable,
  title  = {Tunable Soft Prompts are Messengers in Federated Learning},
  author = {Chenhe Dong and Yuexiang Xie and Bolin Ding and Ying Shen and Yaliang Li},
  year   = {2023},
  eprint = {2311.06805},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2311.06805v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2311.06805.svg)](https://codeofpaper.com/paper/2311.06805)

Discussion