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

从统一视角重新思考稀疏混合专家模型

Rethinking Sparse Mixture of Experts from a Unified Perspective

Applied Artificial Intelligence Intiative (A2I2), Deakin University, Victoria, Australia(应用人工智能倡议(A2I2),德金大学,维多利亚,澳大利亚)

Giang Do, Hung Le, Truyen Tran

AI总结:

针对稀疏混合专家模型中固定预算导致无关选择或遗漏关键分配的问题,提出基于线性规划的统一框架USMoE,通过统一机制和评分实现灵活专家选择,提升性能并降低推理成本。

摘要:

稀疏混合专家(SMoE)模型在保持恒定计算开销的同时扩展了模型容量。SMoE方法分为两类:Token Choice(将每个令牌路由到固定数量的专家)和Expert Choice(为每个专家分配固定数量的令牌)。然而,对令牌或专家使用固定预算导致两种方法都会选择不相关的令牌-专家对或忽略关键分配,从而降低整体性能。为填补这一空白,我们通过线性规划的视角从统一角度重新思考SMoE,为SMoE模型提供了通用公式。此外,我们引入了统一稀疏混合专家(USMoE),这是一个包含统一机制和统一评分的新框架,以克服这些限制。我们提供了理论证明和实证证据,展示了USMoE的有效性。在多种数据设置(干净和损坏)、多个领域(包括文本和视觉任务)以及不同学习方法(无训练和基于训练)上的广泛评估表明,USMoE不仅比现有SMoE方法带来了显著的性能提升,而且实现了更灵活的专家选择预算,在不影响模型性能的情况下降低了推理成本。我们的实现已在https://github.com/giangdip2410/USMoE公开。

英文摘要:

Sparse Mixture of Experts (SMoE) models scale the capacity of models while maintaining constant computational overhead. SMoE methods fall into two categories: Token Choice, which routes each token to a fixed number of experts, and Expert Choice, which assigns a fixed number of tokens to each expert. However, the use of fixed budgets for tokens or experts causes both approaches to select irrelevant token-expert pairs or overlook critical assignments, which degrades overall performance. To fill that gap, we rethink SMoE from a unified perspective through the lens of linear programming, which provides a general formulation for SMoE models. Furthermore, we introduce Unified Sparse Mixture of Experts (USMoE), a novel framework comprising a unified mechanism and a unified score to overcome these limitations. We provide both theoretical justification and empirical evidence demonstrating USMoE's effectiveness. Extensive evaluations across diverse data settings (clean and corrupted), multiple domains (including texts and vision tasks), and different learning approaches (training-free and training-based) show that USMoE not only delivers significant performance improvements over existing SMoE methods, but also enables more flexible expert selection budgets, reducing inference costs without compromising model performance. Our implementation is publicly available at https://github.com/giangdip2410/USMoE.

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

↑