Requirements Satisfiability with In-Context Learning
Not on the map. Why?
Abstract (arXiv)
Language models that can learn a task at inference time, called in-context learning (ICL), show increasing promise in natural language inference tasks. In ICL, a model user constructs a prompt to describe a task with a natural language instruction and zero or more examples, called demonstrations. The prompt is then input to the language model to generate a completion. In this paper, we apply ICL to the design and evaluation of satisfaction arguments, which describe how a requirement is satisfied by a system specification and associated domain knowledge. The approach builds on three prompt design patterns, including augmented generation, prompt tuning, and chain-of-thought prompting, and is evaluated on a privacy problem to check whether a mobile app scenario and associated design description satisfies eight consent requirements from the EU General Data Protection Regulation (GDPR). The overall results show that GPT-4 can be used to verify requirements satisfaction with 96.7% accuracy and dissatisfaction with 93.2% accuracy. Inverting the requirement improves verification of dissatisfaction to 97.2%. Chain-of-thought prompting improves overall GPT-3.5 performance by 9.0% accuracy. We discuss the trade-offs among templates, models and prompt strategies and provide a detailed analysis of the generated specifications to inform how the approach can be applied in practice.
Key facts. Cited by 5 papers in the map (data through 14 Oct 2026). First posted on arXiv 19 Apr 2024.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2024: 1; 2025: 4.
5 papers.
- 2024Generative AI for Requirements Engineering: A Systematic Literature Reviewcited by 11
- 2025Towards Conversational Development Environments: Using Theory-of-Mind and Multi-Agent Architectures for Requirements Refinementcited by 1
- 2025Legal Requirements Translation from Lawcited by 1
- 2025Generating Privacy Stories From Software Documentationcited by 0
- 2025Breaking the Conventional Forward-Backward Tie in Neural Networks: Activation Functionscited by 0
- 2025Breaking the Conventional Forward-Backward Tie in Neural Networks: Activation Functions8 Sep 2025
- 2025Legal Requirements Translation from Law3 Jul 2025
- 2025Generating Privacy Stories From Software Documentation28 Jun 2025
- 2025Towards Conversational Development Environments: Using Theory-of-Mind and Multi-Agent Architectures for Requirements Refinement27 May 2025
- 2024Generative AI for Requirements Engineering: A Systematic Literature Review10 Sep 2024
Similar, not cited
Close in wording, no citation either way
- 2026Demonstrations, CoT, and Prompting: A Theoretical Analysis of ICL
- 2023The Mystery of In-Context Learning: A Comprehensive Survey on Interpretation and Analysis
- 2025Rethinking the Unsolvable: When In-Context Search Meets Test-Time Scaling
- 2025Are Prompts All You Need? Evaluating Prompt-Based Large Language Models (LLM)s for Software Requirements Classification
- 2025Prompt Engineering for Requirements Engineering: A Literature Review and Roadmap
- 2024Enhancing In-context Learning via Linear Probe Calibration
- 2023Are Human-generated Demonstrations Necessary for In-context Learning?
- 2023In-context Learning Generalizes, But Not Always Robustly: The Case of Syntax