Policy iteration
Decisions under uncertainty · 1960 · After Value iteration
Policy iteration works on the plan directly: evaluate it exactly, switch every state to a better action, and repeat until nothing changes.
Decisions under uncertainty
Policy Iteration
Value iteration keeps refining numbers long after the arrows have stopped changing. What if you worked on the arrows directly? Take any plan, work out exactly how good it is, fix every square that could do better, and repeat. It usually finishes in a handful of rounds.
Same gridworld as Markov decision processes and value iteration.
1 · Two alternating steps
Evaluate the plan, then improve it
The improvement step can never make a policy worse (the policy improvement theorem), and there are only finitely many policies (49 = 262,144 here). So the loop must stop, and when it stops, the policy is optimal.
2 · Run it
From a bad plan to the best one
Lab 1 · Evaluate, improve, repeat
γ = 1, noise 0.2, living reward −0.04; amber outlines mark squares whose action just changedRounds so far
| round | eval sweeps | squares changed | V(start) |
|---|
3 · Which to use
Value iteration or policy iteration
| Value iteration | Policy iteration | |
|---|---|---|
| each round | one cheap sweep with a max over actions | a full evaluation (many sweeps, or a linear solve), then one improvement |
| rounds | many: until values settle | few: until the arrows stop changing |
| here | ||
| same answer? | Yes: both reach the optimal policy and V*. | |
Most practical methods sit between the two: evaluate a little, improve, repeat. The same evaluate-improve loop runs at a much larger scale inside AlphaZero: the tree search acts as the improvement step, producing better move probabilities than the network's own guess, and training pulls the network towards them (see when search runs out and Monte Carlo tree search).
Next: Q-learning