paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Explaining Software Bugs Leveraging Code Structures in Neural Machine Translation

利用代码结构在神经机器翻译中解释软件缺陷
ICSE 2023 IEEE/ACM 45th International Conference on Software Engineering (ICSE)2023匹配度 3/10 · 该论文利用 Transformer 从 bug 修复提交中生成缺陷的自然语言解释,属于 AI for Software Engineering/缺陷理解,并非用户核心关注的静态分析、形式化验证、浮点程序分析或贝叶斯程序分析,也未涉及 LLM/Agent 改进程序分析。仅在“机器学习与程序语言”标签上部分重叠,与研究方向交叉较少。引用 21 inbox
Parvez Mahbub, Ohiduzzaman Shuvo, Mohammad Masudur Rahman
crossref: 2026-09-12dblp: 2026-09-12arxiv: 2026-09-12

AI 速览

一句话:提出 Bugsplainer,基于 Transformer 的生成模型,从 bug 修复提交中学习并利用代码结构生成软件 bug 的自然语言解释。

软件 bug 消耗大量开发时间与成本,但已有研究多聚焦于自动发现或修复 bug,鲜有工作自动向开发者解释 bug。本文提出 Bugsplainer,一种基于 Transformer 的生成模型,通过从大规模 bug 修复提交语料中学习,为软件 bug 生成自然语言解释。该模型能够利用源代码中的结构信息和缺陷模式来生成解释。作者使用三项性能指标进行评估,结果显示 Bugsplainer 能按 Google 标准生成可理解且良好的解释,并优于文献中的多个基线。此外,一项包含 20 名参与者的开发者研究表明,Bugsplainer 生成的解释比基线更准确、更精确、更简洁且更有用。

问题
软件 bug 的解释对开发者理解与修复缺陷至关重要,但现有研究较少关注自动生成 bug 的自然语言解释。
方法
提出 Bugsplainer,一种基于 Transformer 的生成模型,从大规模 bug 修复提交中学习,并利用源代码结构与缺陷模式生成 bug 解释。
评估
使用三项性能指标自动评估解释质量并与多个基线比较,同时开展 20 名开发者参与的实证研究评估解释的准确性、精确性、简洁性与有用性。
原文摘要(Abstract)

Software bugs claim ≈ 50 % of development time and cost the global economy billions of dollars. Once a bug is reported, the assigned developer attempts to identify and understand the source code responsible for the bug and then corrects the code. Over the last five decades, there has been significant research on automatically finding or correcting software bugs. However, there has been little research on automatically explaining the bugs to the developers, which is essential but a highly challenging task. In this paper, we propose Bugsplainer, a transformer-based generative model, that generates natural language explanations for software bugs by learning from a large corpus of bug-fix commits. Bugsplainer can leverage structural information and buggy patterns from the source code to generate an explanation for a bug. Our evaluation using three performance metrics shows that Bugsplainer can generate understandable and good explanations according to Google's standard, and can outperform multiple baselines from the literature. We also conduct a developer study involving 20 participants where the explanations from Bugsplainer were found to be more accurate, more precise, more concise and more useful than the baselines.

链接与引用

DOI 原文 · arXiv · PDF(开放获取) · DBLP

BibTeX
@inproceedings{abs-2212-04584,
  title = {Explaining Software Bugs Leveraging Code Structures in Neural Machine Translation},
  author = {Parvez Mahbub and Ohiduzzaman Shuvo and Mohammad Masudur Rahman},
  booktitle = {ICSE},
  year = {2023},
  doi = {10.1109/icse48619.2023.00063}
}