BRQGen:面向缺陷报告的自适应完整性评估与跟进问题生成
BRQGen: Towards Adaptive Completeness Assessment and Follow-Up Question Generation for Bug Reports
AI总结:
本研究提出BRQGen框架,可自适应评估缺陷报告完整性并按需生成跟进问题,在新数据集上验证了其性能,相关模型在完整性评估和问题覆盖上表现出不同效果。
摘要:
许多缺陷报告缺乏复现问题所需的必要信息。早期研究中,大型语言模型被用于生成跟进问题以完善不完整的报告,但这类模型会生成固定数量的问题,无论报告是否存在信息缺失。我们提出BRQGen,这是一个迭代框架,仅在必要时识别缺陷报告中缺失或模糊的信息并生成针对性的跟进问题,无信息缺口的报告则被归类为信息充足。当报告作者回复时,BRQGen会评估回复是否提供了所需信息,并针对任何暴露的缺口生成进一步问题。我们从Home Assistant和Brave Browser中整理了一个包含429份不完整缺陷报告的新数据集,每份报告至少包含一条维护人员的跟进问题,每个问题都映射到作者的回复,并被分配一个标签,表明所请求的信息是否可通过问题模板直接提供。早期维护人员的请求与作者回复相关联,而延迟请求则与无回复相关联。在回复的作者中,一小时内的请求在Home Assistant中收到的中位回复时间为0.52小时,在Brave Browser中为1.45小时;而四小时后的请求对应的中位回复时间分别为9.76小时和13.49小时。BRQGen覆盖了1073个真实跟进问题的35.4%(Qwen 3.8 Flash)至51.8%(DeepSeek V4.1 Flash)。DeepSeek V4.1 Flash成功提出了所有详细问题的45.7%和所有通用问题的63.9%。Gemini 3 Flash Preview在完整性评估中达到最高宏F1值49.3%,但事后分析显示,仅针对高严重程度的缺口时,Qwen 3.8 Flash达到73.6%的宏F1分数。当至少一个识别出的缺口具有高严重程度时,完整性评估会得到改善,且几乎所有真实问题都在前两次迭代中被捕获。
英文摘要:
Many bug reports lack the necessary information required to reproduce issues. In early studies, large language models have been employed to generate follow-up questions to enhance incomplete reports. However, they ask a fixed number of questions regardless of whether the report is incomplete. We propose BRQGen, an iterative framework that identifies missing or ambiguous information in bug reports and generates targeted follow-up questions, only if necessary. Reports with no identified gaps are classified as sufficient. When the author responds, BRQGen evaluates whether the answers provide the requested information and generates further questions for any exposed gaps. We curated a novel dataset of 429 incomplete bug reports from Home Assistant and Brave Browser, each containing at least one maintainer follow-up question. Each question is mapped to the author's answer and assigned a label indicating whether the requested information could have been provided directly through the issue template. Earlier maintainer requests were associated with author responses, whereas delayed requests were associated with no response. Among responding authors, requests within one hour received median replies after 0.52 hours in Home Assistant and 1.45 hours in Brave, versus 9.76 and 13.49 hours after four hours. BRQGen covered 35.4% (Qwen 3.8 Flash) to 51.8% (DeepSeek V4.1 Flash) of the 1,073 ground-truth follow-up questions. DeepSeek V4.1 Flash managed to ask 45.7% of all detailed questions and 63.9% of all generic questions. Gemini 3 Flash Preview reached the highest macro-F1 for completeness assessment of 49.3%, but with a post-hoc analysis by getting only the gaps with high severities, Qwen 3.8 Flash reaches 73.6% macro-F1 score. Completeness assessment improved when at least one identified gap had high severity, and nearly all ground-truth questions were captured within the first two iterations.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。