Efficient Black-Box Checking via Model Checking with Strengthened Specifications

Junya Shijubo, Masaki Waga, Kohei Suenaga

Introduction

Verifying the safety of Cyber-Physical Systems (CPS), such as autonomous vehicles or medical devices, is a critical challenge. These systems often operate as "black boxes," where internal mathematical models are unavailable, leaving only inputs and outputs for analysis.

Black-Box Checking (BBC) has emerged as a powerful strategy to address this. It typically combines two techniques: Active Automata Learning, which builds a simplified "Mealy machine" model $\tilde{\mathcal{M}}$ of the system $\mathcal{M}$, and Model Checking, which mathematically verifies if $\tilde{\mathcal{M}}$ satisfies a safety specification $\phi$.

The Bottleneck: Equivalence Testing

In the standard BBC workflow, the primary bottleneck is Equivalence Testing. When a model checker confirms that the learned model $\tilde{\mathcal{M}}$ satisfies the specification $\phi$, the framework must then verify if $\tilde{\mathcal{M}}$ is truly equivalent to the actual system $\mathcal{M}$. This requires massive amounts of expensive system simulations. For complex CPS, these simulations are computationally prohibitive and often fail to find subtle discrepancies between the model and the real system.

The standard Black-Box Checking (BBC) workflow.

Proposed Method: Specification Strengthening

The authors propose an optimized BBC workflow that leverages "strengthened specifications" to reduce simulation overhead. The core insight is that model checking should not just prove safety but should be used to proactively find model inaccuracies.

Instead of moving directly to expensive equivalence testing after a model passes a safety check, the authors suggest:

  1. Strengthening the Rules: Create a stricter version of the safety rule (e.g., if the rule is "stop within 50m," the strengthened rule $\psi$ might be "stop within 30m").
  2. Checking the Strict Rule: Run the model checker against this stricter requirement $\psi$.
  3. Refine for Free: If the model fails the strict rule, the resulting counterexample can be used to refine the learned model $\tilde{\mathcal{M}}$ without performing a full, expensive equivalence test on the real system.
The proposed BBC workflow incorporating strengthened specifications (highlighted in red).

To automate this, the authors developed formal rewriting rules for Linear Temporal Logic (LTL) and Signal Temporal Logic (STL). These include syntactic changes like converting disjunctions to conjunctions or shrinking time intervals (e.g., reducing a 10s window to 5s) using a midpoint heuristic.

Experimental Evaluation

The researchers evaluated their method using the Simulink Automatic Transmission Model, a standard industry benchmark for CPS falsification. They compared their approach against FalCAuN, a state-of-the-art tool for robustness-guided BBC.

Key Results

  • Significant Speedups: The proposed method achieved speedups of up to 66% over the baseline.
  • Simulation Efficiency: The approach required far fewer executions of the heavy Simulink model to either find a violation or confirm system behavior.
  • Improved Robustness: The method significantly reduced "timeouts." In one benchmark ($\phi_2$), the baseline timed out in 13 out of 50 runs, whereas the strengthened approach only timed out 5 times.

Conclusion and Future Work

By exploiting the "gap" between a system's actual behavior and its safety limits, specification strengthening allows BBC tools to find model inaccuracies much faster than random sampling or genetic algorithms. While disjunctive specifications remain a challenge due to fragmented search spaces, this work provides a clear path forward for more efficient CPS verification. Future research will explore finer-grained strengthening through numerical threshold modification and binary search strategies.

Summary updated

BibTeX
@inproceedings{shijubo2021efficient,
  author = {Junya Shijubo and Masaki Waga and Kohei Suenaga},
  title = {{Efficient Black-Box Checking via Model Checking with Strengthened Specifications}},
  booktitle = {RV},
  year = {2021},
  url = {https://openreview.net/forum?id=5UPeNY7jUZ},
}
Figure