From Inductive to Deductive: LLMs-Based Qualitative Data Analysis in Requirements Engineering

Syed Tauhid Ullah Shah, Mohamad Hussein, Ann Barcomb, Mohammad Moshirpour
4/27/2025
cs.SEcs.AI

No official code found. Best implementation: SyedTauhidUllahShah/LLM4QDARE (3 stars, last commit 2026-03-29).

Abstract

Requirements Engineering (RE) is essential for developing complex and regulated software projects. Given the challenges in transforming stakeholder inputs into consistent software designs, Qualitative Data Analysis (QDA) provides a systematic approach to handling free-form data. However, traditional QDA methods are time-consuming and heavily reliant on manual effort. In this paper, we explore the use of Large Language Models (LLMs), including GPT-4, Mistral, and LLaMA-2, to improve QDA tasks in RE. Our study evaluates LLMs' performance in inductive (zero-shot) and deductive (one-shot, few-shot) annotation tasks, revealing that GPT-4 achieves substantial agreement with human analysts in deductive settings, with Cohen's Kappa scores exceeding 0.7, while zero-shot performance remains limited. Detailed, context-rich prompts significantly improve annotation accuracy and consistency, particularly in deductive scenarios, and GPT-4 demonstrates high reliability across repeated runs. These findings highlight the potential of LLMs to support QDA in RE by reducing manual effort while maintaining annotation quality. The structured labels automatically provide traceability of requirements and can be directly utilized as classes in domain models, facilitating systematic software design.

View on arXivView PDF

Code Implementations(1)

The official implementation of "From Inductive to Deductive: Evaluating Large Language Models for Qualitative Data Analysis in Requirements Engineering".

32PythonFeb 28, 20256 months ago

Similar Papers

Cite this paper

@article{shah2025from,
  title  = {From Inductive to Deductive: LLMs-Based Qualitative Data Analysis in Requirements Engineering},
  author = {Syed Tauhid Ullah Shah and Mohamad Hussein and Ann Barcomb and Mohammad Moshirpour},
  year   = {2025},
  eprint = {2504.19384},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2504.19384v1}
}

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/2504.19384.svg)](https://codeofpaper.com/paper/2504.19384)

Discussion