Save this video free

Stanford CS329A Self-Improving AI Agents | Part 3 | Robust Verification

Stanford Online · 1:12:59 · 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 the evolution of verification techniques for Large Language Models (LLMs), starting with OpenAI's 2021 paper on training verifiers for math problems using the GSM8K dataset. It progresses through OpenAI's 2023 'Verify, Step-by-Step' paper introducing process-based reward models (PRMs) over outcome-based reward models (ORMs), Stanford's 2024 'Math-Shepherd' which automates PRM label collection, and finally Stanford's recent 'Weaver' that uses an ensemble of weak verifiers with weak-to-strong supervision for robust verification without extensive human annotation.

Key takeaways

Chapters

0:00 Introduction to Verification and the Generation-Verification Gap
1:52 OpenAI's 2021 Paper: Training Verifiers for Math Problems
5:55 Training Methodology for the GSM8K Verifier
8:51 Dual Loss Objective and Architecture
11:47 Training Process and Ablation Studies
18:23 Verification vs. Fine-Tuning Performance
23:39 Test-Time Scaling Benefits and Limitations
35:25 OpenAI's 2023 Paper: Verify, Step-by-Step (Process vs. Outcome)
37:16 Training PRMs with Human Annotations
48:44 PRM Performance vs. ORM and Majority Voting
1:02:28 Math-Shepherd: Automated PRM Labeling
1:12:05 Math-Shepherd Verification Process and Results

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

Transcript excerpt

0:05 So lecture three is about verification. In the last lecture when we talked about inference time scaling and the generation verification gap, basically what we discussed was that language model seems to be able to seems to know the answer to many of the hard questions, and especially with methods such as repeated sampling, or other scaling test time techniques, they can generate one. But a question is, how do they. How can we automatically select which answer is correct or guide the model throughout the process of answer generation. So that leads us to verification where which we are learning about today.

0:55 So in today's lecture, we are going to learn about the following four papers. And there is a progression of how the way we approach verification changed or progressed throughout the years. So let's first start with training verifiers to solve math problems. This is a paper from OpenAI in 2021. And the motivation for this fork was that LLMs hallucinate and can confidently present wrong solutions to the users. This still is true to this day. Four years later, of course, the model have become significantly better. There is also at the time, one of the contributions

1:46 of this paper was to introduce a new reasoning benchmark around math. And you can see here in blue one of these problems. This is the type of problem that at the time it was hard for LLMs to solve. And this led to this new dataset. And that has become kind of a big part of many of the benchmarking tasks for LLMs. And even to this day, this dataset is called GSM 8-K. And even to this date, for smaller models and benchmarking, it's still a very useful language modeling evaluation. And you can consider it for the type of evals

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.