TL;DR
This paper introduces a novel framework for verifying probabilistic conformance between cyber-physical systems (CPS). They propose a statistical approach to check if two systems exhibit similar probabilistic behavior with respect to a set of temporal logic specifications, enabling more reliable system comparisons and replacements.
What Problem Does This Paper Address?
Ensuring that different versions or implementations of a cyber-physical system (CPS) behave similarly is crucial for safety and reliability. This "conformance" is particularly challenging for CPS due to their complex, often probabilistic, and dynamic nature. Traditional conformance methods struggle with these complexities, especially when specifications involve continuous time and probabilistic outcomes. The authors aim to bridge this gap by developing a statistically sound method to verify probabilistic conformance for CPS, allowing us to determine if one system can reliably replace another or if different models of the same system accurately reflect its behavior.
Methods
The core of this work lies in defining and verifying probabilistic conformance for systems modeled as Probabilistic Uncertain Systems (PUSs). PUSs are a general framework for capturing probabilistic dynamics in CPS. The authors define conformance as the approximate equality of satisfaction probabilities for a given set of Signal Temporal Logic (STL) formulas between two PUSs.
Key methodological contributions include:
- Parameterized STL Formulas: They leverage parameterized STL formulas to express infinite sets of specifications, allowing for a more comprehensive conformance check.
- Monotonicity Assumption: The statistical verification approach relies on the assumption that the parameterized STL formulas are monotone. This means the satisfaction probability changes predictably with parameter variations, which is common in many CPS specifications.
- Novel Statistical Test: A new statistical test is developed to check for approximate equality of probability distributions. This test is an extension of the classic Kolmogorov-Smirnov test and provides provable confidence levels, addressing the limitations of existing methods that only check for exact equality.
- Statistical Verification Algorithm: An algorithm is presented that uses the new statistical test to iteratively gather samples until a desired confidence level for conformance (or nonconformance) is achieved. This algorithm is designed to handle grey-box CPS models, where the internal dynamics might be unknown.
Datasets
The paper evaluates their approach on three case studies:
- Toyota Powertrain: Using existing Simulink models of a four-mode embedded controller.
- Lane-Keeping Assistant (LKA) Controllers: Comparing a Model Predictive Control (MPC) based controller with several Neural Network (NN)-based controllers trained on MPC samples.
- 100kW Grid-Connected Photo Voltaic (PV) Array: Comparing detailed and average models of a power grid system.
The authors note that implementations are available at [6].
Key Insights and Ideas
- Probabilistic Conformance is Sufficient: For many practical applications, approximate equality of satisfaction probabilities is sufficient for conformance, rather than exact equality. This makes the problem tractable.
- Monotonicity is Key for Scalability: The assumption of monotonic parameterized STL formulas is crucial for developing a scalable statistical verification method that can handle an infinite number of specifications.
- NN Controllers Can Conform to MPC: For lane-keeping systems, NN-based controllers can achieve probabilistic conformance with MPC controllers, especially as the size (number of neurons) of the NN increases. This suggests NN controllers can be a viable, computationally efficient alternative.
- Simplified Models Can Be Misleading: The case studies reveal that simplified models of complex systems (like the Toyota powertrain and PV array) may not probabilistically conform to their detailed counterparts, highlighting the need for rigorous verification.
Key Results
The paper demonstrates the effectiveness of their approach through three case studies:
- Toyota Powertrain: The detailed and abstract models were found to be non-conforming for the A/F ratio startup time specification. The test statistics indicated significantly different distributions of arrival times to the desired working region.
- LKA Controllers: NN-based controllers showed increasing conformance with the MPC controller as their size increased. Specifically, NN controllers with 45 neurons or more conformed well, while smaller NNs did not. This was visually supported by the closeness of empirical cumulative distribution functions (ECDFs) of settling times.
- PV Array: The detailed and average models of the PV array were found to be non-conforming for the DC voltage deviation specification. The ECDFs of the maximum deviation clearly showed different distributions.
In all cases, the statistical verification algorithm terminated with relatively few samples, demonstrating its efficiency.
Limitations and Future Work
- Bounded-Time Properties: The current work focuses on bounded-time properties. Handling unbounded-time properties is noted as a more involved avenue for future research.
- Identifying Causes of Nonconformance: While the method identifies nonconformance, it doesn't directly pinpoint why it occurs. Future work could focus on developing techniques to identify system behaviors that lead to nonconformity.
- Hyperproperties: Extending the framework to support conformance verification for security/privacy policies that are hyperproperties is suggested as a future direction.
Summary updated