Save this video free

RL @ ECE-UofT - Lecture 03: Policy and Value Iteration

Ali Bereyhi · 2:41:49 · Watch on YouTube

Part of University of Toronto ECE 1508. See all 12 lectures and search them

These notes were made with YouTube Collector. Paste any YouTube link and get the same: a summary, chapters and a searchable transcript.

Overview

Ali Bereyhi derives the Bellman optimality equation for a known Markov decision process, showing how optimal state values can be computed without first knowing the optimal policy, then used to recover optimal actions. He compares policy iteration, which alternates policy evaluation and improvement, with value iteration, which repeatedly applies the optimality backup, and connects both through generalized policy iteration with truncated evaluation.

Key takeaways

Chapters

0:00 Recap: Policies, MDPs, and Bellman Evaluation
4:00 Backup Diagrams: Values Flow Back from Future States
6:30 From a State to Actions, Transitions, and Rewards
13:00 Bellman Backups for Qπ and Vπ
19:00 Why Optimal Actions Maximize Action Value
20:00 Deriving the Bellman Optimality Equation
28:30 Recovering the Optimal Policy from Optimal Values
35:00 Why Optimality Equations Are Harder to Solve Directly
36:00 Four-Cell Grid World: Rewards and Transitions
43:00 Writing Grid-World Optimality Equations
48:00 Solving the Grid Example and Backtracking
53:00 Optimal Policies Can Be Deterministic or Randomized
1:03:00 Dynamic Programming as Fixed-Point Iteration
1:05:00 Fixed-Point Example: Convergence Depends on the Update
1:10:00 Two Dynamic-Programming Routes to an Optimal Policy
1:11:00 Policy Evaluation: Initialize a Value for Every State
1:18:00 Iterating Policy Evaluation to a Bellman Fixed Point
1:22:00 Stopping Policy Evaluation with a Tolerance
1:29:00 Policy Evaluation in the Four-Cell Example
1:33:00 Policy Improvement: Change Actions That Underperform
1:38:00 Greedy Improvement in the Grid-World Policy
1:45:00 Policy Iteration Alternates Evaluation and Improvement
1:46:00 Implementing Policy Iteration with Nested Loops
1:55:00 Value Iteration: Maximize During Each Backup
1:58:00 The Value-Iteration Update and Its Stopping Rule
2:02:00 Policy Evaluation Averages, Value Iteration Maximizes
2:05:00 Value Iteration Makes Greedy Updates Before Evaluation Finishes
2:11:00 Value-Iteration Pseudocode and Policy Extraction
2:12:00 Sixteen-Cell Grid World: Random-Policy Evaluation
2:20:00 Improving the Grid Policy Toward the Nearest Terminal
2:24:00 Value Iteration on the Same Grid World
2:29:00 Comparing Iteration Counts and Computational Cost
2:34:00 Approximate Evaluation Changes the Practical Tradeoff
2:38:00 Generalized Policy Iteration Connects Both Algorithms

Keep these chapters and the full searchable transcript in your own library.

Transcript excerpt

0:00 Okay, so we talked about uh Bilman equation last time. Do you remember what that was? So just a quick recap, what are we doing right now? So we started with the idea of reinforcement learning. There is an agent environment. The agent wants to learn how to interact with the environment, right? So we pretty much took the whole first lecture to model everything. So essentially you have the the agent. This agent is interacting with this environment and then the agent was essentially just a policy, right? What was the policy mathematically? What is policy? >> It's a distribution. Exactly. A conditional distribution. The probability of every action that you do given the state that you are in. Now, how did we model the environment?

0:52 A mark of chain, right? So it was a mark of chain of states. So we said there is the one guy which calls states. So this state is like how the universe is labeled at every single time upon doing an action this changes to another state. Right? And this is a mark of chain. Every single time you just need to know what is the last state you can describe the next state of course probabilistically. Right now uh that was say that was environment. Then we said okay let's start with the ideal case and the ideal case was essentially modelbased reinforcement learning. What is ideal case? You do know exactly what that mark of chain is right. So you do know at every single state that you are if you do action what is the chance of transiting to any other state. Right?

1:41 And you also know what is the chance of any reward to get right? Make sense? You remember that? Now when we have this property then

This is the start of the transcript. Save this video free for the whole transcript, searchable and time-coded.

In this course

Related notes

Summary, takeaways, and chapters were generated by AI from the video's transcript and may contain errors. The video belongs to its creator, Ali Bereyhi.

Want the full transcript?

Save this video in YouTube Collector to get its complete searchable transcript, your own AI summaries, and a library that keeps every video you collect in one place.