Model Checking Finite-Horizon Markov Chains with Probabilistic Inference

Steven Holtzen, Sebastian Junges, Marcell Vazquez-Chanlatte, Todd D. Millstein, Sanjit A. Seshia, Guy Van den Broeck

Abstract

Probabilistic model checking (PMC) is a vital technique for verifying stochastic systems, yet it frequently encounters the state space explosion problem. Traditional tools like Storm and Prism, which rely on state-based iteration, struggle with systems containing many parallel independent components or varying parameters. This paper presents Rubicon, a tool that reformulates reachability as a probabilistic inference problem. By utilizing Weighted Model Counting (WMC) and Binary Decision Diagrams (BDDs), Rubicon achieves significant scalability improvements, successfully verifying systems with state spaces orders of magnitude larger than those manageable by conventional tools.

Introduction

Probabilistic model checking calculates the exact probability of a system reaching a target state within a finite time horizon. While the "gold standard" tools in the field are highly optimized, they typically track reachability probabilities for every individual state. As parallel components are added, the state space grows exponentially. Symbolic tools using Algebraic Decision Diagrams (ADDs) attempt to mitigate this but often fail in "parametric" models where components have distinct transition probabilities. In such cases, the ADD representation "blows up," leading to massive memory consumption and tool failure.

Methodology: From States to Paths

Rubicon proposes a shift in perspective: instead of tracking reachability per state, it tracks the total probability of all paths leading to a target. This technique is borrowed from the probabilistic inference community in AI. Rubicon transpiles models from the standard PRISM language into Dice, a state-of-the-art probabilistic programming language.

Overview of the Rubicon pipeline: (a) Markov chain model, (b) PRISM code, (c) scaling performance, and (d) the resulting BDD structure.

The core technical contribution is the encoding of reachability queries as logical formulas solved via Weighted Model Counting (WMC). Unlike ADDs, Rubicon uses Binary Decision Diagrams (BDDs) to represent the logic of paths. This allows the tool to exploit independence; if two processes are independent, the BDD represents their joint behavior much more compactly than a transition matrix. To ensure efficiency, Rubicon enforces a causal variable ordering based on the temporal structure of the Markov Chain, keeping diagram size linear relative to the time horizon.

Experimental Evaluation

The authors evaluated Rubicon against the explicit and symbolic engines of Storm and Prism using benchmarks such as the "Weather Factory" model and Herman’s self-stabilization protocol.

Relative scaling of Rubicon (black stars) compared to traditional symbolic and explicit engines on the Weather Factory benchmark.

Key results include:

  • Scalability: In the Weather Factory benchmark, traditional tools failed at 15 parallel factories. Rubicon scaled to 20+ factories, handling a state space orders of magnitude larger.
  • Robustness to Parameters: On Herman’s protocol with randomized coin biases, symbolic ADD-based methods failed due to memory errors. Rubicon remained stable because its BDD size is independent of the specific probability values used.
  • Parametric Speedup: For sampling parametric Markov Chains, Rubicon was significantly faster. For a 15-factory model, Rubicon could draw a sample in 4 seconds, while other symbolic methods timed out after 30 minutes (1800s).

Conclusion

Rubicon demonstrates that treating reachability as a probabilistic inference problem can overcome the limitations of state-based model checking for finite-horizon properties. By keeping independence explicit through BDD factorization, it offers a robust alternative for complex, parallel systems. Future work aims to extend this approach to infinite-horizon properties and support for nondeterminism in Markov Decision Processes (MDPs).

Summary updated

BibTeX
@inproceedings{holtzen2021model,
  author = {Steven Holtzen and Sebastian Junges and Marcell Vazquez-Chanlatte and Todd D. Millstein and Sanjit A. Seshia and Guy Van den Broeck},
  title = {{Model Checking Finite-Horizon Markov Chains with Probabilistic Inference}},
  booktitle = {CAV},
  year = {2021},
  doi = {10.1007/978-3-030-81688-9\_27},
}
Figure