Save this video free

RL @ ECE-UofT - Lecture 07: Policy Evaluation via Function Approximation

Ali Bereyhi · 2:29:54 · Watch on YouTube

RL @ ECE-UofT - Lecture 07: Policy Evaluation via Function Approximation Watch on YouTube →

Overview

Ali Bereyhi explains why tabular reinforcement learning does not scale to enormous or continuous state spaces, then develops function approximation as a way to generalize value estimates from sampled states. The lecture derives least-squares training with gradient descent, shows how Monte Carlo and TD targets train value and Q networks, and proves tabular TD is a special case of linear approximation with one-hot state features. It closes with eligibility-trace extensions, a mountain-car illustration of smoother value estimates, and a preview of deep Q-learning, policy gradients, and actor-critic methods.

Key takeaways

Chapters

0:00 From Tabular RL to Function Approximation
3:00 Why Tabular Control Requires State-Action Coverage
8:00 Chess Shows the Limits of a Q-Table
13:00 Continuous States Create Exponential Grid Costs
18:00 Function Approximation Replaces State-by-State Storage
21:30 Representing a Policy Value with a Parameterized Model
28:00 How One Weight Update Generalizes Across States
32:30 Neural Networks as Flexible Value-Function Models
37:00 Training Models with Empirical Risk and Mini-Batch SGD
45:00 State Features: One-Hot Vectors, Measurements, and Screens
54:00 Mountain Car Uses Position and Velocity as Features
1:00:00 Linear and Neural Value Models for Mountain Car
1:05:00 Least-Squares Loss for Policy Evaluation
1:12:00 Backpropagating Value-Function Prediction Errors
1:18:00 Gradient Descent Updates for Value Networks
1:21:00 Monte Carlo Returns as Value-Network Targets
1:25:00 A Trajectory as a Mini-Batch for Monte Carlo Learning
1:30:00 Online Monte Carlo Updates Within an Episode
1:34:30 TD Targets Train Value Networks Without Full Returns
1:40:30 Tabular TD Is Function Approximation with One-Hot Features
1:45:00 Deriving the One-Hot Gradient for a State Value
1:50:00 The Generalized TD Update Reduces to the Table Update
1:55:00 From State Values to Q Networks
1:59:00 One Q-Network Output per Discrete Action
2:05:00 Why Continuous Actions Need a Different Q-Network Design
2:10:00 Least-Squares Training for Q Networks
2:15:00 Eligibility Traces as Gradients of Action Values
2:20:00 Extending Eligibility Traces to Function Approximation
2:25:00 Mountain Car Shows How Function Approximation Smooths Values

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

Transcript excerpt

0:00 So, today we're going to talk about function approximation. So, it's uh like say, first chapter we get on deep reinforcement learning. Uh just a quick recap what we have done up to this point. Up to this point we have talked about tabular reinforcement learning. And within that one, we started with model-based case. In the model-based case, you essentially have the MDP, right? You do not have does the environment look like, and then based on that one, you you are able to actually define the optimal policy. You can write down the Bellman equation. That one helps you developing algorithms to find the optimal policy, right? And the two main algorithms we talked about, they

0:48 were value iteration, policy iteration, and we said they are actually uh two edges or two extreme cases of a generalized policy iteration algorithm. Uh the idea here was we always evaluate a policy, and once we have the value or approximate value for that policy, we opti- we improve by just doing greedy, right? So, that was the idea here, and then this somehow was helpful in the sense that we learn about Bellman equation, we learn about this recursive property within the reinforce- reinforcement learning setting. And that one helped us to develop approaches for doing model-free reinforcement learning. And here we assume that we don't know the MDP,

1:34 right? MDP exist, we don't know it. It doesn't mean that MDP does not exist. Uh it exists, but we don't know it, and then we can do different approaches. Uh we first talked about doing evaluation. If you want to do evaluation, you obviously cannot do it exactly. You need to do it uh in an estimate form, right? And if you want to do that, you can use Monte Carlo

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.