Introduction
Federated Learning (FL) has emerged as a powerful paradigm for training machine learning models across decentralized clients without compromising data privacy. However, deploying large-scale vision-language models like CLIP in federated settings faces two significant challenges: domain shift and label heterogeneity. Domain shift occurs when data from different clients exhibit distinct visual styles (e.g., photos vs. sketches), while label heterogeneity refers to the non-uniform distribution of classes across clients.
Standard federated fine-tuning often struggles to balance global generalization with local specialization, frequently "washing out" domain-specific nuances during the aggregation process. To address this, we present FedDEAP (Federated Dual-prompt and ETF-alignment Adaptive Prompt tuning), a framework designed to disentangle semantic content from stylistic domain information.
The FedDEAP Framework
FedDEAP introduces a novel architecture centered on a dual-prompt strategy and geometric alignment. Unlike traditional methods that use a single prompt, FedDEAP employs two distinct prompt types to capture different facets of the data:
- Global Semantic Prompt: This prompt is shared and aggregated across all clients to learn general category features that are invariant across domains.
- Local Domain Prompt: This prompt remains on the client to capture specific visual styles (e.g., "cartoon-ness"). It is further refined using an image-conditioned mechanism, where the prompt is dynamically adjusted based on the mean features of the current image batch.
Disentanglement via Transformation Networks
To effectively separate "what" an object is from "how" it looks, FedDEAP utilizes two Transformation Networks (TNs)—one for semantics and one for domains. These networks map features into specialized subspaces. To ensure these transformations remain unbiased and well-separated, the framework employs Equiangular Tight Framework (ETF) constraints. ETFs act as fixed geometric anchors in the feature space, maximizing the distance between class prototypes and preventing the model from drifting toward specific local label distributions.
Experimental Evaluation
The model was rigorously evaluated on four diverse benchmarks representing various real-world challenges:
- PACS: A standard domain generalization dataset (Photo, Art, Cartoon, Sketch).
- DomainNet-126: A large-scale dataset featuring 126 classes across four domains.
- Office-Caltech10: Four domains with varying acquisition conditions.
- DDR (Diabetic Retinopathy): A medical dataset testing utility in healthcare settings with varying image resolutions.
Key Results and Discussion
FedDEAP demonstrates state-of-the-art performance across all benchmarks. A notable achievement is the 6.73% improvement in accuracy on the challenging "Sketch" domain within the PACS dataset compared to previous baselines.
Robustness to Label Heterogeneity
One of the most critical strengths of FedDEAP is its resilience to extreme label imbalance. In experiments using a Dirichlet distribution ($\alpha = 0.01$) to simulate high heterogeneity, FedDEAP maintained a substantial performance lead over competitors like FedAPT and PromptFL. This robustness is largely attributed to the ETF-alignment strategy, which provides a theoretical guarantee for intra-class consistency.
Efficiency and Inference Speed
Despite the dual-prompt architecture, FedDEAP is highly efficient. It offers significantly faster inference speeds—approximately 2.54s per batch compared to 6.43s per batch for FedAPT. This makes FedDEAP a more viable candidate for deployment on resource-constrained edge devices.
Conclusion
FedDEAP successfully bridges the domain gap in federated CLIP tuning by disentangling semantic and domain information through a dual-prompt and ETF-alignment strategy. While the framework introduces a slight increase in communication overhead due to the transmission of Transformation Network parameters, its superior accuracy, efficiency, and robustness to non-IID data represent a significant step forward for multi-domain federated learning. Future work will explore automating prompt ratio tuning and developing more complex meta-networks for token generation.
Summary updated