One 4B router unifies single-, multi-round, and agentic LLM routing; 61.4% avg, +11% over best

RouteWeaver: Weaving Mode Selection and Execution into Unified LLM Routing

Xiaohan Wang, Haozhen Zhang, Qingyuan Liu, Tao Feng, Wenya Wang

cs.CL

2026-10-14

RouteWeaver trains a single 4B router to pick single-round, multi-round, or agentic execution per query, averaging 61.4% across five domains, +11.03% over the strongest baseline.

What problem this solves

LLM routing decides which model handles each query. Existing routers fall into three camps by how they organize calls: single-round routers (GraphRouter) pick one model for one call; multi-round routers (Router-R1) make successive picks conditioned on intermediate outputs; agentic routers (MasRouter, GraphPlanner) arrange models into workflows with roles and dependencies. In all three, the paradigm is fixed in advance. The router can adapt which models it uses, never how the calls should be organized for the query at hand.

The premise checks out in the paper's own numbers: across five evaluation domains the strongest fixed-paradigm baseline differs, with multi-round routers winning Math, Code, and Knowledge while single-round routers win Reason and Recall. No paradigm dominates, so the paradigm itself should be part of the routing decision.

Method

RouteWeaver folds the three paradigms into one LLM policy. Three pieces:

Results

Nine benchmarks, five domains, 1,060 test questions disjoint from training, main results with α = 0:

MethodMathCodeKnowledgeReasonRecallAvg
GraphRouter (best single-round)64.636.134.269.239.648.7
Router-R1 (best multi-round)66.352.848.968.739.855.3
MasRouter (best agentic)54.237.641.762.538.346.8
RouteWeaver74.658.255.076.742.561.4

That is 61.4% on average, an 11.03% relative gain over Router-R1, first place in all five domains; the margins over the best single-round and agentic baselines reach 26.08% and 31.20%. The learned mode mix splits by task: 99% of Reason queries go agentic, 96% of Recall goes single-round, Code is 84% multi-round, Knowledge 72% single-round, and Math uses all three (19/50/31).

Three further results:

Why it matters

Teams building model gateways can take two things away. The execution paradigm can be learned per query rather than fixed at design time, and a 4B policy suffices to switch between one cheap call and an eight-call workflow. α then gives cost operating points on the same trained policy, with no retraining for a cheaper tier. The progressive-exploration lesson generalizes to any multi-mode agent training: feed each mode enough execution experience before letting the policy choose, or it collapses early. Code is on GitHub.

The comparison set is a batch of fixed-paradigm routers, and the absolute numbers depend on this six-model pool; conclusions may not transfer unchanged to a different pool.

Limitations

Boundaries the authors state: agentic mode has no tool use, four fixed roles, at most eight Worker calls; richer execution structures and tool-augmented environments are left to future work, and training uses only 3,200 queries.

Grounds for skepticism: each test question gets a single system rollout with Workers sampling at temperature 0.2, and the authors concede evaluation is not fully deterministic, so one-point margins deserve slack. Cost accounting covers Worker calls at fixed reference prices and excludes the router's own compute and orchestration overhead. Whether all ten baselines share the same Worker pool and training data is not stated in the main text. The collapse ablation also shows something the headline misses: a fully collapsed single-round policy still scores 55.6%, nearly tying Router-R1, so the unified grammar and training recipe alone carry real weight, and the increment from actual mode diversity concentrates in execution-heavy domains like Math and Code.

Terms

Source

Related papers

All paper explainers