From Failure to Alignment: A Requirements Engineering Framework for Machine Learning Systems
Amel Bennaceur, Gopi Krishnan Rajbahadur, Prince Mercy, Bashar Nuseibeh, Faeq Alrimawi
Abstract
Organisations designing, developing, and deploying machine learning systems (MLS) need to be able to check that these systems are trustworthy, and communicate this clearly to their stakeholders, be they different categories of users, engineers, or wider society. By focusing on stakeholders, Requirements Engineering is well positioned to drive the design and engineering of MLS that align with the needs of their stakeholders. Yet, we still need a systematic process for modelling and reasoning about requirements for MLS that is driven both by stakeholders' needs and constraints for MLS development. This paper proposes a framework entitled REAL (Requirements Engineering for mAchines that Learn - and Fail) to help develop MLS that align with stakeholders' needs by adopting a requirements engineering approach. This model-based framework is based on three principles. First, weaving together requirements for data, models, and the system as a whole. Second, using failure to drive the exploration of alternative requirements. Third, iterative and traceable refinement of MLS requirements. We demonstrate the proposed framework using an example from autonomous driving and show that REAL supports the development of MLS that better align with stakeholders' requirements. A replication package is available online.
Create a lesson
Metadata
- Categories
- cs.SE, cs.LG
- Journal
- RE 2026 - the 34th IEEE International Requirements Engineering Conference
- Comments
- 12 pages
Related papers
Risk Architecture for AI-Native Engineering Teams: An Organizational Framework for Agentic System Governance
Shared title terminologycs.SELaxmipriya Ganesh Iyer
Agentic Harness Engineering Beta: Requirement-Centered Evolution of Agent Harnesses
Shared title terminologycs.SEJiahang Lin, Jiahao Chen, Yiding Wang et al.
Systematic Mapping Protocol. Generative AI-Augmented Requirements Engineering: A Systematic Mapping Study of Practices, Specifications, and Reuse in Software Development
Shared title terminologycs.SEFernando Pinciroli
Foundation Models for Software Engineering of Cyber-Physical Systems: the Road Ahead
Shared title terminologycs.SEChengjie Lu, Pablo Valle, Jiahui Wu et al.
SMOCS: A Streaming Framework for Simplified Deployment, Monitoring, and Optimization of ML Systems in Production
Shared title terminologycs.SEArmen Kasparian, Kishansingh Rajput, Malachi Schram et al.
Epic-Organized vs. Requirement-Aligned Gherkin: An Empirical Evaluation of LLM-Based Acceptance Criteria Generation
Shared title terminologycs.SEShahbaz Siddeeq, Mateen Abbasi, Jussi Rasku et al.