Statistical ModelChecking of BlackBox Probabilistic Systems VESTA - PowerPoint PPT Presentation

1 / 20
About This Presentation
Title:

Statistical ModelChecking of BlackBox Probabilistic Systems VESTA

Description:

used for performance evaluation and. reliability analysis ... Resolve 'don't know' (?) in adversial fashion. Observation region ... – PowerPoint PPT presentation

Number of Views:43
Avg rating:3.0/5.0
Slides: 21
Provided by: KSen9
Category:

less

Transcript and Presenter's Notes

Title: Statistical ModelChecking of BlackBox Probabilistic Systems VESTA


1
Statistical Model-Checking of Black-Box
Probabilistic SystemsVESTA
  • Koushik Sen
  • Mahesh Viswanathan
  • Gul Agha
  • University of Illinois Urbana-Champaign

2
Motivation
  • Simulation of probabilistic systems
  • used for performance evaluation and
  • reliability analysis
  • Can we use the traces obtained from simulation
    for formal verification?
  • Statistical model-checking

3
Assumptions for black-box probabilistic systems
  • Stochastic Discrete Event System
  • Paths are of the form s0 --t0-gt s1 --t1-gt
  • Labeling function L S ! 2AP
  • Probability measure ? on the set of paths with
    common prefix is unknown
  • Each state has a unique identifier
  • Not required if properties are without nested
    probabilistic operators
  • We have no control on the execution of the system
  • Samples can be generated through discrete event
    simulation
  • Time domain may be continuous or discrete
  • Example
  • Systems having underlying continuous-time Markov
    chain (CTMC) model
  • Systems having underlying discrete-time Markov
    chain (DTMC) model

4
Properties in CSL sub-logic
  • ? true a ? Æ ? ? PQ p(?)
  • ? ? Ultt ? X ?
  • where Q 2 lt,gt,,
  • Plt 0.5(lt10 full)
  • Probability that queue becomes full in 10 units
    of time is less than 0.5
  • Pgt0.98( retransmit Ult200 receive)
  • Probability that a message is received
    successfully within 200 time units without any
    need for retransmission is greater than 0.98

5
Statistical Approaches
Younes et al. 02,04
Monte-Carlo Simulator
Property
6
Our Approach
Property
7
Statistical Model Checking
  • Given a model M, a set of samples S (generated
    from M) and a property ?
  • A(S, s0,?)
  • A(S, s0,?) yes with error ?
  • ) ? PrA(S, s0,?) yes M,s0 2 ?
  • A(S, s0,?) no with error ?
  • ) ? PrA(S, s0,?) no M,s0 ² ?
  • A(S, s0,?) dont know
  • smaller the error (also called p-value) better
    the confidence


yes with error ? no with error ? dont know
8
Model-Checking Overview
  • Check satisfaction of a formula
  • Check satisfaction of its sub-formula
  • Use the result to check satisfaction of the
    formula
  • ?1 Æ ?2 is satisfied at s iff
  • ?1 is satisfied at s
  • ?2 is satisfied at s
  • ?1 Ultt?2 is satisfied on a path s1s2 iff
  • At si, ?2 is satisfied
  • At sj (for all j lti), ?1 is satisfied
  • time(si) time(s1) lt t
  • Pltp ( ?) is satisfied at s iff
  • probability that a path from s satisfies ? is
    less than p

Easy
Easy
How??
9
Checking Plt0.6(p Ult12 q) statistically at s
Sample contains, say, 30 paths from s
  • On 21 paths (p Ult12 q) is satisfied
  • 21/30 gt 0.6
  • can we say that Plt0.6(p Ult12 q) is violated at s
    ??
  • Statistically, yes, provided we quantify the
    error in our decision
  • error ?
  • PrOn 21 (or more) out of 30 paths (p Ult12 q)
    hold probability that (p Ult12 q) holds on
    a path is less than 0.6
  • PrX 21 where XBinomial(30,0.6)

