<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta />
    <article-meta>
      <title-group>
        <article-title>Machine Learning and Disk-based Methods for Qualitative Veri cation of Markov Decision Processes</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Mohammadsadegh Mohagheghi</string-name>
          <email>mohagheghi@vru.ac.ir</email>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Khayyam S</string-name>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Department of Computer Science, Shahrekord University</institution>
          ,
          <addr-line>Shahrekord</addr-line>
          ,
          <country country="IR">Iran</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>Department of Computer Science, Vali-e-Asr University of Rafsanjan</institution>
          ,
          <addr-line>Rafsanjan</addr-line>
          ,
          <country country="IR">Iran</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>State explosion is a well-known challenge of model checking. In this paper, we propose several approaches to improve the standard techniques for verifying the qualitative reachability properties of Markov decision processes. For the rst approach, we use two heuristics to reduce the total number of iterations of the standard iterative methods. The second approach uses the secondary hard disks for storing the information of a model and uses the main memory for a back-ward technique on the standard methods. The third approach uses a machine learning technique to classify the state space of a model to the related classes. While this approach does not need any memory overhead, its running time is much less than the running time of the standard approaches and can be used to cope with the state explosion problem.</p>
      </abstract>
      <kwd-group>
        <kwd>Probabilistic model checking</kwd>
        <kwd>Qualitative reachability</kwd>
        <kwd>Markov decision processs</kwd>
        <kwd>Machine learning</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>Introduction</title>
      <p>
        Probabilistic model checking is a formal veri cation technique, used to verify the
correctness of computer systems with some probabilistic aspects [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ]. Markov
decision processes (MDPs) are a well-known formalism for modeling systems that
have both non-deterministic and probabilistic behaviors [
        <xref ref-type="bibr" rid="ref11 ref9">11, 9, 18</xref>
        ]. The main
challenge of model checking is the state space explosion problem. In this
problem, the number of states of the model grows exponentially in the number of
modules of the underlying system [
        <xref ref-type="bibr" rid="ref1 ref6">1, 6</xref>
        ]. Several approaches are proposed to cope
with this problem. Symbolic model checking is a well-established approach that
uses a compact data structure to store the information of a model. Binary
decision diagram (BDD) is one of the most successful compact data structures
that is widely used in successful model checking tools [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ]. Multi-terminal BDD
(MTBDD) has been developed and widely used for veri cation of probabilistic
systems [17].
      </p>
      <p>Copyright © 2020 for this paper by its authors. Use permitted under Creative Commons License Attribution 4.0 International (CC BY 4.0).</p>
      <p>However, iterative computations required in probabilistic model checking are
computationally expensive where BDD-based data structures are used. As an
alternative, sparse matrix representation is used as an explicit approach that
stores the information of state-values and transition probabilities of the model.</p>
      <p>A hybrid approach uses MTBDD for storing the information of transitions and
an explicit array for state-values [17].</p>
      <p>
        In this paper, we focus on the veri cation of qualitative reachability
properties of MDP models and propose several techniques to improve the performance
of standard iterative algorithms for this class of properties. A qualitative
property states that the extremal (minimal or maximal) probability of reaching a
set of states is 0 or 1 [
        <xref ref-type="bibr" rid="ref1 ref9">1, 9</xref>
        ]. Some graph-based computations are needed to
compute the related set of states. While BDD-based implementation for computing
qualitative reachability properties in MDPs is available in several states of the
art model checkers [
        <xref ref-type="bibr" rid="ref10 ref12">10, 12</xref>
        ], their running time is a main drawback of the
BDDbased techniques. To alleviate this drawback, we propose several improvements
for computing qualitative reachability properties of MDPs. The forward and
backward approaches for the standard iterative algorithms for computing
qualitative reachability properties are compared in [16]. While the backward approach
is much faster than the forward one, its memory overhead is the main obstacle
for this approach. As the rst contribution of the paper, we propose several
improvements to the forward approach. The general idea of these approaches
is to reduce the number of iteration of the standard algorithms. We use the
sparse explicit data structure for implementations of these improvements and
consider those models that are small enough to load overall information in the
main memory. Furthermore, we propose two approaches in the case of larger
models that can not be loaded in the main memory. As the second contribution
of the paper, we use a disk-based approach to store the transition probability
information of a model and load its graphical information to the main memory.
      </p>
      <p>In this case, we apply the backward approach to reduce the running time. As
