Save this video free

Stanford CS329A Self-Improving AI Agents | Part 2 | Test-Time Compute Scaling

Stanford Online · 1:03:21 · 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

Azalia Mirhoseini explains how test-time compute can improve LLM performance without changing model weights, from parallel sampling and verifier-guided search to sequential revision. The lecture covers the power-law scaling found in Large Language Monkeys, the generation-verification gap, outcome and process reward models, and Arkon, an inference-time architecture search system that improved pass-at-one accuracy by an average of 14.1% over GPT-4 and Claude 3.5 Sonnet on reasoning, math, and coding tasks.

Key takeaways

Chapters

0:00 Inference Scaling as a Third Stage of LLM Development
1:12 Large Language Monkeys: Repeated Sampling Surfaces Rare Solutions
5:00 Power-Law Coverage and the Long Tail of Hard Problems
11:20 Automated Verifiers Make Inference Scaling Practical
16:00 The Generation-Verification Gap Limits Best-of-N Methods
26:55 Parallel Sampling, Sequential Revision, and Reward Models
34:00 Difficulty Determines Compute Allocation and Pre-Training Tradeoffs
45:47 Arkon Turns Inference Scaling into Architecture Search
48:00 Fusion Can Outperform Selecting the Best Generated Answer
55:00 Unit-Test Generation and Layered Inference Architectures
59:00 Bayesian Optimization Searches Arkon Configurations
1:01:30 Arkon’s Pass-at-One Results and Generalization

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

Transcript excerpt

0:05 So today, we are going to talk about inference scaling. We briefly hinted on this in the first lecture, so there are three stages for LLM kind of development. The first one is pre-training. This stage is historically takes a lot more time. It could take several months. A whole lot of GPUs that are used for training these. And then there's the fine tuning step. Usually, this is a less, or historically has been a less compute-intense process. If you are talking about trillions of data, tokens in the pre-training side, on the fine tuning side, this is orders of magnitude less data that we use for fine tuning. And then there is the inference part,

0:52 where we get to use the model. And we are going to see different ways that at inference time, we can make the model be better and become more useful without changing the parameters of the model and without any fine tuning of the models. So let's first start with the Large Language Monkeys paper. Again, you are familiar with the infinite monkey theorem by now because we discussed it on Monday. But to recap, the idea of this paper is that we have an LLM and we have a problem as input. Instead of generating the response for this problem only once, we are going to repeatedly ask the same input problem again and again.

1:41 This could be a number of times, it could be 10 times, 100 times, and so on, and we will see how that affects the performance. And then we are going to have a verifier that can tell us which one of these responses were the correct response, and then that is going to be the output of this system. The reason we like that is that by doing this repeated sampling,

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.