arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2311.11227cs.LGcs.AIcs.DC
收藏

FedRA:一种用于联邦调优的随机分配策略,以释放异构客户端的能力

FedRA: A Random Allocation Strategy for Federated Tuning to Unleash the Power of Heterogeneous Clients

Fudan University(复旦大学)

Shangchao Su, Bin Li, Xiangyang Xue

AI总结:

针对联邦学习中异构客户端资源不足难以完整微调基础模型的问题,提出基于随机分配矩阵、用适配器微调少量层的FedRA算法,可适配无客户端能承载完整模型的场景,在多数据集非独立同分布设置下性能显著优于对比方法。

摘要:

随着基础模型(Foundation Model)可用性不断提升,联邦调优在联邦学习领域受到关注,该技术利用多客户端的数据与计算资源协作微调基础模型。但在真实联邦场景中,往往存在大量计算和通信资源各异的异构客户端,无法支撑完整的模型微调流程。针对这一挑战,我们提出了一种新型联邦调优算法FedRA。FedRA实现简单,可无缝集成到任意基于transformer的模型中,无需对原始模型做进一步修改。具体而言,在每一轮通信中,FedRA会随机生成一个分配矩阵;对于资源受限的客户端,它会根据分配矩阵从原始模型中重组少量层,并使用适配器(adapter)进行微调。随后,服务器根据当前分配矩阵,将客户端更新后的适配器参数聚合到原始模型的对应层中。值得注意的是,FedRA还支持无任何客户端能够承载完整全局模型的场景,这是一项突出的优势。我们在DomainNet和NICO++两个大规模图像数据集上,在多种非独立同分布(non-iid)设置下开展了实验。结果表明,FedRA的性能显著优于所有对比方法。源代码可在https://github.com/leondada/FedRA 获取。

英文摘要:

With the increasing availability of Foundation Models, federated tuning has garnered attention in the field of federated learning, utilizing data and computation resources from multiple clients to collaboratively fine-tune foundation models. However, in real-world federated scenarios, there often exist a multitude of heterogeneous clients with varying computation and communication resources, rendering them incapable of supporting the entire model fine-tuning process. In response to this challenge, we propose a novel federated tuning algorithm, FedRA. The implementation of FedRA is straightforward and can be seamlessly integrated into any transformer-based model without the need for further modification to the original model. Specifically, in each communication round, FedRA randomly generates an allocation matrix. For resource-constrained clients, it reorganizes a small number of layers from the original model based on the allocation matrix and fine-tunes using adapters. Subsequently, the server aggregates the updated adapter parameters from the clients according to the current allocation matrix into the corresponding layers of the original model. It is worth noting that FedRA also supports scenarios where none of the clients can support the entire global model, which is an impressive advantage. We conduct experiments on two large-scale image datasets, DomainNet and NICO++, under various non-iid settings. The results demonstrate that FedRA outperforms the compared methods significantly. The source code is available at \url{https://github.com/leondada/FedRA}.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