Formal Safety Verification for Unknown Dynamical Systems

35 concepts38 papers2 proposals

Traditional control theory provides elegant tools to guarantee that a system will remain safe. Techniques like Control Barrier Functions (CBFs) and reachability analysis act as mathematical guardrails, proving that a system's state will never enter an unsafe region. However, these methods suffer from a critical vulnerability: they require a perfect analytical model of the system's dynamics ($\dot{x} = f(x, u)$).

In the real world, writing down these equations is often impossible. As noted by Jansen et al., modern autonomous systems frequently operate in environments where the underlying physics are black boxes, highly complex, or unmodeled. For instance, De Iaco et al. point out that while complex vehicle models can capture realistic tire slip and road friction during autonomous driving maneuvers, they lack closed-form analytical solutions, rendering traditional verification intractable.

If we cannot model the system explicitly, how can we formally guarantee its safety? The emerging research direction answers this by bridging the gap between data-driven learning and formal verification. The core intuition is simple: use data to learn an approximate model, rigorously quantify the maximum possible error of that approximation, and verify safety against the worst-case bounds.


The Core Mechanism: Learning with Quantified Uncertainty

If we simply train a neural network to mimic a system's dynamics, we cannot verify it; deep learning models can hallucinate or fail unpredictably on unseen data. To provide formal guarantees, data-driven verification frameworks must couple statistical learning with strict uncertainty quantification.

[Raw Trajectory Data] ---> [Statistical Learner] ---> [Surrogate Model + Error Bounds (ε)]
                                                                    |
                                                                    v
[Formal Safety Proof] <--- [Robust Verification] <--- [Worst-Case Envelope (Model ± ε)]

1. Non-Parametric Uncertainty via Gaussian Processes

One prominent approach uses Gaussian Process (GP) regression to learn unknown dynamics from noisy data. Unlike standard neural networks, GPs yield both a mean prediction and a formal variance bound.

Jackson et al. and Skovbekk et al. demonstrate how to transform these continuous GP uncertainty bounds into an Interval Markov Decision Process (IMDP). Instead of predicting a single transition probability between states, the IMDP captures an interval of possible probabilities determined by the GP's variance. By performing verification over the worst-case transitions within these intervals, the authors derive rigorous probabilistic safety guarantees directly from input-output data. Similarly, Nazeri et al. use data combined with known smoothness properties (Lipschitz constants) to build IMDP abstractions for stochastic systems without needing to know the underlying noise distribution.

2. Distribution-Free Guarantees via Conformal Inference

When assuming a Gaussian noise distribution is too restrictive, researchers turn to conformal prediction—a framework that provides distribution-free, finite-sample guarantees.

Ma et al. introduce ReCORS, a framework that pairs conformal prediction with reachability analysis. By using a small calibration dataset, they compute an error bound around a learned model that is guaranteed to hold with a user-specified probability (e.g., $99\%$). Reachability analysis then propagates this bounded error envelope forward in time to ensure the system's trajectory never intersects an obstacle. Hashemi et al. similarly apply conformal inference to neural network surrogate models, allowing them to bound the reachability sets of complex stochastic systems without an analytical model.


Synthesizing Safe Controllers and Certificates

Beyond verifying existing systems, this paradigm allows for the synthesis of safe controllers and mathematical certificates directly from data.

Data-Driven Barrier Certificates

A Barrier Certificate is an energy-like function over the state space: if the system starts in a safe zone, its dynamics prevent it from crossing the "energy barrier" into an unsafe zone.

  • The Scenario Approach: Rickard et al. synthesize continuous-time neural barrier certificates using only a finite set of observed trajectories. By leveraging scenario optimization, they prove that evaluating safety on a specific number of sample trajectories provides a mathematical guarantee that generalizes to unseen paths.
  • Bayesian Inference: For systems with hidden or latent states, Lefringhausen et al. combine Bayesian sampling to infer plausible polynomial models from noisy data with Sum-of-Squares (SOS) programming to automatically construct valid barrier certificates.
  • A Posteriori Validation: Rather than trying to get the model right during synthesis, Yu Chen et al. propose an a posteriori approach. They synthesize a controller based on an initial data-driven estimate and then subject it to rigorous statistical validation tests to formally accept or reject its safety claims.

