Save this video free

RL @ ECE-UofT - Lecture 06: SARSA Algorithms and Q-Learning

Ali Bereyhi · 2:24:17 · 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 develops model-free control from Monte Carlo methods through on-policy SARSA and off-policy Q-learning, emphasizing how exploration, bootstrapping, and eligibility traces affect learning. The lecture derives importance sampling and the Q-learning max target, compares the algorithms on cliff walking, and closes by motivating function approximation and deep Q-networks for continuous or high-dimensional state spaces.

Key takeaways

Chapters

0:00 Model-Free Control: Improving Policies from Sampled Experience
5:27 Monte Carlo Control Updates Action Values by Episode
9:17 Cliff Walking Shows Why Greedy Exploration Can Fail
15:21 Infinite Exploration Is Needed for Monte Carlo Control
22:02 GLIE Combines Repeated Exploration with Greedy Behavior
27:41 A 1/k Epsilon Schedule Supports GLIE
31:07 TD Control Leads to the SARSA Algorithm Family
34:37 Deriving the Basic SARSA TD(0) Update
42:16 SARSA Uses the Action Actually Selected by Its Policy
47:27 SARSA TD(0) Follows the State-Action-Reward Sequence
50:02 SARSA n-Step Returns and the Forward View of TD(λ)
54:17 Eligibility Traces Extend TD(λ) to State-Action Pairs
56:28 SARSA(λ) Updates Multiple Q Values Online
1:03:38 Off-Policy Learning Reuses Data from Another Policy
1:08:27 Importance Sampling Reweights Samples from P to Q
1:14:59 Trajectory Importance Sampling Cancels Shared MDP Dynamics
1:27:02 Importance Sampling Enables Off-Policy Value Estimation
1:34:31 Off-Policy TD Reweights the Next Action
1:37:07 Off-Policy Action-Value TD Keeps the Immediate Reward
1:43:42 Q-Learning Targets a Greedy Policy While Exploring
1:51:34 The Q-Learning Max Target Avoids Explicit Ratios
1:55:34 Q-Learning Builds the Optimal Q Table from Epsilon-Greedy Data
1:57:38 Q-Learning with Eligibility Traces Uses Q(λ)
2:01:52 Cliff Walking Contrasts SARSA and Q-Learning
2:05:03 Convergence Depends on Coverage and Policy Improvement
2:11:53 Practical SARSA Tuning Trades Guarantees for Stability
2:15:36 SARSA and Q-Learning Suit Different Control Goals
2:18:15 Tabular RL Breaks Down for Continuous State Spaces
2:20:33 Function Approximation Leads from Tabular Q to DQN

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

Transcript excerpt

0:30 Okay. Shall we start? Okay. So, we talked about uh control last time, right? So, what is the difference between control and prediction that we are we were doing before this? So the key difference here is that I mean before this we talked about the fact that if you do know the environment ex perfectly then there is a way to describe what is the optimal policy right so that was policy iteration or value itration approach basically you can characterize it if you do know MDP right but at the end of the day when we get into this one I mean the u model free approach when you don't

1:19 have the exact expression for MLP then sorry for MDP MDP then obviously you cannot do that right so we first try to somehow mimic that approach that we had in the offline uh model based case basically you use one either temporal difference or Monte Carlo to estimate the value of every single will state and then based on what we did before you try to uh evaluate one specific policy. Once you have the policy you can improve the policy by being greedy on that policy right and if you repeat this one and you keep going on then you are going to

2:06 conversion to optimal policy as before. The only difference is that you don't have exact values. You have just the estimates, right? But the point in control is that you really want to go online. It means that you don't want to wait. You don't want to use a lot of samples to find out what is for example how does the random policy work, right? You you do know it's a random policy. It's not a good policy based on your initial observation every single time

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.