A Prompt-based Few-shot Learning Approach to Software Conflict Detection

11/04/2022
by   Robert K. Helmeczi, et al.
0

A software requirement specification (SRS) document is an essential part of the software development life cycle which outlines the requirements that a software program in development must satisfy. This document is often specified by a diverse group of stakeholders and is subject to continual change, making the process of maintaining the document and detecting conflicts between requirements an essential task in software development. Notably, projects that do not address conflicts in the SRS document early on face considerable problems later in the development life cycle. These problems incur substantial costs in terms of time and money, and these costs often become insurmountable barriers that ultimately result in the termination of a software project altogether. As a result, early detection of SRS conflicts is critical to project sustainability. The conflict detection task is approached in numerous ways, many of which require a significant amount of manual intervention from developers, or require access to a large amount of labeled, task-specific training data. In this work, we propose using a prompt-based learning approach to perform few-shot learning for conflict detection. We compare our results to supervised learning approaches that use pretrained language models, such as BERT and its variants. Our results show that prompting with just 32 labeled examples can achieve a similar level of performance in many key metrics to that of supervised learning on training sets that are magnitudes larger in size. In contrast to many other conflict detection approaches, we make no assumptions about the type of underlying requirements, allowing us to analyze pairings of both functional and non-functional requirements. This allows us to omit the potentially expensive task of filtering out non-functional requirements from our dataset.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
06/28/2022

Identifying the requirement conflicts in SRS documents using transformer-based sentence embeddings

High quality software systems typically require a set of clear, complete...
research
06/13/2023

Few-shot learning for sentence pair classification and its applications in software engineering

Few-shot learning-the ability to train models with access to limited dat...
research
08/05/2018

Using Machine Learning Safely in Automotive Software: An Assessment and Adaption of Software Process Requirements in ISO 26262

The use of machine learning (ML) is on the rise in many sectors of softw...
research
08/06/2020

iMER: Iterative Process of Entity Relationship and Business Proces Models Extraction from the Requirements

Extracting conceptual models, e.g., entity relationship model or Busines...
research
03/03/2021

Automatically detecting the conflicts between software requirements based on finer semantic analysis

Context: Conflicts between software requirements bring uncertainties to ...
research
06/29/2015

Requirement Tracing using Term Extraction

Requirements traceability is an essential step in ensuring the quality o...
research
04/10/2018

A Manga-Driven System Requirements Development PBL Exercise

We conducted a Project-Based Learning (PBL)-type exercise incorporating ...

Please sign up or login with your details

Forgot password? Click here to reset