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

BugMentor:使用结构化信息检索和神经文本生成从软件缺陷报告中生成后续问题的答案

BugMentor: Generating Answers to Follow-up Questions from Software Bug Reports using Structured Information Retrieval and Neural Text Generation

Usmi Mukherjee, Mohammad Masudur Rahman

AI总结:

本文提出BugMentor,结合结构化信息检索与神经文本生成(如Mistral),从历史相关缺陷报告中提取上下文以自动生成后续问题的答案,在多项指标上显著优于基线,并经开发者研究验证其答案更准确、精确、简洁且有用。

摘要:

软件缺陷报告通常缺乏关键信息(例如重现步骤),这使得缺陷解决具有挑战性。开发者因此提出后续问题以获取额外信息。然而,根据现有证据,缺陷报告者通常在回答这些问题时面临困难,这导致缺陷报告在未获解决的情况下被过早关闭。最近的研究建议提供后续问题来支持开发者,但回答后续问题仍然是一个重大挑战。在本文中,我们提出了BugMentor,这是一种结合结构化信息检索和神经文本生成(例如Mistral)的新颖方法,用于生成后续问题的适当答案。我们的技术识别与给定缺陷报告相关的历史缺陷报告,捕获上下文信息,然后利用它来生成答案。我们使用包括BLEU分数和语义相似度在内的四个适当指标,将生成的答案与真实答案进行评估。我们获得了高达72的BLEU分数和高达92的语义相似度,这表明根据Google的AutoML Translation文档,我们的技术能够为后续问题生成可理解且优质的答案。我们的技术还以具有统计学显著性的优势优于四个现有基线。我们还进行了一项涉及23名参与者的开发者研究,其中发现我们技术生成的答案更准确、更精确、更简洁且更有用。

英文摘要:

Software bug reports often lack crucial information (e.g., steps to reproduce), which makes bug resolution challenging. Developers thus ask follow-up questions to capture additional information. However, according to existing evidence, bug reporters often face difficulties answering them, which leads to the premature closing of bug reports without any resolution. Recent studies suggest follow-up questions to support the developers, but answering the follow-up questions still remains a major challenge. In this paper, we propose BugMentor, a novel approach that combines structured information retrieval and neural text generation (e.g., Mistral) to generate appropriate answers to the follow-up questions. Our technique identifies the past relevant bug reports to a given bug report, captures contextual information, and then leverages it to generate the answers. We evaluate our generated answers against the ground truth answers using four appropriate metrics, including the BLEU Score and the Semantic Similarity. We achieve a BLEU Score of up to 72 and a Semantic Similarity of up to 92, indicating that our technique can generate understandable and good answers to the follow-up questions according to Google's AutoML Translation documentation. Our technique also outperforms four existing baselines with a statistically significant margin. We also conduct a developer study involving 23 participants where the answers from our technique were found to be more accurate, more precise, more concise and more useful.

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

↑