Manuscript Offprint
arXiv:2611.05275Route Anything: A Study of Model and Policy Routing for General-Purpose AI Systems
InfRec Cardinal AI Lab
NUS National University of Singapore
UC Berkeley
THE HONG KONG UNIVERSITY OF SCIENCE AND TECHNOLOGY
2026-11-04
Route Anything: A Study of Model and Policy Routing for General-Purpose AI Systems
Pengfei Zhou Yixing Ma Hexin Wang Weidong Tang Zhenglin Wan Wangbo Zhao Yang You
National University of Singapore, HPC-AI Lab InfRec, Cardinal AI Lab University of California, Berkeley Hong Kong University of Science and Technology
wanghexin@infrec.tech; yangyou@nus.edu.sg ‡ Corresponding Author
Project Page
GitHub
Hugging Face
AGI should be all-knowing and all-capable. — Anonymous
Abstract Artificial general intelligence (AGI) requires a method that can understand, generate, reason, and act across diverse domains and modalities. Rather than relying on a single model to master every capability, a promising path toward AGI now is to orchestrate a heterogeneous ecosystem of specialized models, tools, and policies (candidates) into a unified AI system. At the heart of this vision lies a fundamental question: how can an AI system dynamically select and coordinate the most capable candidate for each task while balancing performance and computational cost? In this work, we present Route Anything, a unified framework for studying model and policy routing across general-purpose AI systems. We develop a unified theoretical foundation that characterizes optimal routing under quality-cost trade-offs and establishes how the information available to a router determines its attainable performance. To systematically investigate routing across diverse capabilities, we first construct an omni-modal trajectory matrix spanning 25 benchmarks across language understanding, image, video, and speech generation, coding and workplace agents, and robotic manipulation, comprising 374,401 scored runs from 452 candidate configurations. Building on this framework, we train and test different routers to investigate the potential of omni-modal model routing, the capabilities of learned routers, and the conditions under which routing improves efficiency. Our results reveal substantial opportunities for capability orchestration: per-input oracle routing outperforms the best fixed candidate by 5.4 points, and learned routers outperform it by 0.3 points across 16 benchmarks, by 2.1 points on video generation, and by 1.1 points on robot manipulation while using 24% less policy time. More importantly, routing raises efficiency by 8.82× on average compared with the reference model, including 25.5× on coding tasks and 7.1× on text question answering.

Figure 1 | Routing across modalities. (a) For each input, the router picks one candidate from the pool based on demand, ranking candidates by value minus weighted cost. (b) On the test set, the best candidate per input (oracle) beats the best fixed candidate per benchmark by 5.4 points on average (Table 1). (c) Routing raises efficiency by 8.82× on average over the reference model, at a quality loss below 0.5 points. The efficiency gain, , compares quality per dollar (or per second of policy inference for robots) against the reference (Table 5).
1. Introduction
Agentic AI systems now can draw on multiple kinds of specialized models, tools, and policies: a language model answers a question, an image or video generator renders a prompt, a speech model reads text aloud, and a learned policy controls a robot. Rather than relying on one model to master every capability, a general-purpose system can orchestrate this heterogeneous ecosystem and choose, for each input, which module handles it. We call each such model, tool, or policy a candidate. The best candidate changes from input to input, so a router that chooses well is expected to match one fixed strongest candidate at a fraction of its price, or beat it by sending every input to the most suitable candidate that handles it best.
Routing research has mostly studied language models: cascades that escalate to a stronger model [1], routers learned from preferences [2], and quality-cost formulations that connect the two [3]. Whether routing helps across modalities remains an open question. Thus we present a unified framework Route Anything for studying model and policy routing across modalities. To support such anyasitical framework, we first build an omni-modal trajectory matrix in which every candidate in a pool runs on the same inputs, for 25 benchmarks across text and image understanding, image, video, and speech generation, code and workplace agents, and robot manipulation, with three to seven candidates per pool and 374,401 scored runs of 452 candidate configurations (Figure 1). We train and test routers using different strategies and ask three questions: how much can routing gain, how well do learned routers work, and when is a cheaper route good enough?
Our unified routing theory frames all three: a router's value is the best expected outcome, net of priced cost, given what it observes, so what it can reach is a ladder from the best fixed candidate to the per-input oracle, and a reference policy with a quality tolerance fixes the price of quality. The matrix measures each rung, and two code and text testbeds with recorded prices [4, 5] add the cost side. We also provide empirical insights through extensive experiments:
Key findings
-
The potential gain for router is large (§3). On 19,814 test inputs from 24 benchmarks, the per-input oracle beats the best fixed candidate per benchmark by 5.4 points, from 0.7 for speech generation to 18–19 for video generation and robot manipulation. The best candidate per capability type, even chosen in hindsight, closes only 8% of the gap.
-
Learned routers beat the best fixed candidate by 0.3 points, and by up to 2.1 points per output group (§4.1). One capability-tree router over 16 benchmarks scores 79.98 against 79.68 for the fixed candidate and 84.80 for the oracle. Its gains come from agents, video, and image generation; none of 124 router configurations on GenEval2 and Qwen-Image-Bench beats the fixed generator significantly.
-
On robots, the router can also read the scene and saves time (§4.2). From three camera frames it sends clean scenes to PatchWAM and randomized ones to ME-Dex, matching the better policy in each condition: 71.6% success against 70.5% for the best single policy, with 24% less policy time.
-
Learn outcomes, not winners (§4.3). With the same inputs and backbone, regressing each policy's success reaches 71.6% robot success and classifying the winner 42.8%, because a latency tie-break decides 94% of the winner labels. Winner-label routers on 16 benchmarks and a 68-type classifier also stay below the fixed candidate.
-
Compare candidates on the same inputs (§4.4). A fixed baseline that required a score on every training input dropped Opus 5.5, which missed 11 of 1,122 HLE scores, and turned a learned router's 0.4-point deficit into a 2.4-point gain.
-
A cheaper route is often good enough (§5.1). Against the reference, routing raises efficiency by 8.82× on average over four testbeds, including 25.5× on code and 7.1× on text QA. On CodeRouterBench the router fitted for zero quality loss never calls the Opus reference; the certified zero-loss floor holds on test in all 200 splits at a median 19.4×, the fitted one in 12.5%. In image generation, a price route cuts cost by 26% within half a point.
-
Richer candidates and finer states are worth their cost only if they beat what they replace (§5.2). On CodeRouterBench, a failure roughly halves the next model's success; a free compiler gate gives 4.09× dollar efficiency, a list-price LLM judge 0.30×.
Contributions. (1) A unified theory of routing. We connect resource prices and quality constraints to optimal model and policy selection, and characterize how the information available to a router determines its attainable performance (§2). (2) An omni-modal trajectory matrix. We run 452 candidate configurations on the same inputs of 25 benchmarks across text and image understanding, image, video, and speech generation, code and workplace agents, and robot manipulation, for 374,401 scored runs (§3 and Appendix B). (3) The potential of omni-modal routing. We quantify the potential gain of routing (5.4 points over the best fixed candidate), train and test learned routers that beat the best fixed candidate by 0.3 points overall and 2.1 points on video generation, show that task-type labels capture 8% of the potential gain on benchmarks with such labels, and examine how training targets and baseline choices affect measured gains (§3 and §4). (4) When routing improves efficiency. We show that routing raises efficiency over the reference by 8.82× on average and up to 25.5× on code with matched quality, and evaluate on diverse conditions (§5).
2. A Router's Value
Sections 3 and 4 use the information ladder and the training targets (Propositions 3 and 4), mostly at since most of the matrix records no costs; Section 5 adds prices, a reference, and a certified floor (Lemma 1, Theorem 2, and Proposition 5).
Candidates, states, and outcomes. An input (a question, an image with a question, a task with files, a generation prompt, or camera frames with a robot state) comes with a finite menu of candidates: language models, image, video, or speech generators, robot policies, or execution plans such as “try a cheap model, verify, and escalate on rejection”. Running candidate delivers a value , the benchmark's metric, and consumes units of one resource, such as dollars or seconds, with . A router observes a state , which may be the benchmark, a capability type, or the input itself, and chooses a candidate , possibly at random. We write and . Routing does not change which inputs arrive, so the law of states is fixed; sequential choices within a task enter as complete plans.
Price, reference, and floor. At a resource price , router earns ; at it is ranked by quality alone. When no price is given, we compare with a named reference policy, such as always calling the strongest model, whose value and cost on the same inputs are and , and define the quality change , the saving , the efficiency , and the quality floor with tolerance :
Lemma 1 (Reference-relative gain). . Efficiency improves if and only if , and the quality floor is the separate condition .
Both conditions are needed: a primary that is correct on 15% of tasks at a tenth of the cost of an always-correct reference has but .
Theorem 2 (Optimal routing at a price and under a floor). Let the state take finitely many values, each with , let the menu depend on only through , and let costs be positive. (i) A router maximizes if and only if, in every state, it plays only candidates maximizing . The highest efficiency is the unique root of , and the efficiency-optimal routers are exactly the maximizers of . (ii) If the reference is itself a router and , an efficiency-optimal router under the floor exists, and for some every such router maximizes at , where is the constrained optimum.
The proof combines Dinkelbach's method [6] with linear-programming duality (Appendix A.2). Part (ii) says that maximizing efficiency under a floor yields no new kind of router: it is routing at one price, set by the reference and the tolerance rather than by hand or by a budget [3]. Without recorded costs, the rule is to play the candidate with the highest expected value given the state.
The information ladder. What a router can reach depends on what it observes. Write and let be the best return of a router that observes , attained, as in part (i) of Theorem 2, by playing in each state a candidate that maximizes .
Proposition 3 (Information ladder). Let be coarser than , that is, is a function of , and let the menu depend on only through . Then
The first inequality is an equality if and only if, for almost every value of , a single candidate is optimal at almost every finer state with . The last gap equals , and it vanishes if and only if, given almost every , one candidate attains almost surely.
With the benchmark, is the best fixed candidate per benchmark. The outer rungs are measurable: the best fixed candidate on the left and the per-input oracle on the right. Inner rungs are bounded below by any router that observes that state and estimated optimistically by the best lookup chosen on the test inputs. A coarse state helps only where it changes the best candidate, and the last gap is outcome noise that no observable state predicts, as when a candidate's success on an input is a coin flip.
What to learn. A learned router needs a training target. Two are common: each candidate's outcome, and the identity of the winning candidate.
Proposition 4 (Outcomes, not winners). (a) For each candidate, the score that minimizes the expected binary cross-entropy, or squared error, against given is , and routing to attains at . (b) Let the winner be the candidate with the highest realized value, ties broken by a fixed rule, and let be the probability that wins, which a cross-entropy classifier on winner labels estimates. Routing to can lose almost half of the value range: if candidate always delivers and candidate delivers 1 with probability and 0 otherwise, then , while .
Tie-breaks make it worse: with binary outcomes and ties sent to a faster candidate, a candidate that succeeds with probability 0.9 loses the label to a faster independent candidate that succeeds with probability 0.5 (it wins with probability 0.45). Per-candidate regression uses every outcome, including ties and failures, whereas a winner label keeps one choice per input.
Certifying the floor. Theorem 2 is applied to fitted values and costs, so a fitted floor need not hold on test inputs.
Proposition 5 (Certified quality floor). Let values lie in , let and , and let the routers and their order be fixed by the fitting data. Let be valid -values for the null
Table 1 | Per-input potential gain on the test split. Inputs on which every candidate of the pool is scored; values are benchmark metrics on a 0–100 scale, pooled over inputs. Fixed plays the best candidate per benchmark on training inputs, best fixed in hindsight the best candidate per benchmark on these test inputs, and the oracle the best candidate per input.
| Group | Benchmarks | Candidates | Inputs | Fixed | Best fixed in hindsight | Oracle | Gap |
|---|---|---|---|---|---|---|---|
| Text QA | 7 | 3–4 | 9,482 | 83.27 | 83.27 | 87.56 | 4.28 |
| Image-text QA | 3 | 3 | 5,708 | 85.32 | 85.32 | 88.02 | 2.70 |
| Image generation | 5 | 4–6 | 1,515 | 82.93 | 82.99 | 87.92 | 4.99 |
| Video generation | 1 | 3 | 158 | 62.43 | 62.43 | 81.36 | 18.93 |
| Speech generation | 2 | 3 | 608 | 98.62 | 98.63 | 99.30 | 0.68 |
| Code and workplace agents | 5 | 4 | 343 | 69.17 | 69.78 | 77.29 | 8.11 |
| Robot manipulation | 1 | 7 | 2,000 | 70.45 | 70.45 | 88.85 | 18.40 |
| All | 24 | 19,814 | 82.60 | 82.62 | 87.98 | 5.38 |
hypotheses , computed on inputs drawn i.i.d. from the deployment law, independently of the fitting data, with matched outcomes; for instance , where is the sample mean of . Let with , or the reference if . Then .
A natural order is the price path (Figure 2): the maximizers of the fitted as rises from 0 to the fitted , along which fitted value and cost fall while fitted efficiency rises (Appendix A.5). The test stops at the first router it cannot certify, so no multiplicity correction is needed, as in fixed-sequence testing [7, 8]; returning the reference when nothing is certified mirrors high-confidence policy improvement [9]. The certified router comes with a certified price: the reference, the tolerance, and the level fix .

