arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2502.00997cs.CLcs.AI
收藏

MergeME:面向同构与异构 MoE 的模型合并技术

MergeME: Model Merging Techniques for Homogeneous and Heterogeneous MoEs

University of Maryland(马里兰大学);Amazon AGI(亚马逊AGI)

Yuhang Zhou, Giannis Karamanolakis, Victor Soto, Anna Rumshisky, Mayank Kulkarni, Furong Huang, Wei Ai, Jianhua Lu

AI总结:

针对专家 LLM 合并为 MoE 时的参数干扰、架构限制与微调成本问题,本文提出 MergeME,通过干扰缓解、路由启发式和异构专家合并提升性能并扩大适用范围。

摘要:

近期,专用大型语言模型(LLM)在数学推理和编程等领域取得成功,使人们越来越关注将这些专家 LLM 合并为统一的混合专家(Mixture-of-Experts,MoE)模型的方法,目标是在增强各领域性能的同时保持在通用任务上的有效性。然而,有效合并专家模型仍是一个开放挑战,尤其是对于权重参数差异很大或架构不同的模型。最先进的 MoE 合并方法仅适用于同构模型架构,并依赖简单的无加权平均来合并专家层,这无法解决参数干扰问题,还需要对合并后的 MoE 进行大量微调以恢复性能。为解决这些局限,本文提出了新的 MoE 合并技术,包括缓解参数干扰的策略、减少 MoE 微调需求的路由启发式方法,以及一种合并具有不同架构的专家的新方法。跨多个领域的大量实验证明了所提方法的有效性:它们降低了微调成本,性能优于最先进方法,并扩展了 MoE 合并的适用性。

英文摘要:

The recent success of specialized Large Language Models (LLMs) in domains such as mathematical reasoning and coding has led to growing interest in methods for merging these expert LLMs into a unified Mixture-of-Experts (MoE) model, with the goal of enhancing performance in each domain while retaining effectiveness on general tasks. However, the effective merging of expert models remains an open challenge, especially for models with highly divergent weight parameters or different architectures. State-of-the-art MoE merging methods only work with homogeneous model architectures and rely on simple unweighted averaging to merge expert layers, which does not address parameter interference and requires extensive fine-tuning of the merged MoE to restore performance. To address these limitations, this paper introduces new MoE merging techniques, including strategies to mitigate parameter interference, routing heuristics to reduce the need for MoE fine-tuning, and a novel method for merging experts with different architectures. Extensive experiments across multiple domains demonstrate the effectiveness of our proposed methods, reducing fine-tuning costs, improving performance over state-of-the-art methods, and expanding the applicability of MoE merging.

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

↑