MoE强化学习中的专家空间探索

·

研究论文 · 2026/09/15

强化学习已成为大语言模型后训练的核心。近期针对混合专家(MoE)模型的强化学习进展主要关注优化稳定性和训练效率,而将专家选择视为固定组件。由于路由决定了诱导输出分布的稀疏计算路径,专家选择提供了额外的 rollout 多样性来源。通过实证分析,我们发现扰动专家路由能有效改变模型输出并增加 rollout 多样性,类似于提高解码温度。然而,直接扰动可能激活不合适的专家并显著降低 rollout 质量。基于这些观察,我们提出了专家空间探索强化学习(ESRL),一个显式探索 MoE 模型专家路由空间的架构感知框架。ESRL 保留高置信度专家作为锚点,并将随机路由限制在合理的候选池中,从而保留可靠的计算路径。扰动强度根据路由器熵进一步自适应调整,以避免过度扰动。为缓解扰动引入的路由不匹配,ESRL 记录 rollout 期间使用的专家路径,并在策略优化期间重放它们。实验表明,ESRL 在 top-K、top-1 和共享专家路由的 MoE 骨干上,以及在数学、科学和代码任务中均取得最佳性能,且无需额外采样或计算成本。具体而言,ESRL 在 Qwen3-30B-A3B 上在所有对比方法中表现最佳,平均 Pass@1 和 Pass@8 分别比 GRPO 提高 3.2 和 4.5 个百分点。对专家利用率和训练动态的进一步分析,揭示了利用 MoE 特定路由结构如何有益于强化学习训练。

该研究首次将MoE的专家路由作为强化学习中的探索维度,提出了有效的ESRL框架,在多个模型和任务上显著提升性能且不增加计算成本,为MoE模型的强化学习训练提供了新思路。

Reinforcement learning (RL) has become central to post-training of large language models. Recent advances in RL for Mixture-of-Experts (MoE) models have primarily focused on improving optimization stability and training efficiency, while treating the expert selection as a fixed component. Since routing determines the sparse computation paths that induce output distributions, expert selection offers an additional source of rollout diversity. Through empirical analysis, we find that perturbing expert routing effectively alters model output and increases rollout diversity, which is similar to increasing the decoding temperature. However, direct perturbation can activate unsuitable experts and substantially degrade rollout quality. Motivated by these observations, we introduce Expert-Space Exploration Reinforcement Learning (ESRL), an architecture-aware framework that explicitly explores the expert-routing space of MoE models. ESRL preserves high-confidence experts as anchors, and restricts stochastic routing to a plausible candidate pool, thereby retaining reliable computation paths. The perturbation strength is further adapted according to router entropy to avoid over-perturbation. To mitigate the routing mismatch introduced by perturbation, ESRL records the expert paths used during rollout and replays them during policy optimization. Experiments demonstrate that ESRL achieves the best performance across MoE backbones with top-K, top-1, and shared-expert routing, as well as across mathematics, science, and code tasks without additional sampling or computational cost. Specifically, ESRL on Qwen3-30B-A3B achieves the best among all compared methods, improving average Pass@1 and Pass@8 over GRPO by 3.2 and 4.5 percentage points, respectively. Further analyses of expert utilization and training dynamics provide insights into how exploiting MoE-specific routing structure benefits RL training.

阅读原文

参与讨论