Figure 2 | Certifying a floor. Routers on the price path are tested in order on .
3. Can Router Beat the Best Fixed Candidate?
Setup. Every candidate in a pool runs on the same inputs, and each run is scored by the benchmark's own metric, rescaled to [0, 1] and reported on a 0–100 scale. The 25 benchmarks fall into seven groups (Table 1): text QA [10–16], image-text QA [17–19], image generation [20–24], video generation [25], speech generation [26], code and workplace agents [27–31], and robot manipulation [32]; Appendix B lists them with their metrics and candidates. The language-model candidates are Claude Opus 5.5, GPT-6.1 Sol, and DeepSeek V4.1 Flash, joined by GPT-6 Astra on long-context, knowledge, and agent tasks. Inputs are split 70/10/20 into training, development, and test sets by source group, so identical inputs and items from one source never cross splits; RoboTwin's 2,000 test scenes come from 10 tasks the routers never see in training. The fixed candidate plays the best candidate per benchmark on training inputs, where missing outcomes never disqualify a candidate (Section 4.4 shows why this matters), and the oracle plays the best observed candidate on each input. These are the outer rungs of Proposition 3. We measure them on the 19,814 test inputs on which every candidate is scored, which leaves out SciCode, whose later steps contain each model's own earlier code, and estimate the rungs in between with the best lookup per benchmark or per type chosen in hindsight.
Finding 1: The potential gain is large, and it lies within task types. On the 19,814 test inputs, the best fixed candidate per benchmark scores 82.60 and the per-input oracle 87.98 (Table 1). The gap is 0.7 points for speech generation, where every generator is nearly perfect, and 18–19 points for video generation and robot manipulation, where no candidate dominates. Little of it is available to a router that sees only the benchmark or the task type. The best candidate per benchmark chosen in hindsight raises 82.60 only to 82.62. On the 18 benchmarks of the rule-based capability tree, which assigns each of 5,034 test inputs to one of 107 capability leaves (Section 4.1), the best candidate per leaf chosen in hindsight scores 77.89, against 77.03 for the fixed candidate and 87.44 for the oracle: 8% of the gap lies between types. On RoboTwin, the best policy per task and scene condition, again chosen on the test scenes, recovers 23% of the 18.4-point gap. Code tasks show the same split. The best released CodeRouterBench routers capture 55% of the value of perfect routing information when the task type is unknown, but only 6–8% within a task type (Appendix C.5).
Inside a type, outcomes vary input by input. On GenEval2, each of the five other generators beats the fixed one by more than two points on 76–100 training prompts while trailing it on more, and the per-prompt difference has a standard deviation of 31–38 points against mean differences of 4–14. Part of this variation is noise that no router can predict (the last gap of Proposition 3). On AA-LCR, where every question is answered three times, the oracle's 2.4-point margin over the fixed candidate vanishes once each candidate is scored by its mean over the three runs.
Section 4 studies learned routers on every benchmark except seven understanding ones (MMLU-Pro, MMLU-Redux, SuperGPQA, GPQA, and the three image-text QA benchmarks), which hold three quarters of the inputs and half of the pooled gap in Table 1, with gaps of 1.4–6.0 points; every benchmark with a gap above 8 points is studied.
4. How Well Do Learned Routers Work?
Our routers fine-tune Qwen3.5-4B on the task text and the output requirement, and for robots also on three camera frames and the robot state (Appendix B.3). An outcome router scores each pair of input and candidate profile with a sigmoid head, trained by cross-entropy against the candidate's normalized outcome (Proposition 4(a)), and plays the highest score. A type router classifies the input into a capability type and plays that type's best candidate, read from a table fitted on training inputs, or the fixed candidate when it cannot place the input. A winner-label router is trained to name the best candidate. Each study is scored on the test inputs where all its compared policies have outcomes (Table 2); differences carry paired 95% bootstrap intervals over source groups, or over scenes for RoboTwin.
4.1. One Router Across Modalities
Setup. The capability-tree router [33] is a type router whose types are the 157 leaves of a tree over input modality, task, and capability, on 18 benchmarks: all except MMLU-Pro, MMLU-Redux, SuperGPQA, GPQA, and the three image-text QA benchmarks. A Qwen3.5-4B classifier, trained on all benchmarks at once, predicts the leaf, and one global table, fitted on training inputs, maps each leaf to its best candidate; unresolved inputs go to the fixed candidate. We evaluate it on the 3,444 test inputs of 16 benchmarks on which every compared policy is scored (Table 3); the robot benchmark is handled by the outcome router of Section 4.2.
| Per benchmark | 24 benchmarks · gap 5.4 |
|---|---|
| 0.4% | 99.6% within types |
| Per capability type | 18 benchmarks · gap 10.4 |
| 8% | 92% within types |
| Per task and scene | robots · gap 18.4 |
| 23% | 77% within types |
Figure 3 | Where the potential gain lies. Gap recovered by the best candidate per type.
Table 2 | Evaluation panels. Each study uses the test inputs on which all its compared policies are scored; fixed-candidate and oracle scores (0–100) are comparable only within a row. The image-routing suite of Section 4.1 uses 158 GenEval2 and 193 Qwen-Image-Bench prompts, and the image price routes of Section 5.1 use the 1,515 image-generation inputs of Table 1.
| Study | Policies compared | Benchmarks | Inputs | Seeds | Fixed | Oracle |
|---|---|---|---|---|---|---|
| Potential gain (§3) | fixed candidate, hindsight lookups | 24 | 19,814 | – | 82.60 | 87.98 |
| Rule-based tree (§3, §4.1) | rule-based type router | 18 | 5,034 | – | 77.03 | 87.44 |
| One router (§4.1) | capability-tree and untrained routers | 16 | 3,444 | 1 | 79.68 | 84.80 |
| Robots (§4.2, §4.3) | outcome and winner-label routers | 1 | 2,000 | 1 | 70.45 | 88.85 |
| Targets (§4.3, §4.4) | outcome and type routers | 11 | 1,302 | 4 | 68.30 | 75.84 |
| Winner labels (§4.3) | 12 winner-label recipes | 16 | 3,211 | 1 | 79.44 | 85.77 |
Table 3 | Learned routers against the fixed candidate and the oracle. Test inputs; one training seed. Share is the router's gain over the fixed candidate divided by the oracle's. The first block is the capability-tree router; the robot row is the outcome router of Section 4.2.
| Group (benchmarks) | Inputs | Fixed | Router | Oracle | Router – fixed | Share |
|---|---|---|---|---|---|---|
| Text QA (3) | 588 | 65.14 | 64.97 | 71.43 | -0.17 | -3% |
| Code and workplace agents (5) | 519 | 69.24 | 70.01 | 74.78 | +0.77 | 14% |
| Image generation (5) | 1,559 | 82.96 | 83.21 | 87.92 | +0.25 | 5% |
| Video generation (1) | 161 | 62.17 | 64.28 | 80.22 | +2.12 | 12% |
| Speech generation (2) | 617 | 98.63 | 98.63 | 99.30 | 0.00 | 0% |
| All 16 benchmarks | 3,444 | 79.68 | 79.98 | 84.80 | +0.30 | 6% |
| Robot manipulation (outcome router) | 2,000 | 70.45 | 71.55 | 88.85 | +1.10 | 6% |
Finding 2: learned routers beat the best fixed candidate by 0.3 points, and by up to 2.1 points per output group. One router over 16 benchmarks in five output groups scores 79.98, against 79.68 for the fixed candidate and 84.80 for the oracle. It matches the fixed candidate to within 0.01 points on 10 benchmarks and departs from it where candidates complement each other input by input: Terminal-Bench (+8.3 on 36 inputs), VBench-2.0 (+2.1), OneIG (+1.1), and GDP.pdf (+1.0); its largest loss is AA-LCR (-2.4). The leaf classifier is 86–89% accurate, yet 83–86% of inputs still go to the fixed candidate, because within a benchmark one candidate wins almost every type (Proposition 3). A rule-based tree with 107 leaves, which needs no classifier, scores 0.09 points above the fixed candidate, almost all of it on OneIG. In image generation, across 31 router designs and 124 configurations on GenEval2 and Qwen-Image-Bench, none beats the fixed generator with an interval above zero, and 44 are significantly worse. An untrained Qwen3.5-4B that picks the candidate itself scores 1.15 points below the fixed candidate.
4.2. Routers That Read the Scene
Setup. On RoboTwin, the outcome router reads the instruction, three 240 × 320 camera frames, and the robot state, and predicts the success of each of seven vision-language-action policies with one sigmoid head per policy, trained by cross-entropy on all 49,000 training outcomes. No task identity enters the input, and the 2,000 test scenes come from 10 tasks the router never sees, half in clean scenes and half in domain-randomized ones. ME-Dex is the best policy

© 24% less policy time: 11.05 vs. 14.51 s per scene
Figure 4 | Routing by scene condition. Robot success on 2,000 test scenes.
Table 4 | Training targets and the fixed baseline. Paired 95% intervals over source groups (scenes for robots). The first block averages four training seeds on 1,302 test inputs of 11 text, agent, and image benchmarks; the fixed candidate is matched (Section 4.4).
| Study | Policy | Inputs | Score | – matched fixed [95% CI] |
|---|---|---|---|---|
| 11 benchmarks, 4 seeds | Matched fixed candidate | 1,302 | 68.30 | – |
| Outcome router | 1,302 | 67.90 | -0.40 [-1.19, +0.33] | |
| 68-type classifier + table | 1,302 | 66.98 | -1.32 [-3.05, +0.34] | |
| Oracle | 1,302 | 75.84 | +7.55 | |
| 16 benchmarks | Fixed candidate (best training mean) | 3,211 | 79.44 | – |
| Winner-label router (generative) | 3,211 | 78.87 | -0.58 | |
| Oracle | 3,211 | 85.77 | +6.33 | |
| Robot manipulation | Outcome router (per-policy success) | 2,000 | 71.55 | +1.10 [-0.40, +2.55] |
| Winner-label classifier | 2,000 | 42.80 | -27.65 |
on training scenes and also on the test scenes (70.45%); PatchWAM is second (63.65%). A policy's time on a scene is its inference seconds, summed over its queries.
Finding 3: on robots, the router reads the scene and saves time. The router sends 929 of the 1,000 clean scenes to PatchWAM and 842 of the 1,000 randomized scenes to ME-Dex (141 more to GigaBrain). The best policy flips between the two conditions, and the router tracks it: on clean scenes it scores 81.6%, against 81.7% for PatchWAM and 78.4% for ME-Dex; on randomized scenes 61.5%, against 62.5% for ME-Dex and 45.6% for PatchWAM (Figure 4). Overall success is 71.55% against 70.45% (+1.10 [-0.40, +2.55]), at 11.05 instead of 14.51 seconds of policy time per scene, 24% less: 1.33× the success per policy-second of the best single policy. This is the coarse rung of Proposition 3 learned from pixels, since the condition-level choice alone would score 72.1%. The remaining 17% to the oracle require predicting which policy succeeds on a given scene.
4.3. What a Router Should Learn
Finding 4: learn outcomes, not winners. With the same inputs, backbone, and training scenes, the winner-label classifier reaches 42.8% robot success against 71.6% for per-policy outcome regression (Table 4). The labels explain the gap, as Proposition 4(b) predicts: several policies succeed on most training scenes, a latency tie-break decides 94% of the labels, and 24,556 of the 31,408 successful training outcomes become wrong-class targets, so the classifier learns

