An Empirical Study of Federated Prompt Learning for Vision Language Model

Zhihao Wang, Wenke Huang, Tian Chen, Zekun Shi, Guancheng Wan, Yu Qiao, Bin Yang, Jian Wang, Bing Li, Mang Ye

Introduction

Vision-Language Models (VLMs) like CLIP have set new standards in cross-modal alignment. However, their massive parameter counts make full fine-tuning prohibitive in decentralized environments. Federated Learning (FL) offers a privacy-preserving alternative, but it introduces significant challenges such as label skew and domain shift. This paper presents the first systematic empirical study of Federated Prompt Learning (FPL), exploring how visual and textual prompts behave under these heterogeneous conditions.

Problem Statement: Data Heterogeneity in Federated Learning

In real-world federated scenarios, data is rarely independent and identically distributed (IID). The authors identify two primary hurdles:

  1. Label Skew: Non-uniform distribution of classes across clients (e.g., one client has only cat images, another only dogs).
  2. Domain Shift: Variations in data style or environment across clients (e.g., photos vs. sketches).
Overview of the Federated Prompt Learning framework addressing label skew and domain shift.

Methodology

The study evaluates three prompt tuning strategies within a federated framework:

  • Language Prompt Tuning (LPT): Learns tokens for the text encoder input.
  • Vision Prompt Tuning (VPT): Learns tokens for the vision encoder layers.
  • Vision-Language Prompt Tuning (VLPT): A multi-modal approach combining both.

To diagnose performance differences, the researchers analyzed the similarity of optimization directions between local clients and the global server, providing a quantitative look at how well different modalities synchronize across the network.

Key Insights: The Behavioral Discrepancy

A central finding of this study is the "behavioral discrepancy" between vision and language prompts:

  • VPT for Label Skew: Vision prompts demonstrate superior robustness to label imbalances. By establishing a consistent visual feature mapping, VPT helps the model align features even when specific classes are absent locally.
  • LPT for Domain Shift: Language prompts are more effective at adapting to diverse data styles. LPT allows for flexible mapping of unique visual domains to shared textual concepts, facilitating better "individualized adaptation."

The analysis of optimization paths revealed that VPT is highly consistent across clients, providing stability but lacking the flexibility required for domain adaptation. Conversely, LPT's more diverse optimization paths allow it to navigate the complexities of domain shift more effectively.

Experimental Results

The researchers benchmarked these methods on Cifar-100 (Label Skew), DomainNet (Domain Shift), and Office-Home.

Accuracy improvements over communication epochs for Cifar100 and Office-Home datasets.
  • Label Skew (Cifar-100): VPT achieved 78.74% accuracy, significantly outperforming LPT (75.24%) and the zero-shot baseline (64.88%).
  • Domain Shift (Office-Home): LPT reached 87.58%, surpassing VPT's 86.34%.
  • Complex Scenarios (DomainNet): In environments featuring both skew and shift, the hybrid VLPT approach proved most effective, reaching ~80.9% accuracy.

Conclusion

This empirical study highlights that while single-modality prompt tuning has distinct strengths, a multi-modal approach (VLPT) is essential for handling the combined challenges of label skew and domain shift in federated environments. Future work will explore increasing communication efficiency and developing more personalized prompt strategies for large-scale decentralized VLMs.

Summary updated

BibTeX
@inproceedings{wang2025empirical,
  author = {Zhihao Wang and Wenke Huang and Tian Chen and Zekun Shi and Guancheng Wan and Yu Qiao and Bin Yang and Jian Wang and Bing Li and Mang Ye},
  title = {{An Empirical Study of Federated Prompt Learning for Vision Language Model}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2025},
  doi = {10.24963/ijcai.2025/1188},
}
Figure