arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2604.10481cs.SEcs.CL
收藏

PatchRecall: 基于补丁的检索用于自动化程序修复

PatchRecall: Patch-Driven Retrieval for Automated Program Repair

Mahir Labib Dihan, Faria Binta Awal, Md. Ishrak Ahsan

AI总结:

PatchRecall通过结合代码库检索与历史检索策略,在提升召回率的同时保持简洁,实验表明其在SWE-Bench上实现了更高的召回率且不显著增加检索文件数量,从而提升自动化程序修复效果。

摘要:

从大型代码库中检索正确的文件集是自动化程序修复(APR)中的关键步骤。高召回率是必要的,但单纯增加检索文件数量会引入噪声并降低效率。为了解决这一权衡问题,我们提出了PatchRecall,一种混合检索方法,平衡召回与简洁性。我们的方法结合了两种互补策略:(1)代码库检索,通过将当前问题描述与代码库匹配以显示潜在相关文件;(2)基于历史的检索,利用相似的过去问题来识别编辑文件作为候选目标。来自两种策略的候选文件被合并并重新排序以产生最终的检索集。在SWE-Bench上的实验表明,PatchRecall在不显著增加检索文件数量的情况下实现了更高的召回率,从而更有效地进行APR。

英文摘要:

Retrieving the correct set of files from a large codebase is a crucial step in Automated Program Repair (APR). High recall is necessary to ensure that the relevant files are included, but simply increasing the number of retrieved files introduces noise and degrades efficiency. To address this tradeoff, we propose PatchRecall, a hybrid retrieval approach that balances recall with conciseness. Our method combines two complementary strategies: (1) codebase retrieval, where the current issue description is matched against the codebase to surface potentially relevant files, and (2) history-based retrieval, where similar past issues are leveraged to identify edited files as candidate targets. Candidate files from both strategies are merged and reranked to produce the final retrieval set. Experiments on SWE-Bench demonstrate that PatchRecall achieves higher recall without significantly increasing retrieved file count, enabling more effective APR.

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

↑