Partial Routing: Trace-Tuned Delegation for Resource-Efficient Agentic Workflows
Organizations: University of Toronto · Georgian
Abstract
AI models vary enormously in capability and price. Model routing exploits this by sending easier tasks to cheaper models. However, a single agentic task often combines easy and difficult subtasks, making one model choice for the entire task inefficient. We introduce partial routing, which guides a frontier lead model to delegate suitable subtasks to a cheaper worker model. From both models' past runs, we identify recurring subtasks and measure each model's quality and cost on them. These measurements produce delegation guidance, with a parameter, , controlling how much is delegated. The lead decides when and what to delegate during execution, without training either model. On held-out tasks from ViBench and Terminal-Bench 4.0, partial routing achieves higher mean task performance than the lead alone and task-level routing. With , it raises the lead's ViBench score from 70.2 to 78.5 at 19% lower cost, and its Terminal-Bench pass rate from 54% to 61% at similar cost. Giving the lead only the subtask breakdown, without a worker, also reduces cost on both benchmarks and raises the Terminal-Bench pass rate. These results show that analysis of past runs can support more efficient planning and more effective delegation, with little cost and implementation overhead.
Figures & tables
| Approach | Dynamic | Informed/ tuned | Control- lable | Tuning cost |
| Task-level routing | ||||
| Learned routers | – | Router training | ||
| Subtask routing | ||||
| Model-card-based | – | Benchmark profiles | ||
| Unguided subagents | – | – | None | |
| Learning from trajectories | ||||
| Quality | Saving | Tier at | ||||
|---|---|---|---|---|---|---|
| Subtask | (%) | .10 | .40 | .75 | ||
| Planning ‡ | 8.2 0.1 | 6.4 0.1 | 87 | K | K | K |
| Project scaffold | 7.6 0.1 | 6.0 0.2 | 84 | c | D | D |
| Data model/DB | 8.5 0.0 | 6.8 0.2 | 86 | K | D | D |
| Backend logic | 7.1 0.0 | 5.2 0.2 | 77 | K | c | D |
| Markup/styling | 7.2 0.0 | 7.2 0.1 | 91 | c | D | D |
| ViBench | Terminal-Bench | |||
| Score | Cost | Pass | Cost | |
| Method | (0–100) | ($) | (%) | ($) |
| Task-level routing | ||||
| Lead alone | 70.2 | 0.83 | 54.3 | 1.17 |
| Worker alone | 46.9 | 0.20 | 8.7 | 0.39 |
| Jev | 60.5 | 0.72 | 50.0 | 1.05 |
| Ours, | ||||
| Measure | Unguided | .10 | .40 | .75 |
| Hand-offs | 12 | 10 | 23 | 29 |
| Builds with worker | 10 | 10 | 18 | 19 |
| Worker turns | 315 | 292 | 568 | 793 |
| Turns/hand-off | 26.2 | 29.2 | 24.7 | 27.3 |
| Turn share (%) | 13.0 | 11.2 | 18.5 | 23.9 |
Appendix figures & tables9 assets
Supplementary material from the paper’s appendix.
Appendix
| Cost per task | Quality | Risk terms | Tier at | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Subtask (induced) | Steps | .10 | .20 | .30 | .40 | .50 | .75 | ||||||||
| Orientation & planning ‡ | 55 | .038 | .005 | .87 | 8.2 | 6.4 | .18 | .50 | .34 | K | K | K | K | K | K |
| Project scaffold | 58 | .054 | .009 | .84 | 7.6 | 6.0 | .16 | .30 | .23 | c | c | c | D | D | D |
| Data model & DB setup | 30 | .046 | .006 | .86 | 8.5 | 6.8 | .17 | .40 | .29 | K | c | c | D | D | D |
| Backend logic & handlers | 108 | .117 | .027 | .77 | 7.1 | 5.2 | .24 | .45 | .34 | K | c | c | c | D | D |
| Markup & styling | 102 | .214 | .020 | .91 | 7.2 | 7.2 | .05 | .20 | .12 | c | c | D | D | D | D |
| Judge re-runs (same annotation) | Annotation re-runs | ||||||
|---|---|---|---|---|---|---|---|
| Subtask | Steps | Jaccard distance | |||||
| Orientation & planning ‡ | 55 | 8.2 0.1 | 6.4 0.1 | .18 .01 | .50 .00 | .34 .01 | .22 .22 |
| Project scaffold | 58 | 7.6 0.1 | 6.0 0.2 | .16 .02 | .30 .08 | .23 .05 | .25 .09 |
| Data model & DB setup | 30 | 8.5 0.0 | 6.8 0.2 | .17 .02 | .40 .00 | .29 .01 | .23 .12 |
| Backend logic & handlers | 108 | 7.1 0.0 | 5.2 0.2 | .24 .02 | .45 .00 | .34 .01 | .18 .07 |
| Markup & styling | 102 | 7.2 0.0 | 7.2 0.1 | .05 .01 | .20 .00 | .12 .01 | .27 .07 |
| Hand- | Lead steps | Browser | Run 1 | |||
| Method | offs | all | verif. | QA | Score | $ |
| Lead alone | – | – | – | 3/15 | 74.3 | 1.07 |
| Unguided | 10 | 71 | 35.6 | 2/15 | 73.3 | 0.64 |
| , prose | 15 | 122 | 86.5 | 8/15 | 80.8 | 1.06 |
| , schema | 15 | 88 | 47.7 | 5/15 | 85.6 | 0.82 |
| , prose | 21 | 100 | 60.3 | 9/15 | 87.9 | 0.92 |
| Limit | ViBench | Terminal-Bench |
| Lead or solo model, steps per build or task | 300 | 300 |
| Worker, steps per hand-off | 35 | 120 |
| Hand-offs per build or task | 6 | 8 |
| Lead or solo model told its own step limit | yes | no |
| Lead told the hand-off and worker limits | yes | yes |
| Worker told its step limit | yes | yes |
| Profiling (5) | Held-out (10) | All (15) | ||||
| Method | Score | $ | Score | $ | Score | $ |
| Task-level routing | ||||||
| GLM 5.2 alone | 71.8 | 0.71 | 70.2 | 0.83 | 70.7 | 0.79 |
| MiniMax M3 alone | 44.8 | 0.19 | 46.9 | 0.20 | 46.2 | 0.20 |
| Jev | 57.8 | 0.47 | 60.5 | 0.72 | 59.6 | 0.64 |
| Oracle (hindsight) | 74.4 | 0.58 | 71.0 | 0.79 | 72.1 | 0.72 |
| Quality | Saving | Tier at | |||||
|---|---|---|---|---|---|---|---|
| Subtask | (%) | .10 | .40 | .75 | |||
| Explore environment ‡ | 7.1 | 6.4 | 85 | .23 | K | K | K |
| Baseline profiling | 6.8 | 3.6 | 69 | .45 | K | c | D |
| Write code & tests | 6.1 | 3.3 | 89 | .49 | K | c | D |
| Verification | 6.4 | 3.9 | 84 | .42 | K | c | D |
| Debugging | 5.9 | 3.8 | 60 | .46 | K | c | D |
| Ours, | ||||
| Measure | Unguided | .10 | .40 | .75 |
| Hand-offs | 199 | 0 | 175 | 287 |
| Tasks with worker | 46 | 0 | 46 | 46 |
| Worker turns | 4,405 | 0 | 4,349 | 7,929 |
| Turns/hand-off | 22.1 | – | 24.9 | 27.6 |
| Turn share (%) | 76.5 | 0.0 | 75.4 | 86.1 |
LLM Agent Routing
LLM agent routing selects models, tools, skills, or collaboration workflows for each task or step to balance capability, cost, latency, and reliability.
See all 111 papers