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

代理如何以及为何能够识别引入缺陷的提交

LLM-Based Agents for Identifying Bug-Introducing Commits

MPI-SP(马克斯·普朗克软件系统研究所);CISPA(赛帕信息安全卓越中心)

Niklas Risse, Marcel Böhme

AI总结:

本文探讨了基于LLM的代理如何通过搜索候选提交提升识别引入缺陷提交的性能,提出了一种简单的代理工作流程,并揭示了代理在搜索中的有效性及对缺陷检测的潜在影响。

摘要:

Śliwerski, Zimmermann, and Zeller (SZZ) 获得2026年ACM SIGSOFT影响力奖,因其提出:何时更改会引发修复?他们的2005年论文成为识别从修复提交中识别引入缺陷的更改的广泛方法的基础。但即使经过二十年的发展,2025年最佳方法在最流行的Linux内核数据集上的F1分数仅提高10个百分点。本文揭示了基于LLM的代理如何显著提升识别引入缺陷提交的性能,提出了一种基于搜索候选提交的简单代理工作流程,并发现其将F1分数从0.64提升到0.81,优于原始2005方法(0.54)和先前的SOTA(0.64)。此外,本文还揭示了代理为何如此成功的原理:它们从修复提交的diff和信息中推导出短的可grep模式,并利用这些模式在大型候选集中有效搜索和识别引入缺陷的提交。最后,本文还讨论了这些见解如何可能推动缺陷检测、根本原因理解和修复的进一步进展。

英文摘要:

Śliwerski, Zimmermann, and Zeller (SZZ) just won the 2026 ACM SIGSOFT Impact Award for asking: When do changes induce fixes? Their paper from 2005 served as the foundation for a wide array of approaches aimed at identifying bug-introducing changes (or commits) from fix commits in software repositories. But even after two decades of progress, the best-performing approach from 2025 yields a modest increase of 10 percentage points in F1-score on the most popular Linux kernel dataset. In this paper, we uncover how and why LLM-based agents can substantially advance the state-of-the-art in identifying bug-introducing commits from fix commits. We propose a simple agentic workflow based on searching a set of candidate commits and find that it raises the F1-score from 0.64 to 0.81 on the most popular Linux kernel dataset, a bigger jump than between the original 2005 method (0.54) and the previous SOTA (0.64). We also uncover why agents are so successful: They derive short greppable patterns from the fix commit diff and message and use them to effectively search and find bug-introducing commits in large candidate sets. Finally, we also discuss how these insights might enable further progress in root cause understanding and repair.

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

↑