RouteWeaver: Letting the Model Decide *How* to Call, Not Just Which One

A close look at RouteWeaver, a model-routing method that treats three execution paradigms — single-round, multi-round, and agentic — as choices a single learned policy makes per query.
← All posts
온
온틀 리서치
2026년 10월 26일 Updated 2026.11.27 39 min read views 4

The technique of swapping between multiple language models (LLMs) depending on the situation is called "model routing." Existing routers each run on top of a single execution paradigm. There's the single-round approach (call once and stop), the multi-round approach (go back and forth several times), and the agentic approach (split roles across several models and have them collaborate) — and which of these three a router sits on is fixed the moment the router is designed. Within that paradigm, a router may still choose quite a lot per query: the agentic MasRouter, for instance, picks the collaboration structure, the roles, and the models on a per-query basis. But no router has ever changed the paradigm itself — single vs. multi vs. agentic — from one query to the next. RouteWeaver ties this paradigm choice together with execution into a single learned policy. When a query comes in, it first picks a paradigm, then — observing each worker's response as it comes back — decides the next model, sub-question, role, and dependency step by step. It's one policy learned end to end (§4.1), not a single upfront decision that fixes every call at once. Across five domains — math, coding, knowledge, logical reasoning, and factual recall — it reached an average accuracy of 61.4%, a relative 11.03% above the strongest comparison baseline.

The problem this paper tackles

The idea behind LLM routing is simple. Send light queries to a small model and hard reasoning to a large one, and you get both cost and quality. The trouble is that routers so far have started out with one "execution frame" baked in.

There are three frames. Single-round picks one model for one query, calls it once, and stops (RouteLLM, RouterDC, GraphRouter, and so on). Multi-round takes the first answer, then uses that intermediate result to choose the next model, continuing the calls (Router-R1, R2-Reasoner). Agentic assigns roles like planning, execution, verification, and summarization to several models and ties them together with dependencies into a single workflow (MasRouter, GraphPlanner).

Which of the three frames a router stands on is fixed per router before any query arrives. Within its own frame, each router will adapt the model — and sometimes the collaboration structure and roles — to the query, but it cannot swap the frame itself per query: whether to end in a single round, continue across multiple rounds, or widen out into an agentic flow. It's like a hospital front desk that can assign patients to specialists but always handles "does this patient finish in one visit, get called back after test results, or need several departments to consult" with the exact same fixed procedure.

The paper's experiments show this limitation directly. The strongest baseline differed by domain. On math, coding, and knowledge, a multi-round router did best; on logical reasoning and factual recall, a single-round router won. No single approach won on every task. If that's the case, you should be able to change the approach itself per query.

The core idea

Let's start with how a single query flows through. When "find the bug in this code" comes in, the router first chooses how to solve it. If it picks multi-round, it has a Worker (the model that actually does the solving) do a first analysis, looks at that answer, then asks the next worker for a fix — going back and forth a few times before producing a final answer. The router is the manager deciding who does what.

Start with the execution process. All three approaches are expressed in one shared grammar. The router first picks an execution mode, then builds the calls that fit that mode. Each individual call specifies "which worker to send which sub-question to." Single-round has exactly one such call. Multi-round passes the previous result into the next call. Agentic attaches a role and references to earlier calls (dependencies) to each call, passing the referenced outputs (sometimes in parallel) into the next call.

What gets learned in that process is separate. The full record of every call from the query to the final answer is called a single trajectory. From this trajectory, only the choices the router itself generated — mode, worker, sub-question, final answer — are the learning targets; what the workers returned is used only as reference context. One design choice stands out. The router sees workers only as anonymous IDs with capability descriptions. It knows neither the model names nor the prices, choosing purely on "this ID is good at these things." It's a mechanism to keep the router from being pulled by brand names and to learn only from capability and cost signals.

COMET-GRPO — splitting responsibility in two

A tricky problem arises during training. Because mode selection and execution are intertwined, when a trajectory gets a low score, you can't tell whether it's because the mode was chosen badly or because the mode was right but the execution was poor.

Here's an example. If multi-round was on average a good choice but this particular run was clumsily executed, you should leave "approach selection" alone and fix only "execution." But ordinary GRPO (a reinforcement learning technique that scores runs relatively by comparing multiple executions against each other) assigns a single relative score (the advantage) to the whole trajectory and spreads it equally across the mode-selection tokens and the execution tokens. It can't pin down where the blame lies.

COMET-GRPO splits this score into two comparisons. One is a between-mode comparison — across the rollouts of the same query, was the average score of the mode I chose better than the overall average? The other is a within-mode comparison — relative to the average of trajectories that chose the same mode, was this trajectory better? The former signal is assigned to the mode-selection tokens, and the latter to the subsequent execution tokens (worker choice, role, references, sub-question, final answer). The two signals are brought onto the same scale and combined, but they are normalized separately so that the short mode-selection signal isn't drowned out by the long execution signal. The reward blends two parts, a task-correctness reward and an efficiency (cost) reward; with an efficiency weight of zero it's correctness only, and with a positive weight cost savings are added in.

