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

Some Upper Bounds on the Running Time of Policy Iteration on Deterministic MDPs

Ritesh Goenka, Eashan Gupta, Sushil Khyalia, Pratyush Agarwal, Mulinti Shaik Wajid, Shivaram Kalyanakrishnan · OpenReview

Abstract: Policy Iteration (PI) is a widely used family of algorithms to compute optimal policies for Markov Decision Problems (MDPs). We derive upper bounds on the running time of PI on Deterministic MDPs (DMDPs): the class of MDPs in which every state-action pair has a unique next state. Our results include a non-trivial upper bound that applies to the entire family of PI algorithms, and affirmation that a conjecture regarding Howard's PI on MDPs is true for DMDPs. Our analysis is based on certain graph-theoretic results, which may be of independent interest.

Introduction

Markov Decision Problems (MDPs) are the standard mathematical framework for modeling decision-making under uncertainty. Solving an MDP involves finding an optimal policy—a set of rules directing an agent to the action in each state that maximizes long-term rewards. Policy Iteration (PI) is a classic family of algorithms used to find these optimal policies. While PI is known to be very fast in practice, its theoretical worst-case complexity has remained elusive. For general stochastic MDPs, some versions of PI can take an exponential number of steps (e.g., $2^n$ iterations for $n$ states).

A 3-state Markov Decision Process (MDP) illustrating states, actions, and transition rewards. The figure highlights the difference between stochastic transitions (black) and deterministic ones (red).

This research focuses on Deterministic MDPs (DMDPs), a subclass where every action leads to a single, certain next state. Although DMDPs are simpler than stochastic ones, tight upper bounds that apply to all variations of PI were previously unavailable. This paper aims to close the gap between practical observations and mathematical proofs regarding PI's efficiency on deterministic systems.

Methods: A Graph-Theoretic Perspective

The authors move away from traditional geometric analysis—which views PI as a walk on a high-dimensional polytope—and instead adopt a graph-theoretic approach:

  1. Graph Mapping: They represent a DMDP as a directed multigraph where vertices are states and edges are actions.
  2. Policy as Subgraph: Every policy induces a "functional graph" (a subgraph where every vertex has exactly one outgoing edge).
  3. Path-Cycle Analysis: They define a "path-cycle" as a path that eventually leads into a cycle. A crucial structural property is proven: once a PI algorithm replaces a path-cycle with a better one, that specific path-cycle can never reappear in future iterations.
  4. Combinatorial Counting: The core proof involves counting the maximum possible number of these path-cycles in graphs with specific constraints on out-degrees and edge multiplicities.

Key Insights and Results

The Fibonacci Connection and Policy Space

For the common case of 2-action DMDPs, the authors prove an upper bound of $poly(n) \cdot \phi^n$, where $\phi \approx 1.618$ is the golden ratio. This confirms a long-standing conjecture that Howard’s PI (the most popular variant) grows at the rate of Fibonacci numbers on DMDPs. This reveals a clear theoretical separation: while a stochastic 2-action MDP can force PI to visit all $2^n$ policies, a deterministic one is significantly more constrained.

The policy space of a 3-state, 2-action MDP represented as a hypercube graph. Each vertex represents a unique policy, and edges represent potential policy improvements during iteration.

Summary of Derived Bounds

  • General PI Bound: For a DMDP with $n$ states and $k$ actions, any PI algorithm will terminate in at most $poly(n, k) \cdot \alpha(k)^n$ iterations, where $\alpha(k) \approx k - 0.38$.
  • Max-Gain PI Bound: For variants using the "max-gain" rule (always picking the action providing the biggest immediate improvement), the bound is tightened to $poly(n, k) \cdot ((1 + O(\frac{\log k}{k})) \frac{k}{e})^n$.
  • The 2-State Case: In a surprising result for $n=2$ states, the authors show that while general PI can take $O(k^2)$ steps, the max-gain variant is capped at a constant 7 iterations, regardless of the number of available actions $k$.

Discussion and Future Work

While these bounds are significantly tighter than previous estimates, they remain exponential in the number of states ($n$). A major open question is whether all max-gain PI variants are actually polynomial on DMDPs, similar to the Simplex method. Additionally, extending these graph-theoretic insights to general stochastic MDPs remains a significant challenge, as the current proofs rely heavily on the deterministic nature of transitions. This work provides a rigorous foundation for understanding why PI performs so efficiently on deterministic systems in practice.

Summary updated

Abstract

Policy Iteration (PI) is a widely used family of algorithms to compute optimal policies for Markov Decision Problems (MDPs). We derive upper bounds on the running time of PI on Deterministic MDPs (DMDPs): the class of MDPs in which every state-action pair has a unique next state. Our results include a non-trivial upper bound that applies to the entire family of PI algorithms, and affirmation that a conjecture regarding Howard's PI on MDPs is true for DMDPs. Our analysis is based on certain graph-theoretic results, which may be of independent interest.
BibTeX
@misc{goenka2022some,
  author = {Ritesh Goenka and Eashan Gupta and Sushil Khyalia and Pratyush Agarwal and Mulinti Shaik Wajid and Shivaram Kalyanakrishnan},
  title = {{Some Upper Bounds on the Running Time of Policy Iteration on Deterministic MDPs}},
  year = {2022},
  eprint = {2211.15602},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2211.15602},
}
Figure