分布鲁棒混合专家训练
研究论文 · 2026/10/12
混合专家(MoE)Transformer 通过每个 token 仅激活少量专家来扩展容量,但这种稀疏性带来了隐藏的可靠性问题:当路由不完美时,负载均衡的模型可能将 token 发送给对指定输入训练不足的专家。我们提出分布鲁棒 MoE 训练(DRMoET),这是一种即插即用的目标函数,将逐层专家视为内生鲁棒性组,并优化高损失路由结果,而不仅仅是均衡流量。DRMoET 通过基于 EMA 平滑、激活加权的专家损失的熵正则化 softmax 规则更新逐层专家分布,在保留标准 MoE 计算的同时,强化合理的非 top 路由路径。在 FLAME-MoE 配方下,总参数量 746M 和 10.3B 规模上,DRMoET 相比标准 FLAME-MoE 和无辅助损失均衡均提升了下游平均性能。在总参数量 10.3B 和 67B 训练 token 下,DRMoET 将七任务平均从 0.6625 提升至 0.6767,而无辅助损失基线为 0.6431。机制分析显示专家损失方差更低且平均损失几乎不变,在强制 mid-k 错误路由下超额损失降低 4.3%,并改善了领域-专家专业化。这些结果将路由鲁棒性——而不仅是利用率均衡——定位为可靠稀疏 MoE 扩展的实用目标。项目页面和代码见:https://drmoet.github.io/。
该工作指出 MoE 稀疏激活下路由不完美导致的隐藏可靠性问题,并提出可即插即用的分布鲁棒训练目标,在多个规模上提升下游性能并改善路由鲁棒性,为可靠稀疏 MoE 扩展提供了新视角。
Mixture-of-Experts (MoE) transformers scale capacity by activating only a few experts per token, but this sparsity creates a hidden reliability problem: when routing is imperfect, load-balanced models may send tokens to experts that are insufficiently trained for the assigned inputs. We propose Distributionally Robust MoE Training (DRMoET), a drop-in objective that treats layer-wise experts as endogenous robustness groups and optimizes high-loss routing outcomes rather than merely equalizing traffic. DRMoET updates a per-layer expert distribution by an entropy-regularized softmax rule on EMA-smoothed, activation-weighted expert losses, strengthening plausible non-top routing paths while preserving standard MoE computation. Under the FLAME-MoE recipe at 746M-total and 10.3B-total scales, DRMoET improves downstream averages over both standard FLAME-MoE and auxiliary-loss-free balancing. At 10.3B total parameters and 67B training tokens, DRMoET improves the seven-task average from 0.6625 to 0.6767, while the auxiliary-loss-free baseline achieves 0.6431. Mechanistic analyses show lower expert-loss variance with nearly unchanged mean loss, 4.3% lower excess loss under forced mid-k misrouting, and improved domain-expert specialization. These results position routing robustness-not only utilization balance-as a practical objective for reliable sparse MoE scaling. Project page and code are available at: https://drmoet.github.io/.