Figure 5 | Learn outcomes, not winners. Winner labels mislabel most successes.
to pick fast policies (1.9 seconds per scene) that often fail. Outside robotics, no panel compares the two targets directly, and no target beats the fixed candidate. Generative winner-label routers on 16 benchmarks learn from 11,273 labels of which only a third are decided by a unique best outcome, the rest by cost, tokens, or a fixed order; the best of 12 recipes scores 78.87 against 79.44 for the fixed candidate. On 11 text, agent, and image benchmarks, the outcome router stays within noise of the matched fixed candidate (-0.40), and a type router over 68 types, although 75% accurate, maps 93% of its predictions to the same candidate as the true type and scores 1.32 points below it.
4.4. Matched Comparisons
Finding 5: compare candidates on the same inputs. A fixed baseline that admits a model only if it has a score on every training input drops strong models over a few missing scores. In the 11-benchmark study, Opus 5.5 missed a few scores on seven benchmarks, for example 11 of 1,122 training inputs of HLE, so the baseline fell back to the next model there: on HLE it scored 52.90 instead of 58.24, and on AA-Omniscience 70.00 instead of 77.50. Pooled, the baseline dropped from 68.30 to 65.52, and the outcome router's 0.40-point deficit became a 2.38-point gain (Table 4). Choosing and evaluating the fixed candidate under the routers' fallback, which uses GPT-6 Astra's outcome where Opus 5.5 has none, removes the artifact. The same rule governs portfolios. Adding a model changes which tasks reach the fallback, so averages frozen at the current portfolio misrank candidates, whereas comparing both portfolios on the same tasks picks the best added model in 96.4–97.1% of CodeRouterBench comparisons, against 86.3–94.3% for frozen averages (Appendix C.3).

Figure 6 | Compare candidates on the same inputs. Missing scores flip the sign.
5. When Is a Cheaper Route Good Enough?
5.1. The Price of a Route
Setup. A route trades quality for cost where candidates differ more in price than in value. The matrix records prices for image and speech generation and time for robot policies. For code and text, two testbeds add token prices: CodeRouterBench [4], with eight models on 9,999 coding tasks (7,080 probing tasks for fitting and 2,919 test tasks) and the reference claude-opus-4-6 (Opus 4.6), and RouterBench [5], with eleven models on 36,497 mostly non-code prompts split 70/30 and the reference gpt-4-1106-preview. On CodeRouterBench, states are the 21 dimension×source cells, and each state offers 22 candidates: direct dispatch to one of eight models, or one of seven primaries followed by Opus 4.6 when the primary's released score, an oracle verifier, is below . Such a reference-fallback cascade with verifier decision and primary-plus-verification cost delivers
Values, costs, and state frequencies are fitted on probing tasks, the floor is imposed there, and policies are evaluated on test tasks; always-Opus scores 0.4383 at 11.655 m$ per task. RouterBench uses source-family states and the same construction. For image generation, states are the five benchmarks, candidates are the generators (three on GenEval2, six elsewhere), and the reference plays the best generator per benchmark (the fixed candidate).
When the reference is worth calling. A candidate that calls the reference is worth its price only while the reference earns enough on the inputs it receives.
Corollary 6 (Admission price). In the setting of Theorem 2, let be the largest price at which some candidate that calls the reference maximizes in some state. If , the efficiency-optimal router never calls the reference, and neither does a floor-optimal router whose price exceeds . A cascade (3) whose primary is also available by direct dispatch maximizes only at prices up to , the reference's added value per dollar on the inputs it receives.
Table 5 | Price routes across testbeds. Test-set quality change in points (0–100) with paired 95% intervals, and efficiency against the reference. Fitted routes meet the floor on fitting data; certified routes are medians over 200 random halvings of the fitting data (Proposition 5).
| Testbed (resource) | Reference | Route | [95% CI] | |
|---|---|---|---|---|
| Code, CodeRouterBench ($) | Always Opus 4.6 | Fitted, Certified, | in 200 of 200 | |
| Text QA, RouterBench ($) | Always GPT-4 | Fitted, Certified, | in 200 of 200 | |
| Image generation ($) | Fixed generator | Fitted, Fitted, | ||
| Robot manipulation (s) | Fixed policy | Outcome router |
Finding 6: a cheaper route is often good enough. Across the four testbeds of Table 5, routing raises efficiency over the reference by on average (the mean of 25.5, 7.1, 1.35, and , with image generation at ). On CodeRouterBench, the admission price of Opus 4.6 is score per dollar (), below the zero-loss floor price of 144 and far below , so by Corollary 6 the zero-loss router never calls Opus. It dispatches every task to a cheaper model and reaches Opus's efficiency at a 0.44-point loss (Table 5). Always calling Qwen3-Max, the cheapest model, already reaches at a 4.2-point loss; routing by state recovers that loss while adding 27% efficiency. The states need not be oracle labels: prompt-inferred cells reach , and learned quality-cost routers at their zero-loss points (Appendix C.2). Without states, every zero-loss policy calls Opus, which then runs on 28.7% of tasks. On RouterBench, the best router that avoids the reference scores 9.7 points below it, so the zero-loss router cascades cheap primaries to the reference and reaches . A fitted floor is not a guarantee. Refitted on half of the probing tasks, the zero-loss floor holds on test in only 12.5% of 200 splits; certified on the other half by Proposition 5 with empirical-Bernstein -values on the mixture-refined path, it holds in all 200, at a median . Image generation follows the same logic. GPT Image 2.5 costs 3.5–5.4\times$ the other generators, and is the best candidate on two of the five benchmarks. The route that stays within half a point on training prompts moves Qwen-Image-Bench to Grok Imagine 2.0 and OneIG to Qwen-Image 3, cutting test cost by 26% at a 0.47-point loss, and a two-point tolerance halves cost. In speech generation the best generator is also among the cheapest, so there is nothing to trade, and on robots the time saving of Section 4.2 comes with no loss of success. Router overhead is small next to these prices: a 4B router takes 0.13s per decision on one H20 GPU, whereas generating an image takes 27–158s and a video 211–314s.

