arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2504.15922cs.SE
收藏

支持工业数据多标签分类的语言模型

Language Models to Support Multi-Label Classification of Industrial Data

Waleed Abdeen, Michael Unterkalmsteiner, Krzysztof Wnuk, Alessio Ferrari, Panagiota Chatzipetrou

AI总结:

本文研究零样本学习在多标签工业需求分类中的应用,比较多种语言模型,发现小参数模型优于大模型,并提出新度量Dn以更好评估层次分类性能。

摘要:

多标签需求分类是一项具有挑战性的任务,尤其是在处理不同抽象级别的众多类别时。当可用于训练监督分类器的需求数量有限时,困难会增加。零样本学习(ZSL)不需要训练数据,并且可能解决这个问题。本文研究了零样本分类器(ZSCs)在多标签工业数据集上的性能。我们专注于根据为支持需求追踪而设计的分类法对需求进行分类。我们比较了使用不同嵌入的多种ZSC变体,包括9个参数数量减少的语言模型(LMs)(最多3B),例如BERT,以及5个参数数量较多的大型语言模型(LLMs)(最多70B),例如Llama。我们的真实数据包括来自6个输出空间的377个需求和1968个标签。在评估中,我们采用了传统指标,即精确率、召回率、F1和$F_β$,以及一种新颖的标签距离度量Dn。这旨在更好地捕捉分类的层次性质,并提供对结果与真实数据距离的更细致评估。1) 在6个输出空间中的5个上,表现最好的模型是T5-xl,最大$F_β$ = 0.78,Dn = 0.04,而BERT base在一个案例中优于其他模型,最大$F_β$ = 0.83,Dn = 0.04。2) 参数规模较小的LMs比LLMs产生最佳分类结果。因此,在实践中解决这个问题是可行的,因为只需要有限的计算能力。3) 模型架构(自编码、自回归和句子到句子)显著影响分类器的性能。我们得出结论,使用ZSL进行多标签需求分类提供了有希望的结果。我们还提出了一种新颖的度量标准,可用于为此问题选择表现最佳的模型。

英文摘要:

Multi-label requirements classification is a challenging task, especially when dealing with numerous classes at varying levels of abstraction. The difficulties increases when a limited number of requirements is available to train a supervised classifier. Zero-shot learning (ZSL) does not require training data and can potentially address this problem. This paper investigates the performance of zero-shot classifiers (ZSCs) on a multi-label industrial dataset. We focuse on classifying requirements according to a taxonomy designed to support requirements tracing. We compare multiple variants of ZSCs using different embeddings, including 9 language models (LMs) with a reduced number of parameters (up to 3B), e.g., BERT, and 5 large LMs (LLMs) with a large number of parameters (up to 70B), e.g., Llama. Our ground truth includes 377 requirements and 1968 labels from 6 output spaces. For the evaluation, we adopt traditional metrics, i.e., precision, recall, F1, and $F_β$, as well as a novel label distance metric Dn. This aims to better capture the classification's hierarchical nature and provides a more nuanced evaluation of how far the results are from the ground truth. 1) The top-performing model on 5 out of 6 output spaces is T5-xl, with maximum $F_β$ = 0.78 and Dn = 0.04, while BERT base outperformed the other models in one case, with maximum $F_β$ = 0.83 and Dn = 0.04. 2) LMs with smaller parameter size produce the best classification results compared to LLMs. Thus, addressing the problem in practice is feasible as limited computing power is needed. 3) The model architecture (autoencoding, autoregression, and sentence-to-sentence) significantly affects the classifier's performance. We conclude that using ZSL for multi-label requirements classification offers promising results. We also present a novel metric that can be used to select the top-performing model for this problem

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

↑