Adaptive Context-Driven Prompting (ACDP) is proposed, an iterative framework designed to improve LLM-supported requirements elicitation through context preservation and gap-driven refinement and offers practical support for requirements analysts in complex software projects.
Abstract
Requirements elicitation is a critical activity in software engineering, as incomplete, ambiguous, or inconsistent requirements can adversely affect software quality and project outcomes. Although Large Language Models (LLMs) have demonstrated considerable potential for supporting Requirements Engineering, conventional prompting approaches typically rely on direct or predefined interactions and lack systematic mechanisms for identifying and resolving information gaps during elicitation. This study proposes Adaptive Context-Driven Prompting (ACDP), an iterative framework designed to improve LLM-supported requirements elicitation through context preservation and gap-driven refinement. ACDP progressively constructs an Elicitation Context (EC) that maintains project objectives, stakeholders, constraints, assumptions, and previously elicited requirements. In parallel, a Requirement Gap Matrix (RGM) systematically identifies missing, partial, ambiguous, and conflicting information and transforms these gaps into targeted re-elicitation prompts for subsequent LLM interactions. The framework was evaluated using public software requirements documents from the PURE dataset and compared with Zero-Shot Prompting and Fixed Multi-Step Prompting under controlled LLM settings. Performance was assessed using reference-based Precision, Recall, and F1-score, together with requirement-quality dimensions including completeness, correctness, consistency, clarity, relevance, ambiguity, and redundancy. Experimental results demonstrate that ACDP achieved a Precision of 0.93, Recall of 0.92, and F1-score of 0.92, outperforming both baseline prompting approaches while also improving requirement completeness, correctness, and overall quality. These findings demonstrate that combining persistent elicitation context with explicit gap diagnosis provides a systematic and effective mechanism for improving LLM-assisted requirements elicitation and offers practical support for requirements analysts in complex software projects.
Requirements specification is a pivotal activity in software development. The use of structured templates for specifying requirements can improve their clarity, consistency, and analyzability, which is particularly important in safety-critical domains such as avionics to support verification and certification activitie...
A structured community discussion at the First International Workshop on Empirical Prompt Engineering for Software Engineering (PROMPT-SE) discussed current prompting practices, challenges to their adoption and evaluation, and future directions for integrating prompt engineering into software development.
Vincenzo De Martino, Giovanna Broccia, Fabiano Pecorelli et al.· Software engineering notes· 1 citation
This roadmap paper reports the outcomes of the NII Shonan Seminar No. 232 on Uncertainty Interaction in Software-Intensive Systems (UNISON), held in March 2026 and develops a shared conceptual vocabulary for distinguishing uncertainty sources, propagation, confluence, interaction, and relevance; proposes an abstract wo...
Javier Cámara, R. Mirandola, Kenji Tei et al.· ACM Transactions on Autonomo...· 0 citations
This work presents the first cross-task empirical evaluation of LLMs spanning five RE-related activities, as well as replication materials supporting reproducibility, and a broader understanding of the capabilities, limitations, and practical readiness of current LLMs for RE.
Jacek Dabrowski, Manjeshwar Aniruddh Mallya, Alessio Ferrari et al.· 1 citation
This Systematic Literature Review examines prompt engineering in automatic code generation using large language models (LLMs) and shows that prompt engineering has been established as a key discipline for optimizing interaction with LLMs and improve the accuracy, robustness, and applicability of the generated code.
E. Camacho, Y. Gutierrez, César Pardo· 0 citations
A lifecycle-aware framework that integrates quantitative software quality assessment with Large Language Model (LLM)-based code refinement is proposed and the potential of metric-driven LLM feedback for research software quality improvement is demonstrated while highlighting its inherently multi-objective nature.
Nafis Tanveer Islam, N. Soveizi, Yutong Li et al.· 0 citations
We use cookies to run the site and, with your consent, for analytics and to show ads.
See our Cookie Policy.