利用路由信号引导软件代理在测试时探索与决策,提升修复成功率。
Disagree to Explore, Agree to Commit: Routing-Guided Test-Time Scaling for Software Agents

- 基于MoE路由轨迹实现无外部评判的探索与收敛控制
- 在SWE-bench上将修复率从44.9%提升至48.2%
- 适用于多模型、多规模下的测试时扩展,无需答案格式匹配
软件工程代理通过长而随机的工具调用序列解决仓库级任务,多次尝试常能发现单次运行遗漏的修复。测试时扩展困难在于补丁缺乏标准答案形式,且共享前缀的子动作存在相关性。本文研究是否可利用原生MoE路由轨迹,在无外部裁判或执行测试的情况下实现路径引导与选择。分析表明,路由提供稳健的行为信号;细粒度令牌读出与决策匹配的对比集可将其转化为有效控制。因此提出Risa(路由感知的导航与仲裁):在轨迹内,路由促进多样化探索并实现可控收敛;在独立采样轨迹间,关键位置的共识选择最终候选。在SWE-bench Verified上评估,使用开源稀疏MoE代理在不同规模与推理努力设置下进行测试。Risa的路由仲裁使gpt-oss系列宏平均修复率从均匀采样的44.9%提升至48.2%,无需答案字符串匹配即达成文本共识,并成功迁移至Qwen3.6,在500任务全基准上优于均匀选择并达到文本共识。
原文摘要 · Abstract (English)
Software-engineering agents solve repository-level tasks through long, stochastic tool-use trajectories, and repeated attempts often find fixes missed by one run. Test-time scaling is difficult because patches lack canonical answer forms, while sibling actions from a shared prefix are correlated. We study whether native MoE router traces can guide steering and selection without an external judge or selection-time test execution. Our analysis shows that routing provides a robust behavioral role signal; token-granular readouts and decision-matched comparison sets turn it into effective control. We therefore introduce Risa (Routing-Informed Steering and Arbitration): within trajectories, routing encourages diverse exploration and controlled convergence during patch commitment; across separately sampled trajectories, agreement at informative patch positions selects a final candidate. We evaluate on SWE-bench Verified using open-weight sparse MoE agents across scales and reasoning-effort settings. Risa's routing arbitration raises the macro-average resolved rate from 44.9% under uniform sampling to 48.2% on the gpt-oss family, matching text consensus without answer-string matching, and it transfers to Qwen3.6, where it improves on uniform choice and matches text consensus on the full 500-task benchmark.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。