Value Iteration for Long-Run Average Reward in Markov Decision Processes

Pranav Ashok, Krishnendu Chatterjee, Przemyslaw Daca, Jan Kretínský, Tobias Meggendorfer

Abstract

Solving Markov Decision Processes (MDPs) for long-run average reward objectives has traditionally been computationally expensive, often relying on Linear Programming (LP) due to the lack of robust stopping criteria for Value Iteration (VI). This paper presents a breakthrough by introducing structural decomposition techniques that enable efficient VI-based solutions. We propose LocalVI, which utilizes Maximal End-Component (MEC) decomposition and a quotient MDP transformation, and OnDemandVI, a simulation-guided anytime algorithm. These methods provide guaranteed $\varepsilon$-optimal results and outperform state-of-the-art LP tools by orders of magnitude, scaling to models with millions of states.

Introduction

Markov Decision Processes (MDPs) are fundamental for modeling systems with stochastic and non-deterministic behavior. A primary objective in many applications is maximizing the long-run average reward, representing the expected steady-state performance. While Value Iteration (VI) is the standard for reachability and discounted reward objectives due to its simplicity and efficiency, its application to average rewards has been hindered by two major issues: the potential for infinite oscillation in periodic models and the absence of reliable stopping criteria for general MDPs.

Historically, researchers turned to Linear Programming (LP) for exact solutions. However, LP scales poorly, becoming impractical for models exceeding a few thousand states. This paper bridges the gap by providing the first practical VI-based algorithms with rigorous stopping criteria for the average reward objective.

Methodology

Local Value Iteration (LocalVI)

The core insight of LocalVI is a "divide and conquer" strategy based on the structural properties of MDPs. The algorithm proceeds in three main steps:

  1. MEC Decomposition: The MDP is partitioned into Maximal End-Components (MECs). A MEC is a set of states where a specific strategy can ensure the system remains within that set indefinitely.
  2. Local Solving: Within each MEC, the MDP is "communicating," allowing a modified version of VI to converge with a known stopping criterion.
  3. Quotient MDP Transformation: The MDP is collapsed into a "MEC quotient" where each MEC becomes a single state. The global average reward problem is then reduced to a reachability problem on this quotient, which can be solved using standard VI techniques.
The decomposition of an MDP into its MEC quotient. (a) shows the original MDP with three identified MECs, and (b) shows the resulting simplified quotient MDP.

By isolating components, the authors overcome the global stopping criterion problem, as different MECs can have different average rewards. This structural approach also allowed the authors to refute a long-standing conjecture regarding stopping criteria in general MDPs found in seminal literature.

On-Demand Value Iteration (OnDemandVI)

For extremely large models where full state-space exploration is infeasible, the authors developed OnDemandVI. This "anytime" algorithm uses simulation-guided exploration, similar to Bounded Real-Time Dynamic Programming (BRTDP). It focuses computational effort on states most likely to be visited under an optimal policy.

OnDemandVI refines the reward estimates of a MEC only when it is reached during simulation and identified as a precision bottleneck. Crucially, it provides lower and upper bounds on the true value at any point, allowing users to stop once the desired precision is reached.

Experimental Results

The proposed algorithms were evaluated on standard benchmarks from the PRISM Model Checker, including network protocols (zeroconf), failure models (cs_nfail), and investment strategies.

  • Performance: LocalVI demonstrated significant speedups over the LP-based MultiGain tool on models like cs_nfail and investor.
  • Scalability: On the zeroconf model with over 3 million states, both LP solvers and LocalVI (which requires full MEC decomposition) failed due to memory limits. In contrast, OnDemandVI solved the model in 5 to 16 seconds by exploring only a tiny fraction (0.1% to 0.2%) of the state space.
  • Precision: Unlike heuristic VI methods, these algorithms guarantee $\varepsilon$-optimal results, ensuring reliability for formal verification.

Conclusion

This work solves a major hurdle in formal verification by enabling efficient Value Iteration for average reward MDPs. By combining structural decomposition with simulation-guided exploration, the authors provide tools that are both mathematically rigorous and practically scalable. Future work includes optimizing the precision refinement process for MECs and extending these techniques to multi-objective MDPs.

Summary updated

BibTeX
@inproceedings{ashok2017value,
  author = {Pranav Ashok and Krishnendu Chatterjee and Przemyslaw Daca and Jan Kretínský and Tobias Meggendorfer},
  title = {{Value Iteration for Long-Run Average Reward in Markov Decision Processes}},
  booktitle = {CAV},
  year = {2017},
  url = {https://openreview.net/forum?id=gRcJ8cOedk},
}
Figure