Zero-shot learning for requirements classification: An exploratory study. Alhoshan, W., Ferrari, A., & Zhao, L. Information and Software Technology, 159:107202, July, 2023.
Paper doi abstract bibtex 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∼ 0.72 − 0.80, considering the most frequent classes. For the Security task, F1 ∼ 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.
@article{alhoshan_zero-shot_2023,
title = {Zero-shot learning for requirements classification: {An} exploratory study},
volume = {159},
issn = {09505849},
shorttitle = {Zero-shot learning for requirements classification},
url = {https://linkinghub.elsevier.com/retrieve/pii/S0950584923000563},
doi = {10.1016/j.infsof.2023.107202},
abstract = {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∼ 0.72 − 0.80, considering the most frequent classes. For the Security task, F1 ∼ 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.},
language = {en},
urldate = {2026-01-14},
journal = {Information and Software Technology},
author = {Alhoshan, Waad and Ferrari, Alessio and Zhao, Liping},
month = jul,
year = {2023},
keywords = {/unread},
pages = {107202},
}
Downloads: 0
{"_id":"epuKnvCNqDvdQdt68","bibbaseid":"alhoshan-ferrari-zhao-zeroshotlearningforrequirementsclassificationanexploratorystudy-2023","author_short":["Alhoshan, W.","Ferrari, A.","Zhao, L."],"bibdata":{"bibtype":"article","type":"article","title":"Zero-shot learning for requirements classification: An exploratory study","volume":"159","issn":"09505849","shorttitle":"Zero-shot learning for requirements classification","url":"https://linkinghub.elsevier.com/retrieve/pii/S0950584923000563","doi":"10.1016/j.infsof.2023.107202","abstract":"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∼ 0.72 − 0.80, considering the most frequent classes. For the Security task, F1 ∼ 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.","language":"en","urldate":"2026-01-14","journal":"Information and Software Technology","author":[{"propositions":[],"lastnames":["Alhoshan"],"firstnames":["Waad"],"suffixes":[]},{"propositions":[],"lastnames":["Ferrari"],"firstnames":["Alessio"],"suffixes":[]},{"propositions":[],"lastnames":["Zhao"],"firstnames":["Liping"],"suffixes":[]}],"month":"July","year":"2023","keywords":"/unread","pages":"107202","bibtex":"@article{alhoshan_zero-shot_2023,\n\ttitle = {Zero-shot learning for requirements classification: {An} exploratory study},\n\tvolume = {159},\n\tissn = {09505849},\n\tshorttitle = {Zero-shot learning for requirements classification},\n\turl = {https://linkinghub.elsevier.com/retrieve/pii/S0950584923000563},\n\tdoi = {10.1016/j.infsof.2023.107202},\n\tabstract = {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.\nMethods: 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.\nResults: 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∼ 0.72 − 0.80, considering the most frequent classes. For the Security task, F1 ∼ 0.66. All of the aforementioned F1 scores are achieved with zero-training efforts.\nConclusion: 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.},\n\tlanguage = {en},\n\turldate = {2026-01-14},\n\tjournal = {Information and Software Technology},\n\tauthor = {Alhoshan, Waad and Ferrari, Alessio and Zhao, Liping},\n\tmonth = jul,\n\tyear = {2023},\n\tkeywords = {/unread},\n\tpages = {107202},\n}\n\n\n\n\n\n\n\n","author_short":["Alhoshan, W.","Ferrari, A.","Zhao, L."],"key":"alhoshan_zero-shot_2023","id":"alhoshan_zero-shot_2023","bibbaseid":"alhoshan-ferrari-zhao-zeroshotlearningforrequirementsclassificationanexploratorystudy-2023","role":"author","urls":{"Paper":"https://linkinghub.elsevier.com/retrieve/pii/S0950584923000563"},"keyword":["/unread"],"metadata":{"authorlinks":{}},"html":""},"bibtype":"article","biburl":"https://bibbase.org/zotero/maraee75","dataSources":["4ba3Fdzx8LKWWBtAB","PjpadRRabZA7FRKpn"],"keywords":["/unread"],"search_terms":["zero","shot","learning","requirements","classification","exploratory","study","alhoshan","ferrari","zhao"],"title":"Zero-shot learning for requirements classification: An exploratory study","year":2023}