Normative Requirements Operationalization with Large Language Models
Nick Feng, Lina Marsso, S. Getir Yaman, Isobel Standen, Yesugen Baatartogtokh, Reem Ayad, Victória Oldemburgo de Mello, Bev Townsend, Hanne Bartels, Ana Cavalcanti, Radu Calinescu, Marsha Chechik
TL;DR
This work tackles the elicitation and operationalization of normative non-functional requirements (NRs) by bridging implicit stakeholder knowledge and formal NR analysis. It introduces LLM-San, an LLM-driven pipeline that extracts Capability Relations (CR) between events and measures within the SLEEC NR formalism, and integrates these relations into the RAINCOAT end-to-end approach for elicitation, sanitization, and validation. The framework identifies new WFIs and improves the thoroughness of NR sets across real-world case studies, while also revealing practical trade-offs between systematic elicitation and automated validation. Overall, the approach has the potential to harmonize domain knowledge with formal verification techniques, enabling more robust, socially aware NR specification in complex systems such as robotics and healthcare.
Abstract
Normative non-functional requirements specify constraints that a system must observe in order to avoid violations of social, legal, ethical, empathetic, and cultural norms. As these requirements are typically defined by non-technical system stakeholders with different expertise and priorities (ethicists, lawyers, social scientists, etc.), ensuring their well-formedness and consistency is very challenging. Recent research has tackled this challenge using a domain-specific language to specify normative requirements as rules whose consistency can then be analysed with formal methods. In this paper, we propose a complementary approach that uses Large Language Models to extract semantic relationships between abstract representations of system capabilities. These relations, which are often assumed implicitly by non-technical stakeholders (e.g., based on common sense or domain knowledge), are then used to enrich the automated reasoning techniques for eliciting and analyzing the consistency of normative requirements. We show the effectiveness of our approach to normative requirements elicitation and operationalization through a range of real-world case studies.
