DAIR.AI推文
微软研究:基于上下文感知的多轮智能体模型路由策略
微软提出一种面向多轮对话场景的上下文引导模型路由方法,通过在路由器中引入会话历史而非仅当前请求,实现成本感知的智能体任务分配。实验显示,在相同卸载率下,使用历史信息的路由器比仅看当前请求的路由器通过率高出3.3个百分点。研究还发现,从昂贵模型切换至廉价模型可在两次调用内回收提示缓存成本,而反向切换则无法盈亏平衡;随着会话变长,廉价模型的成本优势从6.8倍缩小至3.2倍。
译文
微软发表了一篇关于上下文引导模型路由的有趣论文。他们发现了一个巧妙的技巧,能够在多轮对话场景中,于用户回合层面实现成本感知的智能体模型路由。如果要在廉价模型和昂贵模型之间进行智能体回合的路由分配,建议将会话历史提供给路由器。微软在涉及电子表格的多轮智能体任务中测试了零样本路由方法。在相同的卸载率下,能够读取历史的比仅查看当前请求的路由器多完成了3.3个百分点的任务。提示缓存会为每次切换带来额外成本。从昂贵模型切换到廉价模型可在两次调用内收回其缓存成本;而在他们的测试中,从廉价模型切换到昂贵模型则未能持平。此外,在更长的会话中,廉价模型的成本优势也从6.8倍缩小至3.2倍。https://arxiv.org/abs/2610.19292 论文交流:https://academy.dair.ai/papers/whose-turn-is-it-context-guided-model-routing-for-stateful-agents-2610.19292
Interesting paper from Microsoft on context-guided model routing. They found a nice trick to achieve cost-aware model routing for agents in a multi-turn setting at the user-turn level. If you route agent turns between a cheap model and an expensive one, they suggest giving the router the session history. Microsoft tested zero-shot routing on multi-turn spreadsheet agents. At the same offloading rate, a router that reads the history passes 3.3 points more tasks than one that sees only the current request. Prompt caching adds a cost to every switch. Switching from the expensive model to the cheap one recovers its cache cost within two calls. Switching up did not break even in their tests. The cheap model's cost advantage also shrank from 6.8x to 3.2x on longer sessions. https://arxiv.org/abs/2610.19292 Chat with Paper: https://academy.dair.ai/papers/whose-turn-is-it-context-guided-model-routing-for-stateful-agents-2610.19292