Figure 7 | Admission vs. floor price in units of ; the shaded range is .
5.2. Spending More Within a Task
Setup. A candidate can spend more inside a task: a plan that retries after a failure, or that verifies an output and escalates on rejection. A router can also buy a finer state: a forecast of a candidate's success, or a record of past outcomes. By Theorem 2, a richer candidate is worth playing only if its value net of its full cost beats the candidates it replaces, and that value must be computed on the inputs that reach each step (Proposition 8). By Proposition 3, a finer state can only help an optimal router, but it is worth buying only if the help exceeds its price (Proposition 9). We test both on CodeRouterBench, with fresh model calls for verifier verdicts and forecasts, and semi-synthetic streams for memory (Appendix C).
Finding 7: richer candidates and finer states are worth their cost only if they beat what they replace. Retries. A failure leaves harder tasks: in all 42 ordered model pairs, the second model succeeds less often after the first fails (median ratio 0.49 at ). Verifiers. For Qwen3-Max at , a free compiler gate gives dollar efficiency at a 2.4-point loss, and an LLM judge if free but at its list price; in seconds, always-Opus beats every verified cascade, because Opus answers faster than the primaries. Finer states. A forecast can save at most the attempt it replaces: a DeepSeek-v4-pro forecast costs 2.4 attempts at list price, a prompt-only TF-IDF router 0.06% of one.
6. Related Work
Routing language models. Cascades and routers trade quality against cost [1–3], and learned routers estimate each model's quality from the query [34–38]. The acceptance step of a cascade is a reject option [39], studied as confidence-based or budgeted deferral [40–44]. Dekoninck et al. [3] characterize optimal routing and cascading through a Lagrangian price tuned to a budget; here, the reference and the quality tolerance fix that price, and a finite-sample test certifies the resulting floor. Routing benchmarks record per-model outcomes and costs on shared prompts [4, 5].
Routing beyond text. SCOPE-Router arranges vision-language models for execution-oriented tasks [19], and routing ideas also inspire vision-token pruning strategies [45], dynamic submodels for video segmentation [46], and acceleration policies inside diffusion transformers [47]. Coordinators, harness-level routers, and token-level routers extend routing beyond model identity [48–52]. We study routing across output types on one matrix: language models, image, video, and speech generators, and robot policies, all scored on shared inputs.
Portfolios and tools. Algorithm portfolios choose among complementary solvers per instance [53–55]. Their virtual best solver corresponds to our per-input oracle, and its advantage over the single best solver gives the potential gain in Proposition 3. Residual coverage measures what an additional solver contributes to the portfolio [56, 57]. Accounting for call costs connects this selection problem to fractional programming, which optimizes ratio objectives such as quality per unit cost [6, 58]. The value of information addresses the related question of whether acquiring a routing signal is worth its cost [59, 60]. Similar cost considerations arise in test-time compute, where gains from extra calls depend on the task and allocation [61, 62], while imperfect verifiers can limit the gains from resampling [63]. Feedback-driven self-repair uses earlier attempts to guide later ones [64, 65], making resampling at equal cost a natural baseline [66].
7. Conclusion
Across text, images, video, speech, code, and robots, the best candidate changes from input to input, and the per-input oracle sits 5.4 points above the best fixed candidate per benchmark. Most of that potential gain lies within task types, and a learned type router already scores 0.3 points above the best fixed candidate across 16 benchmarks, and up to 2.1 points within an output group. In embodied scenarios, a router trained on camera frames tracks the best VLA policy in each scene condition and beats the best single policy by 1.1 points with 24% less policy time. Routing's most reliable gain is a cheaper route that is good enough, raising efficiency over the reference by on average: when candidates are close in quality and far apart in cost, the reference and the quality tolerance fix the price, and a finite-sample test certifies the quality floor. Three rules follow: (1) compare candidates on the same inputs, and measure gains against the matched best fixed candidate; (2) train routers on per-candidate outcomes, and look for gains within task types; (3) fix the reference and the tolerance before ranking routes, and certify the floor on independent inputs.
References
[1] Lingjiao Chen, Matei Zaharia, and James Zou. FrugalGPT: How to use large language models while reducing cost and improving performance. Transactions on Machine Learning Research, 2024.
[2] Isaac Ong, Amjad Almahairi, Vincent Wu, Wei-Lin Chiang, Tianhao Wu, Joseph E Gonzalez, Mohammed Kadous, and Ion Stoica. RouteLLM: Learning to route LLMs from preference data. In International Conference on Learning Representations, volume 2025, pages 34433–34448, 2025.
[3] Jasper Dekoninck, Maximilian Baader, and Martin Vechev. A unified approach to routing and cascading for LLMs. In Proceedings of the 42nd International Conference on Machine Learning, volume 267, pages 12987–13010, 2025.
[4] Pengfei Zhou, Zhiwei Tang, Yixing Ma, Jiasheng Tang, Yizeng Han, Zhenglin Wan, Fanqing Meng, Wei Wang, Bohan Zhuang, Wangbo Zhao, et al. Agent-as-a-Router: Agentic model routing for coding tasks. arXiv preprint arXiv:2606.22902, 2026.
[5] Qitian Jason Hu, Jacob Bieker, Xiuyu Li, Nan Jiang, Benjamin Keigwin, Gaurav Ranganath, Kurt Keutzer, and Shriyash Kaustubh Upadhyay. Routerbench: A benchmark for multi-LLM routing system. arXiv preprint arXiv:2403.12031, 2024.
[6] Werner Dinkelbach. On nonlinear fractional programming. Management science, 13(7):492–498, 1967.
[7] Peter H. Westfall and Alok Krishen. Optimally weighted, fixed sequence and gatekeeper multiple testing procedures. Journal of Statistical Planning and Inference, 99(1):25–40, 2001. doi: 10.1016/S0378-3758(01)00077-5.
[8] Anastasios N. Angelopoulos, Stephen Bates, Emmanuel J. Candès, Michael I. Jordan, and Lihua Lei. Learn then test: Calibrating predictive algorithms to achieve risk control. The Annals of Applied Statistics, 19(2): 1641–1662, 2025. doi: 10.1214/24-AOAS1998.
[9] Philip Thomas, Georgios Theocharous, and Mohammad Ghavamzadeh. High confidence policy improvement. In Proceedings of the 32nd International Conference on Machine Learning, volume 37, pages 2380–2388, 2015.
[10] Yubo Wang, Xueguang Ma, Ge Zhang, Yuansheng Ni, Abhranil Chandra, Shiguang Guo, Weiming Ren, Aaran Arulraj, Xuan He, Ziyan Jiang, et al. MMLU-Pro: A more robust and challenging multi-task language understanding benchmark. In Advances in Neural Information Processing Systems, Datasets and Benchmarks Track, 2024.
[11] Aryo Pradipta Gema, Joshua Ong Jun Leang, Giwon Hong, Alessio Devoto, Alberto Carlo Maria Mancino, Rohit Saxena, Xuanli He, Yu Zhao, Xiaotang Du, Mohammad Reza Ghasemi Madani, et al. Are we done with MMLU? In Proceedings of the Conference of the Nations of the Americas Chapter of the Association for Computational Linguistics, 2025.
[12] M-A-P Team, Xinrun Du, Yifan Yao, Kaijing Ma, et al. SuperGPQA: Scaling LLM evaluation across 285 graduate disciplines. In Advances in Neural Information Processing Systems, Datasets and Benchmarks Track, 2025.
[13] David Rein, Betty Li Hou, Asa Cooper Stickland, Jackson Petty, Richard Yuanzhe Pang, Julien Dirani, Julian Michael, and Samuel R. Bowman. GPQA: A graduate-level Google-proof Q&A benchmark. In Conference on Language Modeling, 2024.
[14] Artificial Analysis. Artificial Analysis intelligence benchmarking methodology. https://artificial analysis.ai/methodology/intelligence-benchmarking, 2026.
[15] Declan Jackson, William Keating, George Cameron, and Micah Hill-Smith. AA-Omniscience: Evaluating cross-domain knowledge reliability in large language models. arXiv preprint arXiv:2511.13029, 2025.
[16] Center for AI Safety, Scale AI, and HLE Contributors Consortium. A benchmark of expert-level academic questions to assess AI capabilities. Nature, 649(8099):1139–1146, 2026. doi: 10.1038/s41586-025-09962-4.
[17] Xiang Yue, Tianyu Zheng, Yuansheng Ni, Yubo Wang, Kai Zhang, Shengbang Tong, Yuxuan Sun, Botao Yu, Ge Zhang, Huan Sun, et al. MMMU-Pro: A more robust multi-discipline multimodal understanding benchmark. In Proceedings of the Annual Meeting of the Association for Computational Linguistics, 2025.
[18] Xiang Yue, Yuansheng Ni, Kai Zhang, Tianyu Zheng, Ruoqi Liu, Ge Zhang, Samuel Stevens, Dongfu Jiang, Weiming Ren, Yuxuan Sun, et al. MMMU: A massive multi-discipline multimodal understanding and reasoning benchmark for expert AGI. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2024.
[19] Tao Yu, Yifei Qu, Zhiqing Cui, Pengfei Zhou, Zhongtian Luo, Yujia Yang, Shenghua Chai, Haopeng Jin, Zhenghao Zhang, Xinming Wang, et al. SCOPE-Router: Cost-aware open-set VLM routing for execution-oriented tasks. arXiv preprint arXiv:2608.12127, 2026.
[20] Amita Kamath, Kai-Wei Chang, Ranjay Krishna, Luke Zettlemoyer, Yushi Hu, and Marjan Ghazvininejad. GenEval 2: Addressing benchmark drift in text-to-image evaluation. arXiv preprint arXiv:2512.16853, 2025.
[21] Niantong Li, Guangzheng Hu, Weixu Qiao, Ying Ba, Qichen Hong, et al. Qwen-Image-Bench: From generation to creation in text-to-image evaluation. arXiv preprint arXiv:2605.28091, 2026.
[22] Zhichao Yang, Tianjiao Gu, Jianjie Wang, Feiyu Lin, Xiangfei Sheng, Pengfei Chen, and Leida Li. LongT2lBench: A benchmark for evaluating long text-to-image generation with graph-structured annotations. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 40, pages 11820–11828, 2026.
[23] Jingjing Chang, Yixiao Fang, Peng Xing, Shuhan Wu, Wei Cheng, Rui Wang, Xianfang Zeng, Gang Yu, and Hai-Bao Chen. OneIG-Bench: Omni-dimensional nuanced evaluation for image generation. In Advances in Neural Information Processing Systems, Datasets and Benchmarks Track, 2025.
[24] Yuwei Niu, Munan Ning, Mengren Zheng, et al. WISE: World knowledge-informed semantic evaluation for text-to-image generation. In Proceedings of the 43rd International Conference on Machine Learning, volume 306, pages 93570–93590, 2026.
[25] Dian Zheng, Ziqi Huang, Hongbo Liu, Kai Zou, Yinan He, Fan Zhang, et al. VBench-2.0: Advancing video generation benchmark suite for intrinsic faithfulness. arXiv preprint arXiv:2503.21755, 2025.
[26] Philip Anastassiou, Jiawei Chen, Jitong Chen, et al. Seed-TTS: A family of high-quality versatile speech generation models. arXiv preprint arXiv:2406.02430, 2024.
[27] Daniel Shepard and Robin Salimans. AutomationBench. arXiv preprint arXiv:2604.18934, 2026.
[28] Suhaas Garre, Emily Ritchie, Sushant Mehta, and Edwin Chen. GDP.pdf: Benchmarking grounded multimodal reasoning over professional PDF documents. arXiv preprint arXiv:2607.11192, 2026.
[29] Tejal Patwardhan, Rachel Dias, Elizabeth Proehl, et al. GDPval: Evaluating AI model performance on real-world economically valuable tasks. In International Conference on Learning Representations, 2026.
[30] Minyang Tian, Luyu Gao, Shizhuo Dylan Zhang, et al. SciCode: A research coding benchmark curated by scientists. In Advances in Neural Information Processing Systems, Datasets and Benchmarks Track, 2024.
[31] Mike A. Merrill, Alexander G. Shaw, Nicholas Carlini, Boxuan Li, Harsh Raj, Ivan Bercovich, et al. Terminal-Bench: Benchmarking agents on hard, realistic tasks in command line interfaces. In International Conference on Learning Representations, 2026.
[32] Tianxing Chen, Zanxin Chen, Baijun Chen, et al. RoboTwin 2.0: A scalable data generator and benchmark with strong domain randomization for robust bimanual robotic manipulation. In Proceedings of the 43rd International Conference on Machine Learning, volume 306, pages 13673–13699, 2026.
[33] Weidong Tang, Ruiheng Wang, Jingxuan Zhang, Hexin Wang, Haoyuan Chen, Zhengfeiyang Zhang, Yixing Ma, Zichen Jiang, Ziyu Guo, Haodong Li, Zhengbo Jiao, Zhiqing Cui, Xinxiang Yin, Shuo Liang, Zhenglin Wan, Hongzhan Lin, Wangbo Zhao, Kaipeng Zhang, Pengfei Zhou, Odin Zhang, and Yang You. The trinity: Capability-driven recursive self-improvement for multimodal agents. arXiv preprint arXiv:2610.36077, 2026. doi: 10.48550/arXiv.2610.36077. URL https://arxiv.org/abs/2610.36077.
[34] Dujian Ding, Ankur Mallick, Chi Wang, Robert Sim, Subhabrata Mukherjee, Victor Rühle, Laks V. S. Lakshmanan, and Ahmed Hassan Awadallah. Hybrid LLM: Cost-efficient and quality-aware query routing. In The Twelfth International Conference on Learning Representations, 2024.
[35] Shuhao Chen, Weisen Jiang, Baijiong Lin, James T. Kwok, and Yu Zhang. RouterDC: Query-based router by dual contrastive learning for assembling large language models. In Advances in Neural Information Processing Systems, volume 37, pages 66305–66328, 2024.
[36] Tao Feng, Yanzhen Shen, and Jiaxuan You. GraphRouter: A graph-based router for LLM selections. In The Thirteenth International Conference on Learning Representations, 2025.
[37] Richard Zhuang, Tianhao Wu, Zhaojin Wen, Andrew Li, Jiantao Jiao, and Kannan Ramchandran. EmbedLLM: Learning compact representations of large language models. In The Thirteenth International Conference on Learning Representations, 2025.
[38] Dujian Ding, Ankur Mallick, Shaokun Zhang, Chi Wang, Daniel Madrigal, Mirian del Carmen Hipolito Garcia, Menglin Xia, Laks V. S. Lakshmanan, Qingyun Wu, and Victor Rühle. BEST-route: Adaptive LLM routing with test-time optimal compute. In Proceedings of the 42nd International Conference on Machine Learning, volume 267, pages 13870–13884, 2025.
[39] Chao Chow. On optimum recognition error and reject tradeoff. IEEE Transactions on information theory, 16(1):41–46, 1970.
[40] Wittawat Jitkrittum, Neha Gupta, Aditya K Menon, Harikrishna Narasimhan, Ankit Rawat, and Sanjiv Kumar. When does confidence-based cascade deferral suffice? In Advances in Neural Information Processing Systems, volume 36, pages 9891–9906, 2023.
[41] Neha Gupta, Harikrishna Narasimhan, Wittawat Jitkrittum, Ankit Singh Rawat, Aditya Krishna Menon, and Sanjiv Kumar. Language model cascades: Token-level uncertainty and beyond. In International Conference on Learning Representations, volume 2024, pages 4147–4180, 2024.
[42] Pranjal Aggarwal, Aman Madaan, Ankit Anand, Srividya Pranavi Potharaju, Swaroop Mishra, Pei Zhou, Aditya Gupta, Dheeraj Rajagopal, Karthik Kappaganthu, Yiming Yang, et al. AutoMix: Automatically mixing language models. In Advances in Neural Information Processing Systems, volume 37, pages 131000–131034, 2024.
[43] Lingjiao Chen, Matei Zaharia, and James Zou. FrugalML: How to use ML prediction APIs more accurately and cheaply. In Advances in neural information processing systems, volume 33, pages 10685–10696, 2020.
[44] Kirill Trapeznikov and Venkatesh Saligrama. Supervised sequential classification under budget constraints. In Artificial intelligence and statistics, pages 581–589, 2013.
[45] Haiji Liang, Pengfei Zhou, Zhenglin Wan, Wei Wang, Yang You, and Wangbo Zhao. Beyond one-size-fits-all: Sample-adaptive strategy routing for vision token pruning in MLLMs. arXiv preprint arXiv:2609.10346, 2026.
[46] Weidong Tang, Zhiyuan Liang, Xinyan Wan, Chen Zhu, Zhaopan Xu, Pengfei Zhou, Yan Song, Yang You, and Wangbo Zhao. Efficient video object segmentation and tracking with recurrent dynamic submodel. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 20912–20921, 2026.
[47] Wangbo Zhao, Yizeng Han, Zhiwei Tang, Jiasheng Tang, Pengfei Zhou, Kai Wang, Bohan Zhuang, Zhangyang Wang, Fan Wang, and Yang You. RAPID³: Tri-level reinforced acceleration policies for diffusion transformer. In International Conference on Learning Representations, volume 2026, pages 149423–149446, 2026.
[48] Stefan Nielsen, Edoardo Cetin, Peter Schwendeman, Qi Sun, Jinglue Xu, and Yujin Tang. Learning to orchestrate agents in natural language with the conductor. In International Conference on Learning Representations, volume 2026, pages 135686–135724, 2026.
[49] Jinglue Xu, Qi Sun, Peter Schwendeman, Stefan Nielsen, Edoardo Cetin, and Yujin Tang. Trinity: An evolved LLM coordinator. In International Conference on Learning Representations, volume 2026, pages 70195–70224, 2026.
[50] Xinchen Liu, Hang Zhou, Yingjie Zong, Yuchuan Tian, Liuyang Song, Shuo Zhang, Yulong Li, Wei He, Mengyu Zheng, Runke Liu, et al. Agentic routing: The harness-native data flywheel. arXiv preprint arXiv:2607.11399, 2026.
[51] Tianyu Fu, Yi Ge, Yichen You, Enshu Liu, Zhihang Yuan, Guohao Dai, Shengen Yan, Huazhong Yang, and Yu Wang. R2R: Efficiently navigating divergent reasoning paths with small-large model token routing. In Advances in Neural Information Processing Systems, volume 38, pages 124108–124145, 2026.
[52] Shunfan Zhou, Jingqi Long, Yiling Zhang, and Zhiheng Du. Fusion: Allocating intelligence across heterogeneous models—A new scaling dimension for AI systems. Whitepaper, Rev. 0.1, Fumo Lab, 2026. URL https://fumolab.ai/downloads/FUMO_Whitepaper.pdf.
[53] John R Rice. The algorithm selection problem. In Advances in computers, volume 15, pages 65–118. Academic Press, 1976.
[54] Carla P Gomes and Bart Selman. Algorithm portfolios. Artificial Intelligence, 126(1-2):43–62, 2001.
[55] Lars Kotthoff. Algorithm selection for combinatorial search problems: A survey. In Data mining and constraint programming: Foundations of a cross-disciplinary approach, pages 149–190. Springer, 2016.
[56] Lin Xu, Frank Hutter, Holger Hoos, and Kevin Leyton-Brown. Evaluating component solver contributions to portfolio-based algorithm selectors. In International conference on theory and applications of satisfiability testing, pages 228–241, 2012. [57] Alexandre Fréchette, Lars Kotthoff, Tomasz Michalak, Talal Rahwan, Holger Hoos, and Kevin Leyton-Brown. Using the Shapley value to analyze algorithm portfolios. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 30, 2016. [58] Abraham Charnes and William W Cooper. Programming with linear fractional functionals. Naval Research logistics quarterly, 9(3-4):181–186, 1962. [59] Howard Raiffa and Robert Schlaifer. Applied Statistical Decision Theory. Division of Research, Graduate School of Business Administration, Harvard University, 1961. [60] Ronald A Howard. Information value theory. IEEE Transactions on Systems Science and Cybernetics, 2(1): 22–26, 1966. [61] Lingjiao Chen, Jared Davis, Boris Hanin, Peter Bailis, Ion Stoica, Matei Zaharia, and James Zou. Are more LLM calls all you need? towards the scaling properties of compound AI systems. In Advances in Neural Information Processing Systems, volume 37, pages 45767–45790, 2024. [62] Charlie Snell, Jaehoon Lee, Kelvin Xu, and Aviral Kumar. Scaling LLM test-time compute optimally can be more effective than scaling parameters for reasoning. In International Conference on Learning Representations, volume 2025, pages 10131–10165, 2025. [63] Benedikt Stroebl, Sayash Kapoor, and Arvind Narayanan. The limits of inference scaling through resampling. In International Conference on Learning Representations, volume 2026, pages 92601–92633, 2026. [64] Xinyun Chen, Maxwell Lin, Nathanael Schärli, and Denny Zhou. Teaching large language models to self-debug. In The Twelfth International Conference on Learning Representations, 2024. [65] Noah Shinn, Federico Cassano, Ashwin Gopinath, Karthik Narasimhan, and Shunyu Yao. Reflexion: Language agents with verbal reinforcement learning. In Advances in Neural Information Processing Systems, volume 36, pages 8634–8652, 2023. [66] Theo X. Olausson, Jeevana Priya Inala, Chenglong Wang, Jianfeng Gao, and Armando Solar-Lezama. Is self-repair a silver bullet for code generation? In The Twelfth International Conference on Learning Representations, 2024. [67] Wassily Hoeffding. Probability inequalities for sums of bounded random variables. Journal of the American Statistical Association, 58(301):13–30, 1963. doi: 10.1080/01621459.1963.10500830. [68] Andreas Maurer and Massimiliano Pontil. Empirical Bernstein bounds and sample variance penalization. In Proceedings of the 22nd Annual Conference on Learning Theory (COLT), 2009. [69] Kevin Black, Noah Brown, James Darpinian, Karan Dhabalia, Danny Driess, et al. : a vision-language-action model with open-world generalization. In Proceedings of the 9th Conference on Robot Learning, volume 305, pages 17–40, 2025. [70] Fuhao Li, Wenxuan Song, Han Zhao, Jingbo Wang, Pengxiang Ding, Donglin Wang, Long Zeng, and Haoang Li. Spatial Forcing: Implicit spatial representation alignment for vision-language-action model. In International Conference on Learning Representations, 2026. [71] Jinliang Zheng, Jianxiong Li, Zhihao Wang, Dongxiu Liu, Xirui Kang, et al. X-VLA: Soft-prompted transformer as scalable cross-embodiment vision-language-action model. In International Conference on Learning Representations, 2026.
A. Proofs and Formal Results
This appendix proves the results of Section 2 and Corollary 6, and states, with short proofs, the formal results behind Sections 4.4 and 5.2. Except in the proofs of Propositions 3 and 4, where is the input as in Section 2, we write for the router's observed state and for its finite set of values.
A.1. Proof of Lemma 1
Proof. Write , , , and . The definitions give and , so
whose denominator is positive. Substituting gives, for every ,
No independence or stationarity is needed; the quality condition follows separately from . For a stationary ergodic sequence of rounds, the long-run ratio converges almost surely to , a ratio of aggregates rather than the average of .
A.2. Proof of Theorem 2
Throughout, ranges over a finite set of observable states with router-independent probabilities ; each state offers a finite menu of candidates with expected value and expected cost ; a router chooses with probability . Let be the set of routers, a product of simplices and hence a compact polytope, and put . For ,
, and for every real
A router is deterministic if every is a point mass. The reference policy is admissible if it is an element ; then and , so the reference satisfies the floor for every .
Proof. Two preliminary facts. (F1) State-wise separation: for any real numbers , the linear functional on is maximized exactly by the routers that, in every state , put all their mass on , and its maximum is . Indeed, for each the inner sum is a convex combination of the numbers , hence at most , with equality if and only if is supported on the maximizers; and . In particular a deterministic maximizer exists. (F2) Sign of the Dinkelbach function: applying (F1) with ,
so by (5) and , if and only if some router has , and if and only if some router has .
Part (i). Each is the maximum of finitely many affine functions of with slopes . It is therefore convex, piecewise linear and continuous, and strictly decreasing:
if and attains , then . Moreover as , and as . The positive combination inherits all these properties and has a unique root . By (F2), yields a router with and forbids ; hence , and the maximum is attained. A router is efficiency-optimal if and only if , if and only if by (5), if and only if maximizes the -objective over , if and only if, by (F1), in every state it uses only candidates maximizing .
Part (ii): existence. Let , a compact polytope that contains because . Since is continuous on (its denominator is at least ), it attains its maximum on .
Part (ii): the multiplier. Define . As a maximum over a compact set of affine functions of with slopes , it is convex, continuous and strictly decreasing, tends to as , and has a unique root. By (5), if and only if some has , so the root is . Consequently a router is constrained-optimal if and only if it solves
whose optimal value is . Both and are affine in and is a polytope, so (7) is a linear program; it is feasible () and bounded. By linear-programming strong duality applied to the single constraint , there is a multiplier such that
If is optimal for (7), then and , so : hence and maximizes over . Now , so by (F1) every constrained-optimal router uses, in every state, only candidates maximizing , that is, with , and so maximizes ; and : if the floor binds at every optimal router. The value is a valid multiplier if and only if some efficiency-optimal router of part (i) satisfies the floor, and then .
A.3. Proof of Proposition 3
Proof. Assume each is integrable, and write and . The menu is finite and available at every finer state. By the tower property, for every ; taking the maximum over and then expectations gives . Let attain . The two sides are equal almost surely if and only if almost surely given , that is, if and only if one candidate is optimal at almost every finer state; conversely, if a candidate is optimal at almost every with , then attains the right side, so equality holds. The same argument with replaced by the identity gives . Finally, for every , so for every , and taking expectations gives the last inequality; the gap is the expectation of this nonnegative difference. It vanishes if and only if the difference is zero for almost every . If attains , the difference is , the mean of a nonnegative variable, which is zero if and only if almost surely given ; and if some candidate attains the maximum almost surely given , it also attains .
A.4. Proof of Proposition 4
Proof. (a) Fix and a candidate , and let . For a score , with , the expected cross-entropy is , a strictly convex function of minimized at , and the expected squared error is , also minimized at . Hence , and routing to earns at every , whose expectation is at . (b) Since , candidate beats exactly when , an event of probability , and loses otherwise; no ties occur. So , and the winner-label router plays , whose expected value is below . The loss approaches as and . In the tie-break example, the first candidate wins only when it succeeds and the second fails, with probability .
A.5. Proof of Proposition 5
Setting. Let be the deployment law of a task. A task has a state in a finite set , a menu , a realized value and cost for every , and the reference value and cost . A router , possibly randomized, is scored by its expected delivered value given the task, , which is for a deterministic router, and is its quality change. The reference is admissible: it is a router with , so . Two samples are independent: is arbitrary fitting data, and consists of i.i.d. tasks from , each recording , and for every candidate used below, as in matched replay.
From we fit , and . For a router write , define likewise, and put and . Let and . Theorem 2(i), applied to the fitted primitives, gives the root , and we assume , so that . A breakpoint of is a point at which is not differentiable. Let be the breakpoints of all that lie in , and set , and . Fix a strict order on each (the tie-break), and let be the first maximizer of in that order, for . The sequence is the price path. A mixture is the router that, in each state, plays with probability and otherwise.
Proposition 5 (full statement). (a) Path. (1) Each is well defined, is the same for every , and maximizes over all routers for every . Moreover . (2) For , , and ; in particular are distinct.
(b) Certification. Let and , and let be functions of such that whenever . Let , and let if and otherwise. Then
With , the Hoeffding p-value satisfies the requirement. The conclusion holds for any finite family of routers and any order that are fixed given .
Proof. Part (a)(1). Fix . As a maximum of affine functions with slopes , is convex and piecewise linear; its slope takes values in and strictly increases at each breakpoint, so has at most breakpoints. A breakpoint shared by several states is counted once, so . On no has a breakpoint, so there. For each , is affine and nonnegative on , so if it vanishes at one point of the open interval , it vanishes on all of it. Hence the maximizer set, and its first element , are the same for every , and every maximizer has . By fact (F1) of
Appendix A.2, maximizes on ; since and are continuous in and agree on , they agree on its closure.
Part (a)(2). Fix . Let be the set of states for which is a breakpoint; it is nonempty by the definition of . For , is affine on , so by (a)(1) the candidates and have the same pair . For , , and both candidates attain by continuity, so . Write . Because and ,
Chaining consecutive steps gives and for . For efficiency, pick . Optimality of at gives , hence
because and is strictly decreasing with root (Theorem 2(i)). Dividing by gives . Distinct fitted costs make the routers distinct.
Part (b). Condition on . Then , their order, and the numbers are fixed. Let , with if no path router violates the floor. The reference cannot violate it, since ; this is the only use of . Suppose . Then and violates the floor, so . By the definition of , every with is at most , and in particular . Therefore
by the requirement on , because . Taking expectations over gives the unconditional bound. No condition is placed on the dependence among , which share the sample .
For the Hoeffding -value, condition on . Since is independent of and is fixed, the variables are i.i.d., take values in , and have mean . Put . Then if and only if . If , Hoeffding's inequality for a range of length two [67] gives
Other -values, refined paths, and the certified price. Validity does not use the monotonicity in part (a); the order matters only for power, and part (a)(2) puts routers with high fitted value, and therefore a small risk of violation, first. Any other valid -value can be used. The empirical-Bernstein bound of Maurer and Pontil [68, Theorem 4], applied to with , yields a valid -value whose margin shrinks with the sample variance of . Because validity needs only a finite family in an order fixed by , mixtures with decreasing may be inserted between consecutive path routers; we insert and, at each tolerance studied, the fitted floor optimum of Theorem 2(ii) computed on , which on our menus mixes two neighbouring path routers. If , the certified router maximizes at , the right end of its interval on the path; we call the certified price. It turns the choice of into an output of the reference, the tolerance , and the level .
A.6. Proof of Corollary 6
A candidate calls the reference in state if it invokes the reference with positive probability there. For a candidate , the set of prices at which maximizes is a closed interval, possibly empty, because is concave, continuous, and nonpositive, and is the set where it vanishes. The admission price is the largest point of the finite union of the sets over states and reference-calling candidates (0 if the union is empty, if it is unbounded).
Proof. By Theorem 2(i), an efficiency-optimal router plays in every state only maximizers of ; since , none of them calls the reference. By part (ii), a floor-optimal router maximizes , so by part (i) it plays only maximizers of , none of which calls the reference when . For the cascade with primary , let also denote direct dispatch to it, with value and cost . By Eq. (3),
with . If maximizes at , then , so . Hence and , the bound stated. It holds for every verifier and verifier cost, but it needs direct dispatch to on the menu: with , , , , and a single other candidate with cost 10 and value 0, the cascade maximizes at every price although .
A.7. Portfolio Comparisons
For a portfolio and a candidate , let , with delivered values and complete costs of positive mean on the same tasks. Lemma 1, with as the reference, gives the paired gain
so adding improves efficiency if and only if , whatever it changes in accepted quality, fallback composition, or verifier behaviour. Let be the event that supplies a sufficient output, and let an exact selecting verifier pick a sufficient member whenever one exists, else call the reference. Then hits with probability , and the residual coverage of is , a joint property of the members' failures that standalone success rates do not determine.
Proposition 7 (Residual coverage and its correction). Let deliver mean value on a hit and on a miss, at primary cost plus a fallback cost on a miss, and let . If has the same , , and , then equals the efficiency-aware residual coverage
If instead shifts these conditional means by , , and , then, with and ,
Proof. hits with probability . By total expectation, and . Substituting into Eq. (8) gives Eq. (10), and with no shifts .
A.8. Retries and the Value of Routing Information
Planning retries. A plan that retries after failures is a candidate, so Theorem 2 chooses among plans; a plan's value is computed backward over post-failure histories. A history records the attempts so far and their feedback. For a next attempt , let be its incremental cost, including verification and its longer context, its acceptance probability, and its accepted value, all conditional on , and let be the return of calling the reference now.
Proposition 8 (Planning on post-failure states). The optimal remaining return equals at the horizon and satisfies
where extends by the rejected attempt. An attempt is optimal if and only if it attains the maximum, so its success probability enters only as conditioned on the history that reaches it.
Proof. Stopping returns . Attempting costs ; with probability the task ends with value , and otherwise it continues from , whose best continuation is worth . Since is linear in value and cost, attempting and then continuing optimally is worth the bracket, a randomized choice cannot beat the better branch, and backward induction from the horizon gives Eq. (11).
Planning on marginal success rates replaces by the unconditional rate of , which overstates later attempts when failures are positively correlated.
Buying routing information. Let accepted outputs and the fallback preserve value, let the primary be sufficient with probability , and let be the costs of the primary and of the fallback. Without information the router incurs the lower of (attempt, then escalate on failure) and (direct fallback). A signal that moves the posterior to saves, before its price,
and its capture is this saving divided by the bound below.
Proposition 9 (The value of routing information). For every signal , the saving (12) is at most , which exact revelation of the sufficiency event attains. A signal priced at is therefore worth buying only if : it avoids at most one unsuccessful attempt per task, whatever its accuracy.
Proof. Put and . As a minimum of two affine functions, is concave, and on , since is the smaller of and . Since is affine and , , so the saving is at most . Exact revelation has , where , so it attains the bound; this is the expected value of perfect information for two candidates and a binary state [59, 60].
A.9. Router Memory
A record store refines the router's state with past outcomes. In an idealized version, tasks fall into cells that share a record; ACRouter's embedding-keyed store [4] is a richer instance. Cells arrive independently with probabilities . At the start of a round, each cell is uninformed () or holds an informative () or erroneous () record. After the round, each record expires with probability , and the arriving cell receives an informative write with probability or an erroneous one with probability , replacing its record; write types are independent of the past. Put and . Let and be the router's expected value and cost in cell and record state , including the record update. Records are measured against the uninformed router, which writes at the same cost but routes as if uninformed and has efficiency , by the gains .
Proposition 10 (Stationary memory gain). Let be the stationary coverage of cell and its erroneous write fraction. The stationary efficiency satisfies if and only if
If , cell contributes positively if and only if .
Proof. A record before round was written in round or survived it, so the probabilities of informative and erroneous records satisfy and , with stationary values and . Conditioning on the arriving cell, the stationary surplus per round is , whose uninformed terms sum to zero by the definition of . The result is the left side of Eq. (13), and it equals for the stationary mean cost . The cell condition follows from .
B. The Omni-Modal Trajectory Matrix: Details
B.1. Benchmarks, Metrics, and Candidates
The 25 benchmarks form seven groups:
-
text QA: MMLU-Pro [10], MMLU-Redux [11], SuperGPQA [12], GPQA [13], AA-LCR [14], AA-Omniscience [15], and the text subset of HLE [16];
-
image-text QA: MMMU-Pro [17], MMMU [18], and VLM-ExecRouterBench [19];
-
image generation: GenEval2 [20], Qwen-Image-Bench [21], LongT2I [22], OneIG [23], and WISE [24];
-
video generation: VBench-2.0 [25]; speech generation: Seed-TTS English and Chinese [26];
-
code and workplace agents: AA-Briefcase [14], AutomationBench [27], GDP.pdf [28], GDPval [29], SciCode [30], and Terminal-Bench [31];
-
robot manipulation: RoboTwin 2.0 [32], 50 bimanual tasks in clean and randomized scenes.
The matrix holds 374,401 scored runs on 103,307 tasks from 452 candidate configurations, which differ in model, harness, and effort. Understanding benchmarks score a binary answer (AA-Omniscience uses plain accuracy). GenEval2 uses its official Soft-TIFA-GM score, Qwen-Image-Bench its official hierarchical total, LongT2I a learned alignment score, OneIG the mean of the sub-scores that apply to a single image, and WISE binary correctness. VBench-2.0 averages the dimensions that apply to each prompt, so it differs from the official total. Seed-TTS scores intelligibility as 1 – WER (English) or 1 – CER (Chinese), clipped to [0, 1]. AA-Briefcase scores the fraction of passed checks, AutomationBench assertion credit, GDP.pdf whether every criterion passes, GDPval the rubric fraction, SciCode step pass on the original tests, Terminal-Bench the official verifier reward, and RoboTwin 2.0 binary episode success. Agent candidates run in their native harness at maximum effort; understanding candidates answer in one zero-shot request at high effort.
The candidates are: Claude Opus 5.5, GPT-6.1 Sol, DeepSeek V4.1 Flash, and, for long-context, knowledge, and agent tasks, GPT-6 Astra; the image generators FLUX 3, Seedream 5.0 Pro, MAI-Image 2.6, GPT Image 2.5, Qwen-Image 3 Pro, and Grok Imagine 2.0 (two further generators appear on a few GenEval2 prompts); the video generators MiniMax H3, Seedance 2.5, and Wan 3.0; the speech generators Seed Audio 1.0, Fish S2.1 Pro, and Gemini 3.8 Flash TTS; and the policies [69], GigaBrain, Spatial Forcing [70], X-VLA [71], X-WAM, PatchWAM, and ME-Dex, all co-trained on the 50 RoboTwin tasks. AA-LCR, GDP.pdf, and Terminal-Bench run every task three, five, and three times; each run is a separate input. Table 6 gives the per-benchmark potential gain behind Table 1.
Table 6 | Per-benchmark potential gain on the test split (Table 1). The best fixed candidate in hindsight is named when it differs from the fixed candidate chosen on training inputs.
| Benchmark | Inputs | Fixed candidate | Fixed | Best fixed in hindsight | Oracle | Gap |
|---|---|---|---|---|---|---|
| Text QA | ||||||
| MMLU-Pro | 2,403 | Opus 5.5 | 92.55 | 92.55 | 95.21 | 2.66 |
| MMLU-Redux | 1,080 | Opus 5.5 | 96.67 | 96.67 | 98.06 | 1.39 |
| SuperGPQA | 5,300 | Opus 5.5 | 78.26 | 78.26 | 83.66 | 5.40 |
| GPQA (extended) | 106 | Opus 5.5 | 90.57 | 90.57 | 92.45 | 1.89 |
| AA-LCR | 42 | Opus 5.5 | 97.62 | 97.62 | 100.00 | 2.38 |
| AA-Omniscience | 120 | Opus 5.5 | 77.50 | 77.50 | 85.83 | 8.33 |
| HLE (text) | 431 | Opus 5.5 | 58.00 | 58.00 | 64.50 | 6.50 |
| Image-text QA | ||||||
| MMMU-Pro | 350 | Opus 5.5 | 86.86 | 86.86 | 92.86 | 6.00 |
| MMMU (dev/val) | 94 | Opus 5.5 | 81.91 | 81.91 | 84.04 | 2.13 |
| VLM-ExecRouterBench | 5,264 | Opus 5.5 | 85.28 | 85.28 | 87.77 | 2.49 |
| Image generation | ||||||
| GenEval2 | 160 | GPT Image 2.5 | 82.48 | 82.48 | 96.18 | 13.69 |
| Qwen-Image-Bench | 193 | GPT Image 2.5 | 64.09 | 64.09 | 69.83 | 5.73 |
| LongT2I | 543 | MAI-Image 2.6 | 86.14 | 86.14 | 86.89 | 0.75 |
| OneIG | 427 | FLUX 3 | 83.35 | 83.35 | 89.34 | 5.99 |
| WISE | 192 | Qwen-Image 3 | 92.19 | 92.71 (MAI-Image 2.6) | 98.96 | 6.77 |
| Video generation | ||||||
| VBench-2.0 | 158 | MiniMax H3 | 62.43 | 62.43 | 81.36 | 18.93 |
| Speech generation | ||||||
| Seed-TTS (en) | 214 | Fish S2.1 | 98.41 | 98.43 (Gemini 3.8 TTS) | 99.02 | 0.61 |
| Seed-TTS (zh) | 394 | Fish S2.1 | 98.73 | 98.73 | 99.45 | 0.72 |
| Code and workplace agents | ||||||
| AA-Briefcase | 1 | Opus 5.5 | 66.67 | 75.00 (GPT-6.1 Sol) | 75.00 | 8.33 |
| AutomationBench | 160 | Opus 5.5 | 92.75 | 92.75 | 96.53 | 3.78 |
| GDP.pdf | 100 | GPT-6.1 Sol | 21.00 | 23.00 (GPT-6 Astra) | 36.00 | 15.00 |
| GDPval | 43 | Opus 5.5 | 91.18 | 91.18 | 92.79 | 1.61 |
| Terminal-Bench | 39 | Opus 5.5 | 71.79 | 71.79 | 87.18 | 15.38 |
| Robot manipulation | ||||||
| RoboTwin 2.0 | 2,000 | ME-Dex | 70.45 | 70.45 | 88.85 | 18.40 |
B.2. Splits
The full set has 104,050 decisions over 25 benchmarks, split 70/10/20 with seed 42 by source group, so identical inputs and items from one source, such as the questions shared by MMMU-Pro and VLM-ExecRouterBench, never cross splits; existing research splits are kept, including RoboTwin's split by task family (35 training, 5 development, and 10 test tasks). This gives 72,351 training, 10,630 development, and 21,069 test records; the router studies of Section 4 use the first release of 18 benchmarks (Table 2).
B.3. Routers
Fable 5.1, a retired model, is excluded from every evaluation; routers trained with it play Opus 5.5 in its place.
Capability-tree router. Leaves are defined per task and labeled on training inputs by GPT-6.1 Sol, which sees the input, the output requirement, and the leaf definitions, but no candidate outcomes. The classifier is Qwen3.5-4B with LoRA (rank 8), trained for three epochs on all 18 benchmarks at once with batch 16 and learning rates (adapter) and (head); the development split selects
Table 7 | Per-benchmark results of the capability-tree router (first block of Table 3); one training seed. SciCode steps are aligned across models; 175 of its 187 inputs have one scored candidate.
| Benchmark | Inputs | Fixed candidate | Fixed | Router | Oracle |
|---|---|---|---|---|---|
| AA-LCR | 42 | Opus 5.5 | 97.62 | 95.24 | 100.00 |
| AA-Omniscience | 120 | Opus 5.5 | 77.50 | 77.50 | 85.83 |
| HLE (text) | 426 | Opus 5.5 | 58.45 | 58.45 | 64.55 |
| SciCode | 187 | Opus 5.5 | 70.05 | 70.05 | 70.59 |
| Terminal-Bench | 36 | Opus 5.5 | 69.44 | 77.78 | 86.11 |
| AutomationBench | 160 | Opus 5.5 | 92.75 | 92.75 | 96.53 |
| GDP.pdf | 99 | GPT-6.1 Sol | 21.21 | 22.22 | 36.36 |
| GDPval | 37 | Opus 5.5 | 91.84 | 91.84 | 93.62 |
| GenEval2 | 162 | GPT Image 2.5 | 82.66 | 82.66 | 96.18 |
| Qwen-Image-Bench | 197 | GPT Image 2.5 | 64.25 | 64.25 | 69.93 |
| LongT2I | 552 | MAI-Image 2.6 | 86.13 | 86.12 | 86.89 |
| OneIG | 450 | FLUX 3 | 83.20 | 84.30 | 89.20 |
| WISE | 198 | Qwen-Image 3 | 92.42 | 91.92 | 98.99 |
| VBench-2.0 | 161 | MiniMax H3 | 62.17 | 64.28 | 80.22 |
| Seed-TTS (en) | 216 | Fish S2.1 | 98.42 | 98.42 | 99.02 |
| Seed-TTS (zh) | 401 | Fish S2.1 | 98.74 | 98.74 | 99.45 |
| All 16 benchmarks | 3,444 | 79.68 | 79.98 | 84.80 |
the epoch. The leaf table is fitted on training inputs by least squares over paired candidate differences on shared inputs.
Outcome and type routers on 11 benchmarks. Both use Qwen3.5-4B with LoRA (rank 16, ) on every linear layer of the language model, a final-token linear head, AdamW with learning rates (adapter) and (head), 32 tasks per update, and six epochs, with seeds 42, 13, 2026, and 7. The outcome router reads one (input, candidate profile) pair per forward pass; its loss is the cross-entropy against the normalized outcome plus four times the squared error of within-task score differences. The type router predicts one of 68 capability types and reads a global type-to-candidate table fitted on training inputs.
Robot router. The outcome router uses Qwen3.5-4B with LoRA (rank 8), seven sigmoid heads, three epochs, batch 16, and learning rates (adapter) and (head); development routing success selects the epoch. The winner-label classifier shares the backbone, inputs, and data, with a seven-way softmax over the policy that succeeds, ties broken by measured inference time.
Image-routing suite. Thirty-one router designs, among them RouterDC [35], SCOPE [19], IRT-based routers, kNN, MLP, and two-tower scorers, and Qwen3.5 label routers with 0.8B to 9B parameters, are trained on GenEval2 or Qwen-Image-Bench prompts and tested on the same or the other benchmark: 124 configurations, with three seeds for stochastic methods. Each is compared with the fixed generator by a paired bootstrap over prompts.
Untrained router. Qwen3.5-4B, prompted with the input and the candidates, names the candidate to run.
Winner-label routers on 16 benchmarks. Qwen3.5-4B is fully fine-tuned to emit the label of the best candidate, ties broken by cost, tokens, and a fixed order. The 12 recipes start from the instruction-tuned or a continually pretrained model, with or without fine-tuning on public routing data, and train per benchmark, on all benchmarks at once, or both in sequence. Tables 7 and 8 give per-benchmark results of the capability-tree router and of the 11-benchmark study.
Table 8 | Per-benchmark results of the 11-benchmark study (first block of Table 4), averaged over four training seeds; the fixed candidate is matched.
| Benchmark | Inputs | Fixed candidate | Fixed | Outcome router | Type router | Oracle |
|---|---|---|---|---|---|---|
| AA-LCR | 42 | Opus 5.5 | 97.62 | 95.24 | 97.62 | 100.00 |
| AA-Omniscience | 120 | Opus 5.5 | 77.50 | 77.29 | 71.88 | 85.83 |
| HLE (text) | 431 | Opus 5.5 | 58.24 | 57.95 | 56.61 | 64.27 |
| AA-Briefcase | 1 | GPT-6.1 Sol | 75.00 | 62.50 | 50.00 | 75.00 |
| AutomationBench | 160 | Opus 5.5 | 92.75 | 92.70 | 92.54 | 96.53 |
| GDP.pdf | 100 | GPT-6.1 Sol | 21.00 | 20.50 | 20.00 | 36.00 |
| GDPval | 43 | Opus 5.5 | 90.52 | 90.17 | 90.31 | 92.20 |
| SciCode | 15 | GPT-6.1 Sol | 93.33 | 93.33 | 86.67 | 93.33 |
| Terminal-Bench | 39 | Opus 5.5 | 69.23 | 68.59 | 67.31 | 87.18 |
| GenEval2 | 158 | GPT Image 2.5 | 82.56 | 82.18 | 82.56 | 96.13 |
| Qwen-Image-Bench | 193 | GPT Image 2.5 | 64.09 | 63.59 | 64.09 | 69.83 |
| All 11 benchmarks | 1,302 | 68.30 | 67.90 | 66.98 | 75.84 |
Table 9 | Image price routes: test quality (0–100) and price (m$ per image) of the fixed generator and of the half-point route of Table 5, fitted on training prompts.
| Benchmark | Test prompts | Fixed generator | Half-point route | ||||
|---|---|---|---|---|---|---|---|
| Candidate | Quality | m$ | Candidate | Quality | m$ | ||
| GenEval2 | 160 | GPT Image 2.5 | 82.48 | 208.8 | GPT Image 2.5 | 82.48 | 208.8 |
| Qwen-Image-Bench | 193 | GPT Image 2.5 | 64.09 | 211.1 | Grok Imagine 2.0 | 61.16 | 60.0 |
| LongT2I | 543 | MAI-Image 2.6 | 86.14 | 39.4 | MAI-Image 2.6 | 86.14 | 39.4 |
| OneIG | 427 | FLUX 3 | 83.35 | 48.0 | Qwen-Image 3 | 83.02 | 40.0 |
| WISE | 192 | Qwen-Image 3 | 92.19 | 40.0 | Qwen-Image 3 | 92.19 | 40.0 |
B.4. Price Routes in Image and Speech Generation
Candidates are the generators scored on every input of a benchmark (Table 9). For each tolerance , we take the most efficient price-path router that meets the floor on training prompts and evaluate it on test prompts with a paired bootstrap over prompts. With capability leaves as states, the fitted zero-loss route gains 0.05 points on training prompts but loses 0.33 [-0.90, +0.25] on test prompts at 1.34× efficiency. Prices per image are 208.8–211.3 m per output), is the best and among the cheapest at every tolerance up to two points; Gemini 3.8 TTS costs 1.0–1.2 m.
C. Code and Text Testbeds: Details
C.1. Data
CodeRouterBench [4] gives outcomes and token prices for eight models (claude-opus-4-6, claude-sonnet-4-6, gpt-5.4, Qwen3-Max, Kimi-K2.5, Qwen3.5-Plus, glm-5, and MiniMax-M2.7) on 9,999 coding tasks: 7,080 probing tasks (train and validation combined) and 2,919 test tasks. RouterBench [5] gives the 0-shot matrix of 36,497 prompts and eleven models. Dollar costs are token-price estimates; sequential seconds add recorded primary and fallback latencies. Policy, portfolio, retry, and signal studies replay recorded outcomes. Verifier verdicts and the LLM forecast are fresh calls
Table 10 | CodeRouterBench policies on the 2,919 test tasks. Dollar efficiency , cost in m\Delta V = \mathbb{E}[V - Y_B]\epsilon \geq 0.02V - \eta^*C$ on its realized outcomes.
| Policy | [CI] | Cost | [CI] |
|---|---|---|---|
| 21 cells, unconstrained | 28.187 [26.840, 29.659] | 0.395 | -0.0201 [-0.0343, -0.0056] |
| 21 cells, | 25.516 [24.278, 26.903] | 0.452 | -0.0044 [-0.0175, +0.0097] |
| 21 cells, | 27.612 [26.311, 29.072] | 0.409 | -0.0140 [-0.0272, -0.0004] |
| 9 dimensions, unconstrained | 28.024 [26.713, 29.452] | 0.398 | -0.0192 [-0.0332, -0.0047] |
| 9 dimensions, | 22.733 [21.584, 23.954] | 0.502 | -0.0090 [-0.0227, +0.0060] |
| Fixed Qwen3-Max dispatch | 20.097 [18.965, 21.297] | 0.525 | -0.0416 [-0.0549, -0.0275] |
| Best fixed cascade | 2.004 [1.881, 2.140] | 6.556 | +0.0558 [+0.0461, +0.0660] |
| ACRouter released map | 1.745 [1.666, 1.826] | 7.643 | +0.0631 [+0.0528, +0.0731] |
| Per-task oracle | 33.510 [32.065, 35.206] | 0.368 | +0.0248 [+0.0117, +0.0376] |
| Always-Opus | 1.000 | 11.655 | 0 |
through one OpenAI-compatible relay, with recorded Opus outcomes as the fallback; the memory study is semi-synthetic. Scores are on the benchmarks' 0–1 scale, whereas the main text reports quality changes in points. Intervals are 95% percentile task-bootstrap intervals, paired for policy comparisons, and efficiency is a ratio of averages.
C.2. Price Routes
Table 10 gives the CodeRouterBench policies of Section 5.1. With states, every dollar-optimal policy dispatches each task to a non-Opus model, for both partitions and every fitted floor, whereas the best fixed cascade gains 0.0558 at only 2.00×. On the 21-cell menu, the zero-loss policy has multiplier and constrained optimum score per dollar, so . It maximizes , as Theorem 2(ii) predicts, and is therefore also the quality maximizer at its own budget and, since , the cheapest policy that meets the floor. Hand-picked operating points land elsewhere: gives 10.85×, and a budget equal to Opus's cost 2.16×. Refitting the policy inside 500 replicates that halve and bootstrap the probing tasks gives 25.72× [23.01, 28.04] at [-0.0178, +0.0099]; choosing a safety margin by a plain probing bootstrap instead gives margins of 0.015–0.0175 and test compliance of only 0.47–0.96.
Certification. Each of 200 splits uses a random half of probing as the fitting sample (3,540 tasks) and the other half as , fits the price path on , tests it on at , and evaluates the selected router on the test set. The full probing path has 38 routers, against the bound of 442. At , the certified router has median efficiency 15.17× with Hoeffding -values, 18.83× with empirical-Bernstein ones, and 19.38× with empirical-Bernstein ones on the mixture-refined path (Appendix A.5); Bonferroni selection over the same path gives 13.29× and 15.17×. In 200 nested 70/30 resplits of all 9,999 tasks, the refined procedure holds the floor in 199 at a median 20.56×. The guarantee is an aggregate one: the certified router loses quality in a median 8 of 21 test cells. Certification needs every candidate on the path and the reference on , at per task against for Opus alone.
States without oracle labels, and learned routers. Prompts are rebuilt with the benchmark loaders (9,996 of 9,999 tasks). Predicted-state policies refit candidate values on five-fold out-of-fold predictions, so fitting and deployment see the same noisy state; a second variant first strips every line that occurs in at least 20% of one source's prompts, by one rule learned on probing prompts (19% of test-prompt
Table 11 | CodeRouterBench states without oracle labels, and learned routers. ; cost in m\Delta V \geq 0$.
| States or router | Operating point | [95% CI] | Cost | [95% CI] | Compl. |
|---|---|---|---|---|---|
| True 21 cells | 25.52 [24.26, 26.77] | 0.452 | -0.0044 [-0.0177, +0.0077] | 0.22 | |
| Predicted 21 cells | 25.32 [24.07, 26.63] | 0.453 | -0.0070 [-0.0203, +0.0058] | 0.13 | |
| Pooled (no state) | 3.62 [3.41, 3.85] | 3.232 | +0.0021 [-0.0085, +0.0135] | 0.63 | |
| Source wrappers removed from every prompt by one rule learned on probing prompts | |||||
| Predicted 21 cells | 24.92 [23.65, 26.28] | 0.464 | -0.0032 [-0.0163, +0.0096] | 0.28 | |
| Quality-cost, direct | probing | 24.17 [22.83, 25.49] | 0.482 | -0.0003 [-0.0140, +0.0125] | - |
| Quality-cost, cascade | probing | 22.67 [20.48, 24.72] | 0.512 | -0.0016 [-0.0142, +0.0114] | - |
| Quality-cost, budget | probing | 23.57 [22.21, 24.90] | 0.497 | +0.0026 [-0.0107, +0.0157] | - |
| kNN-20, direct | probing | 23.58 [22.28, 24.89] | 0.500 | +0.0050 [-0.0080, +0.0175] | - |
| RouteLLM-style | probing | 6.36 [5.82, 6.90] | 1.861 | +0.0064 [-0.0064, +0.0193] | - |
| FrugalGPT-style cascade | probing | 11.76 [11.02, 12.51] | 1.000 | +0.0039 [-0.0093, +0.0171] | 0.71 |
| 334 runnable test tasks with recorded judge verdicts; always-Opus scores 0.737 at 5.413 m$ | |||||
| AutoMix-style, judge free | probing | 1.64 [1.47, 1.89] | 3.289 | -0.0030 [-0.0240, +0.0150] | 0.43 |
| AutoMix-style, judge at list price | probing | 0.28 [0.26, 0.31] | 19.125 | +0.0000 [-0.0180, +0.0180] | 0.55 |
characters), so that source wrappers cannot reveal the cell. Learned quality–cost routers predict each model’s score and log cost from TF-IDF features by ridge regression and play , directly, as a cascade, or under a mean-cost budget; the RouteLLM-style router [2] classifies whether Opus beats Qwen3-Max. The FrugalGPT-style cascade [1] learns a TF-IDF scorer per model and searches all 400 chains of at most three models, and the AutoMix-style cascade [42] accepts the small model’s answer when a meta-verifier accepts the recorded grok-4.6 verdict. Operating points are chosen on probing (Table 11). Refitting the stripping rule, features, and classifier inside 200 replicates gives predicted cells a median at : routing from prompt text works within the distribution.
A stronger yardstick. CellBest routes each cell to its best probing model; the Opus-referenced zero-loss policy falls 0.087 below it. Refitted against CellBest, the zero-loss policy reaches [2.94, 3.40]. CellBest’s efficiency at [-0.0108, +0.0027]; a floor certifies quality only relative to the reference it names.
RouterBench. The reference, gpt-4-1106-preview, scores 0.781 at 3.29 m\theta = 15.85 \eta_B1.60 \eta_B6.70\times$; uncertified fitted floors hold on 4 of 11 splits with family states and on none with dataset states. At matched cost, learned quality–cost cascades lie 0.014–0.022 above the 8-family frontier and tie with the 86-dataset one, so prompt-level prediction adds value where states are coarse.
C.3. Portfolio Selection
Candidates are fitted on probing and evaluated on test tasks. CodeRouterBench adds one of seven candidates, each with at least 20 passes and 20 failures, to portfolios of up to three models; Router-
Table 12 | Fixed-menu policies on 10,955 RouterBench test prompts at . against gpt-4-1106-preview; cost in m\Delta V \geq 0$.
| States or router | Operating point | [95% CI] | Cost | [95% CI] | Compl. |
|---|---|---|---|---|---|
| Best fixed cascade (Yi-34B, then reference) | probing | 1.38 [1.37, 1.39] | 2.515 | +0.0425 [+0.0390, +0.0461] | 1.00 |
| 8 families | unconstrained | 32.11 [31.37, 32.81] | 0.052 | -0.3817 [-0.3910, -0.3722] | 0.00 |
| 8 families | 7.10 [6.91, 7.33] | 0.461 | -0.0040 [-0.0084, +0.0008] | 0.05 | |
| 86 datasets | 8.26 [8.01, 8.51] | 0.395 | -0.0073 [-0.0125, -0.0024] | 0.00 | |
| Predicted 86 datasets | 7.85 [7.55, 8.16] | 0.416 | -0.0057 [-0.0112, -0.0009] | 0.01 | |
| TF-IDF k-means 20 | 8.10 [7.82, 8.39] | 0.405 | -0.0024 [-0.0079, +0.0026] | 0.17 | |
| Pooled (no state) | 1.71 [1.70, 1.73] | 1.910 | -0.0035 [-0.0073, +0.0008] | 0.06 | |
| Quality-cost, cascade | price, fit | 8.10 [7.89, 8.32] | 0.405 | -0.0025 [-0.0080, +0.0029] | 0.18 |
| Quality-cost, cascade | budget, fit | 7.07 [6.88, 7.27] | 0.474 | +0.0152 [+0.0104, +0.0199] | 1.00 |
| kNN-20, cascade | price, fit | 6.71 [6.50, 6.94] | 0.492 | +0.0026 [-0.0024, +0.0076] | 0.83 |
| Per-task oracle (in-sample) | 45.29 [44.68, 45.87] | 0.073 | 0.0000 [-0.0073, +0.0072] | 0.48 |
Table 13 | Best-candidate selection: the share of comparisons (one portfolio with several candidate additions) in which a rule's fitted choice has the highest test efficiency. Counts sum over splits, which share tasks. Paired ranks of Eq. (8); residual ranks ; Indep. assumes independent failures; saving ranks .
| Dataset, threshold | Splits | Count | Paired | Residual | Indep. | Saving | Marginal |
|---|---|---|---|---|---|---|---|
| CodeRouterBench, | 1 | 139 | 97.1% | 86.3% | 86.3% | 95.7% | 46.8% |
| CodeRouterBench, | 1 | 194 | 96.4% | 94.3% | 91.8% | 93.3% | 40.7% |
| RouterBench, | 10 | 5,539 | 63.9% | 61.9% | 35.9% | 63.5% | 14.6% |
| RouterBench, | 10 | 212 | 64.6% | 53.8% | 36.3% | 48.1% | 0.0% |
Bench adds ten candidates to 21 initial portfolios over ten fixed 70/30 splits. The selecting verifier is an oracle that commits to the best passing member, else calls the reference, and every member call is charged. Paired selection picks the candidate with the highest fitted (Eq. (8)); the controls rank residual coverage (Eq. (9)), an independence proxy that replaces by , the saving score , or marginal success (Table 13). Residual coverage evaluates the quality term at the current portfolio's conditional means, and those means shift: adding a model lowers the miss-conditional value in 97% of CodeRouterBench comparisons, which Eq. (10) restores. Adding Qwen3.5-Plus to the pooled Qwen3-Max portfolio, for example, is predicted to lose 1.4 score per dollar but gains +5.0 [3.5, 6.6], because the fallback cost of the new failure set falls by 14%. Cluster-bootstrap intervals for the differences in best-candidate frequency, resampling CodeRouterBench dimensions or RouterBench source families, all include zero. Over ten CodeRouterBench resplits, mean relative regret at and 0.5 is 0.04% and 0.06% for paired selection, 0.29% and 0.05% for residual coverage, and 13.1% and 17.0% for marginal success.
C.4. Verifiers and Overheads
On recorded responses of three primaries to 500 probing and 334 runnable test tasks, we compare a static Compiler gate, which compiles the extracted answer and the official harness to bytecode and checks the declared entry point without executing code; visible examples; hidden tests, an oracle-like control; the released-score oracle; and a grok-4.6 judge on two primaries, charged at the primary's blended token price or at its list price of 6 per million input and output tokens (Table 14). Holding outputs and the threshold fixed, the judge improves efficiency exactly when its mean charge is below , where is the mean delivered score and the mean cost before the judge. For Qwen3-Max at this break-even charge is per task [0.00379]; at
Table 14 | Verifier choice changes the cascade's efficiency and quality. ; is mean score change. Qwen3-Max primary; the judge is charged at the primary's token price.
| Verifier | AUROC | [95% CI] | [95% CI] | |
|---|---|---|---|---|
| Compiler (static gate) | 0.766 | 4.09 [3.23, 5.45] | 4.09 [3.23, 5.45] | -0.024 |
| Visible examples | 0.537 | 1.98 [1.72, 2.35] | 1.06 [1.03, 1.10] | -0.036 |
| Hidden tests | 0.994 | 2.87 [2.38, 3.53] | 2.37 [2.03, 2.80] | +0.024 |
| LLM judge | 0.824 | 1.09 [1.00, 1.21] | 0.64 [0.61, 0.66] | -0.012 |
| Released-score oracle | 1.000 | 2.46 [2.09, 2.93] | 2.46 [2.09, 2.93] | +0.045 |
Table 15 | Cross-fitted capture of the nine released CodeRouterBench routers as signals (chose Qwen3-Max) for Qwen3-Max at , with no signal charge. Native use attempts on , threshold use when ; the last column applies the threshold rule given the benchmark dimension and divides the aggregated saving by the aggregated bound.
| Signal source | Native [95% CI] | Threshold [95% CI] | Within dimension |
|---|---|---|---|
| Fine-tuned Qwen 27B | 0.555 [0.490, 0.614] | 0.555 [0.490, 0.614] | 0.062 |
| Fine-tuned Qwen 9B | 0.546 [0.475, 0.608] | 0.546 [0.475, 0.608] | 0.078 |
| Fine-tuned Qwen 2B | 0.466 [0.397, 0.531] | 0.417 [0.355, 0.479] | -0.006 |
| Fine-tuned Qwen 0.8B | 0.422 [0.348, 0.491] | 0.082 [0.066, 0.098] | -0.008 |
| Logistic regression | -1.218 [-1.590, -0.869] | 0 | -0.002 |
| TF-IDF MLP | -1.736 [-2.178, -1.342] | 0 | -0.012 |
| RouteLLM MF | -1.033 [-1.364, -0.723] | 0 | -0.013 |
| RouteLLM SW | -1.284 [-1.685, -0.953] | 0 | +0.005 |
| DimensionBest | -1.468 [-1.847, -1.104] | 0 | 0 |
it is negative for both primaries, so even a free judge does not help. Accepting every Qwen3-Max output reaches but loses [-0.108, -0.024], which the floor excludes.
Router inference is timed on one Apple M4 core and priced at AWS Lambda's x86 list price for a 2 GB function ( per second, us-east-1, September 2026). Per task, the TF-IDF router takes 1.9 ms (0.06% of a Qwen3-Max call), a hidden-test sandbox run 0.15 s and (2.0%), the grok-4.6 judge 39.0 s and 0.000944 (2.4\times); charging router overhead leaves every replay comparison unchanged at the reported precision. Opus takes 3.93 s per task against 6.23 s for Qwen3-Max, so in sequential seconds direct dispatch reaches only 0.58\times (Qwen3-Max) and 0.50\times (Kimi-K2.5) Opus's efficiency, verified cascades 0.40–0.54\times, and the judge's 39-second call lowers the ratio to 0.08\times.
C.5. Routing Signals
The released CodeRouterBench routers expose their chosen model, which we use as a binary signal (chose Qwen3-Max), with posteriors cross-fitted over ten half-splits of the test set; capture is the gross saving divided by the perfect-information bound of Proposition 9 (Table 15). Classical routers have negative native capture because their tasks still satisfy , so withholding the attempt forgoes profitable ones. For the LLM forecast, DeepSeek-v4-pro reads the prompt and predicts whether Qwen3-Max and Kimi-K2.5 pass all hidden tests on 600 probing and 600 test tasks; its calibrated posterior reaches test AUROC 0.541 and 0.618 and a capture of -0.037 [-0.225, 0.077], and at list price it costs more than the attempt it could save in 22 of 24 states.
C.6. Router Memory
This semi-synthetic study combines real outputs and verifier judgments with constructed arrivals and retention: 2,044 probing and 867 test tasks in 12 cells. With probability 0.25 the writer explores a uniformly sampled model, and it writes the model's identity to the arriving cell when verification accepts; the newest record serves later tasks in that cell, and uncovered cells use the prior, always-Opus or the probing-fitted DimensionBest, which sends each dimension to its best model. Writers use ACRouter's doctest and syntax tools, locally executed hidden tests, or a DeepSeek-v4-pro judge; we report hidden-test writes. A write is erroneous when the accepted output is incorrect under the released score; against that truth, hidden-test writes have TPR/FPR 0.960/0.205. Fifty streams of 60,000 rounds are measured over their last 10,000 rounds. With no expiration, the store reaches 135.8 score per dollar but scores 0.034 below always-Opus and 0.116 below DimensionBest.
D. Limitations
The theory takes the law of states as given, so it does not cover states that depend on the router's own earlier choices, such as SciCode steps that contain a model's earlier code, and certification needs the reference's outcome on every certification input. Moreover, step-level routing for long-horizon agentic tasks is more complex and deserves deeper exploration.