为智能体强化学习构建MoE专家选择
研究论文 · 2026/10/08
长视野LLM智能体常使用稀疏专家混合(MoE)模型实现,但智能体行为与MoE结构的协同设计仍未充分探索。本研究全面探讨了智能体后训练与MoE专家选择之间的关系。在现成的MoE模型中,我们观察到专家选择表现出一种与智能体轨迹自然对齐的专门结构:智能体执行语义相似操作(如READ、UPDATE)的轮次之间,专家路由的重叠程度高于操作不同的轮次。然而,标准强化学习算法忽略了这种专门化,导致训练中MoE路由不受控制,经验上限制了任务性能和推理效率。为此,我们提出了一种面向智能体任务的分层路由控制框架,显式鼓励轮级专家选择与智能体操作对齐,同时正则化词元级专家选择以保持局部一致性。为解决所提方法在后训练中出现的稳定性问题,我们进一步引入了熵门控控制机制。总体而言,我们的路由控制框架在所有评估基准上成功率提升超过10个百分点。这些结果表明,智能体轨迹结构为在强化学习后训练中优化MoE容量提供了有效信号。
该研究揭示了MoE专家选择与智能体轨迹之间的自然对齐关系,并提出有效的路由控制框架,显著提升任务成功率和推理效率,为MoE模型在强化学习后训练中的优化提供了新思路。
Long-horizon LLM agents are frequently implemented using sparse mixture-of-experts (MoE) models, yet the co-design of agentic behavior and MoE structures remains underexplored. In this work, we comprehensively study the connections between agentic post-training and MoE expert selection. In off-the-shelf MoE models, we observe expert selection exhibits a specialized structure that naturally aligns with agentic trajectories. Specifically, expert routing overlaps more between turns where the agent performs semantically similar operations (e.g., READ, UPDATE) than between turns with differing operations. However, standard RL algorithms ignore this specialization, allowing the MoE routing to go uncontrolled during training, which empirically limit task performance and inference efficiency. To address this, we introduce a hierarchical routing control framework for agentic tasks. We explicitly encourage turn-level expert selections to align with agentic operations while regularizing token-level expert selections to maintain local consistency. To resolve stability issues that arise during post-training with the proposed methods, we further introduce an entropy-gated control mechanism. Overall, our routing control framework achieves over 10-point improvements in success rate on all evaluated benchmarks. These results demonstrate that agentic trajectory structure provides an effective signal for optimizing MoE capacity during RL post-training.