AgentRouter: Heterogeneous Model Routing for Cost-Optimal Multi-Step Agentic Workflows
Abstract
Enterprise agentic systems that route every trajectory step to a frontier model waste 60-80% of their inference budget on subtasks that smaller models handle equally well. Existing routing solutions optimize single-turn query assignment but ignore a property unique to agentic workflows: subtask complexity varies widely within a single trajectory. A planning step may require frontier-class reasoning while a subsequent formatting step needs only a 7B model. We formalize step-level model routing as a sequential assignment problem over agent trajectories and propose AgentRouter, a lightweight classifier (12M parameters, <5ms overhead per step on an A100 GPU) that maps each trajectory step to one of four model tiers using five features extractable at routing time. Trained on 50,000 annotated agent trajectory steps spanning planning, coding, research, and data analysis tasks, AgentRouter achieves 72% cost reduction relative to frontier-only baselines, retaining 97.3% of frontier-only quality (less than 3% degradation in end-to-end task completion); per-step routing accuracy reaches 91% on minimal-complexity steps and 85% on efficient-tier steps, with 76-82% on the harder mid-range and frontier tiers. On the same benchmarks, RouteLLM and FrugalGPT (applied per-step) achieve only 31% and 44% cost reduction respectively, because their single-turn training signal misses trajectory-level quality dependencies.
Create a lesson
Metadata
- Categories
- cs.AI, cs.CL, cs.LG, cs.MA
- Comments
- Accepted at the AgenticUQ Workshop, ICML 2026. Camera-ready version
Related papers
Total Cost of Agency: Exact Attribution of Memory Injection Cost in Multi-Agent LLM Workflows
Shared title terminologycs.AIVivek Kumar Singh, Preeti Priyam, Gautam Bhowmick
Multi-agent System for Automatic Discovery of Pareto-optimal Meta-solvers for PDEs
Shared title terminologycs.AIYoungkyu Lee, Shanqing Liu, Jerome Darbon et al.
AGL-SKILL: Coding Harnesses as Agentic Optimizers
Shared title terminologycs.AIRyan Tsui, Yuge Zhang, Yuqing Yang
One Step, Four Clocks: How GUI Agents Fall Out of Step
Shared title terminologycs.AIZhanwen Chen, Tianchun Wang
MedUIGym: Evaluating and Training GUI Agents for Clinical Workflows
Shared title terminologycs.AIYitong Qiao, Lei Liu, Yue Shen et al.
MH-RAG-DIVE: Dynamic and Cost-Efficient Multi-Hop RAG Evaluation via Tree-Cached Dialogue Simulation
Shared title terminologycs.AILorenz Brehme, Daniel Hillebrand, Thomas Ströhle et al.