Introduction
Federated Learning (FL) has emerged as a critical paradigm for training machine learning models across decentralized clients—such as hospitals or mobile devices—while preserving data privacy. However, the rise of massive Vision-Language Models (VLMs), such as CLIP, presents a significant computational challenge for standard FL. Fine-tuning the entirety of these models is often prohibitive for edge devices. To mitigate this, researchers have turned to prompt tuning, a parameter-efficient fine-tuning (PEFT) strategy that involves training only a small "prompt" vector while keeping the backbone model frozen.
Despite its efficiency, prompt-based FL faces the persistent challenge of data heterogeneity. In real-world scenarios, client data distributions are rarely identical (non-IID). A "global" prompt, aggregated from all clients, tends to generalize well across tasks but often fails to capture the nuances of a specific client's local data. Conversely, a "local" prompt, trained exclusively on a single client's data, provides high personalization but is susceptible to noise memorization—the tendency to overfit to task-irrelevant features.
Theoretical Framework: Signal vs. Noise
This research addresses the gap between generalization and personalization by introducing a new theoretical framework grounded in Feature Learning Theory. The authors decompose the learning process into two distinct components:
- Signal Learning: The acquisition of task-relevant features that contribute to the model's predictive power.
- Noise Memorization: The acquisition of task-irrelevant features that represent client-specific "noise."
The study demonstrates that the performance of prompt-based FL is fundamentally determined by the ratio of task-relevant coefficients to task-irrelevant coefficients. This insight allows for a mathematical treatment of the trade-off between global and local knowledge.
The PromptFolio Method
The core innovation of this work is PromptFolio, a method inspired by Markowitz Portfolio Optimization in finance. In a financial context, investors combine different assets to maximize returns while minimizing risk through diversification. PromptFolio applies this logic to prompt tuning by treating task-relevant features as "income" and task-irrelevant features as "risk."
Because the noise captured by a global prompt and a local prompt is often independent, mixing them can effectively "cancel out" errors, much like diversifying a stock portfolio reduces volatility. The method generates a text feature $h$ by mixing the global prompt feature $h(p_G)$ and the local prompt feature $h(p_L)$ using a mixing coefficient $\theta$:
$$h = (1 - \theta) \cdot h(p_G) + \theta \cdot h(p_L)$$
By deriving an "optimal mixing ratio," PromptFolio dynamically adjusts how much "global knowledge" versus "local personality" the model utilizes based on the degree of heterogeneity in the local data.
Experimental Evaluation
The authors validated PromptFolio across a diverse array of computer vision benchmarks, simulating various levels of data heterogeneity using a Dirichlet distribution.
Datasets and Benchmarks
- General Classification: CIFAR-100.
- Specialized Domains: OxfordPets (animals), Food101 (food), Flowers102 (plants), and DTD (textures).
- Domain Adaptation: DomainNet and Office-Caltech10.
Key Results
PromptFolio consistently outperformed existing baselines, including purely global methods (PromptFL) and purely local methods (CoOp).
- Accuracy: On the CIFAR-100 dataset, PromptFolio achieved an accuracy of 80.17%, significantly higher than PromptFL (78.16%) and CoOp (76.88%).
- Consistency: Across five specialized datasets, the method maintained a performance lead of 1-3%, demonstrating its robustness.
- Scalability: The "portfolio" advantage remained consistent regardless of the model backbone (e.g., ViT-B/16 vs. ResNet-50) or the number of training examples (shots) available per class.
Insights and Discussion
The theoretical analysis reveals that the optimal mixing coefficient $\theta$ is highly sensitive to data heterogeneity. In scenarios where data is highly non-IID (diverse across clients), the optimal $\theta$ shifts toward the local prompt to capture unique client characteristics. Conversely, when data is more uniform, the global prompt becomes the dominant factor.
The success of PromptFolio underscores a vital principle: diversification is as valuable in machine learning as it is in finance. By treating prompts as assets, the framework provides a principled way to navigate the personalization-generalization tension that has long plagued Federated Learning.
Limitations and Future Directions
While the theoretical results are compelling, the authors note that their analysis currently relies on a simplified text model utilizing a single activation function. Modern VLMs employ complex Transformer architectures with multiple layers of self-attention, which may introduce additional dynamics not fully captured by the current theory.
Future research will focus on:
- Extending the theoretical framework to multi-layer neural network architectures.
- Exploring how this "portfolio" approach might apply to other types of foundation models beyond vision and language, such as Large Language Models (LLMs) in federated healthcare or robotics settings.
Summary updated