arrow
Return

Zero-shot learning for requirements classification: An exploratory study

delete2023-07-01
delete22
delete
OA
AI
W
Waad Alhoshan
A
Alessio Ferrari *
L
Liping Zhao *
DOI:10.1016/j.infsof.2023.107202delete
deleteOriginal
deleteShare
deleteSave
View PDF
Abstract

Abstract

En 中文
Context: Requirements engineering (RE) researchers have been experimenting with machine learning (ML) and deep learning (DL) approaches for a range of RE tasks, such as requirements classification, requirements tracing, ambiguity detection, and modelling. However, most of today's ML/DL approaches are based on supervised learning techniques, meaning that they need to be trained using a large amount of task-specific labelled training data. This constraint poses an enormous challenge to RE researchers, as the lack of labelled data makes it difficult for them to fully exploit the benefit of advanced ML/DL technologies.Objective: This paper addresses this problem by showing how a zero-shot learning (ZSL) approach can be used for requirements classification without using any labelled training data. We focus on the classification task because many RE tasks can be framed as classification problems.Methods: The ZSL approach used in our study employs contextual word-embeddings and transformer-based language models (LMs). We demonstrate this approach through a series of experiments to perform three classification tasks: (1) FR/NFR - classification functional requirements vs non-functional requirements; (2) NFR - identification of NFR classes; (3) Security - classification of security vs non-security requirements.Results: The study shows that the ZSL approach achieves an F1 score of 0.66 for the FR/NFR task. For the NFR task, the approach yields F1 similar to 0.72 - 0.80, considering the most frequent classes. For the Security task, F1 similar to 0.66. All of the aforementioned F1 scores are achieved with zero-training efforts.Conclusion: This study demonstrates the potential of ZSL for requirements classification. An important implication is that it is possible to have very little or no training data to perform classification tasks. The proposed approach thus contributes to the solution of the long-standing problem of data shortage in RE.
Keywords:
Zero-shot learning
Language models
Contextual word-embeddings
Requirements classification
Zero-shot text classification
Unsupervised learning
Multi-label classification
Transfer learning
Deep learning
Requirements engineering
AI for requirements engineering
AI for software engineering
AI Summary

AI Summary

Key information extracted from the uploaded paper, including a brief overview, abstract, background, key highlights, visual analysis, and future outlook.

Journal

Information and Software Technology cover
Information and Software Technology
IF:
4.3
Papers:
3.7K
Citations:
7.7K

Organization

I
imam mohammad ibn saud islamic university (imsiu)
Scholars:
4.6K
Papers: 4.5K
Citations: 4
C
consiglio nazionale delle ricerche (cnr)
Scholars:
6.2W
Papers: 5.7W
Citations: 48
researcher View more organizations