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

用于多任务模型合并的高效且有效的权重集成混合专家模型

Efficient and Effective Weight-Ensembling Mixture of Experts for Multi-Task Model Merging

Sun Yat-sen University(中山大学);Wuhan University(武汉大学);Northeastern University(东北大学);Nanyang Technological University(南洋理工大学)

Li Shen, Anke Tang, Enneng Yang, Guibing Guo, Yong Luo, Lefei Zhang, Xiaochun Cao, Bo Du, Dacheng Tao

AI总结:

针对现有多任务模型合并方法静态合并易因任务多样性导致性能下降的问题,提出WEMoE及高效版E-WEMoE,通过区分关键模块动态合并,在性能、泛化性和鲁棒性上均优于SOTA方法。

摘要:

多任务学习(MTL)利用共享模型完成多个任务并促进知识迁移。近期基于任务算术的多任务学习研究表明,合并独立微调模型的参数可有效实现多任务学习。然而,现有合并方法主要在原始模型参数空间内寻求静态最优解,由于任务间固有的多样性和潜在干扰,往往导致性能下降。为解决这一挑战,本文提出一种用于多任务模型合并的权重集成混合专家(WEMoE)方法。具体而言,我们首先通过分析基于Transformer的模型核心模块在微调前后的参数变化,识别关键(或敏感)模块。随后,WEMoE静态合并非关键模块,同时将关键模块转换为混合专家(MoE)结构。推理过程中,MoE中的专家模块根据输入样本动态合并,实现更灵活自适应的合并方式。在WEMoE的基础上,我们进一步提出高效有效的WEMoE(E-WEMoE)方法,其核心机制是去除WEMoE关键模块中的非必要元素,并在多个MoE模块间实现共享路由,从而显著减少WEMoE合并模型的可训练参数、总参数量和计算开销。在多种架构和任务上的实验结果表明,WEMoE和E-WEMoE在多任务学习性能、泛化性和鲁棒性方面均优于当前最优(SOTA)的模型合并方法。

英文摘要:

Multi-task learning (MTL) leverages a shared model to accomplish multiple tasks and facilitate knowledge transfer. Recent research on task arithmetic-based MTL demonstrates that merging the parameters of independently fine-tuned models can effectively achieve MTL. However, existing merging methods primarily seek a static optimal solution within the original model parameter space, which often results in performance degradation due to the inherent diversity among tasks and potential interferences. To address this challenge, in this paper, we propose a Weight-Ensembling Mixture of Experts (WEMoE) method for multi-task model merging. Specifically, we first identify critical (or sensitive) modules by analyzing parameter variations in core modules of Transformer-based models before and after finetuning. Then, our WEMoE statically merges non-critical modules while transforming critical modules into a mixture-of-experts (MoE) structure. During inference, expert modules in the MoE are dynamically merged based on input samples, enabling a more flexible and adaptive merging approach. Building on WEMoE, we further introduce an efficient-and-effective WEMoE (E-WEMoE) method, whose core mechanism involves eliminating non-essential elements in the critical modules of WEMoE and implementing shared routing across multiple MoE modules, thereby significantly reducing both the trainable parameters, the overall parameter count, and computational overhead of the merged model by WEMoE. Experimental results across various architectures and tasks demonstrate that both WEMoE and E-WEMoE outperform state-of-the-art (SOTA) model merging methods in terms of MTL performance, generalization, and robustness.

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

↑