A Zero-Shot Learning Approach to Classifying Requirements: A Preliminary Study

被引:12
作者
Alhoshan, Waad [1 ]
Zhao, Liping [2 ]
Ferrari, Alessio [3 ]
Letsholo, Keletso J. [4 ]
机构
[1] Al Imam Mohammad Ibn Saud Islamic Univ, Riyadh, Saudi Arabia
[2] Univ Manchester, Manchester, Lancs, England
[3] CNR ISTI, Pisa, Italy
[4] Higher Coll Technol, Abu Dhabi, U Arab Emirates
来源
REQUIREMENTS ENGINEERING: FOUNDATION FOR SOFTWARE QUALITY, REFSQ 2022 | 2022年 / 13216卷
关键词
Requirements Engineering; Zero-Shot Learning; Machine Learning; Deep Learning; Transfer Learning; Language models; Natural Language Processing;
D O I
10.1007/978-3-030-98464-9_5
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Context and motivation: Advances in Machine Learning (ML) and Deep Learning (DL) technologies have transformed the field of Natural Language Processing (NLP), making NLP more practical and accessible. Motivated by these exciting developments, Requirements Engineering (RE) researchers have been experimenting ML/DL based approaches for a range of RE tasks, such as requirements classification, requirements tracing, ambiguity detection, and modelling. Question/problem: Most of today's ML/DL approaches are based on supervised learning techniques, meaning that they need to be trained using annotated datasets to learn how to assign a class label to examples from an application domain. This requirement poses an enormous challenge to RE researchers, as the lack of requirements datasets in general and annotated datasets in particular, makes it difficult for them to fully exploit the benefit of the advanced ML/DL technologies. Principal ideas/results: To address this challenge, this paper proposes a novel approach that employs the Zero-Shot Learning (ZSL) technique to perform requirements classification. We build several classification models using ZSL. We focus on the classification task because many RE tasks can be solved as classification problems by a large number of available ML/DL methods. In this preliminary study, we demonstrate our approach by classifying non-functional requirements (NFRs) into two categories: Usability and Security. ZSL supports learning without domain-specific training data, thus solving the lack of annotated datasets typical of RE. The study shows that our approach achieves an average of 82% recall and F-score. Contribution: This study demonstrates the potential of ZSL for requirements classification. The promising results of this study pave the way for further investigations and large-scale studies. An important implication is that it is possible to have very little or no training data to perform requirements classification. The proposed approach thus contributes to the solution of the long-standing problem of data shortage in RE.
引用
收藏
页码:52 / 59
页数:8
相关论文
共 24 条
[1]   Empirical evaluation of tools for hairy requirements engineering tasks [J].
Berry, Daniel M. .
EMPIRICAL SOFTWARE ENGINEERING, 2021, 26 (06)
[2]  
Brown TB, 2020, ADV NEUR IN, V33
[3]  
Dabrowski J, 2020, APP REV ANAL SOFTWAR
[4]   Requirements Classification with Interpretable Machine Learning and Dependency Parsing [J].
Dalpiaz, Fabiano ;
Dell'Anna, Davide ;
Aydemir, Fatma Basak ;
Cevikol, Sercan .
2019 27TH IEEE INTERNATIONAL REQUIREMENTS ENGINEERING CONFERENCE (RE 2019), 2019, :142-152
[5]  
Devlin J, 2019, 2019 CONFERENCE OF THE NORTH AMERICAN CHAPTER OF THE ASSOCIATION FOR COMPUTATIONAL LINGUISTICS: HUMAN LANGUAGE TECHNOLOGIES (NAACL HLT 2019), VOL. 1, P4171
[6]   Natural Language Requirements Processing A 4D Vision [J].
Ferrari, Alessio ;
Dell'Orletta, Felice ;
Esuli, Andrea ;
Gervasi, Vincenzo ;
Gnesi, Stefania .
IEEE SOFTWARE, 2017, 34 (06) :28-35
[7]   NoRBERT: Transfer Learning for Requirements Classification [J].
Hey, Tobias ;
Keim, Jan ;
Koziolek, Anne ;
Tichy, Walter F. .
2020 28TH IEEE INTERNATIONAL REQUIREMENTS ENGINEERING CONFERENCE (RE'20), 2020, :169-179
[8]   Automatically Classifying Functional and Non-Functional Requirements Using Supervised Machine Learning [J].
Kurtanovic, Zijad ;
Maalej, Walid .
2017 IEEE 25TH INTERNATIONAL REQUIREMENTS ENGINEERING CONFERENCE (RE), 2017, :490-495
[9]  
Liu Y, 2019, 57TH ANNUAL MEETING OF THE ASSOCIATION FOR COMPUTATIONAL LINGUISTICS (ACL 2019), P5070
[10]   On the automatic classification of app reviews [J].
Maalej, Walid ;
Kurtanovic, Zijad ;
Nabil, Hadeer ;
Stanik, Christoph .
REQUIREMENTS ENGINEERING, 2016, 21 (03) :311-331