the third contribution, we apply machine learning approaches to compute the
set of states for which the extremal reachability probability is 0 or 1. For each
class of MDP models, we consider several small models for training a classi er
and use it to classify the states of a large model to the related sets. Although
this technique does not guarantee to nd the exact sets, our experiments show
promising results with nearly zero error. The main bene t of this approach is its
scalability for very large models.
1.1</p>
      <sec id="sec-1-1">
        <title>Related Works</title>
        <p>
          The rst algorithms for qualitatively verifying the reachability properties of
MDP models were proposed in [
          <xref ref-type="bibr" rid="ref7">7</xref>
          ]. The time complexity of these algorithms
is linear or quadratic in the size of the model for the minimal or maximal
reachability probabilities, respectively [
          <xref ref-type="bibr" rid="ref1 ref7">1, 7</xref>
          ]. BDD-based and sparse explicit
implementations of these algorithms have been proposed and studied in [17]. The
worst-case time complexity for qualitative veri cation of maximal reachability
probability is improved in [
          <xref ref-type="bibr" rid="ref4">4</xref>
          ]. Decomposing an MDP to its strongly connected
components (SCCs) and computing reachability probabilities of the states of each
SCC has been proposed in [13]. In this case, qualitative veri cation is performed
implicitly for each SCC. Although this technique presents promising results in
the running time, its focus is on the computations of quantitative reachability
properties and does not guarantee the correctness for the results in the case of
qualitative veri cation. The backward and forward approaches for the standard
algorithms for qualitative veri cation of MDPs are studied and compared in
[15]. The backward approach for the sparse explicit data structure is supported
by the STORM model checker [
          <xref ref-type="bibr" rid="ref8">8</xref>
          ]. A linear-time heuristic is proposed in [16]
to approximate the qualitative reachability properties in the case of maximal
probabilities. In Section 3, we use this heuristic to reduce the total number of
iterations for the forward approach. Disk-based techniques have been used in [14]
for veri cation of quantitative properties of very large DTMC and MDP models.
In [
          <xref ref-type="bibr" rid="ref3">3</xref>
          ] a learning-based approach is used for statistical model checking of MDPs.
This approach reduces the visited states of a model and is implemented in the
explicit engine of PRISM. In [20], machine learning is employed to approximate
the probabilities of an unknown MDP model. In [19] machine learning is used
to extrapolate the optimal actions of MDP models. Although the proposed
approach in [19] proposes some promising results, it is limited to only a case study
and its generality for other models is not explained.
2
        </p>
      </sec>
    </sec>
    <sec id="sec-2">
      <title>Preliminaries</title>
      <p>
        In this section, the main concepts and de nitions of probabilistic model checking
and qualitative veri cation of reachability properties are reviewed. More details
about the probabilistic model checking and its variant are available in [
        <xref ref-type="bibr" rid="ref1 ref6 ref9">1, 9, 6</xref>
        ]
2.1
      </p>
      <sec id="sec-2-1">
        <title>Probability Distribution and Markov Decision Process</title>
        <p>A probability distribution on a nite set X is de ned as a function P r : X !
