TRACE-ROUTER: Task-Consistent and Adaptive Online Routing for Agentic AI

· Source: cs.MA updates on arXiv.org · Field: Technology & Digital — Artificial Intelligence & Machine Learning, Robotics & Autonomous Systems · Depth: Expert, medium

Summary

TRACE-Router is a novel task-level routing framework designed for agentic AI applications utilizing heterogeneous Large Language Model (LLM) pools. Unlike existing per-call routers that struggle with delayed, task-level feedback in long-horizon workflows, TRACE-Router makes a single model assignment for an entire task at admission. It employs a contextual bandit to select an LLM backend, pinning all subsequent calls for that task to the chosen model. The system updates its policy using the task's terminal reward, which jointly considers accuracy and latency, thereby learning adaptive routing policies without explicit task-complexity estimation. Benchmarking on $\tau^{2}$-Bench shows TRACE-Router improves accuracy by 7-8 points over latency-matched interpolation, and on Terminal-Bench, it solves 7.1 more tasks with 36% lower latency compared to the strongest single model. This approach consistently achieves non-dominated Pareto frontier points for accuracy-latency trade-offs.

Key takeaway

For MLOps Engineers deploying agentic LLM applications, consider implementing task-level routing to significantly improve accuracy-latency trade-offs. Your current per-call routers likely misattribute feedback, leading to suboptimal performance. By adopting a framework like TRACE-Router, you can ensure consistent model selection for entire tasks. This approach learns adaptively from terminal rewards, achieving better outcomes. Expect improvements like 7-8 accuracy points or 36% lower latency without complex offline training.

Key insights

For agentic AI, aligning LLM routing decisions with task-level feedback, rather than individual calls, enables principled credit assignment and adaptive policy learning.

Principles

Method

TRACE-Router assigns each task to an LLM backend at admission via a contextual bandit. All subsequent calls for that task are pinned to the chosen model. The policy updates using the task's terminal reward, scalarizing accuracy and latency.

In practice

Topics

Best for: Research Scientist, AI Architect, AI Engineer, AI Scientist, Machine Learning Engineer, MLOps Engineer

Related on AIssential

Open in AIssential →

Editorial summary, takeaway, and curation by AIssential. Original article published by cs.MA updates on arXiv.org.