Mixture of Experts Made Personalized: Federated Prompt Learning for Vision-Language Models

Jun Luo, Chen Chen, Shandong Wu · DOI

Introduction

Federated Learning (FL) is designed to train machine learning models across decentralized devices while maintaining data privacy. However, applying FL to modern Vision-Language Models (VLMs) like CLIP presents two significant challenges: prohibitive model size and extreme data heterogeneity (non-IID data). Standard approaches often force a single "global" model on all clients, which fails to capture the unique data distributions of individual participants.

Model parameter comparison and high-level pipeline overview.

The pFedMoAP framework addresses these issues by shifting the focus from a single global model to a personalized mixture of lightweight experts. By utilizing prompts—which are orders of magnitude smaller than full models—clients can share and combine multiple "non-local" experts to better suit their specific data needs.

The pFedMoAP Framework

The core of pFedMoAP lies in its ability to dynamically select and weight different prompt experts. The architecture is built around three pillars:

  1. Prompt Pool: A server-side repository that stores prompts trained by various clients.
  2. KNN-based Expert Selection: Clients identify and download a subset of experts (e.g., the top 10) from the server that were trained on data distributions similar to their own.
  3. Attention-Based Gating: Each client maintains a local Multi-Head Attention (MHA) network. This network acts as the system's "brain," using image features as queries to weight the downloaded and local prompts (keys/values) to produce optimal text features.
Detailed architecture of the attention-based gating network and feature alignment.

This gating mechanism is never shared with the server, ensuring that the final personalization layer remains private and tailored to the local client's environment.

Key Insights: The Efficiency of Prompts

A primary motivation for pFedMoAP is the "lightweight loophole." As shown in the parameter count analysis, a standard ResNet50 model contains approximately 25.6 million parameters. In contrast, a learnable prompt of length 16 with 512 dimensions contains only about 8,192 parameters. This massive reduction (over 3,000x) allows clients to download multiple experts while still consuming significantly less bandwidth than a single traditional model update.

Furthermore, the use of an attention-based gating network makes the system "order-agnostic." Unlike linear layers, attention mechanisms do not depend on the specific sequence of experts, providing the flexibility to scale the number of experts based on client resources or data complexity.

Experimental Results

The researchers evaluated pFedMoAP across 9 benchmark datasets, including CLIP-specific sets like OxfordPets and standard vision sets like CIFAR100.

  • Performance: On the Flowers102 dataset, pFedMoAP achieved a state-of-the-art accuracy of 98.41%, outperforming previous methods like FedOTP.
  • Heterogeneity Resilience: The model demonstrated superior performance in "pathological" non-IID settings, where clients only possess a few classes of data.
  • Privacy Resilience: Under Differential Privacy (DP) constraints, pFedMoAP remained stable. Because the gating network is local, it can effectively learn to filter the noise added to shared prompts during the federated exchange.

Conclusion and Future Work

pFedMoAP demonstrates that federated learning for large-scale VLMs is most effective when it embraces personalization through lightweight mixtures of experts. While the current implementation focuses on vision-language tasks, the authors suggest this paradigm could extend to multi-task learning and domain adaptation. Future challenges include managing server-side prompt pools as client numbers scale and further optimizing the local computational overhead of the attention-based gating networks.

Summary updated

BibTeX
@inproceedings{luo2025mixture,
  author = {Jun Luo and Chen Chen and Shandong Wu},
  title = {{Mixture of Experts Made Personalized: Federated Prompt Learning for Vision-Language Models}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=xiDJaTim3P},
}
Figure