模型路由很簡單——直到它不再簡單。
重點摘要
回到文章 模型路由很簡單——直到它不再簡單。企業文章 發佈於 2026 年 7 月 15 日 讚 3 Yara Rizk yarizk 追蹤 IBM 研究院 Eyal Shnarch eishna 追蹤 IBM 研究院 Jason Tsay jsntsay 追蹤 IBM 研究院 Merve Unuvar mrvnvr 追蹤 IBM 研究院 在你的智能體中建置路由器,看似輕而易舉:將簡單請求導向較便宜的模型,把困難任務留給昂貴模型,或依專長分流——Claude 負責程式碼,Gemini 負責多模態等。用分類器或啟發式方法決定路由,成本下降,效能維持。搞定。但事實並非如此。大多數路由系統假設模型選擇只是分類問題。根據我們在智能體系統中建置路由的經驗,看似模型選擇的問題,很快就會變成更複雜的挑戰。
Back to Articles Model Routing Is Simple. Until It Isn’t. Enterprise Article Published July 15, 2026 Upvote 3 Yara Rizk yarizk Follow ibm-research Eyal Shnarch eishna Follow ibm-research Jason Tsay jsntsay Follow ibm-research Merve Unuvar mrvnvr Follow ibm-research Building a router into your agent sounds like an easy win. Send simple requests to cheaper models, reserve expensive ones for harder tasks, or route by specialty — Claude for code, Gemini for multimodal, and so on. A classifier or heuristic makes the call, costs go down, performance stays up. Done. Except it’s not. Most routing systems assume that model selection is a classification problem. In our experience building routing into agentic systems, what looks like a model-selection problem quickly becomes a systems optimization problem. Three dimensions made this surprisingly hard for us. 1. Cost Is More Than Model Pricing We expected GPT-4.1 to be cheaper than Claude Sonnet 4.6. It wasn’t. Across 417 tasks on the AppWorld Test Challenge using the same CodeAct agent, Sonnet cost $79 total ($0.19/task) while GPT-4.1 cost $155 ($0.37/task) — nearly double. On paper, this makes no sense. GPT-4.1’s token pricing is lower on both input and output, and Sonnet takes roughly three times as many reasoning steps to finish the same tasks. By sticker price alone, GPT-4.1 should win easily. The explanation? Caching — something most routing discussions ignore entirely. Agent workloads tend to reuse large chunks of context across steps. When cache hit rates are high, effective input costs drop dramatically. Sonnet’s lower cache-read pricing meant it benefited disproportionately from this pattern, enough to overcome both its higher base pricing and its longer trajectories. The takeaway: actual cost depends on the interaction between the model, the workload, and the serving infrastructure. A router that only looks at pricing sheets is optimizing against the wrong numbers. 2. Complexity Is More Than Task Difficulty A common routing strategy is to estimate how hard a task is and send harder tasks to stronger models. Intuitive, but it breaks down in two ways. First, difficulty is often invisible at routing time. A request like "summarize this contract" looks simple, but might trigger retrieval, compliance checks, tool use, and multiple rounds of refinement before it’s done. Meanwhile, a highly technical prompt might be handled efficiently by a smaller specialized model. You often don’t know how hard a task actually is until execution is underway. Second, even if you could perfectly estimate difficulty, it’s only one signal among many. In production, routers need to balance cost, latency, model specialization, and reliability simultaneously. Enterprise deployments pile on more: compliance requirements, data residency rules, privacy constraints, approved model lists. A task that would ideally go to one model might need to go elsewhere because of governance — and the router has to handle that gracefully. Routers aren’t solving one problem. They’re constantly juggling cost, quality, latency, compliance, and reliability all at once. 3. Latency Is More Than Model Speed It’s tempting to think about latency purely in terms of model size — bigger models are slower, smaller ones are faster. But what the user actually experiences depends on much more than that. Routing itself adds overhead. Infrastructure factors — which hardware a model is running on, whether the cache is warm, how busy the endpoint is — often dominate end-to-end response times. A theoretically faster model can still produce a slower experience if the serving conditions aren’t right. Then there’s routing granularity. Routing once per task adds minimal overhead. But routing at every step — which gives you more flexibility to adapt mid-execution — means every additional decision point introduces latency and operational complexity. A router that ignores the serving system is optimizing against the wrong reality. So How Did We Handle This? These lessons shaped how we built our router. The key shift: we stopped treating routing as a classification problem and started treating it as an optimization problem. Rather than asking "which model is best for this task?", our algorithm optimizes across cost, quality, and latency simultaneously — while staying lightweight enough to avoid becoming a bottleneck itself. The figure below shows the result on the AppWorld Test Challenge with a CodeAct agent. Each blue square is a different configuration of our router, tracing out a cost-accuracy frontier. The important thing isn't any single point — it's that the router gives you a range of operating points to choose from depending on whether you want to prioritize cost, latency, or accuracy. Configuration 1 (latency-optimized) lands at 84% accuracy for $93 and 83s — a 21% cost reduction and 9% latency reduction compared to running Opus alone, with only a 4% accuracy drop. Configuration 2 pushes cost even lower. Notice that a standard difficulty-based router (the teal diamond) lands in a similar accuracy range but at higher cost — it doesn't explore the full tradeoff space the way an optimization-based approach can. And because the optimization itself is lightweight (roughly 6 ms and 2 kB of memory per task), the router doesn't become the bottleneck we warned about earlier. The Bigger Picture The lesson we took away from this work is that routing isn’t really about choosing models. It’s about optimizing systems. Models are one variable — an important one, but just one among caching behavior, infrastructure state, compliance constraints, and workload patterns. When routing works well, it’s rarely because it found the "best" model for a given task. It’s because it found the best operating point for the entire system. That’s a harder problem than classification, but it’s the one worth solving. We’ll be sharing more about the technical details behind our approach in a follow-up post. In the meantime, if you’re building routing into your own agentic systems, we’d love to hear what tradeoffs you’re running into. Acknowledgement This post was influenced by numerous conversations with colleagues, whose thoughtful questions, feedback, and insights helped refine our thinking. More from this author ScarfBench: Benchmarking AI Agents for Enterprise Java Framework Migration 24 June 30, 2026 Build real agentic apps using CUGA: two dozen working examples on a lightweight harness 38 June 23, 2026 Community EditPreview Upload images, audio, and videos by dragging in the text input, pasting, or clicking here. Tap or paste here to upload images Comment · Sign up or log in to comment Upvote 3
Related
相關文章

