arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2504.18804cs.SEcs.AI
收藏

我们能使用LLM提升缺陷报告质量吗?:一项基于LLM的缺陷报告生成的实证研究

Can We Enhance Bug Report Quality Using LLMs?: An Empirical Study of LLM-Based Bug Report Generation

University of Calgary(卡尔加里大学)

Jagrit Acharya, Gouri Ginde

AI总结:

本文探讨利用指令微调LLM将非结构化缺陷报告自动转化为结构化报告,发现微调Qwen 2.5在CTQRS等指标上优于ChatGPT等模型,并能有效泛化至未见项目,显著降低开发人员手工成本。

摘要:

缺陷报告包含开发人员对软件缺陷进行分类和修复所需的信息。然而,不清晰、不完整或模棱两可的信息可能导致延误,并在缺陷分类和解决上耗费过多人工。本文探讨指令微调的大型语言模型(LLMs)能否自动将随意的、非结构化的缺陷报告转化为符合标准模板的高质量结构化缺陷报告。我们评估了三个开源指令微调LLM(Qwen 2.5、Mistral和Llama 3.2)与ChatGPT-4o的表现,测量了在CTQRS、ROUGE、METEOR和SBERT等既定指标上的性能。实验表明,微调后的Qwen 2.5的CTQRS得分为77%,优于微调后的Mistral(71%)、Llama 3.2(63%)以及3-shot学习中的ChatGPT(75%)。进一步分析显示,Llama 3.2在检测缺失字段(特别是预期行为和实际行为)方面准确率更高,而Qwen 2.5在捕获重现步骤上表现更优,F1分数为76%。对其他流行项目(如Eclipse、GCC)的模型额外测试表明,我们的方法泛化良好,在未见项目的缺陷报告中CTQRS高达70%。这些发现突显了指令微调在自动化结构化缺陷报告生成方面的潜力,可减少开发人员的手工工作并简化软件维护流程。

英文摘要:

Bug reports contain the information developers need to triage and fix software bugs. However, unclear, incomplete, or ambiguous information may lead to delays and excessive manual effort spent on bug triage and resolution. In this paper, we explore whether Instruction fine-tuned Large Language Models (LLMs) can automatically transform casual, unstructured bug reports into high-quality, structured bug reports adhering to a standard template. We evaluate three open-source instruction-tuned LLMs (\emph{Qwen 2.5, Mistral, and Llama 3.2}) against ChatGPT-4o, measuring performance on established metrics such as CTQRS, ROUGE, METEOR, and SBERT. Our experiments show that fine-tuned Qwen 2.5 achieves a CTQRS score of \textbf{77%}, outperforming both fine-tuned Mistral (\textbf{71%}), Llama 3.2 (\textbf{63%}) and ChatGPT in 3-shot learning (\textbf{75%}). Further analysis reveals that Llama 3.2 shows higher accuracy of detecting missing fields particularly Expected Behavior and Actual Behavior, while Qwen 2.5 demonstrates superior performance in capturing Steps-to-Reproduce, with an F1 score of 76%. Additional testing of the models on other popular projects (e.g., Eclipse, GCC) demonstrates that our approach generalizes well, achieving up to \textbf{70%} CTQRS in unseen projects' bug reports. These findings highlight the potential of instruction fine-tuning in automating structured bug report generation, reducing manual effort for developers and streamlining the software maintenance process.

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

↑