.
p Ult12 q
10
Error (p-value)
  • Let r ( of paths on which (p Ult12 q) hold /
    of total paths)
  • Let p Pr(p Ult12 q) holds on a path
  • no answer (formula violates)
  • yes answer (formula holds)

error Prr 21/30 p 0.6
error Prr 10/30 p 0.6
11
Nested Checking Plt0.6(?1Ult12?2) at s
  • ?1 and ?2 contain nested probabilistic operators
  • Checking (?1 Ult12 ?2) over a path
  • Answers are not simply yes or no
  • Answers can be
  • yes with error ?
  • no with error ?
  • dont know
  • Need a modified decision procedure
  • Handle dont know to get useful answers
  • Incorporate error of decision for sub-formulas

12
Checking Plt0.6(?1Ult12?2) at s (Problem)
  • Solution
  • Resolve dont know (?) in adversial fashion
  • Observation region
  • Create uncertainty region to incorporate error
    associated with sub-formulas.

.
?
?
?1
?3
?2
?1 Ult12 ?2
13
To check Plt0.6(?1Ult12?2) at s
  • Need to check if of yes paths by of total
    paths lt 0.6
  • Let, of yes paths20, of no paths 8,
    of dont know paths 3
  • of yes paths lies between
  • 20 resolve all dont know paths as no paths
  • 23 resolve all dont know paths as yes
    paths
  • Create an uncertainty region 0.6 - ?1 , 0.6
    ?2
  • ?1 and ?2 depends on error for decision along
    all the sample paths
  • Check if 20/30,23/30 falls outside 0.6 - ?1 ,
    0.6 ?2

0.6-?1
0.6?2
0.0
1.0
0.6
23/30
20/30
14
Case 1 yes answer
error estimate
r
p
0.6-?1
0.6?2
0.0
1.0
0.6
15
Case 2 no answer
error estimate
r
p
0.6-?1
0.6?2
0.0
1.0
0.6
16
Case 3 dont know answer
no error
0.6-?1
0.6?2
0.0
1.0
0.6
17
From nested error to uncertainty region
  • Random variable X 1 if ? ² ? and 0 otherwise
  • Let Random variable Z 1 if A(S,?,?) yes with
    error ? and 0 if A(S,?,?) no with error ?
  • X Bernoulli(p) (say)
  • Z Bernoulli(p) (say)
  • We get samples from this distribution
  • Can estimate p
  • However, to verify P p(?)
  • check if p p or not
  • Relate p and p
  • p-?p p p(1-p)?
  • p - ?1 p p ?2 uncertainty region

18
Conjunction
  • A(S,s,?1 Æ ?2)
  • Let A(S,s,?1) x1 with error ?1
  • and A(S,s,?2) x2 with error ?2
  • where xi 2 yes,no,dont know
  • If x1yes and x2yes then A(S,s,?1 Æ ?2)
    yes with error max(?1,?2)
  • If x1no or x2no then A(S,s,?1 Æ ?2) no
    with error ?1 ?2 - ?1?2
  • Else dont know

19
Evaluation
  • Implementation VeStA
  • http//osl.cs.uiuc.edu/ksen/vesta/
  • Tandem Queuing Network
  • Cyclic Polling System
  • Grid World Example
  • Answers matched the numerical model-checker
  • error (?) of the order 10-8 in all of our
    experiments
  • Very high confidence in our result
  • Disadvantage Space requirement is high
  • Required to store all samples before
    model-checking

20
Future Work
  • Use Machine Learning to get rid of state
    identifiers
  • Possible for CTMC models Sen et al. QEST 04
  • State identifiers are not required if there is no
    nested probabilistic operator
  • In practice most interesting properties are
    without nested probabilistic operators
  • Verify probabilistic properties of various
    network protocols
  • Earlier intractable due to large state space
Write a Comment
User Comments (0)
About PowerShow.com