阿里發實時語音交互模型!毫秒級響應不降智,還能邊聽邊打斷
阿里雲推出即時語音互動模型Qwen-Audio-3.0-Realtime,具備毫秒級回應、自主工具呼叫、情感表達及可打斷對話等能力。該模型透過在線策略蒸餾與多教師蒸餾技術,在語音問答、指令遵循等多項基準測試中表現領先,並支援口語化輸入與上下文連貫對話。

OpenAI都做不好,AI瀏覽器還有前途嗎?
OpenAI 於 2025 年 10 月正式推出的 AI 瀏覽器 ChatGPT Atlas,曾一度被視為翻轉上網體驗的關鍵產品。然而不到一年時間,這款瀏覽器不僅未能撼動 Google Chrome 的地位,反而即將走入歷史。OpenAI 日前宣布,ChatGPT Atlas 將於 2026 年 8 月 9 日停止服務,其核心功能將整合至 ChatGPT 桌面應用程式中。

超 300 款 AI 產品將在 2026 世界 AI 大會首發,上海世博展覽館已進入最後布展調試階段
2026世界人工智能大會將於7月17日至20日在上海舉行,超過300款AI產品將在大會全球首發。上海世博展覽館已進入最後布展調試階段,本次大會採用「三地四館」模式,匯集1100多家參展企業。

本田美國多款車型將集成谷歌 Gemini,可使用自然語言進行交流
美國本田宣布將谷歌 Gemini 整合進多款車型,駕駛員無需使用死板命令,即可透過自然語言與 AI 互動。Gemini 能處理複雜細節和多重指令,並會隨著使用自動優化,提升對話體驗。此功能支援 Civic、Accord、CR-V 等 2023 年後的多款車型。

消息稱豆包 AI 手機今年將發佈多款機型,由字節跳動聯閤中興努比亞打造
首頁 > 數碼之家>智能手機 消息稱豆包 AI 手機今年將發佈多款機型,由字節跳動聯合中興努比亞打造 2026/7/15 21:23:27 來源:IT之家 作者:沁滄(實習) 責編:沁滄 評論: 感謝IT之家網友 Autumn_Dream、風見暉一、HH_KK、烏蠅哥的左手 的線索投遞!
