Zero-Shot Learning for Requirements Classification: An Exploratory Study

02/09/2023
by   Waad Alhoshan, et al.
0

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.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
11/18/2020

A Multi-class Approach – Building a Visual Classifier based on Textual Descriptions using Zero-Shot Learning

Machine Learning (ML) techniques for image classification routinely requ...
research
01/16/2020

Cluster-based Zero-shot learning for multivariate data

Supervised learning requires a sufficient training dataset which include...
research
08/08/2023

Large Language Model Prompt Chaining for Long Legal Document Classification

Prompting is used to guide or steer a language model in generating an ap...
research
09/23/2021

Zero-Shot Information Extraction as a Unified Text-to-Triple Translation

We cast a suite of information extraction tasks into a text-to-triple tr...
research
02/24/2023

A Machine Learning Approach for Hierarchical Classification of Software Requirements

Context: Classification of software requirements into different categori...
research
07/22/2022

Multi-Level Fine-Tuning, Data Augmentation, and Few-Shot Learning for Specialized Cyber Threat Intelligence

Gathering cyber threat intelligence from open sources is becoming increa...
research
06/19/2017

User Intent Classification using Memory Networks: A Comparative Analysis for a Limited Data Scenario

In this report, we provide a comparative analysis of different technique...

Please sign up or login with your details

Forgot password? Click here to reset