Save this video free

RL @ ECE-UofT - Lecture 10: Trust Region PGM -- TRPO and PPO

Ali Bereyhi · 2:36:22 · 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 explains why vanilla and baseline policy gradient methods can collapse even with larger minibatches: their surrogate objectives use importance sampling, whose variance grows when the candidate policy differs greatly from the sampling policy. He derives trust-region updates, presents TRPO's KL constraint, Fisher-style Hessian estimate, conjugate-gradient solve, and backtracking line search, then contrasts PPO's clipped surrogate and discusses short-term sample reuse and practical RL libraries.

Key takeaways

Chapters

0:00 Policy Gradient Review: Objectives, Advantages, and Sampling
6:00 Advantage Policy Gradients and the Coming Stability Problem
8:00 Reward Collapse Persists Despite Larger Minibatches
13:00 Recasting Policy Gradient as Surrogate Optimization
16:00 Why the Surrogate Gradient Matches the Policy Gradient
20:00 Unrestricted Surrogate Maximization Can Overshoot
24:00 The Surrogate's Importance-Sampling Interpretation
32:00 Importance Sampling Preserves the Mean but Changes Variance
38:00 Policy Mismatch, Not Just Small Batches, Drives Instability
47:00 Trust Regions Restrict Candidate Policy Changes
51:00 KL Divergence Measures Policy Closeness
57:00 TRPO's Constrained Surrogate Objective
1:03:00 Approximating the Trust-Region Problem
1:05:00 Linearizing the Surrogate Around Current Parameters
1:07:00 Quadratic Approximation of the KL Constraint
1:12:00 Solving the Local Trust-Region Update
1:18:00 Natural Policy Gradient's Computational Costs
1:22:00 TRPO's Three Practical Techniques
1:27:00 Backtracking Line Search Enforces the KL Bound
1:33:00 Conjugate Gradient Avoids Explicit Hessian Inversion
1:41:00 Estimating the KL Hessian with Policy-Gradient Samples
1:49:00 TRPO's Minibatch Update Pipeline
1:56:00 PPO Uses Policy Ratios as a Simpler Proximity Signal
2:02:00 PPO's Clipped Surrogate Objective
2:10:00 Positive Advantages: PPO Limits Probability Increases
2:14:00 Negative Advantages: PPO Limits Probability Decreases
2:19:00 PPO Optimization and Reusing a Collected Batch
2:23:00 Short-Term Experience Replay for Policy-Gradient Data
2:28:00 Why Policy-Gradient Replay Is Less Effective Than DQN
2:33:00 Next Steps: Learned Value Networks and RL Libraries
2:35:00 Closing: Stable Policy Optimization in Practice

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

Transcript excerpt

0:00 how we saw. Okay, so uh we talked about policy gradient methods last time. So, do you remember what was the main idea? So, the difference to the value-based approach is is that here we are optimizing the policy net, right? And then in order to do that, the question was, okay, you have the policy network. How you can find a gradient that this is going to update this network size that the network goes towards being optimal, right? And then we talked about one theorem which was the policy gradient theorem, right? Remember that, yes? So, the policy gradient theorem, I mean, we had the basic form, but yeah, this is the last one that we ended up with. What

0:50 did it say? It says that you have an objective that is J, right? You remember what was J? J was the difference or it was actually the value of your policy pi theta expected over all possible states, right? So, if you have policy pi theta and then you consider one particular state, then the value of that particular state you want to maximize it, right? But the point is that you don't want to do it for a single state. You want to do it for all the states, right? We talked about it. It looks like a multi-objective optimization and if you want to do that, then you end up with such expression. If

1:37 you remember that guy was the expectation of the value of this policy at all states, right? And then if you want to compute the gradient of this guy, that gradient is essentially something that you can use to update your policy network because at the end of the day you want to optimize or maximize the value of your policy,

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.