Federated Learning from Vision-Language Foundation Models: Theoretical Analysis and Method
Bikang Pan, Wei Huang, Ye Shi
TL;DR
This work develops a theoretical framework for prompt-based federated learning with vision–language foundation models by applying feature learning theory to decompose latent features into task-relevant and task-irrelevant components. It shows that test performance can be characterized by the ratio $\mu/\sigma$ where $\mu$ and $\sigma$ depend on coefficients of global and local prompts, and introduces PromptFolio, a global–local prompt portfolio, with an optimal mixing coefficient $\theta^*$ derived from a mean–variance analogy to portfolio optimization. The authors prove that a well-balanced prompt portfolio can outperform single-prompt baselines, providing an explicit formula for $\theta^*$ and validating the theory with empirical results on multiple datasets under varying heterogeneity and client counts. This approach offers a principled way to balance generalization and personalization in federated vision–language learning and highlights the practical impact of prompt portfolios in realistic, decentralized data settings. Future work could extend the theory to richer text encoders and nonlinearity to better capture deep network dynamics in FL.
Abstract
Integrating pretrained vision-language foundation models like CLIP into federated learning has attracted significant attention for enhancing generalization across diverse tasks. Typically, federated learning of vision-language models employs prompt learning to reduce communication and computational costs, i.e., prompt-based federated learning. However, there is limited theoretical analysis to understand the performance of prompt-based federated learning. In this work, we construct a theoretical analysis framework for prompt-based federated learning via feature learning theory. Specifically, we monitor the evolution of signal learning and noise memorization in prompt-based federated learning, demonstrating that performance can be assessed by the ratio of task-relevant to task-irrelevant coefficients. Furthermore, we draw an analogy between income and risk in portfolio optimization and the task-relevant and task-irrelevant terms in feature learning. Leveraging inspiration from portfolio optimization that combining two independent assets will maintain the income while reducing the risk, we introduce two prompts: global prompt and local prompt to construct a prompt portfolio to balance the generalization and personalization. Consequently, we showed the performance advantage of the prompt portfolio and derived the optimal mixing coefficient. These theoretical claims have been further supported by empirical experiments.