Progressive exploration — how to use them first, choosing comes later

If you let the router freely choose modes from the start, an early preference starves the other modes of chances to be learned. Once it tilts toward "multi-round seems good," it digs into that alone before it has properly learned single-round and agentic. So training is split into three stages.

In the cold start stage, every query is externally assigned a mode by force. The router learns not "when to use which mode" but "how to execute each mode," using correctness reward only (the score decomposition is also turned off at this stage). In the transition stage, the forced assignment is reduced and free choice is increased, while a mechanism is applied to keep any particular mode from vanishing from training entirely (individual queries may still each prefer a different mode). In the final full autonomy stage, the router chooses for every query on its own, and COMET-GRPO trains selection and execution together. The order is to learn how to execute first, then learn how to choose.

How the experiments were set up

Evaluation was built on nine benchmarks across five domains. Math is MATH and Omni-MATH; coding is APPS, LiveCodeBench, and TACO; knowledge is SuperGPQA; logical reasoning is SATBench; factual recall is TriviaQA and SimpleQA-Verified. The test items don't overlap with the items used in training.

The aggregation method is worth flagging. A domain's accuracy is the plain average of the accuracies of the datasets in that domain, and the overall average is the plain average of the five domain accuracies. So whether it's coding with three datasets or knowledge and logical reasoning with just one each, every domain gets an equal 1/5 weight in the final average.

The comparison set is ten routers spanning the three paradigms (single-round: Router-KNN, Router-MLP, RouterDC, GraphRouter; multi-round: Prompt LLM, Router-KNN-MR, R2-Reasoner, Router-R1; agentic: MasRouter, GraphPlanner). All were evaluated on the same nine benchmarks. That said, what the paper explicitly states it controlled identically — "worker pool, training data, evaluation protocol, and training budget" — is not the full set of baselines but the two ablation variants and the original RouteWeaver (§5.4). So it's hard to nail the ten-baseline comparison down as the "pure effect of changing only the router."

These numbers read as differences in selection and organization ability when you swap the router, but since the paper gives no basis for asserting that the worker pool and training conditions were controlled completely identically across all baselines, it's safer to avoid reading them as "there is no variable other than the router." Putting in stronger workers could raise overall accuracy, but that's not what this comparison is about. Also, the accuracy table is from the setting with the efficiency weight set to zero — that is, cost is ignored and only accuracy is optimized. Results that also account for cost are in the trade-off experiment later.

Results and what they mean

In the accuracy-only setting, RouteWeaver recorded an average of 61.4%. That's a relative 11.03% above the strongest comparison, Router-R1 (55.3%). Against the best of each paradigm, it was 26.08% above single-round, 11.03% above multi-round, and 31.20% above agentic. It was also first in every domain.

Domain RouteWeaver vs. that domain's strongest baseline
Math 74.6% +12.52%
Coding 58.2% +10.23%
Knowledge 55.0% +12.47%
Logical reasoning 76.7% +10.84%
Factual recall 42.5% +5.20%

The margin was smallest on factual recall. This domain is solved relatively well by a single-round router alone, so the gain from switching the approach was small. The figures in the column are relative to a different "strongest baseline for that domain" in each case.

From here, let's move from "how much did it improve" to "what design produced that improvement." The ablation — removing components one at a time — gives the answer. Replacing COMET-GRPO with plain GRPO drops the average from 61.4% to 58.8% and shifts the mode usage ratios from single/multi/agentic of .35/.41/.24 to .13/.82/.05 — the policy tilts excessively toward multi-round (the biggest drop is knowledge, 5.8 points). Removing progressive exploration is even more dramatic. The average falls to 55.6% (coding −9.6, logical reasoning −8.4), and the policy collapses entirely onto single-round (1.00/.00/.00). Without a signal that splits responsibility, one mode swallows the whole thing; without giving other modes a chance to be tried early, the router stays with the simplest approach. That said, even these two degraded variants (58.8%, 55.6%) still come out ahead of every baseline.

The cost side was measured by increasing the efficiency weight. Relative to the accuracy-only setting:

Worker inference cost reduction Accuracy drop
23% 1.0 point
61% 3.1 points
86% 11.2 points

Note, though, that each point on this curve is not obtained by tuning one deployed model at inference time. The paper fixed the efficiency weight α at 0, 0.1, 0.3, and 0.5 respectively, and for each setting trained independently from the initial model for 90 steps, then evaluated the resulting final checkpoints (Appendix C.3). In other words, to move between "accuracy first" and "cost savings," you have to retrain the router for each point you want, and this paper does not demonstrate the ability to adjust in real time with the same model deployed. Also, this cost is a fixed reference cost counting only worker calls, so to compare actual unit prices you'd have to add the router's compute cost too.

In the experiment testing generalization on unseen benchmarks (AIME, GPQA-D, BBH), it averaged 53.7%, a relative 18.28% above the strongest baseline. The gap actually widening outside the training distribution seems to be because a router that can choose its approach is more flexible on unfamiliar problems than a router with a fixed frame. But this 53.7% is a held-out-only figure (an evaluation set not used in training), so it can't be mixed with the earlier 61.4%.

