NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Tunable Soft Prompts are Messengers in Federated Learning

Chenhe Dong, Yuexiang Xie, Bolin Ding, Ying Shen, Yaliang Li · DOI

Abstract

Federated Learning (FL) traditionally faces a significant hurdle when applied to Large Language Models (LLMs): the "double bind" of model privacy and resource constraints. Standard FL requires distributing the entire global model to clients, which exposes proprietary intellectual property and exceeds the memory capacity of most edge devices. This paper introduces FEDSP (Federated Soft Prompts), a framework that utilizes tunable soft prompts as "messengers" to bridge the gap between a massive, private global model and lightweight client-side training. By employing a tiny auxiliary shadow model and cross-layer parameter sharing, FEDSP reduces communication costs by over 99% and client-side storage by 93%, while maintaining performance within 1% of full-model distribution methods.

Introduction

The rise of Large Language Models (LLMs) has transformed natural language processing, yet fine-tuning these models on private, decentralized data remains a challenge. Federated Learning (FL) was conceived to address data privacy by keeping raw data on-device. However, in the context of state-of-the-art LLMs, two major issues emerge:

  1. Model Privacy: Organizations are often unwilling to share the weights of proprietary models (e.g., GPT-4 or Llama-3) with thousands of potentially insecure edge devices.
  2. Resource Constraints: Most client devices, such as smartphones or laptops, lack the memory required to load, let alone fine-tune, models with billions of parameters.

FEDSP addresses these challenges by shifting the focus from sharing model weights to sharing lightweight soft prompts.

The FEDSP Framework

FEDSP introduces a novel architecture where soft prompts act as the primary medium of information exchange between the server and its clients.

Soft Prompts as Messengers

Instead of updating the entire parameter space of an LLM, FEDSP utilizes Prefix-Tuning. This involves adding a small set of tunable continuous vectors—soft prompts—to the input sequence. During the federated process, only these lightweight prompt vectors are synchronized, drastically reducing the communication overhead.

The Auxiliary Model and Parameter Sharing

To bypass the need for clients to host the full LLM, the server constructs an auxiliary model. This "shadow" model is a significantly reduced version of the global model—for instance, using only a single layer to represent a 48-layer architecture. To ensure the auxiliary model retains the functional characteristics of the larger model, the framework employs cross-layer parameter sharing.

Knowledge Distillation and Alignment

Before deployment, the server uses Knowledge Distillation (KD) to "teach" the auxiliary model to mimic the latent representations of the global model. Once deployed, clients engage in a two-step training process:

  1. Global Model Alignment: Clients update the auxiliary model to align its logic with the global model using the current soft prompts.
  2. Local Knowledge Capturing: The auxiliary model is frozen, and the soft prompts are fine-tuned on the client's private local data to capture specific domain knowledge.

Experimental Evaluation

The researchers evaluated FEDSP across seven prominent question-answering benchmarks designed to test reasoning and linguistic capabilities: ARC-C, ARC-E, HellaSwag, OpenBookQA, PIQA, RACE, and SciQ. The experiments utilized two base LLMs: GPT2-XL (1.5B parameters) and OPT-1.3B.

Key Insights

  • Latent Space Steering: The effectiveness of FEDSP stems from the intuition that soft prompts serve as a universal language. Because they are optimized to steer the model's latent space, they can effectively transfer learned knowledge from a small auxiliary model back to the massive global model.
  • The Importance of Early Layers: Empirical results suggest that using the bottom layers of an LLM to construct the auxiliary model yields the best results. Early layers typically handle fundamental embeddings and low-level representations, which are critical for maintaining alignment during the distillation process.
  • Efficiency as an Enabler: By reducing the local model size by approximately 14.5x for GPT2-XL, FEDSP enables federated fine-tuning on hardware that was previously incapable of participating in the process.

Results

FEDSP demonstrates that model privacy does not have to come at the cost of utility:

  • Accuracy: FEDSP achieved performance within 1% of "FedPrompt," a method that requires sharing the full global model.
  • Privacy Gains: It outperformed "FedPrompt-Single" (a baseline that protects model privacy but lacks alignment) by 6.4% on the ARC-C dataset.
  • Resource Efficiency: The framework reduced the client-side model footprint from 1.6B parameters to 111M (a 93.1% reduction) and slashed communication costs per round by 99.5% compared to full fine-tuning.

Limitations and Future Directions

While FEDSP represents a significant step forward, a slight performance gap remains compared to full-model fine-tuning, highlighting a persistent utility-privacy trade-off. Additionally, the current implementation is optimized for Transformer architectures; adapting the method for emerging non-Transformer models remains an area for exploration. Finally, while FEDSP provides structural privacy by withholding weights, future iterations could benefit from Differential Privacy to further harden the system against sophisticated gradient-leakage attacks.

Conclusion

FEDSP proves that tunable soft prompts can serve as efficient, privacy-preserving messengers in federated environments. By decoupling the training of local knowledge from the massive scale of global models, FEDSP opens the door for collaborative LLM improvement across a wide array of resource-constrained edge devices.

Summary updated

BibTeX
@inproceedings{dong2023tunable,
  author = {Chenhe Dong and Yuexiang Xie and Bolin Ding and Ying Shen and Yaliang Li},
  title = {{Tunable Soft Prompts are Messengers in Federated Learning}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2023},
  doi = {10.18653/v1/2023.findings-emnlp.976},
}
Figure