How to ensure safety of learning-enabled cyber-physical systems?

Nicola Paoletti, Jim WoodcockRes. Dir. Cyber Phys. Syst 2023

Introduction

As artificial intelligence increasingly serves as the "brain" for safety-critical systems—ranging from autonomous vehicles to medical robotics—a significant engineering challenge has emerged. Traditional methods for ensuring system safety, which rely on rigorous mathematical proofs, are struggling to keep pace with the complexity and opacity of machine learning (ML). This paper outlines a vital research challenge: the development of new formal verification techniques specifically designed for "learning-enabled" cyber-physical systems (CPS).

The Problem: Mechanistic vs. Data-Driven Models

Cyber-physical systems are the backbone of modern infrastructure, integrating computation and networking with physical processes. Historically, engineers have guaranteed the safety of these systems using "mechanistic" models. These are mathematical descriptions rooted in physics that allow for formal verification; for instance, if the physics of a braking system is known, one can prove it will stop a vehicle within a specific distance.

However, modern CPS are becoming increasingly "learning-enabled," utilizing deep learning for computer vision, control, and anomaly detection. Unlike physics-based models, these data-driven components often function as "black boxes." They do not follow simple mechanistic rules and can exhibit unpredictable behavior when encountering novel data. Consequently, traditional safety proofs break down. Until formal guarantees can be provided for these AI-driven components, their deployment in high-stakes environments remains inherently risky.

A Methodological Roadmap

Addressing this "Safety Gap" requires a shift in how we approach system design and verification. The authors propose a roadmap focusing on four critical research areas:

  1. ML-in-the-loop Verification: New model-checking and theorem-proving techniques must be developed to account for ML components operating within a larger physical feedback loop.
  2. Uncertainty Reasoning: Verification must move beyond binary "pass/fail" logic to formally reason about epistemic uncertainty—mathematically accounting for what a model does not know.
  3. Safe-by-Design Learning: Rather than verifying a model after training, researchers should develop algorithms that learn data-driven models while adhering to safety constraints from the outset.
  4. Runtime Adaptation: Because the real world is dynamic, systems must be able to detect "distribution shifts"—changes in the environment or data that the AI did not expect—and adapt safety verification in real-time.

Key Conceptual Insights

The primary contribution of this framework is the formalization of the tension between 20th-century safety verification (built for predictable machines) and 21st-century AI (built for probabilistic patterns).

A central insight is that safety can no longer be viewed as a one-time check performed during the manufacturing phase. Instead, safety must become a continuous, runtime process. Furthermore, uncertainty should not be treated as a flaw to be eliminated, but as a fundamental property that must be mathematically integrated into the system's logic.

Conclusion and Future Directions

The current state of the art remains insufficient for real-world, safety-critical settings. The path forward requires a concerted effort to bridge the gap between formal methods (logic and proofs) and machine learning (statistics and data). Future research must prioritize making verification scalable enough to handle deep neural networks while maintaining the rigor required by safety regulators in industries such as avionics and healthcare. By formalizing these challenges, we can begin to build the foundations for a new generation of provably safe, learning-enabled systems.

Summary updated

BibTeX
@article{paoletti2023how,
  author = {Nicola Paoletti and Jim Woodcock},
  title = {{How to ensure safety of learning-enabled cyber-physical systems?}},
  journal = {Res. Dir. Cyber Phys. Syst.},
  year = {2023},
  doi = {10.1017/cbp.2023.2},
}
Figure