Traditional safety verification operates on a binary paradigm: a system is either certified as completely safe, or it is flagged as unsafe. In formal verification, a single counterexample—an edge-case input that triggers a collision or a system failure—is enough to reject an entire model.
However, this binary lens introduces a severe risk quantification gap. As noted by Sanjit A. Seshia et al. in their work on autonomous vehicle testing, binary outcomes fail to capture the severity of a near-miss or the actual margin of safety. A system that experiences a minor violation in a negligible fraction of its operational space is treated identically to a system prone to catastrophic, frequent failures. Conversely, a system certified as "safe" might be operating on the absolute brink of failure, completely unaware of its proximity to danger.
To bridge this gap, a growing body of research shifts the focus from qualitative binary safety to quantitative safety verification. By measuring how much a system fails, how close it gets to failure, and the exact probability of those events, these approaches provide continuous metrics necessary for robust risk management and control.
Counting the Violations: Volume Quantification
When absolute safety cannot be guaranteed, the next logical question is: How often does the system fail? Instead of stopping at the discovery of a single adversarial example, quantitative verification aims to compute the exact volume of the unsafe input space.
Binary Verification: [ Safe Space ] ---------> (One Failure Found!) -> SYSTEM UNSAFE
Quantitative Verif: [ Safe Space (99.9%) ] -> [ Unsafe Region (0.1%) ] -> RISK = 0.1%
In deep neural networks (DNNs), this is known as the #DNN-Verification problem. Luca Marzari et al. formalize this in The #DNN-Verification Problem: Counting Unsafe Inputs for Deep Neural Networks, moving beyond the binary "safe/unsafe" classification to explicitly count the number of input configurations that lead to a violation. This allows developers to distinguish between a model with a negligible flaw and one with systemic vulnerabilities.
To make this counting computationally tractable, researchers leverage two primary strategies:
- Parallelized Bound Propagation: The exact counting of unsafe states requires evaluating complex, non-linear activation functions across high-dimensional spaces. Luca Marzari et al. address this by combining Symbolic Linear Relaxation (SLR) to tighten mathematical bounds with GPU-accelerated parallel computing, drastically speeding up the verification of complex robotic controllers.
- Logical Decision Diagrams: For discrete or binarized neural networks (BNNs), the authors of BDD4BNN encode network layers as logical cardinality constraints. By leveraging Binary Decision Diagrams (BDDs), they can exactly count adversarial examples and compute precise failure rates without relying on loose approximations.
When verification tools encounter "spurious regions"—areas where abstract approximations incorrectly suggest a failure exists—Jianlin Li et al. demonstrate that linear programming can be used to iteratively refine and tighten neuron bounds. This ensures that the quantitative count reflects true physical vulnerabilities rather than mathematical artifacts.
Measuring Geometric Proximity to Danger
Even if a system never enters an unsafe state, a robust safety assessment must determine its proximity to the edge. A vehicle that avoids an obstacle by ten meters is fundamentally safer than one that avoids it by ten centimeters, yet binary verification treats both trajectories as equally valid.
To quantify this intuition, Jared Miller et al. introduce methods to compute provable geometric safety margins for continuous dynamical systems. In Bounding the Distance to Unsafe Sets With Convex Optimization, the authors frame distance estimation as an optimal transport problem. By utilizing a hierarchy of convex semidefinite programs (SDPs), they calculate a certified lower bound on the physical distance between a system's trajectory and an unsafe region.
Trajectory A: (--- Safe Distance: 10m ---) -> [ Unsafe Set ] (High Margin)
Trajectory B: (- Safe Distance: 0.1m -) -> [ Unsafe Set ] (Low Margin / Near-Miss)
A closely related challenge is peak estimation—finding the absolute worst-case state a system can reach over time. In Peak Estimation Recovery and Safety Analysis, the authors use occupation measures to transform a highly non-convex trajectory optimization problem into a solvable linear program. This framework not only bounds the maximum value a state function can reach but also recovers the exact worst-case trajectories, showing engineers precisely how a near-miss could manifest.
Quantifying this continuous risk gradient is vital for real-time control. For instance, John M. Dolan et al. utilize continuous risk metrics to dynamically allocate safety responsibilities among decentralized multi-agent systems. Instead of waiting for a binary boundary violation to trigger an emergency stop, agents track the continuous erosion of their safety margins and intervene smoothly before a crisis occurs.
Probabilistic Risk and Temporal Robustness
In the real world, systems must navigate stochastic noise, unpredictable human behavior, and complex, time-dependent requirements. Transitioning from qualitative verification to quantitative probability computation allows practitioners to evaluate exact likelihoods of failure under these conditions, a paradigm shift detailed by Marta Kwiatkowska et al. in the context of Probabilistic Model Checking (PMC).
When requirements involve complex timing constraints (e.g., "maintain a safe distance for 10 seconds after braking"), researchers turn to Signal Temporal Logic (STL). To evaluate STL properties in unpredictable environments, Lars Lindemann et al. combine temporal logic with tail-risk measures like Value-at-Risk (VaR). This framework computes a system's robustness risk, estimating not just whether a temporal property might be violated, but how severely the system fails in its worst-case stochastic scenarios. Similarly, Ezio Bartocci et al. establish robustness metrics for stochastic models to differentiate between trajectories comfortably within operational bounds and those on the verge of failure.
This continuous monitoring of safety margins is especially critical in human-machine interaction, where human intent is inherently uncertain. Meiyi Ma et al. combine deep learning predictions with formal logic to monitor safety margins continuously, enabling controllers to make nuanced, proactive adjustments rather than relying on jarring binary interventions.
Macro-Level Risk Aggregation
Ultimately, these localized, continuous metrics can be aggregated to evaluate systemic risk across entire architectures. LI Bo-hua et al. demonstrate that systemic risk can be mathematically formalized as the aggregate sum of potential accident scenarios, with each scenario weighted by its probability and severity:
$$\text{Systemic Risk} = \sum (\text{Probability}_i \times \text{Severity}_i)$$
This mathematical approach unifies formal software verification with classical infrastructure risk analysis. For example, in civil engineering, Jong‐Seok Lee applies probabilistic risk analysis to dam safety assessment, replacing binary design thresholds with continuous failure probabilities across diverse loading scenarios like floods and earthquakes. In the same vein, Chuanqi Li et al. combine the Maximum Entropy Method with Monte Carlo simulations to directly calculate the exact probability of dam foundation failures.
Whether verifying a deep neural network or a physical dam, the underlying philosophy remains identical: replacing binary safety assertions with continuous, quantitative metrics provides the granularity required to understand, optimize, and guarantee safety in complex environments.
Key Foundational Work
Application of Risk Analysis for Dam Safety Assessment (2002) — contributed 2 concept elements to this direction.
Reliability Analysis of Free Jet Scour Below Dams (2012) — contributed 1 concept elements to this direction.