arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2409.13931cs.LGcs.CL
收藏

通过混合通才与专家的端侧协同语言建模

On-Device Collaborative Language Modeling via a Mixture of Generalists and Specialists

EPFL(洛桑联邦理工学院)

Dongyang Fan, Bettina Messmer, Nikita Doikov, Martin Jaggi

AI总结:

提出CoMiGS,一种混合通才与专家的端侧协同学习框架,通过双层优化和交替最小化解决联邦学习中计算与数据异构问题,在平衡通用与个性化知识的同时防止过拟合。

摘要:

端侧 LLMs 因能增强隐私并提供个性化用户体验而备受关注。为在数据稀缺下实现隐私学习,联邦学习已成为标准方法。然而,它面临计算资源异构和终端用户间数据异构的挑战。我们提出 CoMiGS(混合通才与专家的协同学习),这是首个同时解决这两项挑战的方法。该方法的关键创新是 Mixture-of-Experts 学习目标的双层优化公式,其中路由器使用单独的验证集进行优化,以确保与目标分布对齐。我们通过交替最小化求解该目标,并提供了理论分析。该方法在用户间共享通才专家,同时本地化数量可变的专家专家,从而适应用户计算资源并保护隐私。通过大量实验,我们表明 CoMiGS 能为每次 token 生成有效平衡通用与个性化知识。我们证明 CoMiGS 保持了对过拟合的鲁棒性(得益于通才的正则化效应),同时通过专家专长适应本地数据。我们开源了协同 LLMs 的代码库。

英文摘要:

On-device LLMs have gained increasing attention for their ability to enhance privacy and provide a personalized user experience. To facilitate private learning with scarce data, Federated Learning has become a standard approach. However, it faces challenges such as computational resource heterogeneity and data heterogeneity among end users. We propose CoMiGS ($\textbf{Co}$llaborative learning with a $\textbf{Mi}$xture of $\textbf{G}$eneralists and $\textbf{S}$pecialists), the first approach to address both challenges. A key innovation of our method is the bi-level optimization formulation of the Mixture-of-Experts learning objective, where the router is optimized using a separate validation set to ensure alignment with the target distribution. We solve our objective with alternating minimization, for which we provide a theoretical analysis. Our method shares generalist experts across users while localizing a varying number of specialist experts, thereby adapting to users' computational resources and preserving privacy. Through extensive experiments, we show CoMiGS effectively balances general and personalized knowledge for each token generation. We demonstrate that CoMiGS remains robust against overfitting-due to the generalists' regularizing effect-while adapting to local data through specialist expertise. We open source our codebase for collaborative LLMs.

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

↑