专家-令牌共振MoE:基于效率亲和力驱动的主动选择双向路由
Expert-Token Resonance MoE: Bidirectional Routing with Efficiency Affinity-Driven Active Selection
AI总结:
本文提出专家-令牌共振(ETR)双向路由机制,通过动态协调令牌选择与专家选择路由,降低专家容量下限40%,并在Ascend NPU上实现5.4%-46.6%的训练效率提升及多项基准性能增益。
摘要:
混合专家(MoE)架构通过仅激活每个输入的部分参数,实现了大型语言模型的高效扩展。然而,现有的MoE模型存在两个关键限制:(1)低效的令牌到专家路由导致过高的通信开销,(2)专家同质化导致冗余计算。当前的方法分别解决这些问题,未能同时提升训练效率和模型性能。我们提出了专家-令牌共振(ETR),一种有理论依据的双向路由机制,从根本上重新构想了MoE架构中的专家-令牌交互。我们的关键见解是,最优路由需要在早期训练阶段采用令牌选择路由(TCR)和后期阶段采用专家选择路由(ECR)之间进行自适应协调。我们证明了这种动态方法能够最大化训练成功率(正确令牌-专家分配的概率),同时将专家容量下限降低高达40%。ETR包含三项技术创新:(1)基于亲和力的路由架构,使用分组平均池化(GrAP),将计算复杂度从O(d^2)降低到O(d^2/D),同时保持正交性以防止专家同质化;(2)双向选择机制,使令牌和专家都能基于余弦相似度分数积极参与路由过程;(3)自适应容量策略,根据训练进度动态调整专家界限,消除All-to-All操作中的通信气泡。在Ascend NPU集群上进行的大量实验表明,与基线MoE实现相比,ETR在端到端训练效率上实现了5.4%-46.6%的提升,在GDAD、GPQA、HumanEval和TeleQnA基准上实现了9.7%-14.5%的性能提升。
英文摘要:
Mixture-of-Experts (MoE) architectures enable efficient scaling of large language models by activating only a subset of parameters per input. However, existing MoE models suffer from two critical limitations: (1) inefficient token-to-expert routing that causes excessive communication overhead, and (2) expert homogenization that leads to redundant computations. Current approaches address these challenges separately, failing to achieve simultaneous improvements in both training efficiency and model performance. We present Expert-Token Resonance (ETR), a theoretically-grounded bidirectional routing mechanism that fundamentally reimagines expert-token interactions in MoE architectures. Our key insight is that optimal routing requires adaptive coordination between token-choice routing (TCR) during early training phases and expert-choice routing (ECR) in later stages. We prove that this dynamic approach maximizes training success rate (the probability of correct token-expert assignments) while reducing the expert capacity lower bound by up to 40%. ETR incorporates three technical innovations: (1) an affinity-based routing architecture using Grouped Average Pooling (GrAP) that reduces computational complexity from O(d^2) to O(d^2/D) while maintaining orthogonality to prevent expert homogenization; (2) a bidirectional selection mechanism that enables both tokens and experts to actively participate in the routing process based on cosine similarity scores; and (3) an adaptive capacity strategy that dynamically adjusts expert bounds based on training progress, eliminating communication bubbles in All-to-All operations. Extensive experiments on Ascend NPU clusters demonstrate that ETR achieves 5.4%-46.6% improvements in end-to-end training efficiency compared to baseline MoE implementations, with 9.7%-14.5% performance gains across GDAD, GPQA, HumanEval, and TeleQnA benchmarks.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。