Routes of Reasoning: Reading and Reshaping Test-Time Compute in MoE Models
Organizations: University of California, Los Angeles
Abstract
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.
Figures & tables
| Behavior | What the segment does |
|---|---|
| planning | proposes how to proceed |
| execution | derives a new result |
| restatement | repeats without new inference |
| fact | invokes established knowledge |
| reflection | checks or revises earlier work |
| conclusion | states a result or closes a subgoal |
Appendix figures & tables9 assets
Supplementary material from the paper’s appendix.
Appendix
| Source | Train | Dev | Test |
|---|---|---|---|
| GSM8K training split | 100 | 22 | 28 |
| NuminaMath training split | 98 | 23 | 29 |
| AIME 2023 | 21 | 4 | 5 |
| Problems | 219 | 49 | 62 |
| Segments | 52,008 | 10,315 | 16,632 |
| Layers | Width | Token test | Segment test |
|---|---|---|---|
| L12 only | 128 | 0.608 | 0.708 |
| L8–L16 ( ) | 1,152 | 0.659 | 0.731 |
| L7–L17 ( ) | 1,408 | 0.656 | 0.731 |
| L6–L18 ( ) | 1,664 | 0.655 | 0.733 |
| L5–L19 ( ) | 1,920 | 0.653 | 0.732 |
| Readout | Width | Macro-F1 |
|---|---|---|
| Token majority vote | 128 | 0.608 |
| Token probability average | 128 | 0.613 |
| Final token | 128 | 0.702 |
| Max pooling | 128 | 0.682 |
| Mean pooling | 128 | 0.708 |
| Mean + max pooling | 256 | 0.716 |
| Source | Domain | Segments |
|---|---|---|
| Mathematical mixture | Mathematics | 78,955 |
| MATH500 ( Hendrycks et al., 2021 ) | Mathematics | 79,816 |
| LiveCodeBench ( Jain et al., 2024 ) | Code | 187,068 |
| GPQA (non-Diamond) ( Rein et al., 2024 ) | Science | 112,825 |
| MMLU-Pro ( Wang et al., 2024 ) | Knowledge | 53,770 |
| CommonsenseQA ( Talmor et al., 2019 ) | Commonsense | 17,123 |
| Model | Layers | Total | Active | Routed | Top- & shared |
|---|---|---|---|---|---|
| Gemma-4-26B-A4B-it | 30 | 26B | 4B | 128 | 8 |
| Qwen3-30B-A3B | 48 | 30B | 3B | 128 | 8 |
| Qwen3.6-35B-A3B | 40 | 35B | 3B | 256 | 8 1 shared |
| GPT-OSS-120B | 36 | 120B | 5.1B | 128 | 4 |
| tokens (%) | accuracy (pp) | ||||
|---|---|---|---|---|---|
| Model | Benchmark | Prompt | Ours | Prompt | Ours |
| Gemma-4 | MATH500 | ||||
| AIME | |||||
| GPQA-D | |||||
| AICrypto | |||||
| Qwen3 | MATH500 | ||||
| Suppress | Tokens | Answer at | Re-checks | Doubts | Openers | Correct |
|---|---|---|---|---|---|---|
| none | 1,494 | [31] | 4 | 7 | 10 | yes |
| planning ( 200) | 1,076 | [30] | 2 | 3 | 7 | yes |
| reflection ( 100) | 1,579 | [38] | 4 | 3 | 15 | yes |
| restatement ( 100) | 1,866 | [43] | 5 | 7 | 15 | yes |
| execution ( 30) | 1,758 | [64] | 4 | 5 | 14 | yes |
| execution ( 100) | 16,384 | – | – | 19 | 40 | no |
| Planning experts | Wrap-up | New angle | Thinking ends |
|---|---|---|---|
| unmodified | 23 | 23 | 5% |
| suppressed throughout | 68 | 11 | 17% |
| suppressed for one window | 43 | 21 | 6% |
Efficient Language Model Reasoning
Efficient language model reasoning studies how to improve problem-solving accuracy while reducing inference, memory, latency, and training costs.
See all 388 papers