Abstract
Large-scale Vision-Language Models (VLMs) like CLIP have set new benchmarks in multi-modal learning, yet their deployment in decentralized environments remains challenging due to computational costs and data privacy concerns. This paper presents the first systematic empirical study of Federated Prompt Learning (FPL), an efficient alternative to full-model fine-tuning. We uncover a significant "behavioral discrepancy" between prompt types: Vision Prompt Tuning (VPT) is uniquely effective at handling label skew, whereas Language Prompt Tuning (LPT) excels at overcoming domain shift. By combining these strengths, we demonstrate that a hybrid Vision-Language Prompt Tuning (VLPT) approach provides superior robustness in complex, heterogeneous data environments.
Introduction
The rise of foundation models has shifted the paradigm of machine learning, but fine-tuning these models on decentralized, private data—the core tenet of Federated Learning (FL)—is often prohibitively expensive. Prompt learning has emerged as a solution, allowing researchers to tune only a small set of learnable vectors while keeping the backbone model frozen. However, the behavior of these prompts in the face of "Non-IID" (not identically and independently distributed) data—a hallmark of FL—has remained poorly understood.
This study investigates how different prompting strategies respond to two primary types of data heterogeneity:
- Label Skew: Variations in class distributions across different clients.
- Domain Shift: Variations in the underlying data style or visual domain across clients.
Methodology
The authors utilize a Federated Prompt Learning framework built upon the pre-trained CLIP (ViT-B/16) backbone. The study compares three distinct strategies:
- Language Prompt Tuning (LPT): Learnable vectors are prepended to the text tokens within the text encoder.
- Vision Prompt Tuning (VPT): Learnable vectors are inserted into the initial layers of the Vision Transformer (ViT).
- Vision-Language Prompt Tuning (VLPT): A hybrid approach that optimizes both vision and language prompts simultaneously.
The Federated Pipeline
In each communication round, the central server distributes global prompts to participating clients. Each client optimizes these prompts locally using their private data and a symmetric contrastive loss (InfoNCE). The resulting local updates are then sent back to the server and aggregated—using either Equal or Weighted averaging—to form the new global prompt. To diagnose performance variations, the study analyzes the similarity of optimization directions between local clients and the global server.
Experimental Setup
To simulate diverse FL challenges, the study employs four benchmark datasets:
- Cifar-100: Used to model Label Skew through Dirichlet sampling, where the parameter $\beta$ controls the degree of class imbalance.
- DomainNet, Office-Home, and Office31: Used to model Domain Shift, featuring identical classes represented across various styles such as sketches, real-world photos, and artistic renderings.
Key Insights: The Behavioral Discrepancy
The most significant contribution of this research is the identification of a behavioral discrepancy between LPT and VPT. The study finds that these methods are not interchangeable but rather serve specific roles in mitigating heterogeneity.
VPT and Label Skew
In scenarios dominated by label skew, VPT demonstrates high optimization consistency across clients. By mapping disparate local data into a unified visual domain, VPT facilitates better global convergence. On the Cifar-100 benchmark, VPT consistently outperformed LPT by approximately 3-4%, achieving ~79% accuracy compared to the zero-shot CLIP baseline of 64.88%.
LPT and Domain Shift
Conversely, LPT is the superior choice for domain shift. The study suggests that LPT allows for more diverse optimization paths, enabling "individualized adaptation" where textual features are mapped more effectively into diverse visual domains. On the Office-Home dataset, LPT achieved an average accuracy of 87.58%, surpassing VPT’s 86.34%.
The VLPT Synergy
When label skew and domain shift coexist—reflecting the complexity of real-world deployments—the hybrid VLPT approach provides a complementary effect. On DomainNet tests combining both forms of heterogeneity, VLPT reached 80.95% accuracy, outperforming standalone VPT (79.41%) and LPT (79.20%).
Robustness and Aggregation
The study reveals that Federated Prompt Learning is remarkably stable. Performance remained robust across variations in client scale, prompt length, and communication rounds once a convergence point was reached. Furthermore, the choice of aggregation strategy matters: "Equal" aggregation is more effective for label skew as it prevents the model from biasing toward data-rich clients, while "Weighted" aggregation offers a slight advantage in domain shift scenarios.
Conclusion and Future Work
This empirical study provides a roadmap for deploying Vision-Language Models in federated settings. By understanding the specific strengths of vision and language prompts, practitioners can better design systems to handle data heterogeneity. While prompt learning significantly reduces the overhead of FL, future work should focus on further improving communication efficiency, exploring adaptive prompt selection mechanisms, and testing these findings on even larger foundation models beyond the CLIP architecture.
Summary updated