Zero-Shot Learning for Requirements Classification: An Exploratory Study
Not on the map. Why?
Abstract (arXiv)
Context: Requirements engineering researchers have been experimenting with machine learning and deep learning 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 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. Method: The ZSL approach used in our study employs contextual word-embeddings and transformer-based language models. 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.
Key facts. Cited by 9 papers in the map (data through 7 Oct 2026). Builds on 29 of its 88 references that are in the map. First posted on arXiv 9 Feb 2023.
Builds on
29 of 88 references.
References · 29
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
- 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,049
- 2013Efficient Estimation of Word Representations in Vector Spacecited by 4,346
- 2013Distributed Representations of Words and Phrases and their Compositionalitycited by 3,462
- 2019XLNet: Generalized Autoregressive Pretraining for Language Understandingcited by 2,801
- 2018Deep contextualized word representationscited by 2,285
- 2019BioBERT: a pre-trained biomedical language representation model for biomedical text miningcited by 1,935
- 2016Enriching Word Vectors with Subword Informationcited by 1,578
- 2020MiniLM: Deep Self-Attention Distillation for Task-Agnostic Compression of Pre-Trained Transformerscited by 1,414
- 2019SciBERT: A Pretrained Language Model for Scientific Textcited by 1,404
17 more
- 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,286
- 2019A Comprehensive Survey on Transfer Learningcited by 1,154
- 2019How Contextual are Contextualized Word Representations? Comparing the Geometry of BERT, ELMo, and GPT-2 Embeddingscited by 770
- 2017Zero-Shot Relation Extraction via Reading Comprehensioncited by 425
- 2019Revealing the Dark Secrets of BERTcited by 300
- 2019Benchmarking Zero-shot Text Classification: Datasets, Evaluation and Entailment Approachcited by 299
- 2013Zero-Shot Learning Through Cross-Modal Transfercited by 237
- 2019To Tune or Not to Tune? Adapting Pretrained Representations to Diverse Taskscited by 167
- 2020Deep Learning Based Text Classification: A Comprehensive Reviewcited by 140
- 2020LEGAL-BERT: The Muppets straight out of Law Schoolcited by 111
- 2016Unsupervised Pretraining for Sequence to Sequence Learningcited by 47
- 2019An Embarrassingly Simple Approach for Transfer Learning from Pretrained Language Modelscited by 39
- 2020Code and Named Entity Recognition in StackOverflowcited by 39
- 2017Train Once, Test Anywhere: Zero-Shot Learning for Text Classificationcited by 22
- 2016Are "Non-functional" Requirements really Non-functional?cited by 8
- 2022ZeroBERTo: Leveraging Zero-Shot Text Classification by Topic Modelingcited by 7
- 2018Automatic Traceability Maintenance via Machine Learning Classificationcited by 5
Built on by
Citing papers per year: 2023: 2; 2024: 1; 2025: 4; 2026: 2.
9 papers.
- 2023Large Language Models Are Zero-Shot Text Classifierscited by 35
- 2024MARE: Multi-Agents Collaboration Framework for Requirements Engineeringcited by 28
- 2023A Multi-solution Study on GDPR AI-enabled Completeness Checking of DPAscited by 3
- 2025Light over Heavy: Automated Performance Requirements Quantification with Linguistic Inducementcited by 2
- 2025How Effective are Generative Large Language Models in Performing Requirements Classification?cited by 1
- 2025Does Model Size Matter? A Comparison of Small and Large Language Models for Requirements Classificationcited by 1
- 2025From Inductive to Deductive: LLMs-Based Qualitative Data Analysis in Requirements Engineeringcited by 0
- 2026Sentiment analysis for software engineering: How far can zero-shot learning (ZSL) go?cited by 0
- 2026Can News Predict the Market? Limits of Zero-Shot Financial NLP and the Role of Explainable AIcited by 0
- 2026Can News Predict the Market? Limits of Zero-Shot Financial NLP and the Role of Explainable AI10 Jun 2026
- 2026Sentiment analysis for software engineering: How far can zero-shot learning (ZSL) go?15 Apr 2026
- 2025Light over Heavy: Automated Performance Requirements Quantification with Linguistic Inducement5 Nov 2025
- 2025Does Model Size Matter? A Comparison of Small and Large Language Models for Requirements Classification24 Oct 2025
- 2025From Inductive to Deductive: LLMs-Based Qualitative Data Analysis in Requirements Engineering27 Apr 2025
- 2025How Effective are Generative Large Language Models in Performing Requirements Classification?23 Apr 2025
- 2024MARE: Multi-Agents Collaboration Framework for Requirements Engineering6 May 2024
- 2023Large Language Models Are Zero-Shot Text Classifiers2 Dec 2023
- 2023A Multi-solution Study on GDPR AI-enabled Completeness Checking of DPAs23 Nov 2023