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

LLM能否揭开Bug报告的神秘面纱?

Can LLMs Demystify Bug Reports?

Laura Plein, Tegawendé F. Bissyandé

AI总结:

本研究针对现有工具难以自动处理自然语言Bug报告的问题,用Defects4J基准测试ChatGPT,发现其能复现50%的报告Bug,展现了人机协同处理Bug的应用潜力。

摘要:

Bug的棘手程度众所周知:它们会拖慢软件用户的使用速度,还会让开发者耗费大量时间进行排查。当用户必须用自然语言提交Bug报告时,这些挑战会进一步加剧。实际上,我们目前缺乏可靠的工具来自动处理已报告的Bug(即实现Bug的分析、复现和修复)。随着ChatGPT等大语言模型(LLM)在包括软件工程在内的各类任务中展现出的应用前景,我们提出疑问:如果ChatGPT能够理解Bug报告并复现Bug,会带来怎样的效果?这一问题是本研究的核心关注点。为评估ChatGPT是否具备捕捉Bug报告语义的能力,我们采用了广泛使用的Defects4J基准及其配套的Bug报告开展实验。研究结果表明,ChatGPT能够厘清并复现50%的已报告Bug。ChatGPT可自动处理半数已报告Bug的这一能力,显示出将机器学习应用于Bug处理方向的可观潜力——该方向仅需人类参与提交Bug报告即可。

英文摘要:

Bugs are notoriously challenging: they slow down software users and result in time-consuming investigations for developers. These challenges are exacerbated when bugs must be reported in natural language by users. Indeed, we lack reliable tools to automatically address reported bugs (i.e., enabling their analysis, reproduction, and bug fixing). With the recent promises created by LLMs such as ChatGPT for various tasks, including in software engineering, we ask ourselves: What if ChatGPT could understand bug reports and reproduce them? This question will be the main focus of this study. To evaluate whether ChatGPT is capable of catching the semantics of bug reports, we used the popular Defects4J benchmark with its bug reports. Our study has shown that ChatGPT was able to demystify and reproduce 50% of the reported bugs. ChatGPT being able to automatically address half of the reported bugs shows promising potential in the direction of applying machine learning to address bugs with only a human-in-the-loop to report the bug.

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

↑