AgentRouter:用于成本最优多步骤代理工作流的异构模型路由

arXiv cs.AI 论文

摘要

AgentRouter 是一个轻量级分类器,用于在代理工作流中将步骤路由到不同的模型层级,与仅使用前沿模型相比,实现了72%的成本降低且质量退化最小。

arXiv:2609.22951v1 Announce Type: new 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.
查看原文
查看缓存全文

缓存时间: 2026/09/23 09:17

# AgentRouter: Heterogeneous Model Routing for Cost-Optimal Multi-Step Agentic Workflows
Source: [https://arxiv.org/abs/2609.22951](https://arxiv.org/abs/2609.22951)
[View PDF](https://arxiv.org/pdf/2609.22951)

> 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\.

## Submission history

From: Rudrendu Kumar Paul \[[view email](https://arxiv.org/show-email/b478cc24/2609.22951)\] **\[v1\]**Sat, 19 Sep 2026 11:06:57 UTC \(25 KB\)

相似文章

最佳模型路由因任务而异(6分钟阅读)

TLDR AI

模型路由是降低推理成本的热门趋势,但最佳路由高度依赖具体任务。Harvey和Factory等团队通过专注于单一工作流而非通用路由器,实现了显著的成本节约。

Switchcraft:用于智能体工具调用的 AI 模型路由

arXiv cs.AI

本文介绍了 Switchcraft,这是首个专为智能体工具调用优化的 AI 模型路由器,旨在降低推理成本。通过使用轻量级的 DistilBERT 分类器,它在保持高工具使用准确性的同时,实现了显著的成本节约。

模型路由很简单,直到它变得复杂。

Hugging Face Blog

IBM Research 解释了为什么智能体系统中的模型路由比简单的分类问题更复杂,指出缓存和隐藏因素(如实际工作负载成本和任务难度评估)使路由成为一个系统优化挑战。

🚀 AgentRouter 强大再升级!

Reddit r/AI_Agents

AgentRouter 是一个开发者平台,提供统一 API 来访问和切换多个 AI 模型,例如 GPT 和 Claude 变体,用于编码、推理和自动化任务。