arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2408.11304cs.LG
收藏

FedMoE:通过异构混合专家实现个性化联邦学习

FedMoE: Personalized Federated Learning via Heterogeneous Mixture of Experts

Beijing University of Posts and Telecommunications(北京邮电大学)

Hanzi Mei, Dongqi Cai, Ao Zhou, Shangguang Wang, Mengwei Xu

AI总结:

针对联邦学习中的客户端异构性挑战,提出基于稀疏混合专家架构的个性化框架FedMoE,通过两阶段微调(启发式搜索构建子模型与模块化聚合)及全局专家推荐机制,有效解决数据异构问题并提升模型性能。

摘要:

随着大型语言模型(LLMs)不断突破AI能力的边界,它们对数据的需求也在日益增长。这些数据大多是私有的且分布在边缘设备上,使得联邦学习(FL)成为微调(即FedLLM)的事实替代方案。然而,由于客户端之间固有的异构性,包括不同的数据分布和多样的任务类型,它面临着重大挑战。为了构建通用的FedLLM,我们用稀疏激活的混合专家架构取代传统的密集模型,其并行前馈网络提供了更大的灵活性。为了在资源受限的环境中更具实用性,我们提出了FedMoE,这是一个高效的个性化联邦学习框架,旨在解决数据异构问题,为每个客户端构建最优的子MoE,并将知识带回全局MoE。FedMoE由两个微调阶段组成。在第一阶段,FedMoE通过基于观察到的激活模式进行启发式搜索来简化问题,为每个客户端识别一个次优的子模型。在第二阶段,这些子模型被分发给客户端进行进一步训练,并通过一种新颖的模块化聚合策略返回服务器进行聚合。同时,FedMoE通过全局专家推荐逐步将子模型调整至最优。实验结果证明了我们的方法相对于以前的个性化联邦学习方法的优越性。

英文摘要:

As Large Language Models (LLMs) push the boundaries of AI capabilities, their demand for data is growing. Much of this data is private and distributed across edge devices, making Federated Learning (FL) a de-facto alternative for fine-tuning (i.e., FedLLM). However, it faces significant challenges due to the inherent heterogeneity among clients, including varying data distributions and diverse task types. Towards a versatile FedLLM, we replace traditional dense model with a sparsely-activated Mixture-of-Experts (MoE) architecture, whose parallel feed-forward networks enable greater flexibility. To make it more practical in resource-constrained environments, we present FedMoE, the efficient personalized FL framework to address data heterogeneity, constructing an optimal sub-MoE for each client and bringing the knowledge back to global MoE. FedMoE is composed of two fine-tuning stages. In the first stage, FedMoE simplifies the problem by conducting a heuristic search based on observed activation patterns, which identifies a suboptimal submodel for each client. In the second stage, these submodels are distributed to clients for further training and returned for server aggregating through a novel modular aggregation strategy. Meanwhile, FedMoE progressively adjusts the submodels to optimal through global expert recommendation. Experimental results demonstrate the superiority of our method over previous personalized FL methods.

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

↑