Source-linked AI summary

Stochastic Semantics and Statistical Model Checking for Networks of Priced Timed Automata

Alexandre David, Kim G. Larsen, Axel Legay, Marius Mikučionis, Danny Bøgsted Poulsen, Jonas van Vliet, Zheng Wang

arXiv:1106.3961v2cs.SE

TL;DR

The paper addresses the need to refine hard real-time guarantees with probabilistic performance information while avoiding exhaustive analysis of undecidable NPTA problems. It provides race-based stochastic semantics, SMC algorithms and an implementation, with case studies showing broader and faster analysis than existing stochastic model-checking approaches. Future work identifies inefficiency for estimating error probabilities in well-designed systems and proposes combining SMC with rare-event techniques.

  • Problem

    Real-time model checking faces state-space explosion and mainly provides hard quantitative guarantees, motivating probabilistic information about likely timing and resource consumption.

  • Method

    The paper defines race-based stochastic semantics for NPTAs and applies simulation-based Statistical Model Checking with hypothesis testing, probability estimation, parametric comparison, and random-run generation.

  • Results

    Case studies show more expressive models, a faster tool, and capability to handle larger models than the state-of-the-art stochastic model checker; hypothesis testing has an order of magnitude advantage in verification time over probability estimation.

  • Takeaways & Limitations

    The framework complements hard property checks with probabilistic and cost-bounded performance analysis, including comparisons across timed bounds and case studies beyond existing approaches.

  • Takeaways & Limitations

    For well-designed systems, the statistical algorithms are efficient for computing the probability of absence of errors but not for computing the probability of making an error.

Abstract

from arXiv · show

This paper offers a natural stochastic semantics of Networks of Priced Timed Automata (NPTA) based on races between components. The semantics provides the basis for satisfaction of probabilistic Weighted CTL properties (PWCTL), conservatively extending the classical satisfaction of timed automata with respect to TCTL. In particular the extension allows for hard real-time properties of timed automata expressible in TCTL to be refined by performance properties, e.g. in terms of probabilistic guarantees of time- and cost-bounded properties. A second contribution of the paper is the application of Statistical Model Checking (SMC) to efficiently estimate the correctness of non-nested PWCTL model checking problems with a desired level of confidence, based on a number of independent runs of the NPTA. In addition to applying classical SMC algorithms, we also offer an extension that allows to efficiently compare performance properties of NPTAs in a parametric setting. The third contribution is an efficient tool implementation of our result and applications to several case studies.

I. INTRODUCTION

The paper motivates probabilistic performance analysis for real-time systems, whose traditional model checking faces state-space explosion and primarily provides hard quantitative guarantees. It introduces stochastic semantics, Statistical Model Checking, and efficient implementation techniques for Networks of Priced Timed Automata.

  • Motivation: Real-time model checking offers hard guarantees but suffers from state-space explosion as the number of model components grows.Its guarantees include worst-case response time, execution time, or consensus time.
  • Motivation: Probabilistic performance information can distinguish systems with identical worst-case behavior by describing likely or expected timing and resource consumption.The hammering example gives Axel and Alex identical best- and worst-case completion times of 59 and 150 seconds, despite different strategies.
  • Contributions: The paper proposes stochastic semantics for Networks of Priced Timed Automata based on races between components.The semantics supports PTAs with differently evolving clocks and unrestricted use in guards and invariants, while allowing complex stochastic behavior to arise from simple component assumptions.
  • Contributions: The authors apply Statistical Model Checking to estimate correctness for cost-constrained temporal properties without exhaustive state-space exploration.The implementation includes Wald’s sequential hypothesis test, a quantitative approach, and an algorithm for generating random NPTA runs.
  • Contributions: A further SMC extension compares NPTA performance properties parametrically across timed bounds while reusing results in parallel.The approach extends sequential hypothesis testing for performance comparison.
  • Case studies: Case studies use a stochastic extension of UPPAAL and show applications to scheduling problems specified with Duration Probabilistic Automata.The paper reports that the approach is more general and faster than the hypothesis-testing engine implemented in PRISM.

II. NETWORK OF PRICED TIMED AUTOMATA

Networks of Priced Timed Automata generalize timed automata with location-dependent clock rates and compose components under structural compatibility conditions. Their composition supports concrete timed and cost behavior, including bisimilar alternative network structures.

  • Model: NPTAs allow clocks to evolve at different rates in different locations, matching the expressive power of general linear hybrid automata.This expressiveness means that important problems, including reachability, can be undecidable.
  • Semantics: NPTA semantics combines delay transitions, which evolve valuations according to location rates, with discrete transitions enabled by guards and resets.A finite sequence of these transitions defines reachability between states.
  • Model: A PTA consists of locations, an initial location, clocks, input and output actions, edges, rate vectors, and location invariants.Edges include guards, actions, resets, and target locations.
  • Composition: NPTA components must be input-enabled and deterministic, with disjoint clocks, common action sets, and partitioned output actions to form a closed network.The composition uses a product of component locations, unified clocks and rates, intersected invariants, and synchronized edges.
  • Example: The example shows that A|B|T and AB|T are timed and priced bisimilar, with T3 reachable at cost 6.Both compositions share the illustrated transition sequence and reach T3 after costs 0, 4, and 6.

III. PROBABILISTIC SEMANTICS OF NPTA

