|国家预印本平台
首页|PAGENT: Learning to Patch Software Engineering Agents

PAGENT: Learning to Patch Software Engineering Agents

PAGENT: Learning to Patch Software Engineering Agents

来源:Arxiv_logoArxiv
英文摘要

LLM Agents produce patches automatically to resolve an issue. However, they can generate inaccurate patches. Little is known about the root causes behind those failed patches or how those could be fixed. This paper reports an empirical study of the failed patches generated by seven top LLM code agents. We collected 114 issues from the SWE-bench Lite dataset that remained unresolved across the agents. The seven agents produced a total of 769 failed patches for those issues, which we checked with a combination of GPT-4o and manual analysis. We present a taxonomy of the failure reasons across the patches. The taxonomy contains six categories, with several sub-categories under each category. For example, a frequently observed category is the inability of an LLM to correctly infer/produce the appropriate variable type in the produced patch. As a first step towards addressing such type-related errors, we designed PAGENT (Patch Agent). PAGENT utilizes program analysis techniques like CFG creation and exploration to infer the type of information of a patch. PAGENT does this by applying repository-level static code analysis techniques. Then, PAGENT refines the inferred type by further utilizing an LLM-based inference technique. We tested PAGENT on all 127 type-related failed patches from the top three agents in our study. PAGENT could fix 29 of the 127 failed patches.

Haoran Xue、Gias Uddin、Song Wang

计算技术、计算机技术

Haoran Xue,Gias Uddin,Song Wang.PAGENT: Learning to Patch Software Engineering Agents[EB/OL].(2025-06-21)[2025-07-16].https://arxiv.org/abs/2506.17772.点此复制

评论