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

生成式大语言模型在执行需求分类时的有效性如何?

How Effective are Generative Large Language Models in Performing Requirements Classification?

Imam Mohammad Ibn Saud Islamic University (IMSIU)(伊玛姆·莫哈梅德·伊本·萨乌德伊斯兰大学);University College Dublin (UCD)(都柏林大学学院);University of Manchester(曼彻斯特大学)

Waad Alhoshan, Alessio Ferrari, Liping Zhao

AI总结:

本研究评估了Bloom、Gemma和Llama三种生成式LLM在需求分类中的有效性,通过400余次实验发现提示设计和模型架构普遍重要,而数据集影响更具情境性,为优化模型部署提供了指导。

摘要:

近年来,基于 Transformer 的大语言模型(LLM)彻底改变了自然语言处理(NLP),生成式模型为需要上下文感知文本生成的任务开辟了新的可能性。需求工程(RE)领域也出现了大量将 LLM 用于不同任务的实验,包括追踪链接检测、法规合规性等。需求分类是 RE 中的一项常见任务。虽然像 BERT 这样的非生成式 LLM 已成功应用于此任务,但对生成式 LLM 的探索却十分有限。这一差距引发了一个重要问题:能够生成上下文感知输出的生成式 LLM 在需求分类中表现如何?在本研究中,我们探讨了三种生成式 LLM——Bloom、Gemma 和 Llama——在执行二元和多类需求分类时的有效性。我们设计了一项广泛的实验研究,涉及在三个广泛使用的数据集(PROMISE NFR、Functional-Quality 和 SecReq)上进行的超过 400 次实验。我们的研究得出结论:虽然提示设计和 LLM 架构等因素具有普遍重要性,但其他因素——如数据集变化——则具有更情境化的影响,具体取决于分类任务的复杂性。这一见解可以指导未来的模型开发和部署策略,重点优化提示结构,并将模型架构与任务特定需求对齐,以提高性能。

英文摘要:

In recent years, transformer-based large language models (LLMs) have revolutionised natural language processing (NLP), with generative models opening new possibilities for tasks that require context-aware text generation. Requirements engineering (RE) has also seen a surge in the experimentation of LLMs for different tasks, including trace-link detection, regulatory compliance, and others. Requirements classification is a common task in RE. While non-generative LLMs like BERT have been successfully applied to this task, there has been limited exploration of generative LLMs. This gap raises an important question: how well can generative LLMs, which produce context-aware outputs, perform in requirements classification? In this study, we explore the effectiveness of three generative LLMs-Bloom, Gemma, and Llama-in performing both binary and multi-class requirements classification. We design an extensive experimental study involving over 400 experiments across three widely used datasets (PROMISE NFR, Functional-Quality, and SecReq). Our study concludes that while factors like prompt design and LLM architecture are universally important, others-such as dataset variations-have a more situational impact, depending on the complexity of the classification task. This insight can guide future model development and deployment strategies, focusing on optimising prompt structures and aligning model architectures with task-specific needs for improved performance.

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

↑