[0; 1] where Px2X P r(x) = 1. We use D(x) to denote the set of all probability
distributions on X.</p>
      </sec>
      <sec id="sec-2-2">
        <title>De nition 1. Markov Decision Processes. A Markov Decision Process</title>
        <p>(MDP) is a tuple M = (S; s0; Act; P; G) where:
{ S is a nite set of states.
{ s0 2 S is the initial state.
{ Act is a nite set of actions. For every state s 2 S, one or more elements of</p>
        <p>Act are de ned as enabled actions and are shown by Act(s).
{ P : S Act ! D(s) is a probabilistic transition function. We use (s; ; s0)
for a transition from the source state s to the destination s0 by the action
and P (s; ; s0) for the probability of this transitions. For each state s 2 S
and enabled action 2 Act(s) a probability distribution is de ned.
{ G S is the (non-empty) set of goal states.</p>
        <p>
          The size of X is de ned as the number of its states and transitions and is shown
by jM j. MDPs are widely used in mathematics, engineering, economics, and
management to model decision making under uncertainty in stochastic environments
[
          <xref ref-type="bibr" rid="ref11">11, 18</xref>
          ]. The actions of MDPs are used to model non-deterministic concepts of a
system and its related environment. The probabilistic transition function is used
to model the stochastic and probabilistic behavior of the environment.
        </p>
        <p>
          In formal veri cation, a high level language is used for modeling computer
systems. Every model includes one or several modules. Some variables in a
bounded domain are de ned for each module. A possible valuation of the
variables in a module presents a state of the module for the system. The PRISM
language is used as the standard modeling language for probabilistic systems
[
          <xref ref-type="bibr" rid="ref12">12</xref>
          ]. The interpreter of the model checker constructs the resulting MDP (states,
actions, and transition probabilities) according to the de nitions of its modules.
More details about the PRISM language are available in [
          <xref ref-type="bibr" rid="ref12">17, 12</xref>
          ].
2.2
        </p>
      </sec>
      <sec id="sec-2-3">
        <title>Semantic of MDP</title>
        <p>For an MDP M and one of its states s 2 S, the MDP performs a transition in
two steps:
{ It non-deterministically selects an enabled action 2 Act(s).
{ It randomly selects the destination state s0 2 S with probability P (s; ; s0).</p>
        <p>For any state s 2 S and enabled action 2 Act(s), we use Post (s; ) for the
set of -successors of s, Post (s) for all its possible successors, and Pre(s) for its
predecessor states:</p>
        <p>:
Post (s; ) = fs0 2 S j P (s; ; s0) &gt; 0g;</p>
        <p>:
Post (s) = [ 2Act(s)Post (s; );</p>
        <p>:
Pre(s) = fs0 2 Sjs 2 P ost(s0)g:
(1)
(2)
(3)</p>
        <p>
          A path in M shows a possible run and is de ned as a non-empty ( nite or
in nite) sequence of states and actions of the form = s0 !0 s1 !1 ::: where
for every i 0, we have si 2 S and i 2 Act(si) and si+1 2 Post (si; i). We
use P aths to denote the set of all in nite paths of M that start from a state
s 2 S. For the subset of nite paths of P aths we use F P aths. We also use (i)
to denote the (i + 1) th state in the path , i.e., (i) = si. To reason about the
probabilistic behavior of an MDP M, one should resolve its non-deterministic
choices. To do so, a deterministic function is used that maps an action 2 Act
to each path of M. This function is called adversary (scheduler or policy) and is
de ned as [
          <xref ref-type="bibr" rid="ref6 ref9">9, 6</xref>
          ] :
De nition 2. (Adversary). An adversary of an MDP M is a function :
F P aths ! Act that for every nite path = s0 !0 s1 !1 ::: !i1 si selects an
enabled action i 2 Act(si). An adversary is called memory-less if it depends
only on the last state of the path. We use F P athS for the set of all nite paths
of the form s !(s) s1:::sn 1
(sn 1) sn that start from s.
        </p>
        <p>!
In this paper, we only use memory-less adversaries that are su cient for
analysis of reachability properties. We use AdvM for the set of all (memory-less)
adversaries of M .
2.3</p>
      </sec>
      <sec id="sec-2-4">
        <title>Reachability Probabilities</title>
        <p>The main class of properties that are used in the probabilistic model checking of
MDPs includes the reachability properties. The computation of these properties
is usually reduced to the computation of the reachability ones. For MDPs, a
reachability probability is de ned as the extremal (minimal or maximal)
probability of reaching a goal state. For an adversary 2 AdvM and a state s 2 S,
we de ne reachs (G) as the set of all nite paths, starting from s 2 S, ending in
G, and selecting actions due to the adversary . Formally we de ne:
reachs (G) = f 2 F P aths j last( ) 2 G; and 8i &lt; j j : (i) 2= Gg
(4)
where last( ) is the last state in . For an adversary and a path 2 F P aths ,
a probability measure pr ( ) is de ned as the product of probabilities of
transitions between the states of :
pr ( ) =</p>
        <p>in=01P (si; (si); si+1)</p>
        <p>This probability measure is used to formally de ne the extremal reachability
probabilities. For any state s 2 S, the minimal and maximal probability of
reaching G from s over AdvM are denoted by P rsmin( G) and P rsmax( G) and
are formally de ned as:
prsmin( G) = inf 2AdvM P r(reachs (G));
prsmax( G) = sup 2AdvM P r(reachs (G))</p>
        <p>P r(reachs (G)) =</p>
        <p>X
2reachs (G)</p>
        <p>P r ( )
where P r(reachs (G)) is used for the total probability of reaching G from s under
the adversary and is formally de ned:
(5)
(6)
(7)
(8)</p>
        <p>Graph-based computations are used to detect the set of states of an MDP
for which the extremal reachability probability is exactly 0 or 1. The properties
that relate to the computation of these states are called qualitative reachability
properties. On the other hand, the properties related to the computations of
reachability probabilities for the remaining states are called quantitative
reachability properties.
2.4</p>
      </sec>
      <sec id="sec-2-5">
        <title>Qualitative Reachability Properties</title>
        <p>The following sets are de ned for the extremal qualitative reachability
probabilities:
Sm0in = fs 2 SjP rsmin( G) = 0g; Sm1in = fs 2 SjP rsmin( G) = 1g;
Sm0ax = fs 2 SjP rsmax( G) = 0g; Sm1ax = fs 2 SjP rsmax( G) = 1g:</p>
        <p>
          The computation of these sets are necessary for qualitative veri cation of
MDPs. For quantitative reachability probabilities, there is no need to have these
sets but they can improve the precision of the computed values [
          <xref ref-type="bibr" rid="ref9">9</xref>
          ]. For the case
of extremal expected rewards (where the maximal or minimal expectation of
accumulated rewards until reaching a goal state is considered), the computations
of the Sm0ax and Sm1ax are needed to guarantee the convergence of the
computed values. Graph-based iterative methods, which only consider the graphical
structure of the underlying models are used to compute these sets. Iterative
numerical methods are used for the computation of quantitative properties [
          <xref ref-type="bibr" rid="ref1 ref6">1, 6</xref>
          ].
Algorithm. 1 and Algorithm. 2 describe the standard iterative algorithms for
computing the Sm0ax and Sm1ax [
          <xref ref-type="bibr" rid="ref9">9</xref>
          ].
        </p>
        <sec id="sec-2-5-1">
          <title>Algorithm 1 The standard algorithm for computing Sm0ax</title>
          <p>Input: MDP M = (S; s0; Act; P; G)</p>
          <p>Output: The set Sm0ax = fs 2 S j prsmax( G) = 0g
1: R := G;
2: repeat
3: R0:= R;
4: R := R0 [ fs 2 S j post(s) 2 R0g;
5: until R 6= R0;
6: return S n R;</p>
          <p>In each iteration, the Algorithm. 1 adds a state s 2 S=R to R if at least one
state s0 2 P ost(s) has been added to R in the previous iteration. The algorithm
continues until the case where no new state is added to R. The last set R is the
xed point of the computations and contain all states that can reach to at least
one of the goal states. For each s 2 R we have P rsmax( G) &gt; 0. The remaining
states (S=R) are those that can not reach to any goal states and correspond to
the de nition of Sm0ax.</p>
          <p>For Algorithm. 2, two nested loops are used to compute the Sm1ax set. The
outer loop starts with S and iteratively removes those states s 2 S for which
P rsmax(G) &lt; 1. For these outer loop iterations, a sequence of Ri sets are induced
where S = R0 R1 ::: Rn = Sm1ax. To compute each Ri set the inner loop
starts from G (line 6 of Algorithm. 2) and iteratively adds each state s0 2 S to
Ri if s0 can reach to one of the goal states with probability one via the states of
Ri 1. The remaining states after reaching the xed point (the states in S=Rn) do</p>
        </sec>
        <sec id="sec-2-5-2">
          <title>Algorithm 2 The standard algorithm for computing Sm1ax</title>
          <p>Input: MDP M = (S; s0; Act; P; G)</p>
          <p>
            Output: The set Sm1ax = fs 2 S j prsmax( G) = 1g
not belong to Sm1ax. The correctness of the standard algorithms for qualitative
reachability properties are available in [
            <xref ref-type="bibr" rid="ref1 ref7">1, 7</xref>
            ].
          </p>
          <p>
            For an MDP M with jSj states, the time complexity of algorithms 1 and 2 are
in O(jM j) and O(jM j jSj) respectively. In these cases, we suppose that for each
state s 2 R0 the algorithms can determine any states of P re(s) in a constant
time [
            <xref ref-type="bibr" rid="ref1">1</xref>
            ]. For this purpose, an standard approach is to restore the information of
the model in a backward approach, i.e. for each state s 2 S the method should
restore the list of states in P re(s).
          </p>
          <p>
            The main drawback of the backward approach is its memory overhead which
limits it to small models. On the other hand, the forward implementation of these
algorithms is proposed and used in PRISM [
            <xref ref-type="bibr" rid="ref12">12</xref>
            ]. The forward approach need not
any additional memory, but may increase the number of iterations and the
running time of the computations. The memory consumption and running time of
the forward and backward approaches for the standard algorithms of
qualitative veri cation of MDPs are compared in [16]. In this paper, we only consider
the maximal qualitative reachability properties. The standard algorithms for the
minimal case can be found in [
            <xref ref-type="bibr" rid="ref1 ref9">1, 9</xref>
            ]. All proposed techniques of this paper can
also be applied to the case of minimal reachability properties.
3
          </p>
        </sec>
      </sec>
    </sec>
    <sec id="sec-3">
      <title>The Proposed Methods for Accelerating Qualitative</title>
    </sec>
    <sec id="sec-4">
      <title>Veri cation of MDPs</title>
      <p>In this section, we propose three approaches to improve the performance of the
standard algorithms for computing qualitative reachability properties in MDPs.
3.1</p>
      <sec id="sec-4-1">
        <title>Reducing Iterations of the Forward Approaches</title>
        <p>We use two heuristic techniques to reduce the number of iterations of the
forward implementation of the standard algorithms for qualitative veri cation of
reachability properties in MDPs. Although the idea of these heuristics has been
used in the previous works for other classes of properties for MDPs, to the best
of our knowledge, they were not applied for computing qualitative reachability
properties.</p>
        <p>
          The rst heuristic (called h1 for the remaining parts) is to merge separate
sets of the standard algorithms to one set. One drawback of the algorithms 1
and 2 (which are proposed in [
          <xref ref-type="bibr" rid="ref1 ref9">1, 9</xref>
          ]) is that they separate the computed sets in
the current iterations from the set of the previous iteration. The Algorithm 1
uses two sets R and R0 while it can keep all added states to one set R. In the
latter case, any added state in each iteration can be used to add (probably) some
other states in the same iteration. In Algorithm 2, the R and R00 of the inner
loop can be merged to one set.
        </p>
        <p>
          The second heuristic (called h2) reduces the total number of iterations
using a good state ordering for selecting the remaining states of each algorithm.
Several state ordering techniques have been proposed in the previous works for
quantitative reachability properties [
          <xref ref-type="bibr" rid="ref5">5</xref>
          ] or discounted accumulated rewards [21].
In both cases, the proposed methods use the P re(s) states of each state s. To
avoid the memory overhead of the information of the P re sets, we use a forward
approach for state ordering. The idea of this approach is to consider the graph of
the model in a forward manner and perform a breadth- rst search on the graph.
The visited states of the model (nodes of the related graph) are stored in a list
and the iterative methods use the list in reverse order. The algorithm of this
method is proposed in Algorithm. 3. This algorithm uses an array StateOrder
to store the selected states. In each step, it selects a state from the beginning
of the array and adds its non-selected successor states to the end of the array.
The algorithm terminates when all states of the model have been added to the
StateOrder array. The main advantage of our proposed state ordering is that it
does not need to store any additional information of the model and as a result
it does not have any memory overhead. Note that the backward approach does
not need to compute the state ordering explicitly. It considers states for adding
to the R sets in the right way.
        </p>
        <p>The iterative methods should use the states in the StateOrder array in reverse
order (from end to the beginning of the array). In general, this state ordering can
reduce the number of iterations of the iterative methods because it accelerates
the propagation of the related information between the states of the model. This
state ordering is used in line 4 of Algorithm. 1 and line 7 of Algorithm. 2 where
the algorithms update the R sets in each iteration.
3.2</p>
      </sec>
      <sec id="sec-4-2">
        <title>Disk-based Backward Technique for Qualitative Veri cation</title>
        <p>To compensate the memory overhead of the backward approach, the secondary
storage can be used. The idea of this approach is shown in Algorithm. 4. It
rst uses the MTBDD-based approach to construct the model and directly store
the information of the model to the hard disk. Furthermore, it computes the
information of the backward graph and loads them into the main memory. This
structure does not include the information of transition probabilities and is used
Algorithm 3 Forward method for state ordering</p>
        <p>Input: MDP M = (S; s0; Act; P; G)</p>
        <p>Output: A state ordering array Stateorder[]
to compute the Sm0ax and Sm1ax sets. Finally, the information of the remaining
states (S=(Sm0ax [Sm1ax)) will be loaded into the main memory if they are needed
for quantitative veri cation. The main advantage of this approach is avoiding
any memory overhead while it uses the backward approach for qualitative
veri cation. However, this approach applied only to those models for which the
information of the backward graph can be loaded into the main memory.
Algorithm 4 The Disk-base Approach</p>
        <p>Input: An MTBDD representation for an MDP M = (S; s0; Act; P; G)
Output:The sets Sm1ax and Sm0ax
1: Store the information of M from MTBDD to the hard disk;
2: Compute the backward graph of M and load it to the main memory;
3: Apply the backward technique for computing the sets Sm1ax and Sm0ax;
4: Free the memory of the backward graph;
5: Load the information of M for the remaining states to the main memory;
3.3</p>
      </sec>
      <sec id="sec-4-3">
        <title>Using Machine Learning for Quali cation Veri cation of MDPs</title>
        <p>
          Machine learning plays an important role in nowadays life. Classi cation is a act
of categorizing a given set of data into classes. In machine learning, classi
cation is supervised learning in which it infers from the data given to it and makes
new observations or classi cations based on the pattern extracted from training
data [
          <xref ref-type="bibr" rid="ref2">2</xref>
          ]. There are many algorithms used in classifying new data. Some types of
classi cation in machine learning can be summarized as Naive Bayes, Stochastic
Gradient Descent, K-Nearest Neighbors, Decision Tree, Random Forest, Arti
cial Neural Network, Support Vector Machine, and so on.
        </p>
        <p>As the main contribution of this paper, we propose a new approach which
uses machine learning techniques to verify the qualitative reachability properties
of MDPs. Our technique uses the fact that some parameters de ne the bound
of some variable domains of MDP modules. The size of MDPs for a high-level
de nition changes according to the values of these parameters. In Fig.1 the initial
de nition of the Consensus model is proposed. This model includes four modules
(N = 4). Each module contains two variables (pc1 and coin1 ). A counter is
de ned as a global variable. The model has a parameter (K) which determines
the range of the counter variable. According to the values of this parameter, we
can have some models with di erent size.
In general and for each class of models, we can consider small values for its
parameters and have some small MDPs. A standard method can compute the
qualitative reachability properties of these small models. As a result, the set S
of state of a model are classi ed into the Sm0ax, Sm1ax, and Sm?ax = S=(Sm0ax
[ Sm1ax) sets. We use the small models for training a classi er. Furthermore,
it is used to classify the state space S of a large model to its Sm0ax, Sm1ax,
and Sm?ax sets. We consider the variables and parameters of each model as its
properties and its states as the samples for training. Also, for each variable with
parametric domain (like the counter variable in Fig.1), we consider a property as
the di erence between its domain bound and its values. This additional property
helps the classi er to improve its performance.</p>
      </sec>
    </sec>
    <sec id="sec-5">
      <title>Experimental Results</title>
      <p>
        To show the feasibility and applicability of the proposed approaches, we consider
several test case models. These test cases are selected from the PRISM standard
case studies and are widely used in the literature [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ]. For the forward approach,
we implement our improvements in the PRISM model checker. We use its sparse
engine, which is implemented in C. We use a machine with a Core-i7 Intel
processor with 8GB of RAM. In Table 1, the experiments for computing Sm0in and
Sm0ax sets are demonstrated. The rst column of the table presents the model's
name. For Consensus, Zeroconf, and Wlan classes, we consider a maximal
reachability property and for the Firewire class, we consider a minimal reachability
property. More information about these classes are available in [
        <xref ref-type="bibr" rid="ref12">12</xref>
        ]. The MDP
size of each model is the number of its states and transitions.
      </p>
      <p>We consider the running time and the number of iterations of Algorithm. 1
for the MTBDD-based method as is used in PRISM. We also demonstrate the
running time of the sparse implementation of this algorithm. For our proposed
heuristics, we report the running time and the number of iterations of the forward
method with these heuristics. The running time in all tables are in seconds.</p>
      <p>In Table. 2, we show the running time for the standard iterative method and
our heuristics for computing the Sm1in and Sm1ax sets. For Disk-based technique,
the running times include the time for writing a model in the secondary disk,
constructing the backward graph, computing qualitative reachability properties
using the backward graph, and nally loading the information of the remaining
part of each model (for the S? sets) to the main memory. For the case of S0 sets,
all running times are less than 1 second and we do not separate their running
times.</p>
      <p>The results of Table 1 and 2 show that our proposed heuristics for the
forward implementation of the standard algorithms improves their performance for
computing qualitative reachability properties of MDPs. The best results are for
the Consensus and rewire cases. For the wlan and zeroconf models, our
heuristics reduce the number of iterations by one or two orders of magnitude. In most
cases, the Disk-based method outperforms the others. Note that this approach is
more useful for large models, where the information of a model cannot be loaded
to the main memory.</p>
      <p>To apply machine learning for computing qualitative reachability properties
of MDPs, we use Scikit-learn package of Python. For each class of models, we
consider two or three small models for training and use decision tree classi er of
Python. For each training MDP samples, PRISM is used to separate the state
to the Sm1ax, Sm0ax and Sm?ax classes. We use the exportstates PRISM command
to store the state-property information of states to related les. The inputs
to the training phase are the state-separed and state-property les. To test the
precision of this technique, we consider several test cases for each class of models.
The results of this technique are proposed in Table. 3.</p>
      <p>To compare the running time of the proposed methods for computing the
Sm1ax sets we consider several models of the Consensus example with N=6 and
di erent values for the K parameter in range [20,100]. The results are proposed
in Fig. 2 where the horizontal axix shows the value of K and the vertical axis
shows the running time in logarithmic mode. The results show that our proposed
heuristics reduce the running times by at leat two orders of magnitude.
5</p>
    </sec>
    <sec id="sec-6">
      <title>Conclusion and future work</title>
      <p>In this paper, we propose several techniques to improve the performance of the
iterative computations for the qualitative reachability properties of MDPs. We
rst propose two heuristics for the forward implementation of the standard
algorithms. The running times of our experiments show promising results for these
heuristics. Because of the memory limitation of the explicit methods, we propose
a disk-based method to save memory for graph-based computations. As the main
contribution, we propose a method using machine learning to classify the state
space of a model to the related classes. The experiments show promising results
for this technique. For future works, we plan to extend our machine learning
method to other problems of probabilistic model checking. As an example, this
technique can be used to approximate the optimal policy of a large MDP model,
which can be used for improving the current techniques for statistical model
checking.
13. Kwiatkowska, M., Parker, D., Qu, H.: Incremental quantitative veri cation for
markov decision processes. In: 2011 IEEE/IFIP 41st International Conference on
Dependable Systems &amp; Networks (DSN). pp. 359{370. IEEE (2011)
14. Mehmood, R.: Disk-based techniques for e cient solution of large Markov chains.</p>
      <p>Ph.D. thesis, University of Birmingham Birmingham (2004)
15. Mohagheghi, M.: Improving pre-computation for veri cation of markov decision
processes. International Journal of New Technologies in Science and Engineering
5(5) (2018)
16. Mohagheghi, M., Salehi, K.: Improving graph-based methods for computing
qualitative properties of markov decision processes. Indonesian Journal of Electrical
Engineering and Computer Science 17(3), 1571{1578 (2020)
17. Parker, D.A.: Implementation of symbolic model checking for probabilistic systems.</p>
      <p>Ph.D. thesis, University of Birmingham (2003)
18. Puterman, M.L.: Markov decision processes: discrete stochastic dynamic
programming. John Wiley &amp; Sons (2014)
19. Rataj, A., Wozna-Szczesniak, B.: Extrapolation of an optimal policy using
statistical probabilistic model checking. Fundamenta Informaticae 157(4), 443{461
(2018)
20. Tappler, M., Aichernig, B.K., Bacci, G., Eichlseder, M., Larsen, K.G.: L -based
learning of markov decision processes. In: International Symposium on Formal
Methods. pp. 651{669. Springer (2019)
21. Wingate, D., Seppi, K.D.: Prioritization methods for accelerating mdp solvers.</p>
      <p>Journal of Machine Learning Research 6(May), 851{881 (2005)</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <surname>Baier</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Katoen</surname>
            ,
            <given-names>J.P.</given-names>
          </string-name>
          :
          <article-title>Principles of model checking</article-title>
          . MIT press (
          <year>2008</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <surname>Bishop</surname>
            ,
            <given-names>C.M.</given-names>
          </string-name>
          :
          <article-title>Pattern recognition and machine learning</article-title>
          . springer (
          <year>2006</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <surname>Brazdil</surname>
            ,
            <given-names>T.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Chatterjee</surname>
            ,
            <given-names>K.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Chmelik</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Forejt</surname>
            ,
            <given-names>V.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Kret</surname>
            <given-names>nsky</given-names>
          </string-name>
          , J.,
          <string-name>
            <surname>Kwiatkowska</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Parker</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Ujma</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          :
          <article-title>Veri cation of markov decision processes using learning algorithms</article-title>
          .
          <source>In: International Symposium on Automated Technology for Veri cation and Analysis</source>
          . pp.
          <volume>98</volume>
          {
          <fpage>114</fpage>
          . Springer (
          <year>2014</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <surname>Chatterjee</surname>
            ,
            <given-names>K.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Henzinger</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          :
          <article-title>Faster and dynamic algorithms for maximal endcomponent decomposition and related graph problems in probabilistic veri cation</article-title>
          .
          <source>In: Proceedings of the twenty-second annual ACM-SIAM symposium on Discrete Algorithms</source>
          . pp.
          <volume>1318</volume>
          {
          <fpage>1336</fpage>
          .
          <string-name>
            <surname>SIAM</surname>
          </string-name>
          (
          <year>2011</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <surname>Ciesinski</surname>
            ,
            <given-names>F.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Baier</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          , Gro er,
          <string-name>
            <given-names>M.</given-names>
            ,
            <surname>Klein</surname>
          </string-name>
          , J.:
          <article-title>Reduction techniques for model checking markov decision processes</article-title>
          .
          <source>In: 2008 Fifth International Conference on Quantitative Evaluation of Systems</source>
          . pp.
          <volume>45</volume>
          {
          <fpage>54</fpage>
          .
          <string-name>
            <surname>IEEE</surname>
          </string-name>
          (
          <year>2008</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <surname>Clarke</surname>
            ,
            <given-names>E.M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Henzinger</surname>
            ,
            <given-names>T.A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Veith</surname>
            ,
            <given-names>H.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Bloem</surname>
          </string-name>
          , R.:
          <source>Handbook of model checking</source>
          , vol.
          <volume>10</volume>
          . Springer (
          <year>2018</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7.
          <string-name>
            <surname>De Alfaro</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          :
          <article-title>Formal veri cation of probabilistic systems</article-title>
          .
          <source>Ph.D. thesis</source>
          , Stanford University (
          <year>1997</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          8.
          <string-name>
            <surname>Dehnert</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Junges</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Katoen</surname>
            ,
            <given-names>J.P.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Volk</surname>
            ,
            <given-names>M.:</given-names>
          </string-name>
          <article-title>A storm is coming: A modern probabilistic model checker</article-title>
          . In: International Conference on Computer Aided Veri cation. pp.
          <volume>592</volume>
          {
          <fpage>600</fpage>
          . Springer (
          <year>2017</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          9.
          <string-name>
            <surname>Forejt</surname>
            ,
            <given-names>V.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Kwiatkowska</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Norman</surname>
            ,
            <given-names>G.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Parker</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          :
          <article-title>Automated veri cation techniques for probabilistic systems</article-title>
          .
          <source>In: International School on Formal Methods for the Design of Computer</source>
          ,
          <source>Communication and Software Systems</source>
          . pp.
          <volume>53</volume>
          {
          <fpage>113</fpage>
          . Springer (
          <year>2011</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          10.
          <string-name>
            <surname>Hahn</surname>
            ,
            <given-names>E.M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Li</surname>
            ,
            <given-names>Y.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Schewe</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Turrini</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Zhang</surname>
          </string-name>
          , L.:
          <article-title>IscasMC: a web-based probabilistic model checker</article-title>
          .
          <source>In: International Symposium on Formal Methods</source>
          . pp.
          <volume>312</volume>
          {
          <fpage>317</fpage>
          . Springer (
          <year>2014</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          11.
          <string-name>
            <surname>Katoen</surname>
            ,
            <given-names>J.P.:</given-names>
          </string-name>
          <article-title>The probabilistic model checking landscape</article-title>
          .
          <source>In: Proceedings of the 31st Annual ACM/IEEE Symposium on Logic in Computer Science</source>
          . pp.
          <volume>31</volume>
          {
          <issue>45</issue>
          (
          <year>2016</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          12.
          <string-name>
            <surname>Kwiatkowska</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Norman</surname>
            ,
            <given-names>G.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Parker</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          :
          <article-title>Prism 4.0: Veri cation of probabilistic real-time systems</article-title>
          . In: International conference on computer aided veri cation. pp.
          <volume>585</volume>
          {
          <fpage>591</fpage>
          . Springer Berlin Heidelberg (
          <year>2011</year>
          )
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>