Compositional Stochastic Model Checking Probabilistic Automata via Assume-guarantee Reasoning

Yang Liu, Rui Li2020

Abstract

Stochastic model checking often faces the state explosion problem when verifying complex probabilistic systems. This paper introduces an optimized framework for verifying probabilistic automata (PA) by breaking them down into smaller components using Symmetric Assume-Guarantee (SYM) reasoning. By employing the NL* learning algorithm and a strategy that prioritizes early counterexample detection, the authors significantly speed up the verification process compared to traditional asymmetric methods.

Introduction: The State Explosion Challenge

As systems grow in complexity, mathematically proving that a system meets specific requirements—a process known as "Model Checking"—becomes computationally expensive. In Stochastic Model Checking (SMC), this challenge is amplified because the system must handle both discrete logical states and complex numerical calculations to determine probabilities (e.g., the likelihood of a sensor network failure).

Traditional Assume-Guarantee (AG) reasoning attempts to mitigate this by checking components in isolation. However, most existing methods are asymmetric, focusing on a single component making an assumption about the rest of the environment. This often creates bottlenecks and slows down the detection of property violations, as tools typically complete the entire learning process before identifying a counterexample.

Example of Probabilistic Automata (PA) components and properties used in stochastic model checking.

Methodology: Symmetric Reasoning and NL* Learning

The authors propose a compositional framework built on three key pillars designed to enhance efficiency and scalability:

  1. Symmetric Assume-Guarantee Rule (SYM): Unlike asymmetric rules, the SYM rule allows multiple components to maintain their own assumptions and guarantees simultaneously. This balances the computational load across components. The framework also includes an n-component rule (SYM-N) for systems with many parts.
  2. NL* Learning Algorithm: The framework utilizes the NL algorithm to automatically "learn" the necessary assumptions for verification. NL is an evolution of the L* algorithm that typically requires fewer queries to reach a conclusion, making it more efficient for large-scale probabilistic systems.
  3. Early Termination Optimization: A core innovation is the "early exit" strategy. The framework searches for counterexamples during every step of the learning process (membership and equivalence queries). If a genuine flaw is found, the process stops immediately, saving massive amounts of computation time.
The MAT (Minimal Automaton Learning) framework illustrating the flow of conjectures, counterexample analysis, and early termination.

Experimental Evaluation

The framework was implemented as a prototype tool using the PRISM model checker for probabilistic calculations and the libalf library for learning logic. It was evaluated using three classic benchmarks: a Sensor Network, a Client-Server Model, and a Randomized Consensus Algorithm.

Key Results

  • Faster Failure Detection: In the Sensor Network benchmark, the SYM approach was nearly twice as fast as asymmetric (ASYM) methods (e.g., 1.5s vs 2.7s for small models).
  • Query Efficiency: In Client-Server models, the number of Membership Queries (MQ)—a primary metric for learning efficiency—was reduced by 30-50%.
  • Scalability via SYM-N: For very large models where standard SYM rules timed out (exceeding 5 hours), the SYM-N rule successfully decomposed the system, finishing in just 16.6 to 80.9 seconds.

Conclusion and Future Work

The research demonstrates that prioritizing counterexample search during the learning phase transforms a potential weakness of learning-based verification into a strength. While currently limited to probabilistic safety properties (e.g., "the probability of a crash is less than 0.1%"), future work aims to extend this framework to complex liveness properties and other models like Continuous-Time Markov Chains (CTMCs). Additionally, the use of weighted automata for more expressive assumptions remains a promising avenue for further optimization.

Summary updated

BibTeX
@inproceedings{liu2020compositional,
  author = {Yang Liu and Rui Li},
  title = {{Compositional Stochastic Model Checking Probabilistic Automata via Assume-guarantee Reasoning}},
  booktitle = {˜The},
  year = {2020},
  doi = {10.2991/ijndc.k.190918.001},
}
Figure