Routes of Reasoning: Reading and Reshaping Test-Time Compute in MoE Models

LLM MoE CoT
2026年11月04日
推理模型在测试阶段将计算资源分配给多种不同的推理行为,例如规划、推导和验证等。然而,模型常常会“过度思考”,即在已经找到正确答案之后,仍持续进行验证和重复推导。这不仅浪费了昂贵的计算资源,甚至可能损害模型性能。目前主流的干预手段(如设定生成令牌数量上限或对推理过程进行引导)主要聚焦于调控推理时长,而非针对特定的推理行为本身。本研究发现,混合专家(Mixture-of-Experts, MoE)架构中的路由机制天然提供了一种无需额外训练即可实现行为级调控的接口。我们首先将推理轨迹按句子切分为若干片段,并为每个片段标注六类推理行为之一(规划、执行、复述、事实陈述、反思与结论),从而使该片段内所有词元均携带其所属行为标签。实验表明,仅基于路由层输出的逻辑值(router logits)所构建的线性探针,在预测上述行为标签方面的准确率几乎可媲美基于残差流(residual stream)——即模型完整隐状态(也是探针分析的标准目标)——所构建的探针,且所需特征维度仅为后者的约一半。更值得注意的是,这些信号具有良好的泛化能力:在某一数据集上被识别为表征某类推理行为的专家,在其余五个跨领域数据集(涵盖数学、编程、科学、知识问答与常识推理五大领域)上同样能稳定预测相同的行为类别。基于这一发现,我们在推理过程中有针对性地调整各专家的路由得分,从而有效抑制“过度思考”现象。该方法在四种不同模型与四个基准测试任务上的实验结果显示,生成词元总数中位数减少30.4%,最高降幅达63.3%。尤为关键的是,该干预促使模型在问题已获解决时及时终止推理,而非跳过必要的推理步骤。在整个过程中,模型准确率从未下降超过0.5个百分点,且多数情况下反而有所提升。最终,MoE路由机制既为我们理解模型内部推理状态提供了可解释的观察视角,也提供了一种轻量、高效、可即插即用的测试阶段计算资源优化方案。
Reasoning models allocate test-time compute across distinct behaviors such as planning, deriving, and verifying. However, models frequently "overthink," continuing to verify and re-derive long after finding a correct answer. This wastes expensive compute and can even degrade performance. Existing interventions, such as token budgets or steering, primarily regulate reasoning duration rather than targeting specific behaviors. In this work, we demonstrate that Mixture-of-Experts (MoE) routers provide a natural, training-free interface for behavioral control. We first split reasoning traces into sentence-level segments and label each with one of six reasoning behaviors (planning, execution, restatement, fact, reflection, and conclusion), so that every token carries the behavior of its segment. Linear probes on router logits predict this label nearly as well as probes on the residual stream, the model's full hidden state and the standard target for probing, while using about half as many features. These signals generalize: experts associated with a reasoning behavior on one dataset predict the same behavior on the others, across six datasets spanning five domains (math, code, science, knowledge, and commonsense). Building on this, we selectively edit expert router scores during inference to curb overthinking. Across four models and four benchmarks, this intervention reduces the number of generated tokens by a median of 30.4% (and up to 63.3%). Crucially, it encourages the model to stop once the problem is solved, rather than skipping essential reasoning steps. Accuracy never drops by more than 0.5 percentage points, and frequently improves. Ultimately, MoE routing offers both an interpretable lens into reasoning states and a lightweight mechanism for optimizing test-time compute.
许愿