Fast Falsification of Hybrid Systems Using Probabilistically Adaptive Input

Gidon Ernst, Sean Sedwards, Zhenya Zhang, Ichiro Hasuo

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.

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:

  1. 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.
  2. 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.
  3. Probabilistic Balancing: The search utilizes a distribution to balance exploration of new segments, exploitation of promising prefixes, and the adaptation of input complexity.
  4. Incremental Simulation: To optimize performance, the algorithm caches system states, avoiding redundant simulations of identical signal prefixes.
Adaptive discretization grids $\mathcal{A}_0$ through $\mathcal{A}_4$ showing the coarse-to-fine refinement of the input space.

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).
Performance comparison showing the number of iterations required for successful falsification across different methods.

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

Abstract

We present an algorithm that quickly finds falsifying inputs for hybrid systems, i.e., inputs that steer the system towards violation of a given temporal logic requirement. Our method is based on a probabilistically directed search of an increasingly fine grained spatial and temporal discretization of the input space. A key feature is that it adapts to the difficulty of a problem at hand, specifically to the local complexity of each input segment, as needed for falsification. In experiments with standard benchmarks, our approach shows comparable or better performance to existing techniques, while at the same time being relatively simple.
BibTeX
@inproceedings{ernst2019fast,
  author = {Gidon Ernst and Sean Sedwards and Zhenya Zhang and Ichiro Hasuo},
  title = {{Fast Falsification of Hybrid Systems Using Probabilistically Adaptive Input}},
  booktitle = {QEST},
  year = {2019},
  doi = {10.1007/978-3-030-30281-8\_10},
}

Loading related content...

Figure