Abstract
Verifying Cyber-Physical Systems (CPS) is challenging due to the complex interplay between discrete logic and continuous dynamics. This paper introduces Robustness-Guided Black-Box Checking (BBC), a framework that combines automata learning with Signal Temporal Logic (STL) robustness scores to find safety violations efficiently. Our tool, FalCAuN, constructs a simplified Mealy machine model of the system and uses quantitative robustness to guide the search for counterexamples. Experimental results on automotive benchmarks demonstrate that FalCAuN outperforms state-of-the-art falsification tools, particularly when evaluating multiple safety properties simultaneously.
Introduction
Cyber-Physical Systems, such as autonomous vehicles and medical devices, require rigorous safety verification. However, exhaustive formal verification often fails due to the "state-space explosion" problem. Consequently, engineers rely on falsification: searching for specific input signals that trigger a requirement violation.
Traditional falsification tools (e.g., Breach, S-TaLiRo) typically use stochastic optimization. While effective, these tools suffer from two main drawbacks: they lack "memory," discarding learned system behavior after each trial, and they can struggle with "flat" regions in the robustness landscape where system behavior does not change smoothly.
Methodology: Robustness-Guided Black-Box Checking
To address these issues, we propose a framework that bridges testing and formal verification through Black-Box Checking (BBC) enhanced by STL Robustness.
The process consists of four primary stages:
- Automata Learning: Using the TTT algorithm, the tool constructs a Mealy machine—a discrete abstraction of the system's behavior—based on observed input-output pairs.
- Model Checking: Standard formal methods are applied to this simplified model to identify potential violations of the safety specification ($\phi$).
- Robustness-Guided Equivalence Testing: To validate the Mealy machine, the tool compares it against the actual system. Instead of random sampling, it utilizes STL Robustness—a metric indicating how close a system is to failure—to guide a Genetic Algorithm (GA) or Hill Climbing (HC) search. This prioritizes "near-miss" inputs likely to reveal model inaccuracies or actual bugs.
- Knowledge Reuse: The learned Mealy machine serves as a general behavioral map, allowing multiple safety properties to be checked with minimal additional simulation cost.
Experimental Evaluation
We evaluated our approach using the Automatic Transmission (AT) benchmark, a standard CPS model for engine and gear-shifting logic. The evaluation utilized seven sets of STL formulas, ranging from standard literature benchmarks to original, high-scale requirements designed to test tool scalability.
As shown in the table above, the $\phi_6$ benchmark was scaled from "tiny" to "gigantic" (up to 36 formulas) to assess how the tool handles large batches of requirements. This scaling highlights the efficiency of the knowledge reuse mechanism in FalCAuN.
Key Results and Insights
The proposed tool, FalCAuN, was compared against Breach (a state-of-the-art industry tool) and a baseline random BBC method.
- Scalability through Reusability: While traditional tools scale linearly with the number of specifications, FalCAuN's execution time remains relatively constant once the initial system model is learned. Checking additional properties against the existing Mealy machine is nearly instantaneous.
- Discrete vs. Continuous Optimization: For systems with threshold-based logic or sudden state changes (like gear shifts), discrete optimization (GA) on an abstracted alphabet proved more effective than the continuous optimization (CMA-ES) used by Breach.
- Search Quality: FalCAuN successfully falsified complex requirements (e.g., $\phi_4$) where continuous optimizers struggled to find the narrow violation regions.
Conclusion and Future Work
Robustness-Guided BBC offers a powerful alternative for CPS falsification, particularly when dealing with multiple safety requirements. While the current Mealy machine abstractions are "rough" and primarily suited for finding bugs rather than proving safety, they provide a significant leap in search efficiency. Future work will focus on automating alphabet abstraction and refining models to provide better diagnostic feedback for engineers.
Summary updated