Cross-Entropy Optimisation of Importance Sampling Parameters for Statistical Model Checking

Cyrille Jégourel, Axel Legay, Sean Sedwards

Introduction

In formal verification, model checking serves as a rigorous framework for proving that complex systems—ranging from aircraft controllers to biochemical pathways—adhere to specific safety and performance properties. However, traditional numerical model checking is frequently stymied by the "state space explosion problem." As system complexity increases, the number of possible states grows exponentially, often reaching magnitudes such as $10^{80}$, making exhaustive exploration computationally impossible.

Statistical Model Checking (SMC) provides a scalable alternative by using Monte Carlo simulations to estimate the probability that a system satisfies a given property. While SMC avoids the direct exploration of the state space, it faces a significant hurdle: rare events. If a critical system failure occurs with a probability of $10^{-9}$, a standard Monte Carlo approach would require billions of simulations to observe even a single failure, rendering the estimation of such probabilities practically infeasible.

The Challenge of Importance Sampling

The standard solution to the rare event problem is Importance Sampling (IS), a technique that biases the simulation distribution to make the rare event occur more frequently. The results are then "unbiased" using a likelihood ratio. The primary difficulty lies in finding the optimal biasing distribution. Theoretically, a "zero-variance" distribution exists, but finding it typically requires complete knowledge of the state space—the very thing SMC aims to avoid.

This paper introduces a novel method for optimizing importance sampling parameters using cross-entropy minimization, specifically designed to remain independent of the underlying state space size.

Methodology: Parameterized Cross-Entropy Optimization

The authors propose a "parameterized cross-entropy algorithm" that iteratively refines the simulation distribution. The approach is built on four key pillars:

1. Parameterized Tilting

Rather than attempting to adjust every individual transition probability in a massive state space, the authors link importance sampling parameters ($λ$) to the guarded commands (the high-level rules or syntax) that define the model. This "parameterized tilting" ensures that the search space for the optimal bias remains low-dimensional and manageable, even if the system's state space is infinite.

2. Cross-Entropy (CE) Minimization

The goal is to find a distribution that minimizes the Kullback-Leibler (KL) divergence—or cross-entropy—between the sampling distribution and the theoretical zero-variance distribution. This transforms the search for a biasing distribution into a mathematical optimization problem.

3. Iterative Refinement

The algorithm begins with an initial distribution and performs a set of simulations. Traces that satisfy the target property are used to solve a system of non-linear equations (derived from the cross-entropy objective) to update the parameters for the next iteration. This process repeats until the parameters converge.

4. Mathematical Guarantees

A critical contribution of this work is the proof that their specific parametrization leads to a unique optimum. By demonstrating that the Hessian matrix of the objective function is negative semi-definite, the authors ensure that the algorithm will not get trapped in local optima, providing a robust path to the global maximum.

Experimental Evaluation

The methodology was tested on two distinct benchmarks to evaluate scalability and accuracy:

  • Chemical Network: A complex model of five reactants ($A, B, C, D, E$) involving dimerization and decay. With a state space of approximately $10^{15}$, this model represents the scale typical of systems biology. The algorithm achieved a massive variance reduction of approximately $10^7$, successfully estimating probabilities as low as $10^{-28}$—a feat impossible for standard Monte Carlo methods.
  • Repair Model: A reliability engineering benchmark involving six types of subsystems. This model (40,320 states) is small enough for exact numerical verification. The SMC estimate produced by the authors' method was within 1.7% of the exact value calculated by the PRISM model checker, confirming the high accuracy of the parameterized approach.

Key Insights and Limitations

By shifting the focus from semantic states to syntactic rules, the method achieves state-space independence. The authors also implemented a "smoothing" strategy to maintain robustness; if an action is not observed in an iteration, its probability is reduced rather than zeroed out, preventing the algorithm from prematurely discarding potential paths to the rare event.

Despite its success, the method faces a "seed problem": the algorithm requires an initial distribution that produces at least some successful traces to begin the optimization. If the event is so rare that even a biased guess yields zero hits, the engine cannot start. Additionally, the effectiveness of the tool is sensitive to how the model is written; the guarded commands must be expressive enough to allow for meaningful biasing. Future research will focus on automated methods for finding initial seeds and establishing tighter theoretical bounds on relative error in importance sampling.

Summary updated

BibTeX
@inproceedings{jegourel2012cross,
  author = {Cyrille Jégourel and Axel Legay and Sean Sedwards},
  title = {{Cross-Entropy Optimisation of Importance Sampling Parameters for Statistical Model Checking}},
  booktitle = {CAV},
  year = {2012},
  url = {https://openreview.net/forum?id=TJt9W1qLjn4},
}
Figure