How to Evaluate AI Agents: Benchmark Design | Stanford CS329Z Lecture 12 with John Yang

Browse Stanford's online courses in Agentic AI: https://stanford.io/4AIRb2z

Why are AI agents so hard to evaluate, and what makes a benchmark trustworthy? In this Stanford CS329Z: Engineering AI Agents lecture, John Yang, co-creator of SWE-bench, introduces a 4-tuple framework for agent evaluation (request, environment, stopping criteria, and scorer), how to design each component, the properties of good benchmarks, realistic scaffolding, and the dimensions of agent reliability.

Key questions answered in this lecture:
Q: Why is it hard to evaluate AI agents?
A: A model can be overfit to one benchmark and still behave poorly in use. Scores also depend on protocol choices like the harness, turn or cost limits, and temperature, which must be held constant to compare models fairly.

Q: How is an AI agent benchmark structured?
A: John splits a benchmark into task formulation (the problem statement, environment, and verification) and an evaluation protocol (the harness, number of attempts, how the agent signals it is done, and model settings).

Q: What makes a good AI agent benchmark?
A: It should be challenging, discriminative, realistic, easy to run, easy to verify, interpretable, and durable. John notes a tension: making tasks harder can make them less natural.

Q: Does the agent harness change benchmark scores?
A: Yes. Benchmark designers decide whether to require one harness, such as mini-SWE-agent, or allow others, and the same model can score differently depending on the harness.

Q: How do benchmark builders prevent data contamination?
A: John describes three approaches: a private test split (SWE-bench Pro), freshly human-written tasks (DeepSWE), and a regularly refreshed set of new issues (SWE-bench Live, LiveCodeBench). Each delays contamination rather than ending it.

Q: Why use competitive or Elo-based benchmarks instead of static test sets?
A: Competitive benchmarks saturate less easily because a model's score depends on its opponents. Static sets become regression tests once models master them. CodeClash applies this idea to agentic coding.

Chapters:
0:00 Introduction: Measuring Agent Progress
2:39 From Next-Token Prediction to NLP Benchmarks
10:57 Exam Benchmarks: MMLU to Humanity's Last Exam
16:52 Chat and Safety Benchmarks: Chatbot Arena
25:53 Q&A: Responding to Poor Benchmark Results
27:25 Why Benchmarks Matter and Benchmark Overfitting
31:15 Q&A: How Models Overfit to Benchmarks
33:41 Agent Benchmarks: Task Formulation and Protocol
39:33 Designing Tasks, Environments, and Verification
45:33 Q&A: Harnesses, Scaffolds, and Reward Hacking
49:29 Evaluation Protocol: Attempts, Stopping, Budgets
51:50 Case Studies: Text Games, Web Agents, τ-bench
1:02:34 Case Studies: Terminal-Bench, OSWorld, CodeClash
1:10:42 Properties of a Good Agent Benchmark

About the speaker:
John Yang is a Computer Science PhD student at Stanford University focused on coding agents. He is a lead creator of SWE-bench, the widely used benchmark for whether language models can resolve real GitHub issues, and of SWE-agent, an open-source agent for autonomous software engineering. He is also first author of SWE-smith, a toolkit that generated 50,000 software engineering training tasks from 128 repositories. He previously studied at Princeton University (MS) and UC Berkeley (BS).

Readings:
- Zhu et al., “Establishing Best Practices for Building Rigorous Agentic Benchmarks” (2025)

Course website: https://cs329z.stanford.edu/
Watch the full CS329Z playlist: https://youtube.com/playlist?list=PLPRcF5HR02_U&si=3Z4OYphngcmQ0GIy

Recorded 11/4/2026 in CS329Z: Engineering AI Agents, a graduate course at Stanford University taught by Diyi Yang, Michael Ryan, and John Yang.

#AIAgents #AIEvals #Stanford Receive SMS online on sms24.me

TubeReader video aggregator is a website that collects and organizes online videos from the YouTube source. Video aggregation is done for different purposes, and TubeReader take different approaches to achieve their purpose.

Our try to collect videos of high quality or interest for visitors to view; the collection may be made by editors or may be based on community votes.

Another method is to base the collection on those videos most viewed, either at the aggregator site or at various popular video hosting sites.

TubeReader site exists to allow users to collect their own sets of videos, for personal use as well as for browsing and viewing by others; TubeReader can develop online communities around video sharing.

Our site allow users to create a personalized video playlist, for personal use as well as for browsing and viewing by others.

@YouTubeReaderBot allows you to subscribe to Youtube channels.

By using @YouTubeReaderBot Bot you agree with YouTube Terms of Service.

Use the @YouTubeReaderBot telegram bot to be the first to be notified when new videos are released on your favorite channels.

Look for new videos or channels and share them with your friends.

You can start using our bot from this video, subscribe now to How to Evaluate AI Agents: Benchmark Design | Stanford CS329Z Lecture 12 with John Yang

What is YouTube?

YouTube is a free video sharing website that makes it easy to watch online videos. You can even create and upload your own videos to share with others. Originally created in 2005, YouTube is now one of the most popular sites on the Web, with visitors watching around 6 billion hours of video every month.