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

超越最终代码:对现实世界GitHub场景中软件开发代理的过程导向错误分析

Beyond Final Code: A Process-Oriented Error Analysis of Software Development Agents in Real-World GitHub Scenarios

Zhi Chen, Wei Ma, Lingxiao Jiang

AI总结:

本文通过分析3977个解决阶段轨迹和3931个测试阶段日志,揭示了软件开发代理在解决GitHub问题时的错误模式,发现Python执行错误与较低的解决率和更高的推理开销相关,并识别了影响基准公平性的三个bug。

摘要:

AI驱动的软件开发通过软件开发代理的出现迅速发展,这些代理利用大语言模型(LLMs)解决复杂的仓库级软件工程任务。这些代理不仅生成最终代码,还进行多步骤推理,利用各种工具进行代码修改和调试,并与执行环境交互以诊断和逐步解决这些问题。然而,现有评估主要集中在最终代码的静态分析上,难以深入理解代理的动态问题解决过程。为此,我们对8个顶级代理在SWE-Bench基准中500个GitHub问题上的3977个解决阶段轨迹和3931个测试阶段日志进行了深入实证研究。我们的探索性分析显示,问题解决阶段的Python执行错误与较低的解决率和增加的推理开销相关。我们识别了最常见的错误,如ModuleNotFoundError和TypeError,并突显了需要显著更多调试努力的困难错误,如OSError和数据库相关问题(如IntegrityError)。此外,我们发现了3个影响SWE-Bench平台公平性和准确性的bug;这些问题已向维护者报告并得到确认。为了促进透明度并推动未来研究,我们公开分享了我们的数据集和分析脚本。

英文摘要:

AI-driven software development has rapidly advanced with the emergence of software development agents that leverage large language models (LLMs) to tackle complex, repository-level software engineering tasks. These agents go beyond just generation of final code; they engage in multi-step reasoning, utilize various tools for code modification and debugging, and interact with execution environments to diagnose and iteratively resolve issues. However, most existing evaluations focus primarily on static analyses of final code outputs, yielding limited insights into the agents' dynamic problem-solving processes. To fill this gap, we conduct an in-depth empirical study on 3,977 solving-phase trajectories and 3,931 testing-phase logs from 8 top-ranked agents evaluated on 500 GitHub issues in the SWE-Bench benchmark. Our exploratory analysis shows that Python execution errors during the issue resolution phase correlate with lower resolution rates and increased reasoning overheads. We have identified the most prevalent errors -- such as ModuleNotFoundError and TypeError -- and highlighted particularly challenging errors like OSError and database-related issues (e.g., IntegrityError) that demand significantly more debugging effort. Furthermore, we have discovered 3 bugs in the SWE-Bench platform that affect benchmark fairness and accuracy; these issues have been reported to and confirmed by the maintainers. To promote transparency and foster future research, we publicly share our datasets and analysis scripts.

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

↑