Distributed Parametric and Statistical Model Checking

Peter E. Bulychev, Alexandre David, Kim Guldstrand Larsen, Marius Mikucionis, Axel LegayarXiv 2011

Introduction

Ensuring the correctness of complex computer systems is a significant challenge in formal verification. While symbolic model checking provides mathematical rigor, it often encounters the "state-space explosion" problem. Statistical Model Checking (SMC) offers a scalable alternative by using system simulations and statistical techniques, such as Wald’s sequential hypothesis testing, to provide results with known confidence bounds. However, SMC is computationally intensive, requiring thousands of simulations. While these simulations are independent, distributing them across a cluster is not trivial; a "naive" distribution can introduce statistical bias if results from faster nodes are prioritized by the master node.

Distributed Architecture and Optimization

This paper introduces a highly scalable, distributed architecture for the UPPAAL SMC toolset based on a master/slave model. To address the bias-efficiency trade-off, the authors implement optimized sequential testing using batches and buffers. Instead of sending results individually, slave nodes aggregate them into batches. The master node uses a buffer to manage these incoming results, which reduces communication overhead and ensures statistical integrity without requiring strict synchronization between nodes.

Figure 1: Performance impact of batching and buffering across different cluster topologies. The 3D surfaces illustrate how execution time is optimized by tuning these parameters.

Parametric Model Checking and Optimization

The framework extends beyond simple verification to handle Parametric Model Checking. By treating different parameter configurations (e.g., arrival rates or node counts) as independent SMC tasks, the system can perform massive parallel sweeps. This capability transforms SMC from a checking tool into an optimization tool, allowing researchers to identify "worst-case" scenarios or find optimal configurations, such as the Nash Equilibrium in wireless protocols.

Figure 2: A parametric sweep visualizing the probability of a property (Z-axis) as a function of system parameters like RATE and ntrains.

Key Results and Performance

The proposed methods were evaluated using several case studies, including the Firewire (IEEE 1394) and LMAC protocols. Key findings include:

  • Near-Linear Speedup: Efficiency (speedup per core) remained between 0.80 and 0.99 as the number of nodes increased.
  • Significant Time Savings: A Firewire protocol task that took 621 seconds on a single node was completed in just 8.5 seconds on an 8-core cluster.
  • Large-Scale Exploration: The tool successfully verified 10,000 different network topologies for the LMAC protocol in under 7 hours, identifying configurations most prone to collisions.

Conclusion and Future Work

By combining distributed computing with optimized statistical algorithms, this work demonstrates that SMC is naturally suited for high-performance clusters. While the current implementation excels at finite-time properties, future work aims to address "rare events"—which require a prohibitive number of simulations—and unbounded properties, potentially incorporating Bayesian extensions for more sophisticated analysis.

Summary updated

BibTeX
@misc{bulychev2011distributed,
  author = {Peter E. Bulychev and Alexandre David and Kim Guldstrand Larsen and Marius Mikucionis and Axel Legay},
  title = {{Distributed Parametric and Statistical Model Checking}},
  year = {2011},
  eprint = {1111.0370},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1111.0370},
}
Figure