2025-11-11 · 进阶 · 自然语言处理 · 机器学习

Routing Manifold Alignment Improves Generalization of Mixture-of-Experts LLMs

该论文提出了一种名为RoMA的轻量级路由后训练方法,通过将路由权重与任务嵌入流形对齐,有效提高了稀疏混合专家LLMs的泛化性能。

更新于 2025-11-12。作者:Zhongyang Li、Ziyue Li、Tianyi Zhou。

中文摘要

稀疏混合专家(MoE)在最近的大型语言模型中得到了广泛的应用,因为它可以在不增加推理成本的情况下有效地提升模型的能力。然而,对广泛下游任务的评估揭示了现有MoE LLMs中路由器存在持续的次优性,这导致了与最优路由之间严重的性能差距(例如,准确率相差10-20%)。在本文中,我们展示了通过将路由权重的流形与任务嵌入的流形对齐,可以有效缩小这种差距并提高MoE LLMs的泛化性能。我们的方法,称为“路由流形对齐(RoMA)”,在训练后的目标函数中引入了一个额外的流形正则化项,并且只需要对路由器进行轻量级的微调(其他参数保持冻结)。具体来说,这种正则化鼓励每个样本的路由权重在任务嵌入空间中接近其成功邻居的路由权重(这些邻居的路由权重能引导到正确答案)。因此,针对类似任务的样本将在层间共享相似的专业选择。在不同样本之间建立任务与专家之间的这种联系对于实现更好的泛化至关重要。此外,RoMA展示了将任务理解(通过嵌入模型)与解决方案生成(通过MoE LLMs)统一的优势。在实验中,我们使用RoMA对OLMoE、DeepSeekMoE和Qwen3-MoE中的路由器进行了微调。在多样化的基准测试和与基线的广泛比较中,RoMA带来的显著改进得到了验证。

英文摘要

Sparse Mixture-of-Experts (MoE) have been widely adopted in recent large language models since it can efficiently scale up the model capability without increasing the inference cost. However, evaluations on broad downstream tasks reveal a consistent suboptimality of the routers in existing MoE LLMs, which results in a severe performance gap (e.g., 10-20% in accuracy) to the optimal routing. In this paper, we show that aligning the manifold of routing weights with that of task embedding can effectively reduce the gap and improve MoE LLMs' generalization performance. Our method, "Routing Manifold Alignment (RoMA)", introduces an additional manifold regularization term in the post-training objective and only requires lightweight finetuning of routers (with other parameters frozen). Specifically, the regularization encourages the routing weights of each sample to be close to those of its successful neighbors (whose routing weights lead to correct answers) in a task embedding space. Consequently, samples targeting similar tasks will share similar expert choices across layers. Building such bindings between tasks and experts over different samples is essential to achieve better generalization. Moreover, RoMA demonstrates the advantage of unifying the task understanding (by embedding models) with solution generation (by MoE LLMs). In experiments, we finetune routers in OLMoE, DeepSeekMoE, and Qwen3-MoE using RoMA. Evaluations on diverse benchmarks and extensive comparisons with baselines show the substantial improvement brought by RoMA.

解读

一句话总结

该论文提出了一种名为RoMA的轻量级路由后训练方法,通过将路由权重与任务嵌入流形对齐,有效提高了稀疏混合专家LLMs的泛化性能。

问题1:这篇论文想要解决什么具体问题?

问题2:论文的核心创新点是什么?

问题3:实验结果如何验证了方法的有效性?

问题4:这个研究的实际应用价值是什么?

来源

机器可读索引:llms.txt