The Big Picture
Assign a single model to an entire multi-step AI task and learn which model works for which coarse task type from finished tasks; this yields significantly better accuracy-for-time trade-offs than per-call switching or fixed rules.
ON THIS PAGE
Key Findings
Routing one backend for an entire agentic task and updating choices from the task's final outcome produces more reliable end-to-end success than making independent decisions for each LLM call. Using a simple context signal at admission and an online learner per context, the router adapts on the fly without offline training. Across multiple agent benchmarks, this approach sits on the empirical accuracy-versus-time frontier and beats heuristic and random-mix baselines by clear margins. Dynamic Task Routing Pattern
By the Numbers
1Adaptive task-level routing beats latency-matched random model mixing by 7.5, 7.1, and 7.9 percentage points at three operating points on τ²-Bench.
2TRACE-Router achieves 61.2% task accuracy at 26.4 seconds — capturing 67% of the latency gap for 90% of the accuracy gap between small and large backends.
3On Terminal-Bench, TRACE-Router solves 46.8% of tasks at 172s vs 39.7% at 268s for always-using the larger model — 7.1 percentage points higher accuracy with 36% lower time, and within 1.2 points of a task-matched oracle.
What This Means
Platform engineers and SREs running multi-step AI agents should care because the method delivers higher end-to-end success for the same or less time. ML engineers and product leads building agentic workflows can use this to reduce wasted compute on overly-strong models while avoiding mid-task downgrades that break executions. For implementation guidance, see the Event-Driven Agent Pattern. This approach also resonates with the Orchestrator-Worker Pattern.
Not sure where to start?Get personalized recommendations
Key Figures

Fig 1: Figure 2: TRACE-Router overview. Each request carries a persistent task identifier. Requests from an active task reuse its stored backend assignment, while a new task is assigned a coarse context and routed by the corresponding bandit; the figure illustrates a three-context instantiation. After task completion, graded accuracy and end-to-end latency are combined into a delayed reward that updates the bandit responsible for the routing decision.

Fig 2: Figure 3: Accuracy–latency frontiers. Marker shape denotes method, color denotes preference α \alpha ; non-swept baselines are gray. Rings mark the non-dominated set and the connecting line the empirical Pareto frontier. Stars are task-matched oracles, excluded from the frontier. TRACE-Router holds interior frontier positions on all three benchmarks, dominates the smaller backend outright on telecom, and on Terminal-Bench holds a position strictly above the larger backend.

Fig 3: Figure 5: Bandit policy and exploration parameter. Fraction of the better-versus-worse backend reward gap captured under the accuracy reward ( α = 0 \alpha=0 ), where 0 is always selecting the worse arm and 1 1 the better one. Error bars are 95 % 95\% CIs over 80 80 seeds. UCB is the only policy whose optimum is stable across benchmarks.

Fig 4: Figure 6: Routing with four candidate models: Accuracy vs. latency comparison for different routers running τ 2 B e n c h \tau^{2}Bench (telecom and retail domain) and LiveCodeBench. TRACE-Router uses δ = 0.1 \delta=0.1 (blue) and δ = 0.5 \delta=0.5 (orange) for context-free and cold-start configurations.
Ready to evaluate your AI agents?
Learn how ReputAgent helps teams build trustworthy AI through systematic evaluation.
Learn MoreYes, But...
Results come from specific agentic benchmarks and pairs of small/large backends; behavior may differ with different model families or many more candidate backends. TRACE-Router assumes a persistent task identifier and a way to grade task success after completion, which some deployments must add. Cold-start behavior and the speed of adaptation depend on task volume per context; very rare task types will need careful initialization or richer context signals. Context Drift
Deep Dive
Modern agentic AI tasks involve many model calls, tool use, and environment steps, so a single task’s success is a delayed signal that depends on the whole trace. Making routing decisions per call fragments credit assignment and can break model-specific state. Assigning one backend at task admission and keeping it for the whole trace aligns decisions with the unit of feedback and prevents mid-task model switches from invalidating earlier progress. TRACE-Router implements this by (1) computing a coarse task context at admission (the authors use a simple regex/length classifier into easy/medium/hard), (2) maintaining an independent online learner for each context that treats backend choice as a trial-and-error problem balancing success and time, and (3) attributing a single scalar reward—combining graded task accuracy and end-to-end time—to the learner when the task finishes. No offline training is required; the system explores backends early and converges to the best trade-off per context. Across multiple agentic benchmarks, TRACE-Router sits on the empirical accuracy–time Pareto frontier, outperforms fixed heuristics and learned per-request routers, delivers 7–8 point accuracy improvements over latency-matched random mixing, and in one benchmark achieves higher accuracy at much lower time than always using the strongest model. The approach is practical to integrate but needs a persistent task ID, a task evaluator, and enough task volume per context to learn effectively. Agentic RAG Pattern
Avoid common pitfallsLearn what failures to watch for
Credibility Assessment:
Authors show modest h-indexes (6–8) and include at least one recognizable researcher, suggesting some established expertise despite missing affiliations and arXiv venue.