Save this video free

CMU AI Agents 2026: 11. Advanced RL Algorithms

Graham Neubig · 1:08:15 · Watch on YouTube

Part of Carnegie Mellon University 11-768. See all 14 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

Graham Neubig explains practical algorithmic fixes for training AI agents, using a coding-agent bug-fix task to show why sparse rewards, stale rollouts, unreliable verifiers, and reward hacking destabilize reinforcement learning. He covers value functions and generalized advantage estimation, asynchronous RL with clipped importance ratios, task and reward design, and teacher-based distillation, emphasizing concrete safeguards such as monitoring GRPO groups for mixed outcomes and auditing what agents can access.

Key takeaways

Chapters

0:00 A Coding-Agent Bug Fix Sets Up the RL Training Problems
4:55 Sparse Trajectory Rewards Misassign Credit to Actions
10:27 Value Functions Estimate Success from the Agent’s History
16:44 Temporal-Difference Error and GAE Provide Step-Level Feedback
23:43 Asynchronous RL Reduces Waiting but Makes Rollouts Stale
27:46 Importance Sampling Corrects for Older Rollout Policies
34:44 PPO Clipping Limits Explosive Off-Policy Updates
41:02 KL and Entropy Regularization Help Keep Policies Stable
45:45 GRPO Needs Mixed Outcomes and Verifiers Need Auditing
48:19 False Positives Let Agents Hack Tests and Benchmarks
55:16 Exploration and Auxiliary Rewards Require Careful Control
1:00:01 Teacher Demonstrations, Curriculum, and Distillation
1:03:36 On-Policy Distillation Trains on Student States

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

Transcript excerpt

0:00 So uh hi everyone. This time I'm going to talk about advanced RL algorithms for agents. Um one thing that I did in preparing this lecture was think of all the things that have gone wrong to me uh while training agents in the past year or two. Uh, and so what I'll try to do during this lecture is try to point out a problem that you will encounter when you're training agents and a solution for it. And so hopefully if you're encountering any issues during your assignments or during your your projects, the information here will be useful to help you overcome them. I intentionally didn't cover anything that doesn't fix a problem that I've never had. So hopefully it will all be all be

0:50 practical advice here. So we have three lectures on RL because it's such a big part of AI agents nowadays and we already covered the RL basics and today I will be covering some advanced algorithmic topics and then in the next lecture we'll be talking about some advanced systems topics. And so what I won't be talking about this time is you know how do you sandbox agents to make sure that they you know don't destroy your file system how do you uh run them in parallel uh th those sorts of things. Today we'll mostly be with respect to the algorithms in the math. So I'm going to be using a running example during this entire lecture just a very simple example of fix getting a

1:39 coding agent to fix a bug. And so this is also similar to what I talked about in the coding agents lecture, but the prompt is uh fix the retry setting. Zero should disable retries, but the code returns three. Preserve the other cases.

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, Graham Neubig.

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.