From Failure to Alignment: A Requirements Engineering Framework for Machine Learning Systems

· Source: cs.SE updates on arXiv.org · Field: Technology & Digital — Artificial Intelligence & Machine Learning, Software Development & Engineering, Robotics & Autonomous Systems · Depth: Expert, extended

Summary

The REAL (Requirements Engineering for mAchines that Learn - and Fail) framework is proposed for developing trustworthy Machine Learning Systems (MLS) that align with stakeholder needs. This model-based framework integrates requirements for data, models, and the system, uses failure to drive the exploration of alternative requirements, and employs iterative, traceable refinement. Addressing challenges like learned behavior and inherent failure, REAL operationalizes requirement satisfaction by linking stakeholder goals to executable domain instantiations, simulation traces, and observed violations. It involves identifying failures via grammar-guided scenario exploration, analyzing them as obstacles using KAOS-style goal models, and mitigating them through multi-layer adaptation across data, model, system, and requirement levels. Demonstrated on an autonomous braking system using CARLA, Scenic, and YOLOv5, REAL systematically reduced child-collision rates from 100% to 8% and eliminated nominal-weather failures, highlighting the necessity of coordinated cross-layer adaptation.

Key takeaway

For Machine Learning Engineers developing safety-critical systems, you should integrate a failure-driven requirements engineering framework like REAL. This approach systematically links scenario-based testing outcomes to requirement refinement, enabling you to identify and analyze misalignments between stakeholder goals, domain assumptions, and system behavior. By applying multi-layer adaptations across data, model, system, and requirements, you can achieve more robust alignment and significantly reduce critical failure rates, as demonstrated by the 92% reduction in child-collision rates.

Key insights

REAL systematically integrates failure analysis into requirements engineering for ML systems, ensuring alignment with stakeholder needs.

Principles

Method

REAL identifies failures via grammar-guided scenario exploration, analyzes them as obstacles in a KAOS-style goal model, and mitigates through multi-layer adaptation (data, model, system, requirements) within an iterative alignment loop.

In practice

Topics

Code references

Best for: Research Scientist, Computer Vision Engineer, AI Scientist, Machine Learning Engineer, AI Architect

Related on AIssential

Open in AIssential →

Editorial summary, takeaway, and curation by AIssential. Original article published by cs.SE updates on arXiv.org.