Abstract
Privacy protection is critical for responsible artificial intelligence. Federated learning is a privacy-aware machine learning paradigm, which is often combined with differential privacy to guarantee privacy protection. Unfortunately, existing methods cannot achieve a satisfactory tradeoff between privacy and utility when the models are large, and their computation and communication costs are also huge. Here, we present a differentially private, efficient, and effective machine learning method named FedPrompt to learn big models in a federated way via prompt tuning. It only learns, perturbs, and exchanges the small prompt models injected into the big models. FedPrompt is validated on five datasets. The results show FedPrompt can achieve 0.5%~34.7% better performance than standard federated learning under same privacy budgets, meanwhile saving 99% of communication cost, 75% of memory, and 64% of training time. FedPrompt offers a new direction to efficiently and effectively distributed machine learning with privacy guarantees.
Introduction
Federated Learning (FL) has emerged as a powerful paradigm for training machine learning models on decentralized data without compromising user privacy. However, to provide formal privacy guarantees, FL is often integrated with Local Differential Privacy (LDP). This combination faces a significant hurdle known as the "curse of dimensionality": the amount of noise required to protect privacy is proportional to the number of parameters being updated.
As illustrated in Figure 1a, standard private FL reaches a "turning point" where increasing the model size actually leads to a decline in real-world performance because the added DP noise overwhelms the learning signal. Furthermore, the massive size of modern Large Language Models (LLMs) creates prohibitive communication and computation costs for edge devices.
The FedPrompt Framework
To overcome these challenges, we introduce FedPrompt, a framework that synergizes Federated Learning with Prompt Tuning. Instead of updating the entire model, FedPrompt keeps the large pre-trained "backbone" model frozen.
As shown in Figure 1c, the system only trains a small set of "soft prompts"—learnable vectors injected into the model. By focusing LDP noise only on these low-dimensional prompt updates, FedPrompt drastically reduces the sensitivity of the training process. This allows the model to maintain high utility even under strict privacy budgets while requiring only a fraction of the bandwidth and memory typically needed for LLM training.
Experimental Results and Scaling
We validated FedPrompt across five diverse datasets, including four GLUE benchmark tasks (MNLI, QNLI, QQP, SST-2) and the MIND news recommendation dataset.
The empirical results in Figure 2 highlight a critical breakthrough: while standard full-model fine-tuning with LDP (Full-LDP) suffers from performance drops as models grow from "Base" to "Large," FedPrompt consistently improves. It achieves an absolute performance boost of 0.5% to 34.7% over vanilla private FL.
Beyond accuracy, FedPrompt demonstrates extreme efficiency:
- Communication: Saves 99% of costs by exchanging only prompt parameters (e.g., 4.8 MB vs 420 MB per round).
- Computation: Reduces GPU memory usage by 75% and training time by 64%.
- Privacy Overhead: The time required to generate LDP noise is reduced by 99%, making it feasible for resource-constrained mobile devices.
Conclusion
FedPrompt effectively solves the privacy-utility-efficiency trilemma for large-scale federated learning. By shifting the learning target from the full model to compact soft prompts, it enables decentralized devices to leverage the power of LLMs with robust privacy guarantees and minimal resource overhead. This work paves the way for more efficient and private "Green AI" in distributed environments.
Summary updated