arXiv:2511.07419cs.LG2025-11被引 4

通过对齐路由权重与任务嵌入流形,提升MoE模型泛化能力

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

  • 在后训练目标中加入流形正则项,使相似任务共享相近专家选择
  • 在OLMoE、DeepSeekMoE等模型上实现10-20%准确率提升
  • 仅微调路由模块,适用于各类MoE大模型的轻量优化

稀疏混合专家(MoE)架构因可在不增加推理成本的前提下扩展模型能力,已被广泛应用于近期大语言模型。然而,在多种下游任务上的评估显示,现有MoE模型的路由机制存在系统性不足,导致性能相比最优路由存在显著差距(如准确率低10-20%)。本文提出路由流形对齐(RoMA)方法,通过将路由权重流形与任务嵌入流形对齐,有效缩小该差距并提升模型泛化性能。该方法在后训练目标中引入额外的流形正则项,仅需轻量级微调路由模块(其余参数冻结)。正则项促使每个样本的路由权重靠近其成功邻居(即产生正确答案的样本)在任务嵌入空间中的路由权重。因此,目标相似的任务将在不同层共享相近的专家选择,构建任务与专家间的跨样本关联,对提升泛化至关重要。此外,RoMA实现了任务理解(嵌入模型)与解法生成(MoE模型)的统一。实验中,我们在OLMoE、DeepSeekMoE和Qwen3-MoE上应用RoMA进行路由微调。在多样基准测试中,与多个基线相比,均展现出显著性能提升。

原文摘要 · Abstract (English)

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.

MoE模型路由优化流形对齐大模型

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。