arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2607.07593cs.SE
收藏

什么是适合人工智能代理的优质错误报告?

What Makes a Good Bug Report for an AI Agent?

University of Waterloo(滑铁卢大学);University of California, Irvine(加州大学尔湾分校)

Lara Khatib, Noble Saji Mathews, Meiyappan Nagappan, Pengyu Nie, Thomas Zimmermann

AI总结:

研究自动化程序修复代理的优质错误报告,通过统计建模和受控消融分析发现,代理受益于具体可执行且定位好的信息,与人类优质报告有别,如自然语言重现步骤等对代理作用不大,不同模型处理缺失信息方式有差异。

摘要:

自动化程序修复(APR)代理正从研究基准转向开发者工作流程,但仍始于为人类开发者编写的错误报告。虽数十年研究已明确对人类而言优质错误报告的要素,但这些特征是否适用于基于大语言模型的代理尚不明晰。我们通过两项分析研究此问题。首先,运用统计建模检查27个错误报告特征与87个修复代理尝试的433个SWE-bench验证问题的修复成功率之间的关联。发现修复建议、重现脚本、存储库源代码和定位信息与更高的解决可能性相关,而更长的报告则关联较低。其次,在SWE-bench Pro上对2个模型和17个问题陈述突变进行受控消融,在保持基础任务不变的情况下改变代理可用信息。发现两个模型都依赖定位线索和预期行为,结构变化 alone 会降低解决率。两个模型在处理缺失信息的方式上存在差异:Qwen搜索范围更广,Gemma则尽早做出合理诠释并据此修补。我们的发现表明,适合代理的优质错误报告与适合人类的报告有重叠但不同:代理从具体、可执行且定位良好的信息中受益最大,而一些长期为人类读者所强调的特质,如自然语言重现步骤和可读描述,贡献不大甚至与较低成功率相关。

英文摘要:

Automated program repair (APR) agents are transitioning from research benchmarks to developer workflows, yet they still begin with bug reports written for human developers. While decades of research have established what makes a good bug report for humans (e.g., steps to reproduce, stack traces), it remains unclear whether these features transfer to LLM-based agents. We study this question in two analyses. First, we use statistical modeling to examine associations between 27 bug-report features and repair success across 433 SWE-bench Verified issues attempted by 87 repair agents. We find that fix suggestions, reproduction scripts, repository source code, and localization info are associated with higher resolution likelihood, while longer reports are associated with lower odds. Second, we conduct controlled ablations across 2 models and 17 problem-statement mutations on SWE-bench Pro, varying the information available to an agent while holding the underlying task fixed. We remove or isolate selected bug-report content, delete fault-localization cues, and test structural changes that flatten lists or remove section headers. We find that both models depend on localization cues and expected behavior, and that structural changes alone can reduce solve rates, even without removing any content. The two models diverge in how they handle missing information: Qwen searches more widely and can exhaust its turn budget, while Gemma commits to a plausible interpretation early and patches on it. Our findings indicate that a good bug report for an agent overlaps with, but is not identical to, a good report for a human: agents benefit most from concrete, executable, and well-localized information, whereas some qualities long emphasized for human readers, such as natural language steps to reproduce and readable descriptions, contribute little or even correlate with lower success.

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

↑