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

面向非功能需求分类并结合可解释AI的基准数据集与大语言模型比较

A Benchmark Dataset And LLMs Comparison For NFR Classification With Explainable AI

Islamic University of Technology(伊斯兰技术大学)

Esrat Ebtida Sakib, MD Ahnaf Akib, Md Muktadir Mazumder, Maliha Noushin Raida, Md. Mohsinul Kabir

AI总结:

该研究构建增强型NFR分类基准数据集,并比较六种LLM在精确率、召回率、F1及LIME可解释性指标上的表现,Gemma-2综合最优、Phi-3解释命中最高。

摘要:

非功能需求(Non-Functional Requirements,NFRs)在决定软件系统的整体质量和用户满意度方面发挥着关键作用。准确识别和分类NFRs对于确保软件满足性能、可用性和可靠性预期至关重要。然而,从文档中人工识别NFRs既耗时又容易出错,因此需要自动化解决方案。在实施任何自动化解决方案之前,一个稳健且全面的数据集必不可少。为构建这样的数据集,我们从各类项目章程和开源软件文档中收集NFRs。这提升了一个既有NFR数据集的技术深度和可用性。我们将NFRs划分为多个子类,并使用广泛采用的大语言模型识别需求,以促进自动化。在对NFRs进行分类后,我们使用精确率、召回率、F1分数和lime分数等多种评估指标,比较了所选LLM(包括RoBERTa、CodeBERT、Gemma-2、Phi-3、Mistral-8B和Llama-3.1-8B)的分类结果。在这些模型中,Gemma-2取得最佳结果,精确率为0.87、召回率为0.89、F1分数为0.88,lime命中得分为80分中的78分。Phi-3紧随其后,精确率为0.85、召回率为0.87、F1分数为0.86,并取得最高的lime命中得分79分。通过改进上下文基础,这种整合增强了模型对技术层面和用户需求的理解。

英文摘要:

Non-Functional Requirements (NFRs) play a critical role in determining the overall quality and user satisfaction of software systems. Accurately identifying and classifying NFRs is essential to ensure that software meets performance, usability, and reliability expectations. However, manual identification of NFRs from documentation is time-consuming and prone to errors, necessitating automated solutions. Before implementing any automated solution, a robust and comprehensive dataset is essential. To build such a dataset, we collected NFRs from various Project Charters and Open Source Software Documentation. This enhanced the technical depth and usability of an already existing NFR dataset. We categorized NFRs into sub-classes and identified needs using widely used Large Language Models to facilitate automation. After classifying the NFRs, we compared the classification results of the selected LLMs: RoBERTa, CodeBERT, Gemma-2, Phi-3, Mistral-8B, and Llama-3.1-8B using various evaluation metrics, including precision, recall, F1-score, and lime scores. Among these models, Gemma-2 achieved the best results with a precision of 0.87, recall of 0.89, and F1-score of 0.88, alongside a lime hit score of 78 out of 80. Phi-3 closely followed with a precision of 0.85, recall of 0.87, F1-score of 0.86, and the highest lime hit score of 79. By improving the contextual foundation, this integration enhanced the model's comprehension of technical aspects and user requirements.

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

↑