FedCLIP:联邦学习中 CLIP 的快速泛化与个性化
FedCLIP: Fast Generalization and Personalization for CLIP in Federated Learning
AI总结:
本文提出 FedCLIP 方法,通过基于注意力的轻量级适配器在联邦学习中实现 CLIP 的快速泛化与个性化,显著提升精度并大幅降低计算和通信成本。
摘要:
联邦学习(FL)近年来已成为一种隐私保护计算的新范式。然而,FL 面临两个阻碍其实际性能的关键挑战:数据分布异质性以及大型基础模型带来的高昂资源成本。具体而言,不同客户端中的非独立同分布(non-IID)数据使现有 FL 算法难以收敛,而高昂的资源成本(包括计算和通信成本)增加了在真实场景中的部署难度。在本文中,我们提出了一种有效而简单的方法,名为 FedCLIP,用于在联邦学习中实现 CLIP 的快速泛化和个性化。具体来说,我们为大型模型 CLIP 设计了一个基于注意力的适配器,其余操作仅依赖于适配器。轻量级适配器可以最大限度地利用预训练模型信息,并确保模型能够适应客户端在特定任务中的需求。同时,小规模操作可以减轻由大型模型引起的计算负担和通信负担。我们在三个具有分布偏移的数据集上进行了大量实验。定性和定量结果表明,FedCLIP 显著优于其他基线方法(在 PACS 上总体提升 9%),并有效降低了计算和通信成本(比 FedAVG 快 283 倍)。我们的代码将发布在:https://github.com/microsoft/PersonalizedFL。
英文摘要:
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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。