arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2412.00959cs.SEcs.AI
收藏

生成式语言模型在需求工程应用中的潜力:对当前优势与局限性的洞察

Generative Language Models Potential for Requirement Engineering Applications: Insights into Current Strengths and Limitations

Rhineland-Palatinate Technical University of Kaiserslautern-Landau(莱茵兰-普法尔茨州凯撒斯劳滕-兰道技术大学);German Research Center for Artificial Intelligence GmbH(德国人工智能研究中心有限公司)

Summra Saleem, Muhammad Nabeel Asim, Ludger Van Elst, Andreas Dengel

AI总结:

本文通过4个需求工程基准数据集评估 ChatGPT 与 Gemini,分析专家提示影响,发现二者仅在问答上接近或超过最优方法,其余任务均落后于专用预测器。

摘要:

传统语言模型已在软件工程领域得到广泛评估,然而 ChatGPT 和 Gemini 的潜力尚未得到充分探索。为填补这一空白,本文提出一项综合案例研究,以调查这两种语言模型在开发各类需求工程应用方面的潜力。论文深入探讨了不同水平的专家知识提示对两种语言模型预测准确率的影响。在涵盖需求工程任务的4个不同公开基准数据集上,论文将两种语言模型的性能与现有任务专用机器/深度学习预测器及传统语言模型进行了比较。具体而言,本文使用了4个基准数据集:Pure(7,445个样本,需求抽取)、PROMISE(622个样本,需求分类)、REQuestA(300个问答(QA)对)以及 Aerospace 数据集(6,347个词,需求 NER 标注)。实验表明,与 ChatGPT 相比,Gemini 需要更谨慎的提示工程才能提供准确预测。此外,在需求抽取基准数据集上,最先进的 F1 分数为0.86,而 ChatGPT 和 Gemini 分别取得0.76和0.77。需求分类数据集上的最先进 F1 分数为0.96,两种语言模型均为0.78。在命名实体识别(NER)任务中,最先进的 F1 分数为0.92,ChatGPT 仅产生0.36,Gemini 为0.25。同样,在问答数据集上,最先进的 F1 分数为0.90,ChatGPT 和 Gemini 分别产生0.91和0.88。实验表明,Gemini 比 ChatGPT 需要更精确的提示工程。除问答外,两种模型在其他任务上的表现均不及当前最先进的预测器。

英文摘要:

Traditional language models have been extensively evaluated for software engineering domain, however the potential of ChatGPT and Gemini have not been fully explored. To fulfill this gap, the paper in hand presents a comprehensive case study to investigate the potential of both language models for development of diverse types of requirement engineering applications. It deeply explores impact of varying levels of expert knowledge prompts on the prediction accuracies of both language models. Across 4 different public benchmark datasets of requirement engineering tasks, it compares performance of both language models with existing task specific machine/deep learning predictors and traditional language models. Specifically, the paper utilizes 4 benchmark datasets; Pure (7,445 samples, requirements extraction),PROMISE (622 samples, requirements classification), REQuestA (300 question answer (QA) pairs) and Aerospace datasets (6347 words, requirements NER tagging). Our experiments reveal that, in comparison to ChatGPT, Gemini requires more careful prompt engineering to provide accurate predictions. Moreover, across requirement extraction benchmark dataset the state-of-the-art F1-score is 0.86 while ChatGPT and Gemini achieved 0.76 and 0.77,respectively. The State-of-the-art F1-score on requirements classification dataset is 0.96 and both language models 0.78. In name entity recognition (NER) task the state-of-the-art F1-score is 0.92 and ChatGPT managed to produce 0.36, and Gemini 0.25. Similarly, across question answering dataset the state-of-the-art F1-score is 0.90 and ChatGPT and Gemini managed to produce 0.91 and 0.88 respectively. Our experiments show that Gemini requires more precise prompt engineering than ChatGPT. Except for question-answering, both models under-perform compared to current state-of-the-art predictors across other tasks.

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

↑