Hostname: page-component-76d6cb85b7-8p85h Total loading time: 0 Render date: 2026-07-14T20:01:29.747Z Has data issue: false hasContentIssue false

Context-aware large language models for ambiguity detection in requirements

Published online by Cambridge University Press:  02 July 2026

Victor Vilhelm Poulsen*
Affiliation:
University of Technology Sydney, Australia
Matthias Guertler
Affiliation:
University of Technology Sydney, Australia
Boris Eisenbart
Affiliation:
Swinburne University of Technology, Australia
Laura Tomidei
Affiliation:
University of Technology Sydney, Australia
Nathalie Sick
Affiliation:
University of Technology Sydney, Australia

Abstract:

Requirements quality shapes engineering design, yet natural language specifications remain vulnerable to ambiguity. We investigate how LLMs support ambiguity detection using a hybrid dataset combining NASA JWST requirements with systematically injected defects. Using auto-extracted domain knowledge, we compare a domain-agnostic baseline with a context-aware approach. Incorporating domain knowledge helps LLMs better distinguish genuinely ambiguous requirements from acceptable ones, highlighting the potential of context-aware AI assistants for requirements engineering and early-stage design.

Information

Type
ARTIFICIAL INTELLIGENCE AND DATA-DRIVEN DESIGN
Creative Commons
Creative Common License - CCCreative Common License - BYCreative Common License - NCCreative Common License - ND
This is an Open Access article, distributed under the terms of the Creative Commons Attribution-NonCommercial-NoDerivatives licence (https://creativecommons.org/licenses/by-nc-nd/4.0/), which permits non-commercial re-use, distribution, and reproduction in any medium, provided the original work is unaltered and is properly cited. The written permission of Cambridge University Press must be obtained for commercial re-use or in order to create a derivative work.
Copyright
The Author(s), 2026
Figure 0

Table 1. Summary of tools analysis (adapted from Bajceta et al., 2022)

Figure 1

Figure 1. Overview of dataset construction, context extraction and evaluation pipeline

Figure 2

Table 2. Examples of original and defect injected requirements

Figure 3

Table 3. Overall ambiguity detection performance

Figure 4

Table 4. Detection performance across ambiguity types