A Practitioner's Guide to MDP Model Checking Algorithms

Arnd Hartmanns, Sebastian Junges, Tim Quatmann, Maximilian WeiningerarXiv 2023

TL;DR

This paper provides a comprehensive empirical evaluation of the three main families of Markov Decision Process (MDP) model checking algorithms: value iteration, policy iteration, and linear programming. By evaluating these approaches across multiple solvers and two independent model checkers, the authors debunk common folklore, expose critical numerical soundness issues in standard tools, and offer a practical guide on when to deploy each algorithm.

What Problem Does This Paper Address?

Markov Decision Processes (MDPs) are the mathematical backbone for verifying systems that operate under uncertainty, ranging from autonomous robots to network protocols. When model checking these systems, engineers typically ask undiscounted questions: "What is the worst-case probability that the system crashes?" (reachability) or "What is the expected fuel consumption until the task is complete?" (expected rewards).

While Value Iteration (VI) is the default choice for almost all modern probabilistic model checkers, it has a dark side: it can suffer from agonizingly slow convergence and numerical instability. Even worse, standard implementations often rely on naive stopping criteria that can return completely incorrect results. Conversely, Linear Programming (LP) guarantees polynomial-time solutions but has traditionally been dismissed by the verification community as too slow for practical use. This paper systematically investigates these trade-offs to determine which algorithms actually perform best under different conditions.

Methods

The authors evaluate three core algorithmic families for solving undiscounted MDP queries:

  1. Value Iteration (VI): Specifically focusing on modern, sound variants like Optimistic Value Iteration (OVI) which provide guaranteed $\epsilon$-precise results.
  2. Policy Iteration (PI): An approach that iteratively improves system strategies by solving the underlying Markov chain. The authors test various linear equation solvers (like GMRES and LU decomposition) to handle the chain-solving step.
  3. Linear Programming (LP): Formulating the MDP verification as an optimization problem. The authors benchmark 10 different off-the-shelf LP solvers using both simplex and interior-point methods.
Table 2: Available LP solvers (“intr” = interior point)

To ensure the findings are robust and not just artifacts of a single flawed implementation, all algorithms were tested across two independent probabilistic model checking tools: Storm and mcsta. They also evaluate structural optimizations like topological decomposition (breaking the model into strongly connected components) and Maximal End Component (MEC) collapsing.

Datasets

The algorithms were evaluated on three distinct benchmark sets:

  • The qvbs set: 367 quantitative instances drawn from the Quantitative Verification Benchmark Set (QVBS), representing a wide variety of real-world and academic verification problems.
  • The hard set: A subset of 18 highly challenging QVBS instances where value iteration takes longer to run than the entire state-space construction phase.
  • The premise set: 200 numerically challenging MDPs generated from a real-world runtime monitoring application. These models feature highly cyclic structures with frequent transitions back to the initial state, making them notoriously difficult for iterative numerical methods.

Key Insights and Ideas

  • The Deceptive MDP ($M_n$): The authors introduced a handcrafted family of MDPs ($M_n$) that exposes a massive vulnerability in floating-point implementations. By layering a deceptive decision problem on top of a slowly-converging Markov chain, they proved that every single tested floating-point LP solver and standard PI/VI implementation returns incorrect results as $n$ grows larger.
Fig. 1: A hard MDP for all algorithms
Table 1: Maximum value of $n$ for which each solver returns a correct result on $M_n$
  • The Policy Iteration Soundness Trap: A major finding is that Policy Iteration can become completely unsound if its underlying Markov chain solver is only approximately ($\epsilon$-)precise. Small numerical inaccuracies can hide valid policy improvements, causing the algorithm to prematurely halt on a severely suboptimal strategy.
  • Folklore vs. Reality: While community consensus heavily favors Value Iteration, this paper proves there is no single winner. OVI is an excellent, safe default for standard models, but LP and PI are significantly more robust when dealing with numerically unstable or highly cyclic systems.

Key Results

  • On Standard Benchmarks (qvbs): Optimistic Value Iteration (OVI) is the fastest and most scalable choice. Among the non-exact LP solvers, Gurobi achieved the highest performance and best reliability. Exact LP solving via Z3 was incredibly slow, but SoPlex’s exact rational arithmetic mode proved surprisingly competitive with floating-point solvers.
  • On Numerically Hard Benchmarks (premise): The tables turned completely on the runtime monitoring models. OVI timed out or failed to terminate on nearly half of the instances (solving only 116/200). Floating-point LP with Gurobi was lightning fast (under 1 second) but delivered flat-out wrong answers for 45 instances. Ultimately, Exact Policy Iteration (using exact LU decomposition) emerged as the superior choice, providing both speed and absolute correctness.

Limitations and Future Work

The authors note that this study is strictly limited to flat, explicit state-space representations that fit entirely within a machine's RAM. It explicitly leaves out symbolic verification methods (like Binary Decision Diagrams) and partial/incremental state-space exploration techniques.

For future work, the authors highlight a major open research question: how to mathematically identify and quantify the specific structural properties (beyond simple cyclicity) that make an MDP "hard" for a given algorithm. They also call on the community to contribute more diverse, numerically challenging models to open benchmark suites to prevent over-optimizing tools for simple models.

Summary updated

BibTeX
@misc{hartmanns2023practitioner,
  author = {Arnd Hartmanns and Sebastian Junges and Tim Quatmann and Maximilian Weininger},
  title = {{A Practitioner's Guide to MDP Model Checking Algorithms}},
  year = {2023},
  eprint = {2301.10197},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2301.10197},
}
Figure