NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Lightweight Verification of Markov Decision Processes with Rewards

Axel Legay, Sean Sedwards, Louis-Marie TraonouezarXiv 2014

Introduction

Markov Decision Processes (MDPs) are a fundamental mathematical framework for modeling systems that combine probabilistic uncertainty with nondeterministic choices. They are widely used in fields ranging from optimization to concurrency analysis. However, traditional numerical methods for verifying MDPs, such as value iteration, face a significant hurdle: the State Space Explosion. As the number of variables in a system grows, the state space increases exponentially, making it impossible to store the entire model in memory.

An example of a Markov Decision Process (MDP) with rewards and logical properties.

While Statistical Model Checking (SMC) offers a scalable alternative by using Monte Carlo simulations, applying it to MDPs is challenging. One must resolve nondeterministic choices (the "scheduler") before simulation can begin. Furthermore, many real-world applications require analyzing rewards (e.g., energy consumption or path length) rather than just probabilities. Rewards introduce additional complexity because they are unbounded and can become infinite if a goal state is never reached. This paper presents a "lightweight" SMC framework designed to handle these challenges efficiently.

Methodology

The proposed approach focuses on memory efficiency and statistical rigor to find optimal rewards without exhaustive state-space exploration.

1. Constant-Memory Scheduler Representation

Instead of storing a massive lookup table for every possible choice in the MDP, the authors use a technique called Hashing the Trace. By hashing the current execution path and using the result as a seed for a pseudo-random number generator (PRNG), a specific scheduler can be represented and reproduced using only $O(1)$ memory. This allows the algorithm to sample from a vast space of schedulers without a corresponding increase in memory usage.

2. Iterative Smart Sampling

To efficiently find near-optimal schedulers, the algorithm employs an iterative refinement process. It begins with a large pool of candidate schedulers and performs a small number of simulations for each. The bottom-performing half is discarded, and the remaining simulation budget is reallocated to the more promising candidates. This heuristic focuses computational resources where they are most likely to yield optimal results.

3. Statistical Guarantees for Rewards

Since rewards are not bounded between 0 and 1, the authors utilize a generalized version of the Chernoff-Hoeffding bound. This provides formal statistical guarantees on the relative error of the reward estimates based on a user-specified confidence level ($\delta$) and error bound ($\epsilon$).

4. Handling Infinite Rewards

To address the "infinite reward" problem in reachability properties, the framework introduces an Auxiliary Hypothesis Test. Before estimating the expected reward, the system performs a pre-check to ensure that the probability of reaching the target state is effectively 1. If this test fails, the reward is considered infinite, preventing erroneous numerical estimates.

Experimental Evaluation

The framework was evaluated using several standard benchmarks from the PRISM model checker library:

  • Network Virus Infection: Estimating expected attacks before infection.
  • Self-Stabilization Protocol: Measuring steps to reach a stable state in a distributed system.
  • Gossip Protocol: Analyzing path lengths for information propagation.
  • Choice Coordination: A model specifically chosen for its intractability in standard numerical tools when parameters are high.

Key Results and Insights

The experimental results demonstrate that the lightweight approach is both accurate and highly scalable.

  • Accuracy: SMC estimates were consistently within $\pm 1\%$ of the true values for models where numerical solutions were available.
  • Performance: Most estimates were generated within 15 seconds to 3 minutes on a 64-core cluster.
  • Scalability: The approach successfully analyzed the Choice Coordination model in scenarios where traditional numerical model checking failed due to state space size.
  • Efficiency: Interestingly, the authors found that optimizing rewards can be simpler than optimizing probabilities in an SMC context. Since the effective probability of reaching a goal is often near 1, the simulation budget can be more aggressively shifted toward exploring different schedulers.

Conclusion and Future Work

This research provides a robust, memory-efficient alternative to traditional MDP verification. By combining trace hashing with smart sampling and rigorous statistical bounds, it enables the analysis of systems that were previously considered intractable.

Future work aims to further improve the search for optimal schedulers by constructing composite schedulers (merging successful components of different schedulers) and developing property-specific sampling techniques to bias the search toward promising regions of the scheduler space. Additionally, the authors plan to extend these techniques to continuous-time models.

Summary updated

BibTeX
@misc{legay2014lightweight,
  author = {Axel Legay and Sean Sedwards and Louis-Marie Traonouez},
  title = {{Lightweight Verification of Markov Decision Processes with Rewards}},
  year = {2014},
  eprint = {1410.5782},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1410.5782},
}
Figure