Save this video free

RL @ ECE-UofT - Lecture 04: Generalized Policy Iteration via Monte-Carlo and Temporal Difference

Ali Bereyhi · 2:35:59 · Watch on YouTube

RL @ ECE-UofT - Lecture 04: Generalized Policy Iteration via Monte-Carlo and Temporal Difference Watch on YouTube →

Overview

Ali Bereyhi develops generalized policy iteration for model-free reinforcement learning by replacing Bellman-equation evaluation with sampled returns, first through Monte Carlo and then through one-step temporal-difference learning. The lecture derives incremental value and action-value updates, compares Monte Carlo’s unbiased but higher-variance estimates with TD’s lower-variance bootstrapped targets, and shows how greedy policy improvement turns either evaluation method into an approximate control loop.

Key takeaways

Chapters

0:00 From Model-Based Dynamic Programming to Model-Free RL
5:00 Generalized Policy Iteration and Sampling-Based Evaluation
10:00 Monte Carlo Estimation and Sampling Error
15:00 Estimating State Values from Complete Episode Returns
20:00 Basic Monte Carlo Evaluation Algorithm
25:00 Incremental Averaging After Each New Episode
30:00 Fixed Step Sizes and Geometric Averaging
35:00 Reusing One Episode to Estimate Many States
40:00 Updating the Full State-Value Table
45:00 Computing Returns Backward Through a Trajectory
50:00 Monte Carlo Convergence and State Coverage
55:00 Grid-World Values and Monte Carlo Error
1:00:00 Extending Monte Carlo Estimates from V to Q
1:05:00 Greedy Improvement from the Monte Carlo Q Table
1:10:00 Reusing Estimates Across Policy Improvements
1:15:00 Monte Carlo GPI as Offline Policy Iteration
1:20:00 Finite-Horizon Monte Carlo for Non-Episodic Tasks
1:25:00 Bootstrapping from the Bellman Equation
1:30:00 One-Step Targets and Temporal-Difference Learning
1:35:00 TD0 Bootstrapping with an Initially Empty Value Table
1:40:00 Applying TD Updates Across a Trajectory
1:45:00 TD State-Action Evaluation and Policy Values
1:50:00 A Button Game for Comparing Monte Carlo and TD
1:55:00 Monte Carlo Values from Complete Button-Game Returns
2:00:00 How TD Bootstrapping Improves the Green-State Estimate
2:05:00 Monte Carlo and TD Make Different Assumptions
2:10:00 When the MDP Assumption Helps or Hurts TD
2:15:00 Batch Reuse and Order Effects in TD Evaluation
2:20:00 TD’s Lower Variance and Monte Carlo’s Unbiased Returns
2:25:00 Bias, Variance, and Choosing an Evaluation Method
2:30:00 From TD0 to TDn and TD Lambda

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

Transcript excerpt

0:03 Okay, model free reinforcement learning. So, uh we already talked about the model base, right? Uh so just a quick recap. Uh what we have done up to this point, we basically talked about the reinforcement learning story. So you have an agent, you have the environment. The agent is trying to somehow interact with this environment. side going to maximize the kind of return it gets from the environment. Right? So that is the whole story. We talked last time about the modelbased reinforcement learning. What is the idea there? You do know the environment. Right? You can describe the environment using one MDP a mark of decision process. Right? Now this MDP when you when you have it what can you do? You

0:53 can define first of all parameter which is somehow evaluating your policy. What was that function that evaluates your policy that is what do you use to evaluate your policy? What does say your policy is good or bad? There is something we define for that policy. >> Value function. Right? So we talked about the value function. The value function it's evaluating your policy. Right? And then there is one other thing we called it action value. So it was it basically the same thing but you also take into account the first action that you do. Now once we have this one we can define the notion of optimal policy and then if you have the MDP the story was not very complicated

1:42 right because we could develop the recursive equation the Bellman equation. The Bellman equation is telling you how you can write down the value of one particular state in terms of the future state, right? And then you can use this recursive property plus the fact that you know what are the chances of going

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

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.