Introduction
In the design of Cyber-Physical Systems (CPS)—such as medical devices, power grids, and autonomous vehicles—ensuring safety is a critical requirement. Engineers often employ falsification to test these systems. Rather than attempting to prove a system is 100% safe, falsification aims to find a single input signal that causes a violation of safety requirements (e.g., ensuring an engine does not stall under specific braking conditions).
Traditionally, falsification is framed as a global optimization problem where the goal is to minimize a "robustness score." However, standard optimization tools like CMA-ES often struggle with high-dimensional spaces and ignore time causality—the principle that a system's state at any given time depends on its preceding states. This often leads to inefficient searches that get trapped in local optima.
Methodology: Adaptive Las Vegas Tree Search
This paper introduces Adaptive Las Vegas Tree Search (aLVTS), an algorithm that reimagines falsification as a tree search rather than a flat optimization. The method relies on four key pillars:
- Adaptive Discretization: Instead of searching an infinite continuous space, the algorithm uses a "granularity budget." It begins by testing coarse inputs and incrementally moves to finer resolutions if a bug is not found.
- Tree Search: By building a tree where each node represents a prefix of an input signal, the algorithm can exploit time causality. If a specific prefix shows a low robustness score, the search prioritizes exploring its extensions.
- Probabilistic Balancing: The search utilizes a distribution to balance exploration of new segments, exploitation of promising prefixes, and the adaptation of input complexity.
- Incremental Simulation: To optimize performance, the algorithm caches system states, avoiding redundant simulations of identical signal prefixes.
Experimental Evaluation
The aLVTS algorithm was evaluated using industry-standard benchmarks for hybrid systems, including Automatic Transmission (AT) and Powertrain Control (AFC) models implemented in MATLAB/Simulink. The AFC benchmark is particularly challenging due to its high sensitivity to input timing and spikes.
Key Results
The researchers compared aLVTS against CMA-ES and uniform random sampling. The results highlighted significant improvements in both reliability and efficiency:
- Reliability: aLVTS achieved a 100% success rate in finding falsifying inputs across all tested benchmarks within a 300-iteration limit, whereas competing methods frequently failed in difficult scenarios.
- Speed: On the complex AFC27 benchmark, aLVTS was over 30 times faster than CMA-ES, finding bugs in an average of 3.9 iterations compared to 121 for CMA-ES.
- Efficiency: Across the AT suite, aLVTS consistently required fewer simulations (geometric mean of 29.2) than CMA-ES (42.8) and random sampling (95.3).
Discussion and Insights
A core insight of this work is that many system failures can be identified using simple, extreme inputs. By prioritizing the "coarse" search space, aLVTS quickly captures "low-hanging fruit" bugs that global optimizers might overlook while fine-tuning complex signals. Furthermore, the tree-based approach allows the algorithm to "short-cut" the search by abandoning branches that cannot possibly lead to a violation.
Limitations and Future Work
Despite its efficiency, aLVTS may struggle if a bug only occurs at a very high-precision continuous value due to its discrete grid approach. Future research will explore integrating local optimization to fine-tune results and expanding the framework to handle purely discrete input domains alongside continuous signals.
Summary updated