What is the difference between value iteration and policy iteration?

前端 未结 5 1073
陌清茗
陌清茗 2021-01-29 17:44

In reinforcement learning, what is the difference between policy iteration and value iteration?

As much as I understand, in value iteration, you use t

5条回答
  •  逝去的感伤
    2021-01-29 18:28

    Let's look at them side by side. The key parts for comparison are highlighted. Figures are from Sutton and Barto's book: Reinforcement Learning: An Introduction.

    Key points:

    1. Policy iteration includes: policy evaluation + policy improvement, and the two are repeated iteratively until policy converges.
    2. Value iteration includes: finding optimal value function + one policy extraction. There is no repeat of the two because once the value function is optimal, then the policy out of it should also be optimal (i.e. converged).
    3. Finding optimal value function can also be seen as a combination of policy improvement (due to max) and truncated policy evaluation (the reassignment of v_(s) after just one sweep of all states regardless of convergence).
    4. The algorithms for policy evaluation and finding optimal value function are highly similar except for a max operation (as highlighted)
    5. Similarly, the key step to policy improvement and policy extraction are identical except the former involves a stability check.

    In my experience, policy iteration is faster than value iteration, as a policy converges more quickly than a value function. I remember this is also described in the book.

    I guess the confusion mainly came from all these somewhat similar terms, which also confused me before.

提交回复
热议问题