Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

FedCLIP: Fast Generalization and Personalization for CLIP in Federated Learning

About

Federated learning (FL) has emerged as a new paradigm for privacy-preserving computation in recent years. Unfortunately, FL faces two critical challenges that hinder its actual performance: data distribution heterogeneity and high resource costs brought by large foundation models. Specifically, the non-IID data in different clients make existing FL algorithms hard to converge while the high resource costs, including computational and communication costs that increase the deployment difficulty in real-world scenarios. In this paper, we propose an effective yet simple method, named FedCLIP, to achieve fast generalization and personalization for CLIP in federated learning. Concretely, we design an attention-based adapter for the large model, CLIP, and the rest operations merely depend on adapters. Lightweight adapters can make the most use of pretrained model information and ensure models be adaptive for clients in specific tasks. Simultaneously, small-scale operations can mitigate the computational burden and communication burden caused by large models. Extensive experiments are conducted on three datasets with distribution shifts. Qualitative and quantitative results demonstrate that FedCLIP significantly outperforms other baselines (9% overall improvements on PACS) and effectively reduces computational and communication costs (283x faster than FedAVG). Our code will be available at: https://github.com/microsoft/PersonalizedFL.

Wang Lu, Xixu Hu, Jindong Wang, Xing Xie• 2023

Related benchmarks

TaskDatasetResultRank
Domain GeneralizationPACS
Accuracy (Art)92.93
221
Domain GeneralizationOffice-Home
Average Accuracy73.76
63
Domain GeneralizationVLCS (test)
Average Accuracy81.73
62
Medical Image ClassificationSC (Skin Cancer) (test)
Accuracy55.93
33
Medical Image ClassificationBT (Brain Tumor) (test)
Accuracy68.78
31
Image ClassificationTiny-ImageNet (beta=0.5)
Accuracy70.41
8
Image ClassificationCIFAR-100 (beta=0.5)
Accuracy72.03
8
Image ClassificationCIFAR-100 Dir(beta) (test)
Accuracy (beta=0.5)72.03
8
Image ClassificationTiny-ImageNet Dir(beta) (test)
Accuracy (beta=0.5)70.41
8
Image ClassificationTiny-ImageNet (beta=0.1)
Accuracy69.5
7
Showing 10 of 15 rows

Other info

Follow for update