How Fast Is Policy Iteration?
Strongly polynomial bounds for a fixed discount, and exponential worst cases.
Policy iteration seems to finish in a handful of rounds on every problem anyone tries. Is that a theorem? For a fixed discount factor, yes: Ye (2011) proved it strongly polynomial, and later work sharpened the bound to rounds with a remarkably short proof, which this lesson gives in full. Let the discount approach 1, though, and carefully built MDPs force exponentially many rounds, and whether any algorithm solves MDPs in strongly polynomial time is still open.
What you’ll learn
- Define strongly polynomial algorithms, and show with an example why value iteration is not one, even for a fixed .
- State the iteration bounds of Ye, of Hansen, Miltersen & Zwick and of Scherrer for policy iteration, and prove Scherrer's bound.
- Describe the exponential lower bounds for policy iteration and simplex-type rules, and reconcile them with the polynomial upper bounds.
- Explain what remains open, including strongly polynomial algorithms for MDPs and Howard's rule on deterministic MDPs.
What “fast” means
Measure an MDP by its states, its state–action pairs ( when every state has actions), and the number of bits needed to write down its rewards, probabilities and discount. An algorithm is polynomial if its running time is bounded by a polynomial in , and . It is strongly polynomial if the number of arithmetic operations is bounded by a polynomial in and alone, whatever the numbers are (with intermediate numbers of polynomial size).
Linear programming solves MDPs in polynomial time, by interior-point methods, but no strongly polynomial algorithm is known for linear programs in general; that is Smale's ninth problem. Value iteration is not strongly polynomial, even for a fixed , as a two-state example shows.
Policy iteration is a simplex method. In the linear program over discounted occupancy measures, each vertex of the feasible polytope is the occupancy measure of a deterministic policy, and moving to an adjacent vertex swaps the action of a single state: simple policy iteration. An improving pivot is an action with positive advantage, the LP's reduced cost. Dantzig's rule picks the largest advantage overall. Howard's policy iteration switches every state with a positive advantage at once, a block pivot (Ye, 2011). Results flow both ways: bounds for policy iteration bound simplex methods on these LPs, and MDPs have supplied some of the strongest lower bounds for simplex pivoting rules.
Why is value iteration not strongly polynomial, even with fixed?
- Each sweep costs more than polynomial time
- It may never converge
- It needs exponentially many sweeps on every MDP
- The number of sweeps before its greedy policy is optimal depends on how small the margins are, not just on and
Show the answer
D. The number of sweeps before its greedy policy is optimal depends on how small the margins are, not just on and
In the two-state example the sweep count grows without bound as the margin shrinks, with , and fixed. A strongly polynomial algorithm's operation count may depend only on the size of the MDP, not on the numbers in it.
Strongly polynomial for a fixed discount
| Result | Algorithm | Iterations (with states, state–action pairs) |
|---|---|---|
| Ye (2011) | Howard's policy iteration, and the simplex method with Dantzig's rule | |
| Hansen, Miltersen & Zwick (2013) | Howard's policy iteration, and strategy iteration for two-player turn-based stochastic games | |
| Scherrer (2016) | Howard's policy iteration | |
| Scherrer (2016) | Simplex policy iteration (Dantzig's rule) |
Losses against . For a deterministic policy let , how much 's action at gives up when judged by . It depends only on the action . Splitting gives an exact identity, and two consequences because has max norm :
Policy iteration contracts. It is never behind value iteration from the same start, , so
A witness. Suppose is not optimal and pick where is largest; let , so . If some later policy still uses at , its loss there is the same number, and the three facts above chain together:
Elimination. Dividing by forces , that is , and . So after rounds, action is never used at again: a non-optimal state–action pair is eliminated for good.
Counting. Restart the argument from : its witness pair is in use, so it has not been eliminated before, and it is eliminated within the next rounds. Each block of rounds removes a new non-optimal pair, every state keeps at least one optimal action, so at most pairs can go:
At , after how many rounds is some non-optimal action guaranteed to be eliminated for good, ?
Show the answer
24
, rounded up to 24. For the 4×3 gridworld (9 non-terminal cells, 4 actions, so ) the bound is rounds; policy iteration actually needs 3. At the block length is .
Exponential worst cases
| Result | Setting | What is slow |
|---|---|---|
| Melekopoglou & Condon (1994) | MDPs, any discount | Simple policy iteration (one switch per round) with several natural rules, including the smallest-index rule: exponentially many rounds |
| Fearnley (2010) | Total and average reward | Howard's policy iteration: exponentially many rounds, on MDPs adapted from Friedmann's (2009) parity-game construction |
| Hollanders, Delvenne & Jungers (2012) | Discounted, with part of the input | Howard's policy iteration: exponentially many rounds, with so close to 1 that the discounted MDP behaves like the undiscounted one |
| Friedmann, Hansen & Zwick (2011) | Linear programs built from MDPs | The randomized simplex rules Random-Edge and Random-Facet: subexponential lower bounds, the latter essentially matching the known upper bounds |
The constructions encode a binary counter: the MDP is wired so that the policy improvements flip "bits" in the order a counter would, and an -bit counter takes steps to run out. There is no contradiction with the strongly polynomial bounds, which grow like : in the discounted lower bound, shrinks exponentially with the size of the instance, so is itself exponential. A fixed and a that may depend on the instance are genuinely different problems.
Hollanders, Delvenne and Jungers built discounted MDPs on which Howard's policy iteration needs exponentially many rounds. Why does this not contradict Ye's theorem?
- Their MDPs use average reward, not discounting
- In their family, approaches 1 as the MDPs grow, so the factor in the upper bounds is itself exponential
- Ye's theorem covers only the simplex method, not Howard's rule
- Their MDPs have exponentially many actions
Show the answer
B. In their family, approaches 1 as the MDPs grow, so the factor in the upper bounds is itself exponential
Strong polynomiality holds for each fixed . Letting depend on the instance removes that assumption: the upper bound is then exponential too, and the two results fit together.
What is open
For practice, the lesson is about cost per round as much as the count. A round of Howard's policy iteration costs a linear solve, so on large problems modified policy iteration, which solves each Newton system only approximately, usually wins, and for problems too large to enumerate, neither applies and sampling methods take over (Planning in Huge MDPs: Sparse Sampling).
Key takeaways
- Strongly polynomial means an operation count bounded in and alone. Value iteration is not, even for a fixed : thin margins make it sweep arbitrarily long.
- For a fixed , Howard's policy iteration needs at most rounds (Scherrer, 2016), improving Ye (2011) and Hansen, Miltersen & Zwick (2013). The proof: within each block of that many rounds a non-optimal action disappears for good.
- When may approach 1, or with total or average reward, Howard's rule can need exponentially many rounds, and MDP constructions give lower bounds for simplex rules too.
- Open: a strongly polynomial algorithm for MDPs with in the input, the behavior of Howard's rule on deterministic MDPs, and a theory of why policy iteration is fast in practice.
Check yourself
In the interactive lesson these are scored with your confidence, and what you miss comes back for review.
Which property makes an MDP algorithm strongly polynomial?
- Its number of arithmetic operations is bounded by a polynomial in the number of states and actions, whatever the numbers in the MDP
- Its running time is polynomial in the number of states, actions and bits of the input
- It needs a polynomial number of samples from a simulator
- It converges geometrically
Show the answer
A. Its number of arithmetic operations is bounded by a polynomial in the number of states and actions, whatever the numbers in the MDP
Strong polynomiality forbids any dependence on the magnitudes or precision of rewards, probabilities and the discount. Interior-point methods are polynomial but not strongly polynomial; Howard's policy iteration is strongly polynomial for each fixed .
An MDP has 100 states with 2 actions each, and . What does Scherrer's bound give?
- 461
- 10,000
- 46,100
Show the answer
D. 46,100
and , so the bound is 46,100 rounds, against the policies a naive count allows.
What is the key step in the proof of Scherrer's bound?
- Every round changes the action in at least one state
- Every round improves every state's value by a fixed amount
- After about rounds, some non-optimal action is never used again
- The values converge quadratically
Show the answer
C. After about rounds, some non-optimal action is never used again
The action with the largest loss against in the current policy has a loss that the contraction soon makes impossible, so it disappears forever. Counting the at most non-optimal actions finishes the proof.
For which class of MDPs is a strongly polynomial algorithm known even when the discount is part of the input?
- MDPs with two actions per state
- Deterministic MDPs
- MDPs with sparse transition matrices
- Unichain MDPs
Show the answer
B. Deterministic MDPs
Deterministic MDPs give linear programs with two variables per constraint, which admit strongly polynomial algorithms; Post and Ye showed that even the simplex method with Dantzig's rule is strongly polynomial on them, for any discount. For general MDPs the question is open.
Further reading
- Y. Ye, "The simplex and policy-iteration methods are strongly polynomial for the Markov decision problem with a fixed discount rate," Mathematics of Operations Research 36(4), 593–603 (2011).
- T. D. Hansen, P. B. Miltersen & U. Zwick, "Strategy iteration is strongly polynomial for 2-player turn-based stochastic games with a constant discount factor," Journal of the ACM 60(1), 1–16 (2013).
- B. Scherrer, "Improved and generalized upper bounds on the complexity of policy iteration," Mathematics of Operations Research (2016).
- J. Fearnley, "Exponential lower bounds for policy iteration," Proceedings of ICALP, LNCS 6199, 551–562 (2010).
- I. Post & Y. Ye, "The simplex method is strongly polynomial for deterministic Markov decision processes," Mathematics of Operations Research (2015).
- H. Zhong & Y. Ye, "Policy iteration is not polynomial for deterministic Markov decision processes: the price of algorithmic anarchy," arXiv:2609.40147 (preprint, 2026).