The paper assigns NPTA networks a stochastic semantics based on independent component delays and outputs competing in races. This semantics supports probabilistic time- and cost-bounded temporal properties that distinguish networks with identical qualitative behavior.

  • Network semantics: Each component independently samples a delay and output, and the component with the minimum delay wins the race and broadcasts its output.Other components must have selected later delays, while the resulting run continues according to the remaining actions.
  • Component semantics: Component delay distributions are uniform or exponential according to location invariants, while enabled outputs use a uniform distribution.The earliest and latest possible output delays are determined from output guards and invariants.
  • Network semantics: Composing simple stochastic components can generate arbitrarily complex stochastic behavior.The network semantics is based on independence between components and races among their sampled delays.
  • PWCTL: The induced probability measure extends to non-nested PWCTL properties expressing probabilistic time- and cost-constrained temporal behavior.The construction uses an observer clock and modifies the automaton with bounded invariants and monitoring edges.
  • Example: Although A|B|T and AB|T satisfy the same WCTL properties, their cumulative time- and cost-bounded reachability probabilities differ.Figure 4 reports these probabilities for a range of bounds, while the example contrasts the two networks under probabilistic semantics.

IV. STATISTICAL MODEL CHECKING FOR NPTA

Because most NPTA and PWCTL model-checking problems are undecidable, the paper uses Statistical Model Checking to estimate properties from simulated runs. It supplies run generation and statistical procedures for qualitative threshold tests and quantitative probability estimation.

  • Motivation: Most model-checking problems for NPTAs and PWCTL, including reachability, are undecidable, motivating approximate statistical answers.SMC generates system runs, monitors them, and applies statistical algorithms to estimate system behavior.
  • Run generation: The proposed random-run algorithm generates NPTA executions from an initial state until an observer-clock cost or time bound is reached.Runs concatenate random successor states while tracking the observer clock and location-dependent rates.
  • Statistical model checking: Each monitored run becomes a Bernoulli random variable indicating whether it satisfies the property.This encoding supports both qualitative and quantitative SMC questions.
  • Statistical model checking: Qualitative SMC tests whether the probability of a bounded reachability property meets a threshold using sequential hypothesis testing.The test uses an indifference region and error-strength parameters α and β.
  • Statistical model checking: Quantitative SMC estimates a property probability within an approximation interval at user-selected confidence using a Chernoff-Hoeffding run bound.The required number of runs depends on the requested approximation and confidence.

V. BEYOND “CLASSICAL” STATISTICAL MODEL-CHECKING

The paper extends probability comparison in statistical model checking from one cost bound to multiple bounds, reusing runs to efficiently determine relative performance across timed bounds.

  • Comparison algorithm: The method also handles runs producing the same outcomes for both experiments, extending the original comparison algorithm for formal verification.The paper identifies this as one of the extensions to the original algorithm.
  • Parametrised comparisons: Parametrised comparison determines results for N cost bounds i*c/N by reusing runs instead of comparing properties separately at each bound.The algorithm tracks outcomes at relevant cost points and terminates when every bound has a known result.
  • Parametrised comparisons: For each bound, the comparison result is three-valued: property 2 is rejected, accepted, or judged indifferent.The values are 0 for rejection, 1 for acceptance, and 0.5 for indifference.

VI. CASE STUDIES

The case studies apply the UPPAAL implementation to train-gate, LMAC, and duration probabilistic automata models, demonstrating probabilistic analysis, parametric comparison, and tool-performance benefits. Results include nontrivial train-crossing distributions, topology- and weight-dependent collision behavior, and faster UPPAAL verification than PRISM.

  • UPPAAL supports user-defined functions and types, expressions in guards and invariants, clock- and delay-rates, and probabilistic branching weights.
  • Train-Gate Example: Train-gate experiments produce nontrivial crossing-time distributions, with valleys corresponding to trains competing for bridge access.
  • Lightweight Media Access Control Protocol: LMAC collision probability is higher with exponential than uniform weights, appears independent of chain versus ring topology, and stabilizes after 50 time units.Parametric comparison is inconclusive for different topologies, while exponential weights become higher after 14 time units.
  • Lightweight Media Access Control Protocol: In the chain topology, zero collisions have probability 87.06% with exponential weights and 89.21% with uniform weights, while the maximum probable count is 7.For the ring topology, collision counts have no upper bound, although the probability bump at large counts totals 0.35%.
  • Duration Probabilistic Automata: For duration probabilistic automata, UPPAAL is faster than PRISM in both hypothesis testing and estimation under the reported error settings.The comparison uses discrete encoding, which is currently the only fair comparison; α = β = 0.05 and the estimation approach uses ϵ = 0.05.

VII. CONCLUSION AND FUTURE WORK

The paper combines stochastic semantics for networks of priced timed automata with Statistical Model Checking and demonstrates broader, faster case-study analysis. Future work targets Bayesian and rare-event extensions, richer properties, and black-box systems.

  • The paper proposes stochastic semantics for networks of priced timed automata and applies Statistical Model Checking to the resulting models.
  • The case studies show more expressive models, faster tooling, and capacity to handle larger models than the state-of-the-art stochastic model checker.
  • The extended property language quantifies events with limited probability and cost impact, complementing critical property checks.
  • Future work includes Bayesian efficiency improvements, rare-event techniques, more elaborate properties, and black-box systems.
Loading 1106.3961v2…