Muon 使首个混合专家层更难平衡
研究论文 · 2026/11/04
许多开源混合专家(MoE)语言模型使用Muon而非AdamW进行训练,并通过调整每个专家路由分数的偏置来平衡负载。在5500万和1.08亿活跃参数的模型中,研究发现,在短运行调优的学习率下,Muon使第一层MoE的偏置跨度(最大减最小)在每个随机种子下都增大,平均约翻倍,而其他层变化较小。这种增大源于Muon训练网络其余部分,无论路由器由哪个优化器训练。在这些运行中,第一层路由器的输入共享一个方向,预热后其最繁忙专家的负载达到公平份额的4到7倍。在前3000步中,从这些输入中减去批次均值可消除这种过载,而损失几乎不变。在较小模型上,将Muon学习率减半可消除大部分跨度增大并略微改善损失。仅将路由器移至AdamW会使预热期间负载变化更大并略微提高损失,因此在此规模下结果支持保持路由器使用Muon。
该研究揭示了Muon优化器在MoE模型中加剧第一层负载不平衡的机制,并提出了简单有效的缓解方法,对优化MoE训练具有实用价值。
Many open mixture-of-experts (MoE) language models train with Muon instead of AdamW. Most balance the load with a bias on each expert's routing score, adjusted after every step. Their recipes disagree on whether Muon should also train the router. In models with 55M and 108M active parameters, we measure how the optimizer changes the span of these biases, the largest minus the smallest in a layer. The span grows when all tokens favor the same experts, so it shows how hard a layer is to balance. At learning rates tuned on shorter runs, Muon raised the span of the first MoE layer at every seed, roughly doubling it on average, while the other layers changed much less. The rise came from Muon on the rest of the network, whichever optimizer trained the router. In those runs, the inputs to the first router shared a direction, and soon after the warmup its busiest expert averaged four to seven times its fair share. Over the first 3,000 steps, subtracting the batch mean from these inputs removed this overload while barely changing the loss. On the smaller model, halving Muon's learning rate removed most of the rise and slightly improved the loss. Moving only the router to AdamW made the loads shift more during the warmup and slightly raised the loss, so at this scale the results favor keeping the router on Muon.