Harmonizing Generalization and Personalization in Federated Prompt Learning

Tianyu Cui, Hongxia Li, Jingya Wang, Ye Shi
2/12/2026

No official code found. Best implementation: TianyuCuiOvO/FedPGP (11 stars, last commit 2024-09-01).

Abstract

Federated Prompt Learning (FPL) incorporates large pre-trained Vision-Language models (VLM) into federated learning through prompt tuning. The transferable representations and remarkable generalization capacity of VLM make them highly compatible with the integration of federated learning. Addressing data heterogeneity in federated learning requires personalization, but excessive focus on it across clients could compromise the model's ability to generalize effectively. To preserve the impressive generalization capability of VLM, it is crucial to strike a balance between personalization and generalization in FPL. To tackle this challenge, we proposed Federated Prompt Learning with CLIP Generalization and low-rank Personalization (FedPGP), which employs pre-trained CLIP to provide knowledge-guidance on the global prompt for improved generalization and incorporates a low-rank adaptation term to personalize the global prompt. Further, FedPGP integrates a prompt-wise contrastive loss to achieve knowledge guidance and personalized adaptation simultaneously, enabling a harmonious balance between personalization and generalization in FPL. We conduct extensive experiments on various datasets to explore base-to-novel generalization in both category-level and domain-level scenarios with heterogeneous data, showing the superiority of FedPGP in balancing generalization and personalization.

View on arXivView PDF

Code Implementations(1)

The implementation of paper Harmonizing Generalization and Personalization in Federated Prompt Learning[ICML2024].

112Shell, PythonSep 1, 20242 years ago

Similar Papers

Cite this paper

@article{cui2026harmonizing,
  title  = {Harmonizing Generalization and Personalization in Federated Prompt Learning},
  author = {Tianyu Cui and Hongxia Li and Jingya Wang and Ye Shi},
  year   = {2026},
  eprint = {2405.09771},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2405.09771},
  journal = {ICML 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2405.09771.svg)](https://codeofpaper.com/paper/2405.09771)

Discussion