Lessons from the Use of Natural Language Inference (NLI) in Requirements Engineering Tasks

Mohamad Fazelnia, Viktoria Koscinski, Spencer Herzog, Mehdi Mirakhorli
4/24/2024
cs.SEcs.CLcs.LG

No confident code implementation found for this paper. 2 possible matches can be shown below.

Abstract

We investigate the use of Natural Language Inference (NLI) in automating requirements engineering tasks. In particular, we focus on three tasks: requirements classification, identification of requirements specification defects, and detection of conflicts in stakeholders' requirements. While previous research has demonstrated significant benefit in using NLI as a universal method for a broad spectrum of natural language processing tasks, these advantages have not been investigated within the context of software requirements engineering. Therefore, we design experiments to evaluate the use of NLI in requirements analysis. We compare the performance of NLI with a spectrum of approaches, including prompt-based models, conventional transfer learning, Large Language Models (LLMs)-powered chatbot models, and probabilistic models. Through experiments conducted under various learning settings including conventional learning and zero-shot, we demonstrate conclusively that our NLI method surpasses classical NLP methods as well as other LLMs-based and chatbot models in the analysis of requirements specifications. Additionally, we share lessons learned characterizing the learning settings that make NLI a suitable approach for automating requirements engineering tasks.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 2 weaker matches are hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{fazelnia2024lessons,
  title  = {Lessons from the Use of Natural Language Inference (NLI) in Requirements Engineering Tasks},
  author = {Mohamad Fazelnia and Viktoria Koscinski and Spencer Herzog and Mehdi Mirakhorli},
  year   = {2024},
  eprint = {2405.05135},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2405.05135v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2405.05135.svg)](https://codeofpaper.com/paper/2405.05135)

Discussion