Limitations and open questions

The limitation the authors state directly is the sensitivity of the exploration design. The fact that the policy collapses onto single-round without progressive exploration means, flipped around, that this method depends considerably on the exploration schedule and the mode-retention mechanism. The price of gaining the degree of freedom that is mode selection is that training has to be managed carefully.

Three more points. First, the worker pool is fixed at six and the router is a single small model. Whether the anonymous-ID and capability-description approach holds up when the worker composition changes substantially is hard to assert from this experiment alone. Second, the cost metric counts only worker calls and leaves out the router's compute. The cost of the router choosing a mode and generating a long trajectory is missing, so actual serving cost could be higher than this trade-off curve. Third, since the overall average is a plain average over domains, the swings of domains with only one dataset (knowledge, logical reasoning) get reflected into the average at the domain level.

The open question is the nature of the mode selection. Whether the router's choice really reads the query's difficulty and character, or is a statistical skew produced by the training data distribution, isn't distinguishable from the outside. To tell them apart, you'd want to look at a few things in the routing logs: within the same type, does the choice actually change as difficulty rises; do different modes attach to easy versus hard queries; are there failure cases caused by picking the wrong mode — judgment is possible only once such observations accumulate.

Comparison with other approaches

RouteWeaver's distinction — raising the three frames to options of a single policy — was covered above. Here I'll just add the lineage of the training technique. The root is GRPO. Dr.GRPO addressed optimization bias; DAPO addressed stability with asymmetric clipping and dynamic sampling; GDPO addressed per-reward normalization for multiple rewards. On the interactive-agent side, GiGPO attempted finer credit assignment with episode- and step-level relative scores. COMET-GRPO reads as bringing this current into routing, giving different relative signals to the two decision layers of "mode selection" and "within-mode execution."

The ONTLE lens

Say an ONTLE AI PM gets the request "figure out why this metric dropped from last week and write it up." This isn't a simple lookup; it's work where you have to narrow hypotheses while looking at intermediate results. A product using a fixed frame always takes this kind of request the same way. If it always spins up a heavy multi-agent run, even a check like "how many did we process today?" becomes expensive and slow; if it always tosses everything to one model, something like root-cause tracing ends in a shallow answer. The RouteWeaver-style approach takes this request as multi-round: it first dissects the metric, then decides the next query based on that result.

The crux is who judges whether the answer is right. Since the router learns from reward, in operation someone — a person or a verification rule — has to score "did the analysis actually identify the real cause" and feed that signal back. And this judgment is made alongside time and cost, not quality alone — train with a high efficiency-reward weight and it leans cheaper and faster; train with a low one and it leans toward accuracy. In a structure like ONTLE's where the query distribution differs per customer, rule-based branching has to be rewritten for each customer, whereas learned selection is tuned only by gathering that customer's query and scoring data and retraining. Put differently, having a scoring system in place first is the precondition for applying this.

The paper also tells us what to watch out for. The moment you free up mode selection, a collapse toward "only the cheapest single-round" or "only the heaviest approach" actually happened (.13/.82/.05, 1.00/.00/.00). If you apply this to a product, a curriculum that gives each approach even exposure early on and a mechanism to prevent over-concentration on a particular mode are not optional but mandatory.

Three things to do right now from this case

  • Measure: For request types like metric analysis, first measure on your own traffic which of single-round, multi-round, and agentic is better. Just as the strongest approach split by domain in the paper, if it splits by type, the gain from unified routing is large.
  • Score: Decide first who will evaluate answer quality by what criteria. Reward learning doesn't hold without this scoring signal, and the evaluation has to consider quality, time, and cost together.
  • Monitor: Put mode usage ratios on a standing dashboard, and if one approach converges to zero, inspect the exploration and over-concentration safeguards. For actual unit price, add in the router's compute too.

Frequently asked questions

What are the router and the worker models, and which side is trained?

What gets trained is only the "choosing side," the router. In this paper, Qwen3-4B-Instruct-2507 was fully fine-tuned and used as the router. The six workers — the "working side" that actually solves the problems — are used as-is (frozen) with no additional training: Qwen3-8B, Qwen3-30B-A3B-Instruct-2507, Llama-3.1-8B-Instruct, Llama-3.3-70B-Instruct, Gemma-3-27B-IT, and Gemini-2.5-Flash-Lite. The router picks among them seeing only anonymous IDs and capability descriptions.

Does this 61.4% mean we'd get the same in our own service?

No. It's a relative result from swapping routers on the same benchmarks (and what the paper states it controlled identically down to the worker pool and training conditions is limited to the ablation variants and the original RouteWeaver). If the worker composition or query distribution differs, the number changes. That's also why the average of 53.7% on benchmarks not used in training (AIME, GPQA-D, BBH) was measured separately, and that value is not stated combined with the main evaluation's 61.4%.

References