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

模型大小重要吗?小型与大型语言模型在需求分类中的比较

Does Model Size Matter? A Comparison of Small and Large Language Models for Requirements Classification

University of Padova(帕多瓦大学);Software Engineering (SeSa) Lab, University of Salerno(软件工程(SeSa)实验室,萨勒诺大学);Universitat Politècnica de Catalunya(加泰罗尼亚理工大学);Lero, the Research Ireland Centre for Software, University of Limerick(爱尔兰软件研究中心(Lero), 奥斯曼大学);University College Dublin (UCD)(都柏林大学学院)

Mohammad Amin Zadenoori, Vincenzo De Martino, Jacek Dabrowski, Xavier Franch, Alessio Ferrari

AI总结:

本研究比较了三个大型语言模型与五个小型语言模型在需求分类任务上的性能,发现尽管大型模型F1分数平均高2%,但差异不显著,小型模型在召回率上甚至更优,且规模小至300倍,表明其是隐私、成本和本地部署方面更优的替代方案。

摘要:

[背景与动机] 大型语言模型(LLMs)在需求工程(RE)的自然语言处理(NLP)任务中表现出显著成果。然而,其使用受到高计算成本、数据共享风险以及对外部服务的依赖的制约。相比之下,小型语言模型(SLMs)提供了一种轻量级、可本地部署的替代方案。[问题] 目前尚不清楚在需求工程任务中,SLMs在准确性方面与LLMs相比表现如何。[结果] 我们的初步研究比较了八个模型,包括三个LLMs和五个SLMs,在需求分类任务上使用了PROMISE、PROMISE Reclass和SecReq数据集。结果表明,尽管LLMs的平均F1分数比SLMs高2%,但这一差异在统计上并不显著。SLMs在所有数据集上几乎达到了LLMs的性能,甚至在PROMISE Reclass数据集上的召回率上超过了它们,尽管其规模小至300倍。我们还发现,数据集特征对性能的影响比模型大小更为显著。[贡献] 我们的研究提供了证据,表明SLMs是LLMs在需求分类中的有效替代方案,在隐私、成本和本地可部署性方面具有优势。

英文摘要:

[Context and motivation] Large language models (LLMs) show notable results in natural language processing (NLP) tasks for requirements engineering (RE). However, their use is compromised by high computational cost, data sharing risks, and dependence on external services. In contrast, small language models (SLMs) offer a lightweight, locally deployable alternative. [Question/problem] It remains unclear how well SLMs perform compared to LLMs in RE tasks in terms of accuracy. [Results] Our preliminary study compares eight models, including three LLMs and five SLMs, on requirements classification tasks using the PROMISE, PROMISE Reclass, and SecReq datasets. Our results show that although LLMs achieve an average F1 score of 2% higher than SLMs, this difference is not statistically significant. SLMs almost reach LLMs performance across all datasets and even outperform them in recall on the PROMISE Reclass dataset, despite being up to 300 times smaller. We also found that dataset characteristics play a more significant role in performance than model size. [Contribution] Our study contributes with evidence that SLMs are a valid alternative to LLMs for requirements classification, offering advantages in privacy, cost, and local deployability.

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

↑