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

SWE-VERIFIER:面向高性价比编码智能体的选择性验证

SWE-VERIFIER: Selective Verification for Cost-Efficient Coding Agents

University of Michigan(密歇根大学);The University of Texas at Austin(德克萨斯大学奥斯汀分校)

Kaijian Zou, Vaibhav Chennareddy, Yunxiang Zhang, Naihao Deng, Longju Bai, Jiaxin Pei, Rada Mihalcea, Lu Wang

AI总结:

提出SWE-Verifier轻量级模型,选择性触发编码智能体的候选采样与验证,在成本仅小幅增加的情况下,提升了MiniMax-M2.7和DeepSeek-V4-Flash的编码解决率,且仅验证不到4%的步骤。

摘要:

编码智能体在生成动作和处理长交互历史时会消耗大量计算资源,错误的动作选择会将智能体引导至低价值状态,浪费计算并增加API成本。采样并验证备选动作可提升智能体决策,但在每一步都应用该流程会带来大量开销。我们提出SWE-Verifier,一种轻量级生成模型,可选择性触发候选采样与验证:它对编码智能体提出的动作打分,判断何时需要额外候选采样,再对生成的动作排序后执行。我们基于Qwen3.5-4B,利用包含对比动作、对应环境观测以及规则引导教师评分的偏好数据训练SWE-Verifier。在mini-swe-agent工具下,SWE-Verifier在MiniMax-M2.7上的解决率从75.47%提升至77.20%,成本为原有的1.09倍;在未使用DeepSeek-V4-Flash的动作进行训练的情况下,该模型可泛化至DeepSeek-V4-Flash,使其解决率从72.60%提升至74.27%,成本为原有的1.13倍。在两种模型上,SWE-Verifier仅验证不到4%的步骤,且在成本显著低于轨迹基线和全步骤基线的同时,达到相当或更高的解决率。这些结果表明,选择性候选采样与轻量级验证可协同提升编码智能体的性能与推理效率。我们的模型、代码和数据可在该httpsURL获取。

英文摘要:

Coding agents spend substantial computation generating actions and processing long interaction histories. Poor action choices can steer agents into low-value states, wasting computation and increasing API costs. Sampling and verifying alternative actions can improve the agent's decisions, but applying this procedure at every step adds substantial overhead. We introduce SWE-Verifier, a lightweight generative model that selectively triggers candidate sampling and verification. It scores the coding agent's proposed action to determine when additional candidate sampling is needed, then ranks the resulting actions before execution. We train SWE-Verifier from Qwen3.5-4B using preference data that groups contrasting actions with their resulting environment observations and rubric-guided teacher scores. Using the mini-swe-agent harness, SWE-Verifier improves resolution from 75.47% to 77.20% on MiniMax-M2.7 at 1.09 times cost and generalizes to DeepSeek-V4-Flash without training on its actions, improving resolution from 72.60% to 74.27% at 1.13 times cost. Across both models, SWE-Verifier verifies fewer than 4% of steps and achieves comparable or higher resolution than the trajectory and all-step baselines at substantially lower cost. These results demonstrate that selective candidate sampling and lightweight verification provide complementary gains in coding-agent performance and inference efficiency. Our model, code, and data are available at https://github.com/zkjzou/SWE-Verifier.

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

相关深度报道

↑