Save this video free

Stanford CS329A Self-Improving AI Agents | Part 7 | Self-Improvement and Deep Research Agents

Stanford Online · 1:12:27 · Watch on YouTube

These notes were made with YouTube Collector. Paste any YouTube link and get the same: a summary, chapters and a searchable transcript.

Overview

This lecture explores self-improving AI agents, detailing AlphaCode and AlphaCode 2's approaches to competitive programming problem-solving through massive sampling, filtering, and clustering. It then delves into Search-o1 and Agentic RAG for deep research agents, emphasizing iterative retrieval and analysis to overcome knowledge gaps in large reasoning models, contrasting them with simpler retrieval-augmented generation.

Key takeaways

Chapters

0:05 Introduction to Search-Based Model Improvement
1:51 AlphaCode: Solving Competitive Programming Problems
5:58 AlphaCode's Pre-training and Sampling Pipeline
12:03 AlphaCode's Filtering, Clustering, and Evaluation
15:17 AlphaCode's Performance and Variance Analysis
22:21 Impact of Model Size and Sampling Budget
23:30 Pass@k vs. 10@k and Test-Time Compute
37:16 AlphaCode Takeaways and Limitations
40:43 AlphaCode 2: Leveraging Existing LLMs
45:22 AlphaCode 2's Fine-tuning and Sampling Process
48:20 AlphaCode 2's Evaluation and Performance Gains
55:46 Improving Sampling Efficiency and Reasoning

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

Transcript excerpt

0:05 So today's focus will be very much on improving the models using search. And there can be two kinds of search that we will see. One in code models, where we are sampling a lot and then we are searching based on that, and then deep research style search, which you will see in homework three. So a lot of what we will cover in AlphaCode and AlphaCode 2, those search patterns you will use also in homework. Your homework two is focused on human eval, so this will give you an overview of what to expect in simpler problems and then even more complex problems. And then the agent search, this will be closer to what we will give you in homework three. The broad thing that I want to say with these models

0:55 is that we know that the solutions lie in the search space of the models, but how do you curate the answer out of the search space of what the model outputs is roughly what we are covering today. So let's start with AlphaCode. So the problem we want to solve here is a more complex version of the simple coding agent problem. So if you use a coding agent, what you often get is some form of an autocomplete, where you have a line, and then the coding agent will complete the line for you. So this is closer to a competitive programming problem, where given a competitive programming problem, you're given a problem description

1:42 and then you're given some input and outputs, so you have some a contract in that programming problem, which says that if you give this set of inputs, you should get this set of outputs. And what you want to really solve for is how do we solve these competitive programming problems

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, Stanford Online.

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.