arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2607.00053cs.SEcs.AI
收藏

SWE-Router:多轮智能体软件工程任务中的路由

SWE-Router: Routing in Multi-turn Agentic Software Engineering Tasks

Seongho Son, Sangwoong Yoon, Jiahua Tang, Shuhan Wang, Lorenz Wolf, Ilija Bogunovic

AI总结:

提出SWE-Router,一种基于价值的时间路由方法,通过让廉价模型探索几轮后根据部分轨迹决定是否升级到昂贵模型,在保持强模型大部分性能的同时大幅提升成本效率。

摘要:

嵌入多轮智能体框架的大型语言模型(LLM)正在重塑软件工程(SWE),但将每个任务路由到前沿模型是浪费的,因为许多问题可以通过廉价修复解决。现有的LLM路由器仅基于任务描述操作,这在智能体设置中继承了信息论贝叶斯误差下限:类似的问题可能隐藏着局部打字错误或多模块重构,而提示无法区分两者。我们引入了SWE-Router,一种基于价值的时间方法,让廉价模型运行几个探索轮次,读取产生的部分轨迹,然后决定是继续廉价处理还是升级到昂贵模型。我们提供了一个贝叶斯最优性定理,表明基于部分轨迹的条件化永远不会损害路由,并且当探索具有信息性时严格更好。在跨越当代成本-能力边界的弱模型和强模型LLM对中,我们展示了SWE-Router在保持强模型大部分性能的同时,大幅提高了SWE任务的成本效率。我们还发布了一个多LLM轨迹数据集,允许复现我们的轨迹级路由。

英文摘要:

Large language models (LLMs) embedded in multi-turn agentic harnesses are reshaping software engineering (SWE), but routing every task to a frontier model is wasteful when many issues admit cheap fixes. Existing LLM routers operate on the task description alone, which inherits an information-theoretic Bayes-error floor in agentic settings: a similar issue can hide either a localized typo or a multi-module refactor, and the prompt does not separate the two. We introduce SWE-Router, a value-based temporal approach that lets a cheap model run for a few exploratory turns and reads the resulting partial trajectory before deciding whether to continue cheaply or to escalate to an expensive model. We provide a Bayes-optimality theorem showing that conditioning on the partial trajectory never harms routing and is strictly better whenever exploration is informative. Across the LLM pairs of weak and strong models spanning the contemporary cost--capability frontier, we show that SWE-Router greatly improves the cost efficiency of SWE tasks, while maintaining the majority of the performances of the stronger model. We additionally release a multi-LLM trajectory dataset which allows reproduction of our trajectory-level routing.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