Scenario Approach for Parametric Markov Models

Ying Liu, Andrea Turrini, Ernst Moritz Hahn, Bai Xue, Lijun Zhang

Abstract

This paper introduces a framework to analyze parametric Markov models by approximating their complex, symbolic rational functions with simpler polynomials. By leveraging the "scenario approach," the authors provide Probably Approximately Correct (PAC) guarantees, allowing researchers to verify large-scale probabilistic systems with high confidence and significantly better performance than traditional symbolic tools.

Introduction

Markov models are the gold standard for reasoning about quantitative properties in networked systems, biology, and AI. However, real-world systems often involve parameters (like a sensor's failure rate or a network's packet loss probability) rather than fixed constants. Analyzing these Parametric Discrete Time Markov Chains (pDTMCs) typically requires computing "rational functions"—essentially fractions of polynomials. As models grow in size, these functions become astronomically complex, featuring high degrees and massive coefficients that choke state-of-the-art symbolic verification tools like PRISM and Storm.

A Parametric Discrete Time Markov Chain (pDTMC) where transition probabilities are functions of parameters p and q.

Methodology

The authors propose a shift from symbolic computation to a sampling-based scenario approach. Their method involves:

  1. Scenario Sampling: Instead of solving the model symbolically, they sample specific parameter values (scenarios) from the parameter space. This transforms the parametric problem into a series of concrete instances.
  2. PAC Approximation: They synthesize a low-degree polynomial that fits these sampled points. This approximation comes with a PAC guarantee: with a high confidence level ($1-\eta$), the error between the approximation and the true function is within a small margin ($\lambda$) for the vast majority ($1-\epsilon$) of the parameter space.
  3. Linear Programming (LP): The coefficients of the approximating polynomial are found by solving an LP problem. This is computationally efficient even for a large number of samples.
  4. Direct Property Checking: Beyond just fitting functions, the authors demonstrate how the scenario approach can directly check properties (like safety regions) without needing to synthesize the full polynomial first.
An instantiated Markov chain where parameters are replaced by specific values for scenario sampling.

This approach is "black-box" friendly; it only requires the ability to evaluate the model at specific points, not the underlying analytical form.

Evaluation and Results

The researchers evaluated their prototype tool, PacPMA, using a massive suite of benchmarks from the PRISM suite, totaling 936 benchmarks for probabilistic properties and 620 for expected rewards.

Key findings include:

  • Better Coverage: PacPMA successfully solved more benchmarks than both Storm and PRISM. For probabilistic properties, PacPMA (8-threaded) succeeded in 629 cases, compared to Storm's 576 and PRISM's 522.
  • Superior Accuracy: The PAC approximations were two to three orders of magnitude more accurate than Taylor expansions when compared against the ground truth.
  • Global Accuracy: Unlike Taylor expansions, which are highly accurate near a single point but degrade quickly, the PAC-based polynomials provide a global approximation across the entire parameter domain.
  • Convergence: As the degree of the approximating polynomial increases, the error margin ($\lambda$) consistently approaches zero, confirming that the framework converges toward the true function.

Conclusion

The scenario approach provides a powerful alternative to symbolic verification for parametric Markov models. By trading exact symbolic solutions for PAC-guaranteed approximations, the framework achieves significant scalability gains. Future work will explore extensions to Markov Decision Processes (MDPs), Continuous Time Markov Chains (CTMCs), and integration with black-box verification for neural networks.

Summary updated

BibTeX
@inproceedings{liu2023scenario,
  author = {Ying Liu and Andrea Turrini and Ernst Moritz Hahn and Bai Xue and Lijun Zhang},
  title = {{Scenario Approach for Parametric Markov Models}},
  booktitle = {ATVA},
  year = {2023},
  doi = {10.1007/978-3-031-45329-8\_8},
}
Figure