Runtime Shielding in Black-Box Environments

When training autonomous agents via Reinforcement Learning (RL), the agent learns by trial and error. In safety-critical settings, the "error" can be catastrophic. Runtime Shielding solves this by placing a formal supervisor around the RL agent. If the agent selects an unsafe action, the shield overrides it.

                  +-----------------------------------+
                  |              SHIELD               |
                  |  [Learned World Model]            |
[RL Agent Action]---> [Predict Future Trajectories]   |
                  |  [Is Action Safe?] --No--> [Override with Safe Action]
                  +---------|-------------------------+
                            | Yes
                            v
                 [Black-Box Environment]

When the environment's rules are unknown, the shield itself must be learned dynamically:

  • Automata Learning: Waga et al. and Tappler et al. use passive automata learning to construct discrete models of black-box environments on the fly. As the agent interacts with the world, the shield refines its internal automaton, minimizing safety violations during training without any prior system knowledge.
  • Predictive World Models: In continuous domains, Goodall et al. and Goodall introduce Approximate Model-Based Shielding (AMBS). AMBS trains a predictive "world model" alongside the agent. The shield uses this model to "imagine" the future consequences of an action, blocking choices that lead to predicted failures.
  • Real-Time Hyperplanes: Evaluating complex physics or forward rollouts can be too slow for real-time robotics. To bypass this, Lavanakul et al. propose learning a "discriminating hyperplane" in the control space. This boundary instantly separates safe commands from unsafe ones, filtering black-box system inputs in real time.

Verifiable Policy Design

Instead of wrapping a black-box policy in a shield, another facet of this research direction focuses on designing the policy itself to be inherently verifiable or constrained by formal logic.

  • Policy Extraction: Deep neural network policies are notoriously difficult to audit. Bastani et al. introduce VIPER, which distills complex neural network policies into structured decision trees guided by Q-functions. These decision trees maintain high performance while being simple enough to verify formally for stability and safety.
  • Logical Constraints: Kroening et al. present Logically-Constrained Reinforcement Learning (LCRL), which utilizes Linear Temporal Logic (LTL) to automatically structure reward functions. This allows agents to learn policies that satisfy complex, multi-stage safety requirements even when operating under completely unknown dynamics.
  • Weakest Preconditions: To prevent an agent from exploring dangerous states in the first place, Anderson et al. utilize the formal verification concept of "weakest preconditions." By combining a learned environment model with symbolic analysis, they calculate the exact boundaries of safe exploration before the agent executes an action.

By shifting the foundation of formal verification from perfect analytical equations to data-driven models with quantified uncertainty, this field makes it possible to provide rigorous, provable safety guarantees for the complex, unpredictable systems of the real world.

Key Foundational Work

Data-driven and Model-based Verification: a Bayesian Identification Approach (2015) — contributed 1 concept elements to this direction.
Data-driven property verification of grey-box systems by Bayesian experiment design (2015) — contributed 1 concept elements to this direction.
Learning from Faults: Mutation Testing in Active Automata Learning (2017) — contributed 1 concept elements to this direction.
History & citationVersion 1 · 2026-10-04

Current · Permanent link

View frozen version 1

Cite this direction

Latest version (a living page):

@misc{lacuna_model_dependent_safety_verification_72aa3957,
  title = {model-dependent safety verification},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/model-dependent-safety-verification/rdr_72aa3957e876471d82ba45e6f23bf2a6},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-11-23},
}

This exact version (version 1, frozen text):

@misc{lacuna_model_dependent_safety_verification_72aa3957_v1,
  title = {model-dependent safety verification},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/model-dependent-safety-verification/rdr_72aa3957e876471d82ba45e6f23bf2a6/v/1},
  note = {Version 1, frozen 2026-10-04. Accessed 2026-11-23},
}
About

These directions overlap with this one through shared papers.

See something wrong? Report a mistake