Save this video free

Stanford CS329A Self-Improving AI Agents | Part 5 | Planning and Multi-Step Reasoning

Stanford Online · 1:14:56 · 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

The lecture compares three approaches to multi-step reasoning: LATS uses Monte Carlo Tree Search to combine language-model reasoning, actions, environmental feedback, and reflection; SPRINT teaches models to identify independent reasoning steps and execute them in parallel; and SWiRL uses offline-generated, step-labeled trajectories to train multi-step tool use with reinforcement learning. Across HotPotQA, WebShop, MATH, and GSM8K, the methods show how test-time search, parallel execution, and process-level training can improve solutions or efficiency, while also exposing costs, task dependencies, and data-filtering tradeoffs.

Key takeaways

Chapters

0:00 Multi-Step Tasks Require Reasoning, Actions, and Search
3:39 LATS Uses Action Outcomes to Guide Tree Search
8:16 LATS Expands a Maze Through Six Search Stages
11:31 UCT, Simulation, and Backpropagation Score LATS Trajectories
17:14 LATS Results, Costs, and Irreversible-Action Risks
23:29 SPRINT Targets Parallelism in Long Reasoning Traces
27:22 GPT-4o Annotates SPRINT Traces as Dependency DAGs
31:53 SPRINT Runs Independent Executions Concurrently
37:59 SPRINT Generalizes, but Parallelism Depends on the Task
45:19 SPRINT's Inference Tradeoffs and Extensions
50:26 SWiRL Builds Offline Multi-Step Tool-Use Data
58:32 SWiRL Uses Step-Level Rewards Without Executing Tools During RL
1:06:16 SWiRL Evaluates Multi-Step Tool Use Across Tasks
1:10:53 SWiRL Improves Process Quality and Transfers Beyond Training Data

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

Transcript excerpt

0:05 So today's lecture is going to be about planning and multi-step reasoning. So today's lecture, we are going to cover three papers on multi-step reasoning and planning. Let's start with this paper from ICML of last year. So the title of the paper is Language Agent Tree Search Unifies Reasoning Acting and Planning in Language Models. So the types of applications that we want to target in multi-step tasks are tasks that we not only need to reason about things, but also need to act through those reasoning steps

0:54 and search our trajectories, or optimize trajectories and how we get to a final correct answer. So in the reasoning step, the model needs to think about what needs to be done? For example, what the budget is, where the plan is. These are the reasoning steps for a trip or vacation planning prompt. The act is OK. Now that you have certain types of reasoning or thinking, how do you gather more information, or act on these reasoning steps? For example, the action could be a browsing the web, generating a query to search, read Reddit, or a travel blog, and so on. And then another step is search.

1:45 Given these feedback, or the information that's gathered online, how can we refine our plan so far? Maybe we can consider alternative destinations, search new things to do while we are there, and so on. So there are a series of reasoning, action, and search steps that needs to be done to solve this problem of, for example, planning a trip. So the problem, or the challenge that this paper specifically wanted to address was the following. The goal here was, let's go from the LLM, generate a plan, and executing on that plan, to really try to encourage diversification and exploration of different types

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.