TL;DR
This paper reports on the ARCH-COMP18 competition for falsifying temporal logic specifications in Cyber-Physical Systems (CPS). They found that while general black-box search methods struggle, incorporating specification structure, particularly in Vacuity Aware Falsification (VAF), significantly boosts success rates. An adaptive algorithm also demonstrated high falsification rates by strategically exploring extreme input values.
What Problem Does This Paper Address?
Ensuring the safety and reliability of Cyber-Physical Systems (CPS) is paramount. These systems, which blend computation with physical processes (think autonomous vehicles, industrial control systems), often have complex behaviors that are difficult to verify exhaustively. Temporal logic specifications are used to define desired system properties over time (e.g., "the temperature must never exceed X degrees within 5 minutes"). Falsification, a complementary approach to formal verification, aims to find specific input sequences that violate these specifications, thereby demonstrating a system's failure. The challenge lies in efficiently searching the vast, often continuous, input spaces of CPS to uncover these falsifying scenarios, especially when the system's internal workings are not fully known (black-box). This paper addresses the problem of systematically and efficiently falsifying temporal logic specifications for a challenging CPS benchmark.
Methods
The paper evaluates several falsification tools and algorithms. The primary tools discussed are:
- S-TALIRO: A MATLAB toolbox that uses randomized test case generation guided by formal requirements in Signal Temporal Logic (STL). It can analyze Simulink models or user-defined black-box systems. It employs stochastic optimization techniques.
- FALSTAR: An experimental prototype that constructs falsifying inputs incrementally, exploiting time-causal dependencies. It implements algorithms like time-staging, a hybrid Monte-Carlo tree search and stochastic optimization framework, and a probabilistic algorithm. For this competition, a probabilistic algorithm was used.
Two key falsification strategies are compared:
- Standard Falsification: A general approach using optimization to minimize the robustness value against the STL specification. This is the default method in S-TALIRO.
- Vacuity Aware Falsification (VAF): This approach first attempts to satisfy the antecedent of the temporal logic formula before trying to falsify the consequent. This is particularly useful for reactive specifications. The paper notes that for their implementation, they attempt to satisfy the antecedent within a fraction of the total time to allow sufficient time for falsification.
A novel "Adaptive" algorithm implemented in FALSTAR is also introduced. This algorithm constructs input signals incrementally by building a search tree. It prioritizes "obvious" input signals (extreme values) and gradually explores finer-grained choices if these don't yield results. It's biased towards extending prefixes that have previously led to less robust traces.
Datasets
The paper uses a powertrain model developed by Toyota Technical Center as the benchmark. This model features a complex automatic air-fuel control subsystem, an air-fuel controller, and a mean-value engine model. It has multiple continuous-valued states and operates in different modes ("Startup", "Normal", "Power", "Fault"). The specific benchmark used is a slightly modified version of requirements presented in a previous work [11]. The authors note that the benchmarks are available with the S-TALIRO distribution or from the ARCH workshop repository.
Key Insights and Ideas
- Black-box limitations: General black-box search methods, like Uniform Random (UR) sampling, perform only marginally better than random sampling on this challenging benchmark. This highlights the difficulty of finding falsifying inputs without leveraging any system or specification structure.
- The power of specification structure: Incorporating knowledge of the specification's structure, as done in Vacuity Aware Falsification (VAF), can significantly improve falsification rates. VAF methods showed a notable increase in success compared to standard falsification.
- Strategic exploration pays off: The "Adaptive" algorithm in FALSTAR demonstrates that a biased search strategy, prioritizing extreme input values, can lead to high falsification rates. This suggests that for certain systems, deviations from nominal behavior are key to finding failures.
- Powertrain model is "solved": The authors suggest that the powertrain model, in the context of falsification tools, can be considered "solved" for the ARCH competition. This implies that current state-of-the-art tools can effectively find falsifying inputs for this specific benchmark, paving the way for more challenging problems in future competitions.
Key Results
The experimental results are summarized in Table 1. Key findings include:
- Success Rates:
- Uniform Random (UR): 7/50 runs falsified the specification.
- Simulated Annealing (SA): 9/50 runs falsified.
- VAF-UR: 9/50 runs falsified.
- VAF-SA: 29/50 runs falsified (a significant improvement).
- Adaptive (FALSTAR): 50/50 runs falsified (100% success rate).
- Minimum Tests for Falsification: The Adaptive algorithm achieved falsification in as few as 1 test, while VAF-SA required a minimum of 7 tests. Standard SA and UR required more tests on average.
- Robustness Values: For cases where falsification was not achieved within the simulation budget, the "Min Rob." column indicates how close the system was to violating the specification. VAF methods generally achieved lower (more negative) robustness values, indicating they were closer to falsification.
Figure 1 and Figure 2 show example falsifying traces for S-TALIRO and FALSTAR, respectively, illustrating the system's behavior when inputs lead to specification violations.
Limitations and Future Work
- Computational Overhead: The paper notes that the computational overhead of the falsification tools themselves is negligible compared to running the simulations. This means the number of simulations is a good indicator of tool performance.
- Parameter Tuning: The authors acknowledge that further improvements could be achieved by tuning the optimization algorithms' parameters for each benchmark.
- Future Benchmarks: The success in falsifying the powertrain model suggests the need for identifying new, more challenging benchmark problems for future iterations of the ARCH competition. The authors also mention that the adaptive algorithm's success with extreme solutions might be specific to this benchmark and warrants further investigation on other systems.
Summary updated