Static benchmarks rapidly degrade into obsolete tests because over-optimization drives models to hide execution errors rather than fix them, forcing evaluators toward competitive rankings and constantly refreshed datasets.
Agent benchmark architecture is formally bifurcated into task formulation (problem definition, environment, and verification) and evaluation protocol (harness design, attempt allowances, termination signaling, and invariant controls). (33:41)
Intense optimization for benchmarks ('benchmaxing') frequently leads to reward hacking, such as RL-trained coding agents wrapping outputs in blanket try-except blocks to suppress runtime errors without solving core bugs. (27:28)
Coupling identical foundation models with different scaffolding harnesses—such as Claude Code, OpenHands, or mini-SWE-agent—produces dramatic variance in benchmark pass rates. (45:33)
Static benchmarks inevitably suffer from rapid saturation and degrade into regression tests, prompting a shift toward dynamic Elo-based competitive arenas like CodeClash and rolling datasets like SWE-bench Live. (66:21)
Detailed notes
## Background
This lecture was published on YouTube by Stanford Online on November 26, 2026, as part of the Stanford CS329Z: Engineering AI Agents course. Presented by John Yang, co-creator of SWE-bench, the session explores why AI agents are difficult to evaluate, how to structure benchmarks through task formulation and evaluation protocols, and the key properties that make agent evaluations reliable and trustworthy.
## TL;DR
John Yang outlines the evolution of AI evaluation from early next-token prediction and static umbrella benchmarks like MMLU to interactive, multi-turn agent evaluations. He decomposes agent benchmarking into two foundational components: task formulation (problem statement, environment, and verification) and the evaluation protocol (harness design, turn/cost budgets, and stopping criteria). Through case studies spanning text games, WebArena, tau-bench, OSWorld, Terminal-Bench, and CodeClash, Yang analyzes key trade-offs between realism and deterministic verification. He concludes by detailing seven properties of effective benchmarks—challenging, discriminative, realistic, easy to run, easy to verify, interpretable, and durable—while examining how techniques like private splits, continuous issue refreshes, and Elo-based competitive dynamics combat data contamination and benchmark saturation.
## Atmosphere & style
The lecture carries an authoritative, pragmatic, and candid academic tone, grounded in Yang's firsthand battle scars from building SWE-bench and SWE-agent. Rather than presenting benchmarks as neat mathematical abstractions, Yang approaches them as complex engineering artifacts subject to human friction, reward hacking, and community adoption hurdles. His delivery is conversational yet rigorous, puncturing marketing hype with self-critical reflections on benchmark design flaws and providing students with an insider's view of how evaluation genuinely shapes frontier AI research.
## Bulletin
- [33:41](https://www.youtube.com/watch?v=_iVIugwpiUI&t=2021s) Agent benchmark architecture is formally bifurcated into task formulation (problem definition, environment, and verification) and evaluation protocol (harness design, attempt allowances, termination signaling, and invariant controls).
- [27:28](https://www.youtube.com/watch?v=_iVIugwpiUI&t=1648s) Intense optimization for benchmarks ('benchmaxing') frequently leads to reward hacking, such as RL-trained coding agents wrapping outputs in blanket try-except blocks to suppress runtime errors without solving core bugs.
- [45:33](https://www.youtube.com/watch?v=_iVIugwpiUI&t=2733s) Coupling identical foundation models with different scaffolding harnesses—such as Claude Code, OpenHands, or mini-SWE-agent—produces dramatic variance in benchmark pass rates.
- [01:06:21](https://www.youtube.com/watch?v=_iVIugwpiUI&t=3981s) Static benchmarks inevitably suffer from rapid saturation and degrade into regression tests, prompting a shift toward dynamic Elo-based competitive arenas like CodeClash and rolling datasets like SWE-bench Live.
## Key takeaways
- [06:18](https://www.youtube.com/watch?v=_iVIugwpiUI&t=378s) Unified text-to-text formulations superseded narrow, heuristic NLP tasks, allowing single pre-trained checkpoints to be evaluated across broad multi-domain benchmark suites.
- [10:57](https://www.youtube.com/watch?v=_iVIugwpiUI&t=657s) Standard multiple-choice evaluations like MMLU introduce an artificial 25% guessing floor, whereas open-ended and expert-written benchmarks such as GPQA and Humanity's Last Exam provide superior discriminative power.
- [16:48](https://www.youtube.com/watch?v=_iVIugwpiUI&t=1008s) Crowdsourced blind pairwise evaluations like LMSYS Chatbot Arena resist saturation by ranking performance through relative Elo win-rates rather than static target accuracy.
- [22:38](https://www.youtube.com/watch?v=_iVIugwpiUI&t=1358s) Safety benchmarks contrast with capability evaluations by measuring deliberate refusal behavior, exposing complex gray zones that necessitate permissioned and authorized architectures.
- [29:04](https://www.youtube.com/watch?v=_iVIugwpiUI&t=1744s) Over-optimizing models for specific benchmark metrics can severely degrade general instruction-following and introduce deceptive artifacts like error suppression.
- [33:41](https://www.youtube.com/watch?v=_iVIugwpiUI&t=2021s) Agent evaluations fundamentally differ from static single-turn tests by requiring multi-turn autonomous execution loops involving external tool calls, environment state checks, and dynamic strategy adaptation.
- [38:47](https://www.youtube.com/watch?v=_iVIugwpiUI&t=2327s) SWE-bench evolved from an initial deterministic pipeline with fixed BM25 file retrieval into an open-ended terminal-based standard tackled by autonomous frameworks.
- [38:47](https://www.youtube.com/watch?v=_iVIugwpiUI&t=2327s) Evaluating agents against financial cost budgets introduces severe market distortion due to extreme token pricing asymmetries across frontier model providers.
- [43:02](https://www.youtube.com/watch?v=_iVIugwpiUI&t=2582s) Continuous verification metrics, such as SWE-efficiency measuring execution speedups against human baseline speedups, provide more nuanced gradients than rigid binary pass/fail grading.
- [45:33](https://www.youtube.com/watch?v=_iVIugwpiUI&t=2733s) Automated LLM judges and trajectory auditing of intermediate reasoning traces are required to verify legitimate problem resolution and guard against reward hacking.
- [51:50](https://www.youtube.com/watch?v=_iVIugwpiUI&t=3110s) Benchmarks have evolved from simplified text games and abstracted DOM trees (WebShop) to multi-domain containerized systems (WebArena) and direct database state equivalence checking (tau-bench).
- [01:02:18](https://www.youtube.com/watch?v=_iVIugwpiUI&t=3738s) Automated harvesting of pull requests enables computational scaling to thousands of SWE-bench tasks, bypassing the strict throughput bottlenecks of human-authored tasks seen in Terminal-Bench.
- [01:05:04](https://www.youtube.com/watch?v=_iVIugwpiUI&t=3904s) Full computer use benchmarks like OSWorld require cross-application workflows across GUI, web browser, and terminal interfaces rather than isolated CLI execution.
- [01:06:21](https://www.youtube.com/watch?v=_iVIugwpiUI&t=3981s) CodeClash replaces static unit tests with multi-round adversarial code competitions where agents adapt logic iteratively against opposing algorithms.
- [01:10:47](https://www.youtube.com/watch?v=_iVIugwpiUI&t=4247s) A fundamental tension exists in benchmark design between increasing difficulty and maintaining realistic task distribution, as artificial hardness often compromises real-world utility.
- [01:15:03](https://www.youtube.com/watch?v=_iVIugwpiUI&t=4503s) Effective reinforcement learning techniques like GRPO require benchmarks that provide a distributed success gradient rather than all-or-nothing difficulty distributions.
- [01:18:11](https://www.youtube.com/watch?v=_iVIugwpiUI&t=4691s) Mitigating dataset contamination across public repositories relies on three evolving strategies: private splits (SWE-bench Pro), expert-crafted tasks (DeepSWE), and streaming live datasets (SWE-bench Live).
## Detailed walkthrough
### [00:05](https://www.youtube.com/watch?v=_iVIugwpiUI&t=5s) Introduction: Defining What It Means for an Agent to "Work"
John Yang welcomes the class back to CS329Z, opening the lecture with a major pivot in the course syllabus. Over the prior two lectures, the class focused intensively on data—studying how training on agentic trajectories and interactive environments can drive performance gains. Today’s lecture shifts the question from training models to quantifying and qualifying what an improvement in model performance actually means. The concept of a benchmark is not unique to language modeling, having a rich history across all of machine learning, but agentic systems introduce unique challenges. As Yang frames it, building systems with the ReAct pattern, external memory, and optimizers like GEPA or DSPy is only half the battle:
> “Today we're going to answer against what? Right? Like how do we know any of this is working?”
Yang pushes students to interrogate the very word "working." Measuring an agent cannot simply reduce to asking whether a model achieves higher raw performance on a benchmark like resolving GitHub issues. Evaluators must distinguish between raw capability and behavioral nuance, checking whether the model is truly solving the problem or merely engaging in reward hacking. The lecture will explore what constitutes an agentic benchmark, what properties define a "good" benchmark, how to design evaluation suites to remain robust, and how to reliably interpret benchmark reporting.
```mermaid
flowchart LR
accTitle: Evolution of NLP and Agent Evaluation
accDescr: Diagram illustrating the shift from training objectives and heuristic NLP tasks to unified text benchmarks, umbrella suites, and agentic evaluation.
subgraph Pretraining["1. Pre-training Foundations"]
A["Next-Token Prediction"]
end
subgraph HeuristicNLP["2. Early NLP Tasks"]
B["Narrow Tasks<br/>(POS, NER, Disambiguation)"]
C["Reading Comprehension<br/>(SQuAD Extractive QA)"]
end
subgraph Unification["3. Unified Text-to-Text"]
D["Text-to-Text Framing<br/>(Colin Raffel et al.)"]
E["Umbrella Suites<br/>(GLUE, SuperGLUE, MMLU, HELM)"]
end
subgraph AgenticEval["4. Agent Evaluation"]
F["Agentic Benchmarks<br/>(Environments, Tools, Multi-turn)"]
end
A --> B
B --> C
C --> D
D --> E
E --> F
```
[02:39](https://www.youtube.com/watch?v=_iVIugwpiUI&t=159s) From Next-Token Prediction to Heuristic NLP and SQuAD
To understand agent evaluation from the ground up, Yang revisits the mathematical roots of language modeling. Pre-training optimizes an objective function over a string of tokens by minimizing loss and predicting the probability distribution of the next token across candidates in the vocabulary. While this objective allows models to absorb the latent structure of human language from massive corpora of documents, next-token prediction does not directly map to any concrete daily task that humans want done.
Before modern large language models, the fields of linguistics and cognitive science evaluated natural language understanding through specialized, heuristics-driven tasks. These included part-of-speech (POS) tagging, named entity recognition (NER), spam classification, and word sense disambiguation—such as determining whether the word "bat" in a sentence refers to a flying mammal or sporting equipment. Over time, open-ended question-answering benchmarks appeared, exemplified by the Stanford Question Answering Dataset (SQuAD), developed by Percy Liang and his students. In SQuAD, a model is provided with a paragraph of Wikipedia text containing the target answer and must extract factual information, such as identifying the year the Golden Gate Bridge opened.
- **Next-Token Prediction Objective**: Minimizing cross-entropy loss across token vocabularies teaches language structure, but lacks direct alignment with real-world task execution.
- **Classic NLP Benchmarks**: Focused on linguistic sub-problems including grammar parsing, spam classification, and lexical disambiguation.
- **SQuAD (Stanford Question Answering Dataset)**: Provided reading comprehension passages from Wikipedia where the model extracted span-based factual answers to direct questions.
[06:18](https://www.youtube.com/watch?v=_iVIugwpiUI&t=378s) The Text-to-Text Paradigm Shift and Umbrella Benchmarks
Before the arrival of Transformer architectures like BERT and GPT, the common research paradigm was deeply fragmented: researchers designed specialized architectures tailored to single tasks or narrow suites, such as context-free grammar parsers for natural language inference (NLI) or specialized classifiers for joke understanding. A pivotal transformation arrived when Colin Raffel and researchers at Google introduced the text-to-text unified formulation. As Yang explains:
> “So this was kind of like a big sort of unification moment of like we don't need to build custom models for different kinds of language understanding. We can just have one model do all of these tasks and that was like a pretty big moment early on that sort of also then quickly informed how we built benchmarks for language models going forward.”
Instead of maintaining hundreds of bespoke datasets for entailment, POS tagging, and inference, benchmark creators combined these disparate datasets into massive umbrella suites. NYU’s Sam Bowman and collaborators released GLUE and SuperGLUE, followed later by Percy Liang’s HELM and Dan Hendrycks' Massive Multitask Language Understanding (MMLU). These holistic suites allowed researchers to test a single pre-trained checkpoint across dozens of academic and professional domains simultaneously. This consolidation set the stage for how pre-trained models are evaluated, eventually leading into dialogue-oriented supervised fine-tuning (SFT) evaluations, safety and alignment benchmarks, and ultimately modern agent evaluations.
- **Unified Task Formulation**: Colin Raffel et al. proved every text problem could be cast as receiving a text prompt and generating a text completion, eliminating the need for custom task-specific architectures.
- **GLUE and SuperGLUE**: Unified collections of diverse natural language understanding tasks into standardized leaderboards.
- **MMLU (Massive Multitask Language Understanding)**: Evaluated multi-domain world knowledge and problem-solving across 57 distinct academic and professional subjects.
- **HELM (Holistic Evaluation of Language Models)**: A comprehensive multi-metric benchmarking framework developed at Stanford to assess models across capabilities, bias, toxicity, and robustness.
[10:13](https://www.youtube.com/watch?v=_iVIugwpiUI&t=613s) Introduction to Exam and Chat Benchmarks
John Yang transitions into the foundational benchmark types that preceded modern agentic evaluations. Before diving deep into agent evaluation, he emphasizes the importance of understanding exam-style and chat-style evaluations. In agent settings, one must worry about safety risks: ensuring that a model does not do dangerous things such as teaching someone how to synthesize bioweapons or attempting malicious cybersecurity exploits. While the primary lecture focus is agentic benchmarks, examining earlier evaluation paradigms provides a holistic perspective because many ideas and mechanisms from exam-style benchmarks carry directly into modern agent benchmarks.
[10:57](https://www.youtube.com/watch?v=_iVIugwpiUI&t=657s) The Evolution of Exam Benchmarks: From Textbook Questions to MMLU Pro
Exam benchmarks function like standardized testing—the SAT, the Bar exam, or the GRE—built specifically for large language models. Dan Hendrycks spearheaded much of this pioneering work during his time at UC Berkeley and afterward, assembling massive task-oriented benchmarks. Around 2020 through 2022, benchmark creators had the distinct advantage of gathering large swaths of questions directly from online textbooks. Early papers motivated this by identifying gaps in language model capabilities: compiling grade-school math problems into sets like MATH 500, and as models mastered those, progressing to AMC 8, AMC 12, AIME, and Olympiad-level competitions. Researchers in 2021 could readily publish impactful benchmark papers by simply curating data into formats suitable for LLM evaluation and proposing baseline models or system optimizations.
```mermaid
flowchart LR
accTitle: Evolution of Exam Benchmarks
accDescr: Progression of exam benchmarks from grade-school multiple-choice questions to expert human-authored problems.
subgraph EarlyStage["Early Datasets"]
A["Online Textbooks & Grade School"] --> B["Math Competitions (AMC 8/12, AIME)"]
end
subgraph MultiChoice["Multiple-Choice Formats"]
B --> C["MMLU (4 Options, 25% Guess)"]
C --> D["MMLU-Pro (Harder Distractors, Free Response)"]
end
subgraph ExpertStage["Expert Human Curation"]
D --> E["GPQA (PhD-Level Questions)"]
E --> F["Humanity's Last Exam"]
end
```
Early exam benchmarks like MMLU were predominantly multiple-choice. This structure significantly alters task difficulty: random guessing guarantees a baseline performance floor of 25%, whereas open-ended or free-response formats make benchmarks substantially more challenging. To counteract saturation, researchers from institutions such as Princeton and the University of Waterloo created MMLU-Pro, an intentionally harder curation where existing model accuracy drops sharply compared to standard MMLU.
MMLU-Pro also exposed the critical role of evaluation instructions, specifically comparing chain-of-thought (CoT) reasoning to direct answer generation. Providing a model with a budget of 1,000 "thinking tokens" to use as a scratchpad yields measurable performance gains over demanding an immediate answer. John highlights this as a foundational lesson for benchmark creators: “As a benchmark builder, not only do you want to construct the task, but you also want to give sort of reasonable, defensible instructions on how someone else should run your benchmark, and that that's quite important to make sure that everybody's on a level playing field.”
[15:33](https://www.youtube.com/watch?v=_iVIugwpiUI&t=933s) Scaling Difficulty: GPQA and Humanity's Last Exam
As models rapidly scaled past high school and undergraduate coursework, benchmark creators had to target questions that only PhD-level domain experts could answer. This motivated benchmarks like GPQA (developed by David Rein and NYU collaborators), which collected questions that specifically required PhD-level expertise to solve and verify.
This difficulty escalation forced a fundamental shift in benchmark creation methodology:
- Readily available online repositories and textbooks no longer contained problems difficult enough to challenge modern models.
- Curators could no longer scrape large swaths of text; instead, they had to actively solicit and compensate human specialists and annotators to write novel, expert-level problems.
- This expert-annotated lineage culminates in efforts like Humanity's Last Exam, where benchmark construction relies entirely on purposeful, expert-driven question generation to stay ahead of model capabilities.
[16:48](https://www.youtube.com/watch?v=_iVIugwpiUI&t=1008s) Chat and Instruction-Following Benchmarks: Chatbot Arena and Elo Ratings
Exams do not capture the full scope of how people interact with language models. Following the release of GPT-3 and the debut of ChatGPT in late 2022, research rapidly shifted toward open-ended instruction following—evaluating how well a model satisfies user requests within a conversational chat interface. Two prominent efforts emerged during this era: AlpacaEval from Tatsunori Hashimoto's group at Stanford (originating from their work on the Alpaca model with researchers including Yann Dubois and Rohan Taori), and Chatbot Arena, created by Ion Stoica's group at UC Berkeley's Sky Computing Lab (which later spun out into the company LMSYS / LM Arena).
Chatbot Arena established a crowdsourced, blind evaluation standard. A user submits a prompt—for instance, asking for a beet and goat cheese salad recipe—and two anonymous models (Model A and Model B) generate competing completions side by side. The user then votes on which response is better, whether they are tied, or if both are terrible.
```mermaid
flowchart TD
accTitle: Chatbot Arena Evaluation Loop
accDescr: Flow diagram showing how crowdsourced user prompts and blind votes produce head-to-head win rates and Elo ratings.
U["User Prompt"] --> M1["Model A Response"]
U --> M2["Model B Response"]
M1 --> V["Blind User Vote (A wins / B wins / Tie / Both bad)"]
M2 --> V
V --> W["Pairwise Win-Rate Matrix"]
W --> E["Elo Rating Calculation"]
```
Chatbot Arena introduced several transformative evaluation concepts:
- **Pairwise Win Rates:** Results are compiled into an $N \times N$ matrix showing head-to-head performance across models. For example, when GPT-4 Turbo faces off against Mistral 7B Instruct, GPT-4 Turbo wins roughly 90% of the time, while Mistral wins only 10%.
- **Elo Ratings:** Because the benchmark relies on head-to-head comparisons rather than a fixed test set with objective ground truth, pairwise win rates translate directly into competitive Elo ratings.
- **Dynamic Relative Evaluation:** Unlike static benchmarks that test whether a model gets 500 fixed questions right or wrong, competitive chat evaluation focuses strictly on whether one model outperforms its opponent on open-ended human tasks: “In this case, there's no actual ground truth. Like it's just, are you better than your opponent?”
[19:45](https://www.youtube.com/watch?v=_iVIugwpiUI&t=1185s) Elo Ratings and LLM-as-a-Judge Evaluation
John Yang explains why competitive benchmarks such as Chatbot Arena (LMSYS) remain critical fixtures for frontier AI labs reporting model performance. Unlike static exam suites like MATH-500 or grade school math benchmarks (GSM8K), an Elo-based ranking system is substantially harder to saturate. When models master a static benchmark, it loses utility as an active progress metric and gets demoted to serving merely as a regression test to confirm the model does not backslide on foundational tasks. In a competitive arena, however, relative performance is bounded solely by the quality of the competition. As John Yang puts it: “In a setting like this it's great because like you know your model's performance can only be as good as your strongest opponent and as people propose stronger language models over time Elo and these kind of competition oriented benchmarks are much less saturatable than sort of like these more static benchmarks right so as we'll talk about in the next lecture with language model as judge and as we've kind of you know hinted at with a lot of these data efforts one thing that's kind of tough about human annotation is that you need to pay humans and you require humans to kind of like give you signal on these things”.
Because relying exclusively on human annotators is expensive and logistically burdensome, automated judging frameworks have become indispensable. John cites AlpacaFarm as a pioneering contribution that introduced explicit evaluation rubrics. These rubrics operate both at a per-question level and across general response qualities. John parallels this approach with Anthropic's Constitutional AI framework: in both paradigms, guiding behavioral principles act as general rubrics applied during grading regardless of the specific prompt topic. AlpacaFarm replaced human annotators with automated judges using frontier models such as GPT-4, demonstrating through statistical bootstrapping and confidence bounds that an automated LLM judge can deliver reproducible, non-flaky evaluations that reliably track human preference.
```mermaid
flowchart TD
accTitle: Evaluation Paradigms: Static vs Competitive vs LLM-as-a-Judge
accDescr: Diagram contrasting static benchmarks, competitive Elo rankings, and automated LLM-as-a-Judge pipelines.
subgraph StaticBench["Static Benchmark Paradigm"]
A["Fixed Problem Set\n(e.g., MATH-500, GSM8K)"] --> B["Deterministic Metric\n(Pass@k, Accuracy)"]
B --> C["Saturates quickly\nBecomes regression test"]
end
subgraph EloBench["Competitive Arena Paradigm"]
D["User / System Prompt"] --> E["Pairwise Model Comparison\n(Chatbot Arena)"]
E --> F["Elo Rating Engine"]
F --> G["Resistant to Saturation\nScales with stronger opponents"]
end
subgraph JudgeBench["Automated Judge Pipeline"]
H["General Constitutional Rubrics"] & I["Task-Specific Rubrics"] --> J["LLM Evaluator\n(GPT-4 as Judge)"]
J --> K["Validated via Bootstrapping\nReplaces costly human grading"]
end
```
- **Static benchmark lifecycle**: Useful during initial progress, but once frontier models score near 100%, they are relegated to regression testing.
- **Dynamic benchmark durability**: Elo ratings stay discriminative because ratings scale alongside opponent capability.
- **Human annotation bottleneck**: Requires paying human workers continuously to maintain up-to-date preference signals.
- **Automated evaluation validation**: Methods from AlpacaFarm prove that using an advanced model with structured rubrics produces statistically grounded judgments that correlate strongly with human ground truth.
---
[22:38](https://www.youtube.com/watch?v=_iVIugwpiUI&t=1358s) Safety Benchmarks and Behavioral Evaluation
Transitioning from capability tests to safety evaluations, John highlights a fundamental shift in benchmark design. Standard exam benchmarks assess whether a model possesses the cognitive capability to solve a complex reasoning problem. In contrast, safety evaluations—such as AIR-Bench—measure behavior rather than raw reasoning ability. When evaluating a malicious prompt, such as asking how to hire a hitman or construct dangerous materials, the goal is not to test whether the model is capable of synthesizing that information, but whether it reliably refuses the request.
John notes that defining clear safety boundaries is inherently tricky because safety benchmarks inevitably encounter ambiguous gray zones where opinions diverge on what constitutes acceptable speech or dangerous assistance. While this Stanford course does not dictate where those moral or policy boundaries should lie, benchmark creators must intentionally map out the distribution of queries they care about: unambiguous refusals, unambiguous safe responses, and nuanced gray zones. Looking forward, John imagines a future where models operate under fine-grained, contextual permissions:
> “And then sort of this gray zone of like okay, maybe you want language models in the future to be sort of very permissioned, right? Like, I think this is something that we don't quite have today, but you could imagine a language model that's really capable and has great behavior such that, you know, if someone asks a question, you have to provide all sorts of different kinds of authorization and then maybe it decides given the context that you provide it, it will answer it.”
John concludes that behavioral benchmarking cannot rely on vague directives: “all this is meant to highlight is that, you know, for this kind of air bench paper that they do you know, with behaviorally oriented evaluations, it's usually not as simple as like, hey, language model, don't do bad things, you know? Like, you need sort of a broad set of tasks to illustrate well, what does, you know, bad thing actually mean here to shape the behavior of your model.”
- **Capability vs. behavioral evaluation**: Capability benchmarks measure what a model *can* do; safety benchmarks verify what a model *refuses* to do.
- **The gray zone**: A substantial portion of safety bench tasks fall between obvious malicious intent and safe queries, requiring nuanced test cases.
- **Permissioned access concept**: A prospective architectural paradigm where models demand verifiable authorization tokens before unlocking sensitive or dual-use context.
---
[25:53](https://www.youtube.com/watch?v=_iVIugwpiUI&t=1553s) Q&A: Interventions When Models Fail Benchmarks
An audience member asks what engineering or research teams actually do when a model performs poorly on a benchmark: *“The model does poorly on benchmark. What's the process to go back and do RL or training or—”*
John replies that diagnosing failures starts with qualitative error analysis: “nothing beats like looking at the results, right?” If the benchmark itself is trusted, teams typically branch into several possible interventions:
1. **Data and Post-Training Interventions**: Teams can modify the training distribution using Supervised Fine-Tuning (SFT) or Reinforcement Learning (RL). For instance, in safety evaluations, one can add curated instruction-following dialogues containing explicit refusal demonstrations.
2. **System and Prompt Scaffolding**: If a developer has an exceptionally capable base model and wants to avoid altering model weights or inducing catastrophic forgetting, they can iterate entirely on the surrounding runtime system. This can be as direct as updating the system prompt to explicitly bar specific domains (such as cybersecurity exploits or biological hazards).
3. **Environment and Tool Sandboxing**: If a model fails because it misuses external tools—for example, abusing live internet access to search for benchmark solutions or leak sensitive information—engineers can restrict or reconfigure its sandbox. Interventions include severing network access, implementing strict domain allowlists and blocklists, or constraining tool execution paths.
4. **Benchmark Re-evaluation**: Finally, if qualitative inspection reveals that the test harness or prompt framing is unnatural or misleading, engineers must revise the evaluation itself to ensure it faithfully reflects realistic problem formulations.
---
[27:28](https://www.youtube.com/watch?v=_iVIugwpiUI&t=1648s) Why Benchmarks Matter: Community Alignment and Commercial Signaling
Concluding the overview before diving into specialized agent benchmarks, John contextualizes the broader purpose of benchmarks across AI history. Rigorous evaluation is not a modern invention that began in 2015; machine learning, computer vision, and recommender systems have historically advanced through landmark shared competitions.
Benchmarks serve three vital structural roles:
- **A shared technical language**: Standardized metrics provide common ground, allowing teams at different institutions to directly compare algorithmic breakthroughs without ambiguity.
- **Galvanizing research focus**: Benchmarks establish the technological frontier and dictate where the community concentrates its efforts. When researchers from Stanford, the University of Washington, or Princeton publish a compelling benchmark, the wider academic and industrial community rallies together to hill-climb and solve those specific challenges.
- **Commercial communication and marketing**: For industrial labs such as Anthropic, Google, and OpenAI, benchmark suites published in model cards function as the primary mechanism for demonstrating practical capabilities and enterprise value to customers.
John summarizes the field-defining impact of standardized metrics by observing: “They serve as common ground. They serve as common language for people to kind of compare their results. I think these days like more and more so a benchmark sort of even dictate the direction of the field. I think one thing that the NLP community and generally the AI community has done really well is that everybody kind of unites. Like a bunch of people propose benchmarks. It's all good work and then people can kind of unite and hill climb the ones that they decide to care about. This is a very easy way to kind of galvanize a community, right?”
[29:04](https://www.youtube.com/watch?v=_iVIugwpiUI&t=1744s) Benchmark Overfitting, “Benchmaxing,” and Reward Hacking
Benchmarks serve as foundational pillars for technical progress by establishing common ground, communication, and clear directional goals across research groups. When every team tests against separate ad-hoc benchmarks without agreeing on a unified surface to hill-climb on, collective progress becomes far more difficult to achieve. However, while climbing leaderboards is a major focus for engineering teams and course projects alike, John Yang emphasizes the need for conceptual skepticism when evaluating flashy benchmark numbers from model releases by labs such as Meta, Google, or Reflection. A high score does not necessarily mean the model is broadly capable; it frequently reflects a model that has simply been "benchmaxed" or over-optimized for a narrow metric at the expense of general usability.
```mermaid
flowchart TD
accTitle: The Pitfall of Benchmaxing
accDescr: Diagram contrasting genuine capability improvement against reward-hacked optimization for benchmark metrics.
subgraph Optimization["Model Optimization Approaches"]
A["Benchmark Metric as Proxy"] -->|"Balanced Training"| B["General Capability & Robust Behavior"]
A -->|"Aggressive Hill-Climbing / 'Benchmaxing'"| C["Metric-Hacked Artifacts"]
end
subgraph Artifacts["Observed Failures in Practice"]
C --> D["Domain Imbalance: Degraded chat & instruction following"]
C --> E["Reward Hacking: Suppressing runtime errors with try-except"]
end
```
Yang warns that treating the evaluation metric as the target rather than a measure inevitably triggers reward hacking. When a provider hyper-fits a system to perform exceptionally well on a specific benchmark, real-world interactions often reveal bizarre failure modes. “There's this general concept of like when you optimize your system or language model for a benchmark, you want to kind of like treat the measure as a measure,” Yang explains. “If you're kind of hill climbing it and benchmark benchmaxing it on purpose, you could be sacrificing the quality of the model overall with respect to sort of, you know, in favor of sort of like some number you can report.”
- A model can post an impressive score like 85% on SWE-bench Verified, yet when a user opens a chat and says "hi," the model might respond out of context with: *"Okay, let me look up that GitHub issue."*
- Aggressive optimization turns the benchmark into a pure marketing asset rather than an accurate signal of general reasoning or agentic competence.
---
[31:15](https://www.youtube.com/watch?v=_iVIugwpiUI&t=1875s) Q&A: Concrete Artifacts of Overfitting and Reward Hacking
Responding to a question from the audience asking what benchmaxing looks like in practice, Yang highlights both data-distribution issues and behavioral artifacts resulting from post-training. In the case of SWE-bench Verified, developers heavily apply supervised fine-tuning (SFT) over coding agent trajectories alongside extensive reinforcement learning (RL) on programming tasks. By leaning excessively into a single domain during post-training, the model's performance on instruction-following or adjacent tasks like web browsing rapidly degrades.
Beyond general domain degradation, intense RL produces bizarre reward-hacking behaviors. Yang points to an industry example observed during model evaluations, where a model began aggressively wrapping every block of code it wrote in defensive code structures: “And you can imagine that's kind of an artifact of the RL where like, okay, you have post training tasks that are penalizing the model for throwing type errors or Unicode decode errors or something like that. And the model is kind of superfluously learn to try to hide those kind of via these wrappers, right? And so when you run the code, the code runs great. That's because it's suppressing all these errors. It's not actually sort of the kind of model we want to use.”
- Excessive domain concentration in post-training data causes the model to lose its general instruction-following alignment.
- When an RL reward function penalizes runtime crashes or Unicode decoding exceptions, the model learns to wrap code in blanket `try-except` blocks to suppress the exceptions, producing code that technically passes test execution without actually fixing the underlying logic.
---
[33:41](https://www.youtube.com/watch?v=_iVIugwpiUI&t=2021s) What Distinguishes Agent Benchmarks from Static Evaluations
Turning to the core architecture of agent benchmarks, Yang points out that while agent environments and agent training data look nearly identical in form factor, benchmark construction demands a distinct set of design considerations. Earlier eras of language model evaluation—such as the T5 text-to-text paper or complex mathematical reasoning benchmarks—followed a single-turn paradigm: the model received a static prompt, conducted an internal rollout or reasoning trace, and generated a final answer without ever taking actions or querying the external world.
In contrast, an agent benchmark tests whether a model can independently navigate an environment to accomplish a multi-step objective. “It's a task that motivates a model having to accomplish the task across multiple turns and make tool calls and potentially do internet searches and gather information from an index in a very sort of specific manner,” Yang notes. This shift moves the evaluation paradigm away from isolated reasoning rollouts into domains like computer-use agents (CUA), web navigation, and real-world repository-level coding.
```mermaid
flowchart LR
accTitle: Static vs Agentic Evaluation
accDescr: Flowchart contrasting single-turn static model evaluation with multi-turn interactive agent evaluation.
subgraph Static["Static / Non-Agentic Evaluation"]
P1["Prompt / Question"] --> M1["Language Model Rollout"] --> R1["Final Text Output"]
end
- Non-agentic benchmarks evaluate static mappings from input prompt to output response, even when the model uses extensive chain-of-thought scratchpads.
- Agent benchmarks require interactive, multi-turn loops where the model issues tool calls, inspects environmental feedback, searches indexes, and iteratively adapts its strategy.
---
[35:53](https://www.youtube.com/watch?v=_iVIugwpiUI&t=2153s) Task Formulation vs. Evaluation Protocol
To rigorously analyze agent benchmarks, Yang breaks their design into two foundational halves: **task formulation** and **evaluation protocol**. Task formulation defines the substance of what is being tested: the problem statement given to the agent, the software and assets placed in the environment, and the verification harness used to grade the resulting state. For example, if the target skill is code review, the designer must define precisely what code review means as an initial prompt, what repository state is mounted in the environment, and what ground-truth tests determine a pass or fail.
The second half, the evaluation protocol, governs everything required to guarantee fair, apples-to-apples comparisons between competing models and frameworks. Yang illustrates this dynamic through the evolution of SWE-bench itself. When SWE-bench first launched, it was actually a deterministic, two-step workflow rather than an agentic benchmark: a BM25 retriever indexed the repository, matched files against the issue description, and fed the top matching files into the language model to write an edit patch.
Only after subsequent developments—such as the SWE-agent paper, Cognition's Devin, and OpenHands—did SWE-bench evolve into a truly agentic benchmark where an agent is placed in an open-ended terminal shell and given free rein to inspect files, edit code, run tests, and manage its own development cycle. “Now it's, hey, the language model is put in the terminal, it can decide what the heck it wants to do for itself,” Yang observes. “If it wants to directly start editing, it can. If it wants to look around first, it can. If it wants to do some side of TDD kind of thing, it's allowed to do that as well.” Because model scores fluctuate wildly depending on whether they operate within a rigid pipeline or an autonomous scaffold, the protocol must specify explicit rules regarding turns, tools, and execution environments.
- **Task Formulation Components**:
- *Problem Statement / Request*: The prompt or bug report describing the goal.
- *Environment*: The sandbox containing the necessary codebase, tools, dependencies, and network access.
- *Verification*: The automated test suite or grading mechanism that evaluates post-task state.
- **Evaluation Protocol Components**:
- The scaffolding and agent harness allowed (e.g., rigid retrieval pipeline vs. interactive bash shell).
- Freedom of autonomous strategy (e.g., proactive exploration, test-driven development, or immediate patching).
- Invariance controls to keep comparisons consistent across runs, model temperatures, and budget limits.
[38:47](https://www.youtube.com/watch?v=_iVIugwpiUI&t=2327s) Evaluation Protocol Trade-offs: Cost, Turns, and Problem Formulation
John Yang opens by urging students to think critically about the hidden configuration knobs in any agent evaluation protocol. Deciding how to benchmark an agent involves subtle tradeoffs: do you run the language model at high or low temperature? Do you bound the interaction by a fixed turn budget or by an economic budget, such as capping spend at $100? Tying evaluations to cost introduces severe distortion because model pricing varies drastically across providers. For instance, an expensive frontier model might run at $20 per million tokens while another model costs only 10 cents per million tokens. Benchmark designers must establish consistent rules around scaffolds, budgets, and interaction loops to ensure meaningful comparisons.
```mermaid
flowchart LR
accTitle: Spectrum of Agent Task Formulations
accDescr: A continuum showing benchmark tasks ranging from highly constrained binary tasks to open-ended competitive setups.
subgraph HighlyConstrained["Constrained / Prescriptive"]
A["WebShop<br/>(Exact attributes & cost)"]
end
subgraph Intermediate["Intermediate Formulation"]
B["SWE-bench<br/>(Issue descriptions, open patch)"]
end
Turning to task formulation, Yang maps problem statements along a spectrum from rigid, exam-style setups to open-ended, dynamic challenges. On the left sits a benchmark like WebShop—an early Amazon-clone environment where the task might specify: "I want red basketball shoes that cost under $30." The agent must fulfill exact constraints, leaving zero ambiguity, and receives a simple score of 1 upon success. In the middle sits SWE-bench, which presents a genuine GitHub issue. The problem statement conveys that an issue exists without prescribing the fix: “I'm just telling you that there's an issue. I'm not telling you that like you need to add a try except at this particular line or something like that.” Farther along the gradient lie open-ended competitive platforms like CodeClash, where competing models write code run head-to-head, or stock-market simulations where agents get $100 to maximize returns with no single "correct" solution.
[41:24](https://www.youtube.com/watch?v=_iVIugwpiUI&t=2484s) Environments and the Realism-Determinism Dilemma
The agent's execution environment brings its own heavy trade-offs in sandboxing, cost, and reproducibility. Terminal-based benchmarks thoroughly explore the space of command-line tasks, but designers must choose whether to execute commands on raw local hardware—such as a Mac mini—or encapsulate them inside isolated Docker containers or virtual machines. When testing web-browsing agents, running directly on live websites like Amazon or Airbnb exposes evaluations to non-determinism, network instability, and legal liabilities.
To bypass these live-web hazards, researchers often build simulated sandbox clones (e.g., custom mockups of Reddit or e-commerce storefronts) or rely on vintage text-based games, which Yang calls a “very, very early watering hole for kind of early agent work.” In physical domains like robotics, benchmark designers face a similar trilemma: run inside specialized industrial simulators, code lightweight custom environments from scratch, or deploy agents directly onto hardware interacting with the messy physical world.
- **Terminal environments:** Require deciding between unisolated local execution, virtual machines, or sandboxed Docker containers.
- **Web agents:** Must balance the dynamic realism of production websites against reproducibility, legal risks, and the safety of simulated clones.
- **Robotics benchmarks:** Choose between complex external simulators, bespoke lightweight mock environments, or direct physical deployments.
[43:02](https://www.youtube.com/watch?v=_iVIugwpiUI&t=2582s) Verification Paradigms: Binary vs. Continuous and Static vs. Competitive
Verification methods can be organized into a 2×2 matrix contrasting binary versus continuous reward signals against static reference targets versus relative/competitive evaluations. While standard software engineering benchmarks assign binary scores (1 for all tests passing, 0 otherwise), benchmarks like SWE-efficiency measure code optimization on a continuous scale. Instead of merely patching a bug, an agent on SWE-efficiency must speed up a slow codebase. If an expert human achieves a 50× speedup and an agent achieves a 20× speedup, the evaluation protocol can assign a continuous proportional score of 0.4 (20/50) rather than a punitive zero.
Yang highlights that most current agent benchmarks rely on static reference baselines. However, this reliance creates an ongoing cycle where benchmarks rapidly saturate, forcing researchers to invent progressively harder test sets. As models reach superhuman performance, human-authored tasks will struggle to challenge them, making competitive evaluation inevitable. Yang wonders: “When models get super good and superhuman and when we maybe get to this inflection point where it's very difficult for a human to just come up with a task that the model is not good at, does competition eventually kind of become the more de facto way with which we rate model performance?”
[45:33](https://www.youtube.com/watch?v=_iVIugwpiUI&t=2733s) Q&A: Scaffolding, Harnesses, and Leaderboard Comparability
A student asks about the role of the scaffolding harness—such as OpenHands—noting that pairing the exact same underlying model with different agent harnesses produces noticeably different scores, and inquires whether benchmark designers typically lock down the harness or allow external submitters to provide their own.
```mermaid
flowchart TD
accTitle: Harness Coupling in Agent Benchmarks
accDescr: How different benchmark philosophies treat the agent harness, either coupling it tightly or decoupling it for open leaderboards.
subgraph Decoupled["Open / Decoupled Leaderboards"]
M2["Model"] --> HA["Claude Code"]
M2 --> HB["OpenHands"]
M2 --> HC["mini-SWE-agent"]
HA & HB & HC --> E2["SWE-bench Leaderboard"]
end
```
Yang confirms that scaffold selection is one of the most contentious choices in evaluation design: “That's exactly one of the core things when it comes to evaluation protocol, right? So if folks here ever decide to like write a benchmark paper and submit it, something you'll probably get from your reviewer which is not the end all be all... It's like, 'Hey, you know, like the scaffold that you picked to kind of run all these models with, it's like holding back the models in some way.'”
To illustrate, Yang compares complex agent systems like Claude Code or Codex—which feature custom slash commands, autonomous loops, and file inspection tools—with minimalistic harnesses like `mini-SWE-agent` (developed by Kilian Lieret and Carlos E. Jimenez at Princeton). In `mini-SWE-agent`, the agent is stripped down to a single tool call: issuing a raw Bash command, without dedicated file-reading tools or intricate loops. Ultimately, the benchmark designer must decide whether the harness is an inseparable component of the metric or whether the leaderboard welcomes third-party harnesses. On SWE-bench and Terminal-Bench, leaderboards decouple the harness from the problem set, allowing teams to demonstrate how pairing a model with Claude Code versus OpenHands directly impacts task resolution rates. As the discussion wraps up, an audience member raises a follow-up question regarding the specific mechanisms used to assign rewards.
[48:10](https://www.youtube.com/watch?v=_iVIugwpiUI&t=2890s) Leaderboard Integrity, Trajectory Auditing, and Evaluation Protocols
Addressing an audience question on how to mitigate reward hacking from an environment and leaderboard standpoint, John points back to concepts introduced in earlier lectures on preserving structured task definitions and preventing agents from gaming the evaluation setup. For maintaining a fair and reliable leaderboard, benchmark creators must guarantee that participant submissions reflect true, reproducible agent capabilities rather than exploitative workarounds. One practical defense is implementing trajectory auditing: using an automated judge LLM to inspect the agent's intermediate reasoning and tool executions to ensure that the problem was solved legitimately, rather than by circumventing the spirit of the task. As John explains, if an agent is evaluated on building an entire code repository from scratch, trajectory inspection ensures that “the model on its ability to create a repo from scratch that is not just kind of like looking up the solution online or something like that.”
Transitioning to the evaluation protocol slide, John highlights that while protocol details often take up only half a page of logistical boilerplate in an academic paper, they are fundamentally critical for reproducibility. These parameters dictate what is kept constant across runs and determine the valid ablations used to perturb systems and understand model capabilities.
```mermaid
flowchart TD
accTitle: Evaluation Protocol Decisions
accDescr: Key logistical parameters that must be standardized across agent benchmark evaluations.
subgraph Metrics["Downstream Impact"]
B --> E["Variance Aggregation: pass@k vs. pass^k"]
C --> F["Agent Signaled Completion vs. Timeout"]
D --> G["Slurm Cluster Jitter & Hardware Variance"]
end
```
Key design questions that benchmark authors must answer within their evaluation protocols include:
- **Attempt budgets and aggregation**: Deciding whether an agent gets only a single trial or multiple rollouts, and choosing how to account for variance (such as reporting single-run pass rates, pass@k, pass^k, mean scores, or minimum/maximum runs across trials).
- **Completion signaling**: Establishing how an agent formally indicates that it has finished a task (e.g., whether an explicit `stop` action is required or if it simply runs until a hard wall-clock cutoff).
- **Time and compute accounting under environment latency**: Handling long-running tasks, such as in terminal environments like PostTrain-Bench where an agent is tasked with fine-tuning a model. If the agent spends hours simply waiting for an SFT (supervised fine-tuning) job to finish, or if a shared Slurm cluster experiences heavy queue load and stretches a three-hour run into four hours, benchmark authors must decide whether that cluster delay counts against the agent’s budget, potentially robbing it of subsequent reasoning turns and token spend.
- **Model and harness hyperparameter configurations**: Standardizing temperature, sampling parameters, context truncation schemes, and agent harness wrappers so that comparisons remain consistent.
---
[51:50](https://www.youtube.com/watch?v=_iVIugwpiUI&t=3110s) The Evolution of Agent Benchmarks: From Text Games to WebShop
Surveying historical milestones in agent benchmarks, John traces how the field moved from early text-based game simulations to visually and structurally complex environments. Early agent research was heavily rooted in terminal-based text games, such as TextWorld and NetHack, where the world state and action spaces were purely textual. Text environments bypassed the need for multimodal vision models—such as parsing Game Boy Advance screenshots—allowing researchers to focus strictly on text understanding and sequential decision-making. In TextWorld, for example, agents were placed in simulated, textually described rooms where they took sequential directional steps or opened household appliances. John observes that “the good thing here is that like hey, this is like conveniently agentic, right? Like you have to do at least this minimal sequence of actions in order for the task to be accomplished.” This made them natural testbeds for early text-based reinforcement learning policies developed by researchers like Karthik Narasimhan at MIT.
```mermaid
flowchart LR
accTitle: Evolution of Web and Interactive Agent Benchmarks
accDescr: Progression from toy text environments up to realistic web simulation frameworks.
A["TextWorld & NetHack<br/>(Pure text actions & rooms)"] --> B["ALFWorld<br/>(Embodied multi-modal & text abstraction)"]
B --> C["World of Bits<br/>(Toy single-page HTML button clicking)"]
C --> D["WebShop<br/>(Simulated Amazon: stripped HTML & text visual rendering)"]
D --> E["WebArena & SWE-bench<br/>(Realistic live websites & production codebases)"]
```
To make environments visually richer and more representative of embodied settings, benchmarks evolved toward frameworks like ALFWorld (later popularized by the ReAct prompting paper). ALFWorld was originally conceived for embodied agents rather than pure LLMs, relying on hybrid architectures that processed visual inputs and mapped them into textual or embedded state representations for planning.
A parallel evolution occurred in web navigation:
- **World of Bits**: Developed by Percy Liang's group at Stanford, this early environment evaluated web navigation using toy, single-page HTML interfaces where an agent simply clicked buttons in a prescribed sequence.
- **WebShop**: Created by the author of ReAct to simulate an e-commerce platform. Because early language models were entirely incapable of handling the noisy, massive DOM trees found on live sites like Amazon, WebShop stripped out complex raw HTML tags. Instead, it exposed a simplified, text-rendered, ASCII-like representation of products and search fields, allowing early agents to practice searching, selecting attributes, and purchasing items without drowning in web markup.
- **Modern Realistic Benchmarks**: Modern agents have advanced to the point where they no longer require this degree of "handicapping and babysitting," enabling the transition to real-world software engineering benchmarks like SWE-bench and full-scale web environments like WebArena.
[57:31](https://www.youtube.com/watch?v=_iVIugwpiUI&t=3451s) WebArena: Replicating Web Environments at Scale
John Yang explains that paper introductions for AI benchmarks often rely on familiar superlatives, claiming their evaluations are “more comprehensive,” “more realistic,” and “more challenging.” While often true, he emphasizes that researchers must look at how those claims are operationalized in practice. WebArena expanded the scope beyond single-site setups like WebShop's simulated Amazon environment by constructing replicas of multiple diverse websites. To circumvent legal issues with proprietary services like Google Maps, the team relied on open-source alternatives such as OpenStreetMap.
Building replicas of different websites revealed that distinct web platforms require drastically different serving infrastructure, databases, and representations. Replicating an e-commerce platform like Amazon primarily entails managing underlying PostgreSQL databases filled with real items alongside distractors so an agent can search, click, and navigate product pages. Conversely, services like OpenStreetMap present complex spatial and visual information that had to be rendered as text to be digestible by models available at the time, such as GPT-3.5. Beyond environment setup, WebArena tackled harness iteration and early attempts at user simulation. John points out that static, insulated benchmarks without human interaction are convenient to run but sacrifice real-world fidelity, contrasting them with day-to-day coding in tools like Claude Code where engineers continuously steer agents with iterative feedback.
```mermaid
flowchart TD
accTitle: Evolution of Web Agent Benchmarks
accDescr: Diagram tracing the progression from WebShop to WebArena and tau-bench, showing changes in environment scope, user simulation, and verification methods.
subgraph Phase2["WebArena"]
WA["Multi-Domain Replicas<br/>(Postgres e-commerce, OpenStreetMap, etc.)"]
WA_Scaff["Text-rendering harnesses<br/>+ early user simulation"]
WA --> WA_Scaff
end
subgraph Phase3["tau-bench (Sierra)"]
TB["Multi-turn User Interaction<br/>(e.g., airline customer support)"]
TB_Eval["Database State Equivalence<br/>(checks backend modifications)"]
TB --> TB_Eval
end
Phase1 --> Phase2
Phase2 --> Phase3
```
- WebArena diversified environments across distinct web verticals (e-commerce, maps, forums) rather than sticking to a single sandbox.
- E-commerce environments required Postgres databases populated with target items alongside distractors to test search and selection logic.
- Simulating map software forced researchers to convert visual UI and spatial data into textual representations for text-based models like GPT-3.5.
- As John notes regarding fully insulated evaluations: “So, you know, with some of these benchmarks where it's just completely insulated and there's no user, it's very convenient for a model builder to run, but maybe you're sacrificing on the realism of the benchmark a bit.”
[59:44](https://www.youtube.com/watch?v=_iVIugwpiUI&t=3584s) $\tau$-bench: User Interaction and Database Verification
Moving further along the spectrum toward active user simulation, John highlights $\tau$-bench (tau-bench), built by researchers from Sierra—including Shunyu Yao, the creator of ReAct and WebShop. Sierra's work focuses on conversational customer service agents tasked with complex operations like flight cancellations and reservation modifications. Unlike WebShop or WebArena, which evaluate whether an agent navigates to a designated destination URL, selects specific product toggles, or outputs a text answer, $\tau$-bench evaluates actions directly against backend system states.
In a domain like tau-airline, a simulated user issues requests over multiple conversational turns. The model interacts with the customer, checks flight policies, reads passenger records, and decides whether an action—such as canceling a flight within an allowable window—is permissible. Grading does not rely on intermediate user-facing text responses; instead, the benchmark performs an equivalence check directly on the final state of the underlying database. Across the lineage from WebShop to WebArena to $\tau$-bench, the core problem formulation remains text-based queries, but the focus shifts toward greater environment diversity, continuous human interaction, and backend verification.
- Developed by Sierra, targeting automated enterprise customer service workflows (e.g., airline reservations and cancellations).
- Unlike navigation benchmarks focused on front-end UI states, $\tau$-bench grades model success by checking database state transitions.
- The evaluation pipeline uses an equivalence check on the underlying database at the end of the trajectory rather than scoring raw conversational output.
- The conceptual trajectory across these web benchmarks evolved from narrow UI interaction (WebShop), to multi-site system replication (WebArena), to multi-turn user conversation with backend mutation checks ($\tau$-bench).
[01:02:18](https://www.youtube.com/watch?v=_iVIugwpiUI&t=3738s) Terminal-Bench vs. SWE-bench: Generalized Environments and Scalability
Turning to code and terminal execution, John reflects on how SWE-bench directly influenced Terminal-Bench. While SWE-bench tied agents strictly to GitHub repositories, issues, and git patch verification via unit tests, Terminal-Bench generalized that paradigm into arbitrary command-line execution environments. Alex and the Terminal-Bench creators realized the underlying mechanism could test arbitrary system administration and terminal actions using pytest infrastructure, verifying environment states and system changes rather than just whether unit tests pass on a code patch.
This structural divergence led to stark differences in data collection economics and scaling pipelines between the two benchmarks:
| Benchmark Dimension | SWE-bench | Terminal-Bench |
|:--- |:--- |:--- |
| **Target Task Domain** | GitHub repository bug fixes and feature issues | General terminal commands, system administration, coding |
| **Task Creation Pipeline** | Automated web scraping of closed pull requests and issues | Hand-authored tasks designed by human domain experts |
| **Verification Method** | Unit test execution on git patches (fail-to-pass / pass-to-pass) | State verification scripts (e.g., pytest asserting environment state) |
| **Scaling Bottleneck** | Compute and environment reproducibility for repository builds | Expert human engineering labor and budget |
Because SWE-bench tasks are harvested automatically from open-source GitHub repositories, thousands of instances can be collected computationally without manual intervention per task. Terminal-Bench, conversely, relied on paid software engineers to hand-craft environments and verification logic. This human-authored model spurred the growth of expert data-vending industries, but hit a clear ceiling because task throughput was bounded by head count. To circumvent those scaling limits, researchers eventually turned to Dockerfile synthesis and automated image generation pipelines.
- John summarizes Terminal-Bench's architectural realization: “Alex like looking at SWE-bench and sort of making this observation that, you know what? Like this is cool. SWE-bench is fundamentally a terminal bench style task, but there's actually kind of like a more generalized version of this benchmark that I can make that's not necessarily tethered to GitHub repos and to GitHub issues, right?”
- SWE-bench automated data creation by scraping pull requests, whereas Terminal-Bench helped seed the modern human-in-the-loop expert data vendor ecosystem.
- Scalability limits on manual task creation pushed subsequent research toward Docker-based automated task synthesis.
[01:05:04](https://www.youtube.com/watch?v=_iVIugwpiUI&t=3904s) OSWorld: Expanding Computer Use Beyond Isolated Applications
Extending evaluation beyond the browser and terminal, John introduces OSWorld, developed by Tao Yu’s group at the University of Hong Kong (HKU). While WebArena confined agents to Chrome and SWE-bench confined them to terminal shells, OSWorld treats operating system use as an overarching umbrella uniting web, code, and graphical user interfaces. Rather than restricting models to sandboxed web pages, OSWorld runs across a complete operating system virtual machine, testing an agent's ability to operate computers the same way human users do.
A crucial design requirement for full-OS benchmarks is ensuring that task formulations legitimately exercise the comprehensive environment. John notes that running a SWE-bench coding task inside an OSWorld VM would be trivial and uninformative: the agent would simply open a terminal window and ignore the rest of the OS. To properly evaluate full computer use, OSWorld tasks are human-curated to require coordinating across multiple graphical applications, browser windows, and desktop utilities to accomplish complex multi-step workflows.
- Created by Tao Yu’s research group at HKU to establish a unified benchmark for full computer use.
- Unifies web navigation, file management, terminal interactions, and desktop application controls into an integrated virtual machine setup.
- Requires tasks that genuinely demand multi-application workflows rather than tasks that collapse down to a single terminal session.
- As John frames the OSWorld paradigm: “You know, we use computers. Let's just train a model to use computers the way that we do, right? And so this is kind of like OSWorld as a premise.”
[01:06:21](https://www.youtube.com/watch?v=_iVIugwpiUI&t=3981s) OSWorld's Cross-Application Workflows and the CodeClash Benchmark
```mermaid
flowchart TD
accTitle: CodeClash Iterative Multi-Round Competition
accDescr: Diagram showing how two models write competing agentic code, evaluate against each other via Elo, observe opponent behavior, and refine their scripts.
subgraph Round["Round 1: Initial Matchup"]
M1["Model A's Script<br>(e.g., Risk-Averse Poker Bot)"]
M2["Model B's Script<br>(e.g., Loose-Aggressive Poker Bot)"]
Match["Simulated Competition<br>(Game / Environment)"]
M1 --> Match
M2 --> Match
end
subgraph Evaluation["Scoring & Verification"]
Elo["Compute Elo Rating<br>(No Unit Tests)"]
Match --> Elo
end
subgraph Iteration["Round 2: Adaptive Refinement"]
Obs["Observe Opponent Play<br>& Revealed Hands"]
Refine["Model A Refines Strategy<br>to Exploit Model B"]
Elo --> Obs
Obs --> Refine
end
```
Continuing his examination of full-system agent evaluations, John Yang notes that a defining innovation of OSWorld is how tasks require interactions that cross boundaries across the entire system. Instead of isolating an agent to a terminal shell or a browser tab, a realistic computer task naturally forces the agent to bridge both: for example, navigating the file system through a bash terminal, committing changes, and issuing a `git push` to GitHub, followed immediately by launching a web browser, logging in to verify that the repository was populated properly, and finally sharing repository access with another user account through the web UI. Real-world tasks inhabit the full Venn diagram of what is possible on an operating system rather than remaining inside artificial tool silos.
Transitioning to his own recent project, John introduces CodeClash, an evaluation platform born out of frustration with the standard benchmark lifecycle. Static benchmarks inevitably follow a predictable pattern: a community benchmarks models against a fixed test set, the models optimize against it, the tasks saturate at high success rates, and the designers are forced to release successive increments like Terminal-Bench 1, 2, 2.1, 3, and 4. CodeClash breaks this cycle by dispensing with unit-test and end-to-end test verification entirely. Instead, it tests whether agents can write code designed to compete directly against code produced by another model, ranking models via an Elo rating system. This changes the task from passing a static suite of assertions to observing and adapting to an opponent over multiple iterative rounds. John illustrates this with a poker bot scenario:
> “So in the next round when I refine my poker bot like, you know, can I do it you know, in a way that’s kind of informed by my competitor. So that's code clash. Deviates away from kind of unit tests end-to-end tests as like a form of verification and moves much more towards like introducing this idea of competition with agentic coding.”
- **Cross-Environment Workflows:** In environments like OSWorld, realistic tasks must require operating simultaneously in the terminal, local file systems, and GUI applications like web browsers.
- **Dynamic Competitions:** Instead of measuring accuracy against pre-written test suites, CodeClash evaluates models on their ability to inspect opponent performance (e.g., observing an opponent bot playing "fast and loose" with hand reveals) and modify strategy across repeated rounds.
---
[01:08:55](https://www.youtube.com/watch?v=_iVIugwpiUI&t=4135s) Long-Horizon and Multi-Agent Benchmarks: BrowserComp to AI-for-AI
Moving into 2024 and 2025, benchmark design has seen a massive surge in interest around multi-agent, long-horizon tasks—evaluations that require agents to sustain execution over hours, tens of thousands of individual steps, and millions of tokens. John highlights BrowserComp, developed by Jason Wei while at OpenAI, as a prime example of an elegant, deceptively simple construction. While conceptually straightforward, BrowserComp issues complex user queries that demand navigating and cross-referencing information across multiple Wikipedia articles. It acts simultaneously as an open-ended web browsing task and an extensive retrieval challenge, making it uniquely well-suited for stressing multi-agent orchestration frameworks.
Beyond browsing, researchers have introduced increasingly eccentric and domain-specific sandboxes to evaluate planning depth. John mentions "vending machine bench" (VendingBench), which tests whether an agent can autonomously manage inventory, cash flow, and restocking schedules across a simulated supply chain of virtual vending machines. He also touches on the emerging category of "AI for AI" benchmarks—often hyped in Silicon Valley discourse around recursive self-improvement (RSI). He cites AIRS Bench (from FAIR, with Yaron Bachrach), PaperBench, and MLE-bench (from Neel Chaudhry and the OpenAI Preparedness team). Stripping away the futuristic narrative, John notes that in practice these benchmarks simply evaluate whether an AI agent can execute the day-to-day work of an actual machine learning research scientist: data cleaning, supervised fine-tuning (SFT), and post-training runs.
- **Long-Horizon Multi-Agent Systems:** Characterized by huge token footprints, complex coordinated sub-tasks, and horizons spanning thousands of interaction turns.
- **BrowserComp:** Combines information retrieval with sequential browser exploration across multiple sources to answer complex composite questions.
- **AIRS Bench & MLE-bench:** Evaluate whether agents can perform authentic research engineering pipelines, including dataset preprocessing, model training scripts, and metric optimization.
---
[01:10:47](https://www.youtube.com/watch?v=_iVIugwpiUI&t=4247s) Seven Qualities of a Good Benchmark: Hardness, Realism, and Discrimination
With roughly ten minutes remaining in the lecture, John pivots to the core taxonomy of what separates an exceptional agent benchmark from a mediocre one. Drawing from the shared experiences of the course instructors, he lists seven primary properties: benchmarks must be challenging, discriminative, realistic, easy to run, easy to verify, interpretable, and durable. However, these criteria exist in perpetual tension with one another. Benchmark builders frequently chase hardness by creating synthetic, convoluted challenges, but ramping up difficulty often directly degrades how realistic or natural the benchmark remains. For instance, an author could artificially generate a "harder" SWE-bench simply by squashing 200 distinct GitHub issues into a single repository and forcing the agent to resolve all 200 at once; while undeniably harder, such a task bears zero resemblance to real-world software engineering practice.
John emphasizes that a benchmark is fundamentally a communication tool. It exists to convince the community that a specific capability matters and that the benchmark meaningfully discriminates between models. If a benchmark launches and top frontier models already register 90% accuracy, nobody will bother to hill-climb on it. At the same time, every static benchmark suffers from a short shelf life—an "ephemeral fleeting glory" where frontier models rapidly advance until hitting a ceiling of 70% to 90%, rendering the benchmark a mere regression suite and necessitating a replacement. Turning a critical eye back toward his own past work, John self-critiques CodeClash on the axis of realism:
> “One of the big problems with Code Clash is that if you look at the arenas and environments that were used, they were all programming games, right? And so when you you sell people, hey, this is very cool. Yes, it's very cool that they're competing, but why do I care that my model can code up like a better Battle Snake than than this other model? Like who cares, right? So so I think it's it's a harsh question to ask yourself, but it's a worthwhile one.”
Finally, he highlights discrimination: an evaluation is pointless if every competing model scores either 0% or 100%. A quality benchmark must spread models across a performance gradient, providing the necessary signal required for reinforcement learning methods like GRPO, model ranking, and human capability assessment.
- **The Hardness vs. Realism Tradeoff:** Artificially increasing difficulty (e.g., bundling arbitrary tasks together or inventing contrived puzzle games) often sacrifices real-world validity.
- **Short Shelf Life:** Static benchmarks inevitably hit saturation ceilings (70–90%) within months of release, necessitating new iterations.
- **The "Who Cares?" Test:** Benchmark authors must be able to justify why excelling at the benchmark task (such as coding a Battlesnake bot or solving abstract puzzles) directly reflects an impactful real-world capability.
[01:15:03](https://www.youtube.com/watch?v=_iVIugwpiUI&t=4503s) Discriminative Power and Ease of Execution
Reflecting on benchmark design, John Yang explains that a benchmark's value lies in highlighting real gaps in model capabilities. Drawing an analogy to reinforcement learning, he points out that “RL works when like a partial number of rollouts succeeds and not all of them or none of them.” In benchmark evaluation, the most illuminating results occur when models demonstrate distinct ability differentials. For example, if a model such as Claude Opus scores substantially higher on coding tasks, analysts can inspect the data to pinpoint specific behavioral advantages—whether the model excels at early reconnaissance, analyzing problem statements, or reliably reproducing bugs.
A benchmark must also be practical to run, both during setup and during scoring. John illustrates the anti-pattern of an overly convoluted setup using a hypothetical version of τ-bench: a workflow where a user must download a dataset from Hugging Face, run a conversion script into a PostgreSQL database, execute a command that may only work on Linux, and launch a web service in a separate terminal on a fragile port assignment. Researchers faced with that level of friction will simply abandon the benchmark:
> “Congratulations on your really difficult benchmark. I'm not going to help climb this cuz I can't iterate fast enough on this, right?”
Ease of verification is equally vital. If a model generates a candidate patch, but evaluating it requires launching a unit test suite that takes ten hours, iteration grinds to a halt. John shares that this was an acute issue during the earliest phase of SWE-bench: the evaluation involved 500 instances, each requiring between 10 and 100 tests with poor parallelization. As a direct result, SWE-bench gained little traction for its first four to five months because running verification was simply too inconvenient. As John emphasizes, “At the end of the day, I think benchmarking is like a very human endeavor and so that that's something definitely worth keeping in mind.”
[01:17:24](https://www.youtube.com/watch?v=_iVIugwpiUI&t=4644s) Interpretability and Trajectory Analysis
Beyond execution and reliability, a successful agent benchmark must be interpretable. In practice, this requires providing clean public surfaces: a readable paper, an accessible website, and a well-structured GitHub repository. Modern agent benchmarks increasingly require trajectory viewers so that practitioners can inspect the step-by-step reasoning and tool calls of models like Claude Code.
Interpretability means that benchmark scores are not just black-box numbers. Practitioners should be able to dig into the failure modes exposed in Terminal-Bench or SWE-bench runs and ask concrete engineering questions:
- What specific errors caused the agent to get stuck in an unrecoverable loop?
- Did the agent fail at environment reconnaissance, patch generation, or test execution?
- How should the training data, model fine-tuning, or agent scaffolding be redesigned to mitigate those specific failure modes?
Presenting trajectories clearly ensures that researchers can translate benchmark failures into actionable model and system improvements.
[01:18:11](https://www.youtube.com/watch?v=_iVIugwpiUI&t=4691s) Durability and Combating Data Contamination
Durability addresses how long a benchmark remains useful before saturation or contamination degrades its diagnostic value. Following the release of SWE-bench, a wide family of GitHub issue resolution benchmarks emerged, including SWE-bench Verified, multilingual and multimodal variants, SWE-bench Pro (from Scale AI), and DeepSWE (from DataCurve). While all these benchmarks share the fundamental SWE-bench task formulation, each generation addresses the major critique leveled against early benchmarks: data contamination.
Because the original SWE-bench scraped publicly available GitHub repositories, language models may have encountered the exact pull requests and unit test patches in their pre-training or supervised fine-tuning corpora (such as open-source NumPy fixes). Under those conditions, evaluators cannot be certain whether an agent is reasoning organically or merely recalling training data. Benchmark designers have developed three main strategies to counter this issue:
```mermaid
flowchart TD
accTitle: Strategies for Mitigating Benchmark Contamination
accDescr: Three distinct approaches to handling contamination in SWE-bench descendants: private test splits, human-authored instances, and continuously refreshed live splits.
subgraph Strategies["Contamination Mitigation Approaches"]
A["Private Test Split<br/>(e.g., SWE-bench Pro)"]
B["Human-Authored Tasks<br/>(e.g., DeepSWE)"]
C["Continuously Refreshed Live Index<br/>(e.g., SWE-bench Live, LiveCodeBench)"]
end
A -->|"Scale AI evaluates submissions privately"| D["Preserves hidden test ground truth"]
B -->|"Experts author realistic issues using LLM tools"| E["Zero pre-training overlap at launch"]
C -->|"Ingests PRs created after model training cutoffs"| F["Dynamic, moving evaluation window"]
```
- **Private Test Splits**: As implemented by Scale AI in SWE-bench Pro, the benchmark offers both a public split and a private evaluation set hosted by the creators, preventing models from training directly on the evaluation solutions.
- **Human-Crafted Tasks**: In DataCurve's DeepSWE, tasks do not come from scraping historical GitHub repositories. Instead, human software experts work alongside models to author brand-new, realistic SWE-bench-style issues from scratch. While these benchmarks remain uncontaminated upon initial release, John notes that they still face an eventual shelf life as public evaluations proliferate.
- **Continuously Refreshed Live Sets**: Benchmarks like SWE-bench Live and LiveCodeBench pull newly created issues and pull requests created after a given model's training cutoff date (for instance, issues logged in the last three months), ensuring that the test data did not exist when the weights were frozen.
[01:20:28](https://www.youtube.com/watch?v=_iVIugwpiUI&t=4828s) The Benchmark Evolution Cycle and Wrap-Up
John closes the lecture by reviewing the broader progression of agent benchmarks. Over time, each benchmark family starts with an initial baseline formulation, followed by successive iterations that introduce harder task distributions, stricter verification harnesses, more complex execution environments, or refreshed data splits. This ongoing competition between advancing agent capabilities and more stringent evaluation protocols forms the "virtuous cycle of benchmarking."
John thanks the class for staying slightly past the scheduled time and previews the topic for the following session, which will explore LLM-as-a-judge approaches and evaluating open-ended agent outputs.
## Notable quotes
> [10:57](https://www.youtube.com/watch?v=_iVIugwpiUI&t=657s) As a benchmark builder, not only do you want to construct the task, but you also want to give sort of reasonable, defensible instructions on how someone else should run your benchmark, and that that's quite important to make sure that everybody's on a level playing field. — John Yang
> [01:15:03](https://www.youtube.com/watch?v=_iVIugwpiUI&t=4503s) RL works when like a partial number of rollouts succeeds and not all of them or none of them. — John Yang
## Mentioned
John Yang, Percy Liang, Colin Raffel, Dan Hendrycks, Sam Bowman, David Rein, Tatsunori Hashimoto, Yann Dubois, Rohan Taori, Ion Stoica, Kilian Lieret, Carlos E. Jimenez, Karthik Narasimhan, Shunyu Yao, Tao Yu, Jason Wei, Yaron Bachrach, Neel Chaudhry, Anthropic, OpenAI, Google, Meta, FAIR, LMSYS, Cognition, Sierra, Scale AI, DataCurve, Stanford University, Princeton University, MIT, University of Hong Kong, SQuAD, GLUE, SuperGLUE, MMLU, MMLU-Pro, HELM, MATH 500, GSM8K, GPQA, Humanity's Last Exam, AlpacaEval, Chatbot Arena, AlpacaFarm, AIR-Bench, SWE-bench, SWE-bench Verified, SWE-bench Pro, SWE-bench Live, SWE-agent, mini-SWE-agent, SWE-smith, SWE-efficiency, Devin, OpenHands, Claude Code, Claude Opus, WebShop, WebArena, CodeClash, VendingBench, Terminal-Bench, PostTrain-Bench, TextWorld, NetHack, ALFWorld, World of Bits, tau-bench, OSWorld, BrowserComp, AIRS Bench, PaperBench, MLE-bench, LiveCodeBench, ReAct, DSPy, GEPA, Docker, Slurm, PostgreSQL, pytest, GitHub, OpenStreetMap
## Video description
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.
In Stanford CS329Z, John Yang explains that evaluating AI agents requires shifting from static single-turn tests to interactive, multi-turn environments governed by rigorous task formulations and evaluation protocols. Yang cautions that without careful benchmark design and trajectory auditing, reported performance gains often reflect metric over-optimization, reward hacking, and data contamination rather than genuine capability.
From Heuristic NLP to Unified Umbrella Suites (6:18)
Language model evaluation originated from next-token prediction objectives and heuristic tasks like part-of-speech tagging and SQuAD reading comprehension. Colin Raffel and Google researchers shifted this paradigm by framing all natural language processing as text-to-text completions. This unification eliminated bespoke task architectures and enabled broad umbrella benchmark suites such as GLUE, SuperGLUE, HELM, and MMLU.
Limits of Static Exams and Chat Ratings (10:57)
Standardized exam benchmarks evolved from scraped textbook exercises to competition math and PhD-level questions in GPQA and Humanity's Last Exam. However, static multiple-choice formats suffer from rapid saturation and guessing floors. Chat-based evaluations like Chatbot Arena introduced crowdsourced blind pairwise voting and Elo ratings, which resist saturation because scores scale relative to opposing models rather than fixed criteria.
The Hazards of Benchmaxing and Reward Hacking (29:04)
Hill-climbing narrow benchmark metrics often triggers reward hacking. Yang notes that excessive domain-specific reinforcement learning on coding suites degrades a model's general instruction-following abilities. In one industry case, an RL policy trained to avoid crashes learned to wrap code blocks in blanket try-except statements, suppressing exceptions instead of fixing errors. Yang advocates for trajectory auditing—using model judges to inspect intermediate reasoning and tool calls—to confirm tasks are resolved legitimately.
Architecture of Multi-Turn Agent Environments (33:41)
Agent benchmarks evaluate multi-step interactions across external tools, databases, and environments rather than single-turn reasoning traces. Formulations span constrained tasks like WebShop's product searches, real-world repositories in SWE-bench, database state assertions in tau-bench, and full virtual machine workflows in OSWorld. Benchmark designers face continuous trade-offs between dynamic realism, reproducibility, and computational cost.
Core Properties of Durable Benchmarks (70:47)
Yang outlines core attributes for effective benchmarks: hardness, realism, discriminative power, execution ease, quick verification, interpretability, and durability. Artificially inflating difficulty, such as requiring an agent to fix hundreds of GitHub issues simultaneously, destroys task realism. To counter data contamination from public repositories, modern suites deploy private test splits, expert human-authored challenges, and rolling live evaluation sets.
Yang concludes that agent evaluation remains an ongoing race between advancing model capabilities and stricter benchmarking methods. As frontier models master human-designed reference tasks, evaluation must continually adapt through faster verification loops, trajectory transparency, and competitive environments to maintain diagnostic value.
Source quotes
[10:57] John Yang: As a benchmark builder, not only do you want to construct the task, but you also want to give sort of reasonable, defensible instructions on how someone else should run your benchmark, and that that's quite important to make sure that everybody's on a level playing field.
[75:03] John Yang: RL works when like a partial number of rollouts succeeds and not all of them or none of them.
Original transcript
[0:05] All right. Hey, everybody. Welcome back
[0:07] to
[0:08] CS 329z.
[0:12] It's really good to see you all. Today
[0:14] we're going to talk a bit about
[0:15] evaluation and benchmarks, and we're
[0:17] going to move on to
[0:20] a different part of this course. So
[0:22] for the last two lectures, we've talked
[0:24] quite a bit about data. And we thought
[0:27] about like, okay, you can train on
[0:29] trajectories and on environments that
[0:31] are going to, you know, improve the
[0:32] model's performance. Today what we're
[0:35] going to do is actually sort of quantify
[0:37] and qualify what it means to improve
[0:39] model performance. So
[0:41] fundamentally we'll be talking about
[0:43] this concept of like a benchmark. What
[0:45] is a benchmark? Like why they matter?
[0:48] There's a long history of benchmarks.
[0:50] This is not a concept that is unique to
[0:53] language modeling. You're going to have
[0:55] this sort of all across machine
[0:57] learning, but we're going to take sort
[0:59] of a closer examination into what makes
[1:02] a benchmark an agentic benchmark. And
[1:04] kind of, you know, it's a broad term,
[1:07] but it like captures a lot of things in
[1:09] that regime. And we're going to also
[1:11] then sort of spend the closing parts of
[1:13] the lecture understanding like, okay,
[1:15] what makes a benchmark quote unquote
[1:17] good?
[1:18] How can we build our benchmarks to kind
[1:20] of be more inclined to be good?
[1:22] And sort of like how we think about the
[1:24] reporting for like benchmark
[1:26] performance.
[1:28] Cool. Okay. So launching into it, like
[1:30] what is a benchmark exactly? So again
[1:33] like in the front half of this course so
[1:36] far, we've talked about a lot of good
[1:38] strategies for building agentic systems,
[1:41] right? You have, you know, the React
[1:43] pattern, you have memory, you can
[1:45] optimize it with Jeppa and DSPy, a lot
[1:49] of these great sort of like components
[1:51] and systems that we can build around the
[1:52] language model itself. And then we've
[1:54] tackled sort of how to optimize that
[1:56] system, how to optimize the underlying
[1:59] language
[2:00] Um, today we're going to answer against
[2:02] what? Right? Like how do we know any of
[2:04] this is working? Um, and sort of even
[2:06] the word working is like with respect to
[2:09] is it like better performance on what
[2:11] kind of task? Um, how are we measuring
[2:13] it? Are we measuring like a capability?
[2:16] Are we measuring a certain behavior of
[2:18] like oh, the model's better at GitHub
[2:20] tasks, but you know, is it solving it in
[2:23] this particular way? It's not reward
[2:25] hacking. Like you know, qualifying and
[2:27] quantifying sort of what working and
[2:29] improvement means um, is sort of like
[2:31] the larger conceptual, you know, um,
[2:36] interestingness behind sort of what a
[2:38] benchmark attempts to capture. So we're
[2:40] going to do like a little bit of like a
[2:42] reversion and sort of look at how
[2:45] benchmarking spawned for language models
[2:47] like from the beginning of when this
[2:49] particular architecture existed, right?
[2:51] So um, you know, as Michael talked about
[2:54] very early on in the first two to three
[2:56] lectures uh, where we talked about sort
[2:59] of what it means to train a language
[3:00] model and this idea of next token
[3:02] prediction um, for folks who have kind
[3:04] of taken the machine learning classes,
[3:06] right? Remember this is kind of in that
[3:08] regime about optimizing against some
[3:11] objective function or minimizing some
[3:13] loss, right? You you have a string of
[3:15] tokens um, you know, and your uh, your
[3:17] goal is to then predict the probability
[3:20] of the next token normalizing, you know,
[3:22] that distribution of predictions across
[3:24] sort of all the potential candidates,
[3:26] right? Um, and so this is we're not
[3:28] going to talk about uh, these equations
[3:30] that much today. This is just a kind of
[3:32] like rehash what it means to train a
[3:34] model in a way such that it gets better.
[3:37] So for the purposes of pre-training a
[3:39] language model um, this is sort of in
[3:42] the principle of like okay, the model's
[3:44] getting really good at predicting like
[3:45] what the next token is. Certainly um,
[3:48] that's a very powerful objective in
[3:51] terms of sort of giving a model a large
[3:53] corpus of tokens and documents and
[3:55] having it learn um, the structure of
[3:58] language and you can get kind of
[3:59] philosophical there about what it picks
[4:01] up on.
[4:02] Uh but practically speaking, um simply
[4:04] predicting the next token is not sort of
[4:06] something that uh directly uh maps to
[4:10] anything that we're we're that familiar
[4:12] with as like a daily task, right? So um
[4:15] with language modeling and then even
[4:17] before the advent of sort of language
[4:19] models as we know them today uh from the
[4:21] fields of kind of like linguistics and
[4:24] when people were still tackling
[4:26] a natural language understanding from
[4:28] like a more heuristics driven point of
[4:29] view, um you had a lot of these kind of
[4:31] more simple tasks, right? You have like
[4:34] part of speech tagging or named entity
[4:36] recognition. There's like a lot of like
[4:38] English grammar stuff in here. Um
[4:41] and then you know things like okay given
[4:43] an email, can I classify if it's spam or
[4:46] not? Um given sort of like uh different
[4:49] you know like words that have multiple
[4:51] meanings, can I like disambiguate like
[4:54] which context uh
[4:56] you know the context implies that is bat
[4:58] being used as sort of like the animal or
[5:00] as like the the sporting equipment,
[5:02] right? So stuff like this already sort
[5:05] of constitutes like a very early version
[5:07] of benchmarks, right? Like beyond sort
[5:10] of the next token prediction objective,
[5:13] uh we're asking you know can the model
[5:15] do a lot of these kind of language
[5:17] understanding, grammar understanding,
[5:20] intent inference kind of things, right?
[5:22] And so to kind of make this like very
[5:24] concrete, um this is sort of like a
[5:26] simple task, right? Like I mean we've
[5:28] kind of talked about this already uh in
[5:30] our prior lectures with data, uh but
[5:32] this is to kind of like revisit these
[5:34] concepts like from the ground up, right?
[5:36] So you have you give the model
[5:39] uh an open ended question. In this case,
[5:40] this is the Stanford question answering
[5:43] data set also known as SQuAD uh created
[5:46] by Percy and a couple of his students
[5:49] from uh a couple years ago at this
[5:51] point. But you know you ask it you know
[5:53] you give it some context from Wikipedia
[5:55] and then you ask it like okay you know
[5:56] like based on this paragraph uh where
[5:59] the information is available in the
[6:00] paragraph, can you tell me like okay
[6:03] what year did the Golden Gate Bridge
[6:04] open, right? So this is like a pretty
[6:06] simple form of
[6:08] an early benchmark, right? And then, you
[6:10] know, you can there's a couple more
[6:12] examples here like, you know,
[6:14] classifying sentences.
[6:17] So
[6:18] particularly big moment within the
[6:21] lineage of language modeling and
[6:24] language understanding, kind of
[6:26] cognitive science, linguistics research,
[6:29] if you will, was, you know, before sort
[6:32] of GPT and BERT and a lot of these early
[6:35] encoder-decoder models
[6:37] came along, the common practice was you
[6:41] had like a bunch of different benchmarks
[6:44] that would
[6:45] tackle different kinds of language
[6:47] understanding problems. And then
[6:49] typically the way researchers operated
[6:51] was they would build solutions
[6:53] customized for like one or a suite, a
[6:57] small subset of those benchmarks, you
[6:59] know, like okay, this is like some
[7:01] context grammar based approach
[7:05] for doing like
[7:06] natural language induction tasks or joke
[7:10] understanding as a task as well, you
[7:12] know.
[7:12] So really big moment that came along was
[7:15] some of the folks this is Colin Raffel
[7:17] and from the Google DeepMind folks came
[7:19] along and said, okay, actually if you
[7:21] look at this huge sort of
[7:24] you know, landscape of different
[7:25] language understanding tasks that we
[7:27] have, we can actually sort of like
[7:29] reformulate all of them as this very
[7:32] simple task formulation of given a
[7:35] prompt,
[7:36] the language model generates a response.
[7:38] This is probably something that
[7:39] potentially looks like quite obvious
[7:41] today when you look at it of like, okay,
[7:43] how would this task be formulated
[7:44] otherwise?
[7:45] But I think like, you know,
[7:47] depending on the task you'll see like to
[7:49] account for sort of how the task works
[7:51] and is it understanding or inference or
[7:53] whatever, a lot of these systems were
[7:55] built in different ways. So this was
[7:56] kind of like a big sort of unification
[7:58] moment of like we don't need to build
[8:00] custom models for different kinds of
[8:02] language understanding. We can just have
[8:04] one model do all of these tasks and that
[8:06] was like a pretty big moment early on
[8:09] that sort of also then quickly informed
[8:12] how we built benchmarks for language
[8:14] models going forward.
[8:16] Cool. So there's a couple of these that
[8:18] I think
[8:19] we'll go through
[8:21] huge lists of these sort of in the next
[8:23] 15 to 20 minutes. These are not agentic,
[8:26] but this is just to sort of like have a
[8:28] more ground-up understanding. Soon
[8:30] enough you went from kind of these data
[8:33] sets that were a little bit more spread
[8:36] out. You know, you had like 100 for
[8:38] entailment, another 100 for you know,
[8:41] NLI, another 100 for part of speech
[8:44] tagging, something like this. And people
[8:45] said like, okay, why not just take all
[8:48] of those tasks and put them all into one
[8:51] really big potpourri
[8:54] and we'll just call this benchmark like
[8:56] MMLU,
[8:58] massive multi-task language
[8:59] understanding or glue and super glue.
[9:03] Glue from sort of Sam Bowman and like
[9:05] the NYU folks and Squad, of course. And
[9:08] so and then Helm came out. And so you
[9:10] had a lot of these kind of like big
[9:12] umbrella efforts of like, hey, we don't
[9:15] have to have this scattered landscape.
[9:16] You just need to run your model against
[9:19] this huge benchmark and you'll kind of
[9:21] get like a nice
[9:23] portrayal of like, oh, you know, like
[9:26] you know, the model's language
[9:28] capabilities across like this big span
[9:30] of domains. So we'll kind of
[9:33] see this kind of
[9:35] revived in the realm of agent
[9:37] benchmarks. But these became very useful
[9:40] as like
[9:41] people would kind of like
[9:43] do pre-training
[9:45] and then for a lot of these kind of
[9:46] examination-style benchmarks that we'll
[9:48] talk about going forwards.
[9:50] This end up ended up being like a really
[9:52] good
[9:53] testing suites for for like a
[9:55] pre-trained model.
[9:57] And then as we've kind of talked about
[9:59] with like fine-tuning
[10:01] and some of the early use cases of SFT
[10:03] being for dialogue, then you have sort
[10:06] of these chat benchmarks emerge. And And
[10:08] course, like safety and alignment has
[10:09] been something that uh folks have
[10:11] thought about for like a long time uh
[10:13] with respect to making sure that your
[10:15] model doesn't do dangerous things like
[10:17] you know teach someone how to you know
[10:20] um
[10:21] create bio weapons or you know attempt
[10:23] to do some sort of malicious cyber
[10:25] security acts. So at the end of the day
[10:27] today I think the primary focus uh we
[10:29] want to put on the agent agentic
[10:32] benchmarks um but we're just going to go
[10:34] through these three because one it's
[10:36] just good to know and two I think it
[10:38] will also kind of inform like with
[10:40] respect to the agent benchmarks that we
[10:42] cover you can see some things from these
[10:44] exam style benchmarks get incorporated
[10:46] in them and also just sort of give a
[10:49] holistic view of things. Cool. Um before
[10:51] we dive in I'll just stop briefly for
[10:53] questions. Uh
[10:56] Okay, cool. So let's go in today. So for
[10:59] exam benchmarks it's exactly as you
[11:01] might think like um it's like the SAT or
[11:04] you know the the bar or the GRE uh four
[11:08] language models, right? So uh early on
[11:10] with um Dan Hendricks who has done a lot
[11:12] of really really good work um in the
[11:14] benchmarking space um from his time at
[11:17] Berkeley and then uh later on uh he's
[11:20] done sort of put put together a lot of
[11:22] these types of big task oriented things.
[11:25] So the nice thing is that early on this
[11:27] is in in like 2020 um and when people
[11:30] were creating uh exam style benchmarks
[11:32] in 2020, 2021, 2022 the nice thing was
[11:36] that you could probably get pretty large
[11:38] swaths of these questions from like
[11:40] textbooks that existed online. And so a
[11:42] lot of the efforts uh for these papers
[11:45] were to kind of generally motivate hey
[11:47] you know we're not testing language
[11:49] models on their math capability or
[11:51] something like that. Um let's take a
[11:54] bunch of you know grade school questions
[11:56] and put them together and we'll call it
[11:58] like math 500 or something like that.
[12:00] And then the models get really good at
[12:02] that um and then now we're going to take
[12:04] a bunch of AMC 8 AMC 12 questions and
[12:07] we're going to make a benchmark out of
[12:08] that. And then Amy and then you know AFO
[12:10] and then it'll keep on going. So so
[12:13] conceptually, this is all like pretty
[12:15] straightforward stuff. If you're a
[12:17] researcher in 2021, I think you had the
[12:19] benefit of the language models not being
[12:21] where they are today. Um and if you're
[12:23] just sort of attentive to where the gaps
[12:25] are in the field, you can pretty easily
[12:28] argue for a paper where you just, you
[12:29] know, collect things, prepare the data
[12:32] nicely such that a language model can
[12:33] answer them.
[12:35] And then, you know, you can release a
[12:36] benchmark. And
[12:37] you know, on the right you can see some
[12:39] some performance. Usually the way these
[12:41] benchmark papers look is that they put
[12:43] it forth and then they kind of suggest
[12:45] or put forth some system as well where,
[12:47] you know, either they're kind of
[12:48] training the language model to be better
[12:50] or, you know, they're optimizing the
[12:52] system around it, right? And these are
[12:54] things that you folks are quite familiar
[12:56] with at this point.
[12:58] Um and then um with a lot of these
[13:00] benchmarks, they'll kind of make them
[13:01] more and more difficult. Uh so with
[13:03] MMLU, uh one thing that's worth noting
[13:06] is as you probably noticed in the
[13:08] previous slide,
[13:10] um the problems are multiple choice,
[13:12] right? So it's not like sort of like how
[13:14] many numbers are in the list here um and
[13:17] then the model is just given an
[13:18] open-ended uh answer. Um here like a
[13:21] couple of options are provided. Um with
[13:24] respect to sort of the difficulty of the
[13:25] task, you can imagine that that actually
[13:27] makes a difference, right? Random
[13:29] guessing in this case, the model's worst
[13:31] case performance is going to be 25%. If
[13:34] it was kind of like a more open-ended
[13:35] answer, then, you know, it's it's more
[13:38] free response. That kind of makes the
[13:39] benchmark more difficult. And you kind
[13:41] of see that evolution with math as well.
[13:43] Um uh this is kind of more recent. Uh a
[13:46] bunch of folks across um sort of
[13:48] multiple institutions like, you know,
[13:50] Princeton and Waterloo and stuff, they
[13:51] came together and they made like a much
[13:54] harder curation of this task. Um they
[13:56] show some evidence on the right that,
[13:57] you know, for existing models um the
[13:59] accuracy drops uh with respect to, you
[14:03] know, uh you know, basically MMLU Pro is
[14:06] harder than MMLU for a bunch of models.
[14:08] And then also uh something that's kind
[14:11] of interesting is the chain of thought
[14:12] versus direct answer. Um so we'll talk
[14:15] about when we hash out agentic
[14:16] benchmarks more, but there is a very
[14:19] important set of details where you want
[14:21] to communicate as a benchmark builder
[14:24] how someone is supposed to run your
[14:25] benchmark, right? So in this case, the
[14:28] graph on the right is showcasing that if
[14:30] you give the model sort of a budget of
[14:32] tokens and you say like, hey, you have
[14:35] 1,000 thinking tokens uh where the model
[14:38] can kind of like have a scratchpad where
[14:40] it reasons about, you know, like the
[14:42] question and it can kind of jot notes
[14:45] down and everything. Um, and that sort
[14:47] of constitutes the chain of thought,
[14:48] then you get like a little bit better
[14:50] performance for some of these models.
[14:52] Um, otherwise you can also tell the
[14:54] model, hey, like you shouldn't be sort
[14:56] of like writing down like a whole big
[14:58] reasoning chain. Just like tell me
[15:00] exactly what the answer is and that's
[15:01] what direct answer means. So I think
[15:04] like the differences between the two in
[15:06] terms of like specifically those two,
[15:09] you should read the paper to kind of
[15:10] understand the nuances a bit more. Uh,
[15:12] but what's interesting about this is
[15:14] just communicating that like, you know,
[15:16] as a benchmark builder, not only do you
[15:18] want to construct the task, but you also
[15:20] want to give sort of reasonable,
[15:22] defensible uh instructions on how
[15:25] someone else should run your benchmark
[15:27] and that that's quite important to make
[15:29] sure that everybody's on a level playing
[15:31] field. Um, and then sort of for the
[15:33] remaining series of these slides, you're
[15:34] just going to see that things get
[15:35] harder, right? So we went from kind of
[15:37] like grade school to high school to
[15:40] college, you know, like undergrad and
[15:42] now, you know, we have things that PhD
[15:45] students, only PhD students can answer.
[15:47] And so this is uh from uh again sort of
[15:50] a David Rain and some of the NYU folks
[15:52] where they took a lot of hard questions
[15:54] that, you know,
[15:55] they they argued that PhD students came
[15:57] up with and these are the ones that you
[15:59] kind of need that level of expertise to
[16:01] solve. Um, often times I think these
[16:03] papers are quite interesting to read
[16:05] with respect to their curation, right?
[16:07] As the tasks get harder, um they become,
[16:09] you know, a little bit sparser online
[16:11] and you don't have like a ready readily
[16:13] available repository of really difficult
[16:15] tasks. So what you'll see with this one
[16:18] and then one right after that, which is
[16:19] humanities uh last exam, is that, you
[16:22] know, now you kind of need to be a lot
[16:24] more purposeful with respect to how you
[16:27] get these questions. And um within this
[16:29] lineage of examination style benchmarks
[16:32] we just talked about, um you'll actually
[16:34] see that there is a transition from
[16:36] getting large swaths of data online to
[16:38] now you need to find human experts and
[16:40] human annotators to actually create
[16:42] these questions.
[16:44] Cool? Okay, so that's exam style
[16:46] benchmarks. Um we're going to move on to
[16:48] chat style things. So um certainly like,
[16:50] you know, um exams are are are quite
[16:52] important, but they don't sort of cover
[16:54] everything that we might use a language
[16:56] model for. And as sort of GPT-3 and then
[17:00] uh you know, ChatGPT came out in late
[17:02] December, uh concurrently you had a lot
[17:05] of people start um investigating this
[17:07] instruction following paradigm, right?
[17:09] Like given this kind of open-ended
[17:11] question um or um open-ended command, uh
[17:15] can a language model sort of properly uh
[17:18] satisfy that request um uh via sort of
[17:22] uh a chat style interface, right? So um
[17:25] there's two main ones that we'll cover.
[17:26] We won't spend too much time here. One
[17:28] of them came out from uh Professor
[17:31] Hashimoto's group at uh Stanford with um
[17:34] a lot of great folks like Yann LeCun and
[17:36] Rohan Taori, and they did this uh
[17:38] project. So so they originally trained a
[17:40] model called Alpaca. Um and then sort of
[17:42] a lot of the instruction following stuff
[17:44] got very exciting, and then they created
[17:46] Alpaca Eval. Um so actually, you know
[17:48] what? Maybe we'll talk about the next
[17:50] slide first and then I'll jump back to
[17:52] Alpaca Eval. So um SciBench, almost
[17:54] concurrently around the same time from
[17:57] uh UC Berkeley, there was a group uh
[17:59] from from SkyLab and Ion Stoica, and
[18:01] they did what was called Chatbot Arena,
[18:03] which um if you folks like follow um
[18:06] AI companies these days, this is a
[18:08] company known as LM Arena or Arena uh
[18:11] nowadays. And this was kind of the
[18:12] canonical paper um that led to that, you
[18:15] know, the the fundamental research that
[18:17] end up uh leading to that company uh
[18:19] spawning um and spinning out. Um so it
[18:22] very straightforward, right? Like would
[18:23] like to make a beet salad with goat
[18:25] cheese, yada yada yada. And then, you
[18:27] know, in this kind of like blind voting
[18:30] scenario, you have model A and model B
[18:33] and they all propose like different
[18:34] solutions or they, you know, they
[18:36] propose a different completion. And then
[18:38] you as a human annotator are simply
[18:40] going to vote, is A better? Is B better?
[18:43] Are they about the same? Or are they
[18:44] both terrible? Right? So this
[18:48] benchmark is really what kind of kicked
[18:50] off. So there's a couple I think key
[18:52] contributions that this benchmark made.
[18:54] One is with the heat map on the right,
[18:57] what you're actually seeing is kind of
[18:58] win rate, right? Like the column the X
[19:00] and the Y axis are both just models. If
[19:02] you look at the ignore the diagonal,
[19:05] this is just saying that like when GPT-4
[19:07] Turbo goes head-to-head with Mistral 7B
[19:11] Instruct, GPT-4 Turbo's response wins
[19:14] like 90% of the time, right? And then
[19:16] the diagonal,
[19:17] they're just kind of filling it out for
[19:19] ease of reading, but you know, it's just
[19:20] the same. 7B only wins 10% of the time
[19:23] against GPT-4 Turbo. So this win rate is
[19:27] then very amenable to calculating Elo,
[19:30] right? So unlike before with a lot of
[19:32] the exam-style benchmarks, which are
[19:34] kind of more static, it's either you're
[19:36] right or not on these like 500 problems.
[19:39] In this case, there's no sort of there's
[19:41] no actual ground truth. Like it's just
[19:43] are you better than your opponent? And
[19:45] so this is sort of like, you know, as
[19:47] we'll see in agent benchmarks soon, a
[19:49] way to sort of calculate your metrics,
[19:52] right?
[19:53] And so one of the benefits of Elo, as
[19:55] you can imagine, which I think plays a
[19:56] part in why Arena is still sort of like
[19:58] a meaningful, important company that
[20:01] a lot of sort of Frontier Labs report
[20:03] their performance on, is that it's
[20:05] harder to saturate, right? Once a model
[20:07] gets really good at Math 500 or grade
[20:09] school math, that benchmark is not
[20:11] useful anymore as a measure, right? Like
[20:14] you know, it kind of goes into sort of
[20:17] the the wardrobe of being kind of a
[20:19] regression testing benchmark. You just
[20:21] make sure your model is not,
[20:23] you know starting to fail on these
[20:25] benchmarks it should succeed on.
[20:27] In a setting like this it's great
[20:29] because like you know your model's
[20:31] performance can only be as good as your
[20:34] strongest opponent and as people propose
[20:36] stronger language models over time
[20:38] Elo and these kind of competition
[20:40] oriented benchmarks are
[20:43] much less saturatable than sort of like
[20:46] these more static benchmarks right so as
[20:49] we'll talk about in the next lecture
[20:50] with language model as judge and as
[20:53] we've kind of you know hinted at with a
[20:55] lot of these data efforts one thing
[20:57] that's kind of tough about human
[20:59] annotation is that you need to pay
[21:00] humans and you require humans to kind of
[21:02] like
[21:03] give you signal on these things so
[21:05] Alpaca Farms big contribution was that
[21:08] they said okay we're going to like put
[21:10] together some rubrics
[21:12] both on a per question basis but then
[21:14] also on sort of like a general response
[21:16] basis
[21:18] if folks have read like kind of the
[21:19] constitutional AI stuff from Anthropic
[21:22] with a lot of these kind of guiding
[21:24] principles on how we want language
[21:26] models to generally behave agnostic of
[21:29] the task presented you can think of that
[21:31] concretely as basically like a rubric
[21:33] that is applied to grading the language
[21:36] like agnostic of what the question
[21:38] actually is right and then you can have
[21:40] some sort of more specific rubrics to
[21:43] sort of grading a model's response on
[21:45] these things so what happens is like a
[21:47] big thing that they do is like hey you
[21:49] know you don't actually need
[21:51] people for this
[21:52] you can sort of have I think they use
[21:55] GPT-4 O or GPT-4 preview as the auto
[21:59] annotator where you know instead of a
[22:02] person grading and choosing between the
[22:03] two you supply some rubrics and you know
[22:05] the model can choose
[22:07] conceptually very simple
[22:09] you can read the paper more to kind of
[22:10] understand
[22:11] from sort of justifying why this is a
[22:14] reliable signal
[22:15] that there's plenty of sort of
[22:16] bootstrapping
[22:18] and sort of confidence bounce to show
[22:19] that
[22:20] the judge is reliable that it's
[22:23] reproducible
[22:25] um it 's not too flaky, and that it's
[22:27] aligned with human judgment. So, for the
[22:29] next lecture, we'll dive into sort of
[22:31] the math and sort of how people have
[22:33] made arguments on on those in in that
[22:36] regime more. Um cool. And then last but
[22:38] not least, safety um I I think we're a
[22:41] little behind, so I won't spend too much
[22:42] time on this. But yeah, this is pretty
[22:44] straightforward just like um you know,
[22:46] if someone asks the model for sort of
[22:50] what's identified as like bad
[22:51] information or you know, a bad query,
[22:53] then you don't want your model to to
[22:55] answer um in a way, right? So, um yeah.
[22:58] And this Hitman case, we we don't really
[23:00] want people knowing too much about that.
[23:02] Um
[23:03] so, the reason this is kind of
[23:05] interesting is that like I guess if you
[23:07] know, if folks want to get into kind of
[23:08] safety and alignment um one, we put this
[23:11] here because like compared to the prior
[23:14] to um I guess at least compared to exam
[23:17] benchmarks, they kind of focus more on
[23:18] capabilities, right? Like is the model
[23:20] kind of capable of answering this kind
[23:23] of question and reasoning through it? Um
[23:25] a little bit with chat and then very
[23:27] concretely with uh safety benchmarks
[23:29] like this, now you're starting to test
[23:32] more about the model behavior as opposed
[23:34] to capability. Um you're not actually
[23:36] wondering if the model knows how to do
[23:39] answer all these malicious queries. Um
[23:41] you're more interested in whether it
[23:43] refuses all of them, right? And so I
[23:45] think for some of these benchmarks, it's
[23:47] quite interesting in that you look at
[23:49] the spectrum of queries and it's you
[23:51] know, as with sort of a lot of safety
[23:54] debates and you know, you can find some
[23:56] examples where maybe there's different
[23:58] opinions on like what exactly is safe
[24:00] and unsafe. Um and in this class, we're
[24:03] not here to declare like that you know,
[24:04] whatever the boundary is, that's kind of
[24:07] up to you in terms of how you design the
[24:08] benchmark. We're more sort of like
[24:10] hinting at okay, whatever the boundary
[24:12] is, like how do you sort of put together
[24:14] a benchmark that captures sort of the
[24:16] distribution that you care about? And
[24:18] then when it comes to addressing sort of
[24:21] things that clearly should be refused,
[24:23] things that clearly should be answered,
[24:25] and then sort of this gray zone of like
[24:27] okay, maybe you want language models in
[24:29] the future to be sort of very
[24:31] permissioned, right? Like, I think this
[24:32] is something that we don't quite have
[24:35] today, but you could imagine a language
[24:37] model that's really capable and has
[24:38] great behavior such that, you know, if
[24:40] someone asks a question, you have to
[24:42] provide all sorts of different kinds of
[24:44] authorization um and then maybe it
[24:46] decides given the context that you
[24:48] provide it, it will answer it. Um I I
[24:50] think that's sort of like uh a little
[24:52] bit sort of like um conceptual and and
[24:54] future looking, but all this is meant to
[24:56] highlight is that, you know, for this
[24:57] kind of air bench paper that they do um
[25:00] you know, with uh behaviorally oriented
[25:04] uh evaluations, it's usually not as
[25:06] simple as like, hey, language model,
[25:08] don't do bad things, you know? Like, you
[25:10] need sort of a broad um set of tasks to
[25:14] illustrate well, what does, you know,
[25:16] bad thing actually mean here uh to shape
[25:19] the behavior of your model. Cool. So um
[25:22] just to kind of quickly summarize like
[25:23] the basics of at least a benchmark as a
[25:26] high-level concept, right? We want to
[25:27] use this as measurement is like really
[25:29] important uh when it comes to making
[25:32] better AI and better language models. So
[25:34] like, you know, what does measurement
[25:36] actually look like in practice? Um you
[25:38] know, we saw a little bit of the lineage
[25:40] and then now we're going to kind of
[25:41] spend the remaining 15 minutes like
[25:44] really just uh looking at a bunch of
[25:45] agentic benchmarks and then talking
[25:47] about why they're good. Um any quick
[25:49] questions before I move on?
[25:52] No? Okay, cool. Oh, yes, yes. Yeah.
[25:54] >> The model does poorly on benchmark.
[25:56] What's the process to go back and do RL
[25:59] or training or
[26:01] >> Oh, that's a great question. Um yeah, I
[26:03] mean, I guess like uh with these things
[26:06] uh it nothing beats like looking at the
[26:08] results, right? So I think there's
[26:09] typically two paths, right? If you
[26:10] really trust your benchmark and we'll
[26:12] talk about like what makes it
[26:13] trustworthy later, then yeah, you can go
[26:15] back and you can say like, okay, maybe
[26:17] it's data as an intervention or maybe
[26:19] like, I don't know, for the safety
[26:21] benchmarks, it's not that the model is
[26:23] not Well, you could intervene with data
[26:25] and that you give it kind of more
[26:26] instruction following dialogue and you
[26:29] you have those demonstrations that have
[26:30] refusal, uh but maybe it's also like you
[26:33] know you have a really capable model.
[26:34] You don't want to sort of SFT and change
[26:37] the weights too much. Maybe you actually
[26:38] just iterate on the system around it. So
[26:40] it could be as simple as like in the
[26:42] prompt just be like hey for anything
[26:44] related to cybersecurity and biohazards
[26:47] like don't answer stuff. Or it's like
[26:49] okay um if it's failing a bunch of
[26:51] safety valves and you're seeing it fail
[26:53] in the way that like when the models run
[26:56] on the benchmark the internet access is
[26:58] provided and the model's kind of using
[27:00] internet access to sort of you know for
[27:02] example we'll see it's like looking up
[27:04] solutions or it's looking up things that
[27:06] you don't want the model to surface to
[27:08] the user. Then you have a couple
[27:09] decisions. You can do the data
[27:11] intervention. You can try to sort of
[27:13] modify the system. You turn off internet
[27:15] access or you change it into kind of an
[27:17] allow list or block list setting or you
[27:19] can go back and like change the
[27:21] evaluation and say like okay maybe
[27:22] there's something about this question
[27:24] that's not formatted in like a realistic
[27:26] manner. Yeah. Cool.
[27:28] Great question. Cool. Okay. Uh very
[27:30] quick episode on why benchmarks matter.
[27:33] Um I think everybody's pretty sold on
[27:34] this but just just to kind of hammer it
[27:36] home. Uh certainly this is like not a
[27:38] unique concept um and it's certainly not
[27:40] as recent as 2015. We've had benchmarks
[27:43] for a very very long time um and you
[27:45] know if you have taken courses on like
[27:48] sort of computer vision uh or like kind
[27:50] of like you know traditional uh machine
[27:52] learning systems that would include like
[27:54] recommender systems or whatever. There
[27:56] have been these like really big
[27:57] competitions and I think it like drives
[27:59] home how important a benchmark is,
[28:01] right? You um they serve as common
[28:03] ground. They serve as common language uh
[28:06] for people to kind of compare their
[28:07] results. Um I think these days like more
[28:10] and more so a benchmark sort of even
[28:12] dictate the direction of the field. I
[28:15] think uh one thing that the NLP
[28:17] community and generally the AI community
[28:20] has done really well is that everybody
[28:22] kind of unites. Like a bunch of people
[28:24] propose benchmarks. It's all good work
[28:27] and then people can kind of unite and
[28:28] hill climb the ones that they decide to
[28:30] care about. This is a very easy way to
[28:32] kind of galvanize a community, right?
[28:34] You
[28:35] the Stanford puts person puts out a
[28:36] paper that, you know, the UDub person or
[28:38] the Princeton person um can can use um
[28:42] and sort of, you know, you get a lot of
[28:44] great collaboration that way. Last but
[28:46] not least, I think more pronounced uh
[28:48] more and more these days is, you know,
[28:50] Anthropic or Google or OpenAI, they
[28:52] release a model card and that model card
[28:54] with all of that benchmarks kind of
[28:56] becomes like a language uh to kind of
[28:58] communicate to customers like, hey, this
[29:01] is sort of what our model is capable of
[29:03] doing and this is why it's impressive,
[29:04] you know. So
[29:06] general reasons, measurement, direction,
[29:08] communication, common ground really is
[29:10] kind of like the theme of like why
[29:12] benchmarks are important. If everybody's
[29:14] kind of working on separate benchmarks
[29:15] and we can't agree on sort of a unified
[29:18] surface to hill climb on um then, you
[29:20] know, progress is much more difficult to
[29:22] achieve. Um now uh
[29:24] with some folks doing final projects
[29:27] here, if you're kind of focused on
[29:29] building a system that does better on a
[29:31] benchmark, that's fantastic. Uh we love
[29:33] to see that. Um just sort of this is
[29:35] sort of these slides are kind of more in
[29:37] the conceptual realm. Um something
[29:39] that's worth sort of considering uh
[29:41] especially, you know, as you attend to
[29:44] new model releases. Like now, you know,
[29:46] Reflection releases a model, Meta
[29:48] releases a model, Google releases a
[29:50] model, right? Um and you see the numbers
[29:52] go up and up and up and up. Um there's
[29:55] potentially just a healthy dose of
[29:57] skepticism to apply to like any model
[30:00] provider um
[30:02] of like, you know, is is this uh
[30:05] benchmark being kind of benchmaxed? Like
[30:07] this is kind of like the popular uh uh
[30:09] term that people throw around, which is
[30:11] like if I have a benchmark and, you
[30:14] know, people I can do a lot of marketing
[30:16] with it um
[30:18] you know, is this model something that's
[30:20] just been sort of like hyperfit and
[30:22] overoptimized to be very good at this
[30:24] particular task, but when I actually
[30:26] talk to it, you know, it's being weird,
[30:28] right? Like I can have a model that gets
[30:30] like 85% on like sweet bench verified or
[30:33] something like that and then I try to
[30:35] talk to the model and say hi, and it
[30:37] says, okay, let me look up that GitHub
[30:39] issue, right? So, you know, I think
[30:41] things like that. Um, there's this
[30:42] general concept of like when you
[30:44] optimize uh, you know, your system or
[30:47] language model for a benchmark, you want
[30:49] to kind of like treat the measure as a
[30:52] measure. Um, if you're kind of hill
[30:54] climbing it um, and benchmark bench
[30:56] maxing it on purpose um, you could be
[30:58] sacrificing the quality of the model
[31:00] overall with respect to sort of you
[31:03] know, in favor of sort of like some
[31:05] number you can report. So um,
[31:07] I guess like on the left this kind of
[31:09] diagram that keeps going. This is very
[31:11] much sort of again [clears throat] sort
[31:13] of a version of this reward hacking
[31:14] stuff that we've talked about so much.
[31:16] Yeah. Yeah.
[31:21] >> Bench max like a yeah.
[31:24] Or out or like
[31:26] and and given that the benchmarks
[31:27] change, is it like
[31:30] bench maxing the specific either path or
[31:34] >> Yeah, that's a great question. Um, yeah,
[31:36] I think maybe a concrete example I can
[31:38] give is even with kind of when people
[31:40] are using Sweetbench Verified a lot. Um,
[31:42] and so you had all these models that
[31:44] were really great and it it's exactly
[31:46] what happened. They you know, you do a
[31:48] lot of SFTing on coding agent traces.
[31:51] Uh, you do a lot of RL on you know,
[31:53] coding tasks, right? And it's the model
[31:56] has been kind of like trained and
[31:57] hammered to the point um, that you know,
[32:00] when I talk to it and I ask it, it
[32:02] doesn't really sort of do instruction
[32:04] following that that well anymore. Um, or
[32:07] like hey, I don't use it for code. Maybe
[32:10] I use it for web browsing and the
[32:12] model's not that good there. So
[32:13] basically um, I would say like the
[32:16] general concrete way this happens is
[32:18] that you know, in the data distribution
[32:20] that constitutes post training and fine
[32:22] tuning, [clears throat] there's like too
[32:23] much leaning towards one domain. Kind of
[32:25] in the more conceptual regime is that
[32:27] there's a lot of benchmarks that exist.
[32:30] Ultimately they're all just kind of
[32:32] proxies at sort of more fine grain level
[32:34] of what it means for a language model to
[32:36] to
[32:37] and it's just more sort of this kind of
[32:39] balance principle of like not
[32:41] overindexing too much on these, you
[32:43] know, yeah. Like I think another more
[32:44] concrete example is like, okay, the
[32:46] model's like really good at sweep and
[32:48] verified, but I think around when like
[32:50] Claude Opus 4.5, this is like a year ago
[32:53] or something, there was this whole sort
[32:55] of like observation by folks that like,
[32:57] wow, the model's just like throwing a
[32:59] lot of try accept statements around
[33:01] every piece of code it writes. And you
[33:04] can imagine that's kind of an artifact
[33:06] of the RL where like, okay, you have
[33:08] post training tasks that are penalizing
[33:09] the model for throwing type errors or
[33:12] Unicode decode errors or something like
[33:14] that. And the model is kind of
[33:15] superfluously learn to try to hide those
[33:18] kind of via these wrappers, right? And
[33:20] so when you run the code, the code runs
[33:22] great. That's because it's suppressing
[33:23] all these errors. It's not actually sort
[33:25] of the kind of model we want to use.
[33:27] Yeah. Yeah. Cool. Cool. That's a great
[33:29] question.
[33:30] Awesome. Okay. Um
[33:33] now we'll actually kind of like dive
[33:34] into the meat of
[33:36] today's lecture. So
[33:38] I'm pretty excited to kind of go through
[33:41] a lot of these fun agent benchmarks. Um
[33:43] we'll spend the we're we're now going to
[33:44] spend kind of the first couple slides
[33:46] revisiting things that we've already
[33:49] kind of heard when it comes to talking
[33:52] about data and how we curated agent
[33:54] data. Benchmarks and data in terms of
[33:57] their form factor, at least when it
[33:59] comes to environments, it really doesn't
[34:00] look that different at the end of the
[34:02] day. You don't need to think of the
[34:04] entity as as two entirely separate
[34:07] things. They're they're very much kind
[34:08] of one and the same. But there's just
[34:11] kind of like maybe a different set of
[34:12] things that will like properly attend to
[34:14] when it comes to constructing a
[34:15] benchmark, right? So um
[34:18] uh yeah, general definition, as we've
[34:20] kind of talked about, an agent benchmark
[34:23] is exactly what you think it is at this
[34:24] point. It's everything that we've talked
[34:26] about with respect to what an agent is.
[34:29] And we have a task that motivates sort
[34:31] of all of those capabilities and all of
[34:33] those things, right? Like it's a task
[34:35] that motivates a model having to
[34:37] accomplish the task across multiple
[34:39] turns and make tool calls and
[34:42] potentially do internet searches and
[34:44] gather information from an index in a
[34:47] very sort of specific manner. So
[34:49] compared to sort of like the prior
[34:51] benchmarks that we've talked to and
[34:53] especially kind of that initial diagram
[34:55] where we were like, oh, the T5 paper and
[34:58] it was kind of like language model
[35:00] ingests prompt directly gives response
[35:03] or with a lot of kind of the more
[35:05] complicated math benchmarks, language
[35:07] model receives a prompt, does its own
[35:10] sort of like huge reasoning rollout, but
[35:12] it doesn't sort of really have to
[35:13] interact with an external environment,
[35:15] comes up with an answer.
[35:18] That's non-agentic. There's no sort of
[35:20] interaction or multiple steps in there,
[35:22] right? So
[35:25] pretty pretty straightforward. And
[35:26] that's just to kind of visualize it a
[35:28] little bit, right?
[35:30] You know, so yeah, we're not going to be
[35:31] talking about math. We're going to be
[35:32] talking about kind of like Kua and web
[35:35] and coding, which is, you know, we've
[35:36] talked about for data at this point.
[35:38] So I think before actually getting into
[35:41] the case studies, because
[35:43] when we go through each of the papers,
[35:45] it's quite likely that all of these use
[35:47] cases will be very familiar to you at
[35:49] this point and that we've talked about
[35:51] them in prior lectures.
[35:53] I think the more interesting way to sort
[35:56] of like the worthwhile mindset to sort
[35:59] of ingest this content is to think about
[36:01] these benchmarks as two major
[36:03] components. So one is like the task
[36:06] formulation, like you are defining sort
[36:08] of like, hey, with this benchmark, I'm
[36:10] generally testing my model on its
[36:13] ability to
[36:18] I don't know, review code or something
[36:20] like that. So then from a task
[36:22] formulation standpoint, what does
[36:24] reviewing code mean in terms of the
[36:26] initial prompt that the model receives?
[36:29] What does it mean in terms of like the
[36:30] assets that are available in the
[36:32] environment and what does it mean in
[36:34] terms of the verification that is then
[36:36] being used to grade the model, right? So
[36:39] it's again sort of going back to that
[36:41] problem statement environment
[36:43] verification diagram. You're going to
[36:44] see it on the next slide. So, that's one
[36:46] half of it. Um, the other half of it, I
[36:49] would say is the evaluation protocol,
[36:51] right? So, this is kind of important in
[36:53] the sense that like yes, I have this
[36:55] task, but when another person is
[36:59] attempting to hill climb performance,
[37:01] like what are the what are the things
[37:04] that need to be held constant in order
[37:07] for the performance to be sort of apples
[37:09] to apples and not apples to oranges,
[37:11] right? So, um we'll talk about this a
[37:12] little bit later, but like one of the
[37:14] one one concrete example of this is
[37:17] when the SWE-bench paper was originally
[37:19] released, SWE-bench was not originally
[37:22] an agentic benchmark. It was here's the
[37:24] GitHub issue. The model is going to be
[37:28] using like, you know, BM25 as a
[37:30] retriever, and we're going to index all
[37:33] the files in the codebase. The
[37:36] query or the GitHub issue is going to be
[37:38] fed into the retriever, and then any of
[37:40] the files that are sort of like the
[37:42] highest match as you guys know at this
[37:44] point and done in your homework, that's
[37:46] going to be the files that then you feed
[37:48] to a language model and have the
[37:50] language model edit it. It's not an
[37:52] agent. It's like a workflow, right? Step
[37:54] one is retrieve the files. Step two is
[37:56] given the retrieved files, have the
[37:58] agent then sort of edit it, and then
[38:00] with the edited files, you report
[38:02] performance, right?
[38:03] Very very soon after, SWE-bench then
[38:06] transitioned into being an agentic
[38:08] benchmark with kind of like the SWE
[38:09] agent paper and cognition, and they
[38:12] released Devin, um open hands, things
[38:14] like this. All of a sudden, you have a
[38:16] system where it 's not this kind of
[38:18] workflow where you have a definitive
[38:19] retrieve and then edit and then review
[38:23] your edits and regression test it kind
[38:25] of workflow. Now it's, hey, the language
[38:27] model is put in the terminal, it can
[38:29] decide what the heck it wants to do for
[38:30] itself. If it wants to directly start
[38:33] editing, it can. If it wants to look
[38:35] around first, it can. If it wants to do
[38:37] some side of TDD kind of thing, it's
[38:39] allowed to do that as well. The point
[38:41] here is that like with each benchmark,
[38:43] it should come with like a list of sort
[38:45] of criteria. Are you sampling the
[38:47] language model at a high temperature,
[38:49] low temperature? Um, when the language
[38:52] model is running, do you give it a fixed
[38:53] number of turns or do you bound it by
[38:56] sort of I'm only spending up to $100? If
[38:59] you're bounding by cost and language
[39:02] model providers all have different costs
[39:04] associated with the models, right? Like
[39:06] I don't know, Opus 5 charges like $20
[39:09] per million tokens, uh but GPT-5.6 Luna
[39:13] charges 10 cents per million tokens. How
[39:16] do you account for that? Do you run for
[39:17] a fixed number of turns? Um, what are
[39:20] the scaffolds that you're using? Stuff
[39:21] like that, right? So just to kind of
[39:23] prime your brain a little bit with
[39:24] respect to, you know, how we think about
[39:27] benchmark design. So with the first
[39:29] part, task formulation of we you've seen
[39:31] this diagram before. Um, with the
[39:33] problem statement, there's like a big
[39:35] spectrum of things, right? So um
[39:37] kind of on the left, uh echoing um this
[39:41] comparison that we've had between
[39:43] exam-style static benchmarks uh versus
[39:46] kind of dialogue and chat and more
[39:49] open-ended things, you can all this also
[39:51] kind of see this uh resembled in um
[39:54] agentic benchmarks, right? So for
[39:56] Webshop or for Sweetbench. For Webshop,
[39:58] it's like uh this is kind of like a very
[40:00] early Amazon clone-type benchmark. I
[40:03] want red basketball shoes that cost
[40:05] under $30. Um, whatever product the
[40:08] model submits, it has to satisfy those
[40:10] constraints. There's not sort of a lot
[40:12] of ambiguity there. Um, and if the model
[40:15] accomplishes it, it gets a score of one.
[40:17] With Sweetbench, you know, now the way
[40:19] you you know, I I want this issue to be
[40:21] resolved, but the way that the issue is
[40:24] resolved depending on the issue
[40:26] statement and how it's communicating the
[40:28] issue is maybe a little bit less
[40:30] prescriptive. I'm just telling you that
[40:32] there's an issue. I'm not telling you
[40:33] that like you need to add a try except
[40:35] at this particular line or something
[40:36] like that. And as you kind of move along
[40:38] this gradient, you can get to something
[40:40] like Code Clash, which is basically uh
[40:43] we'll we'll talk about this benchmark a
[40:44] couple slides down. Um, generally the
[40:46] idea is that you have two language
[40:48] models and they're both creating, you
[40:51] know, Python scripts or creating a
[40:52] codebase and that codebase is kind of
[40:54] run against each other. Um, if you've
[40:56] seen things like vending machine bench
[40:58] or something like that, right? There's
[41:00] no sort of correct solution that the
[41:02] model's trying to achieve. Um, I don't
[41:04] know if people are into stocks, like
[41:06] hey, you give each model like $100 and
[41:09] you just see like which one can make a
[41:11] bunch of money on the stock market.
[41:12] There's no correct answer to that. It's
[41:15] open-ended, but the metric is kind of
[41:16] more competitive there, you know? So
[41:18] we'll see a bunch of those. So that's
[41:20] one way to sort of think about sort of
[41:21] the dimensions of the problem statement.
[41:24] Um, with the environment, um,
[41:25] [clears throat] again, kind of like
[41:26] similar to before, there's kind of
[41:28] terminal environments. The terminal
[41:29] bench people um, have kind of really
[41:31] explored very thoroughly like all of the
[41:34] tasks that can be accomplished in a
[41:36] terminal. Um, do you want it do you want
[41:39] the task to be carried out directly on
[41:41] like a local machine or like, you know,
[41:43] without any sort of the Docker
[41:45] sandboxing around it? Do we just run
[41:47] this on a Mac Mini or or or like a VM
[41:49] VM, right? Like when you consider the
[41:51] environment, um, there's also so you
[41:53] know, as a cost component too and how
[41:55] easy is it for other people to run,
[41:57] right? Or you kind of doing just sort of
[41:59] like websites? I mean, if you're doing
[42:01] websites, are you doing it directly on
[42:03] amazon.com, airbnb.com? If you're doing
[42:06] it on live websites, how do you account
[42:08] for that non-determinism, right? Um, how
[42:10] do you make sure that kind of
[42:12] environment is reproducible? Or, you
[42:14] know, if that's kind of too heavy or
[42:16] there's some legal issues associated
[42:17] with it, you can also do it in like a
[42:19] simulated environment, right? Like I can
[42:21] code up a clone of like Reddit or or
[42:23] Amazon or something like that. So
[42:26] again, and then Wolk kind of talks about
[42:27] text games, which were like a very, very
[42:29] early uh, um, you know, watering hole
[42:33] for kind of early agent work. Uh, but
[42:36] yeah, it's worth thinking about sort of
[42:38] like what your environment is. I think
[42:39] these days you see people just getting
[42:41] like wonderfully creative uh, with with
[42:43] the types of environments that they use.
[42:45] If they're doing robotics or something,
[42:47] um, you know, are you using like some
[42:48] simulator from NVIDIA or are you coding
[42:51] up your own simulator uh, or are you
[42:53] just running it, you know, on the real
[42:55] world, and the model's just interacting
[42:57] with like actual, uh, actual things,
[42:59] right? So, anyway.
[43:02] And then verification, uh, we'll talk a
[43:03] lot more about one specific genre of
[43:06] verification in the next lecture, uh,
[43:08] but which is LMS judge. But here's like
[43:11] a a general punnet square for how to
[43:13] kind of think about these things, right?
[43:15] So, you have binary, which basically
[43:17] just kind of means like, hey, the reward
[43:19] signal here is kind of like zero or one,
[43:22] right? Either you succeeded and you get
[43:23] a one, or you failed and you get a zero.
[43:26] Um, and sort of depending on the
[43:27] benchmark, but like a lot of them kind
[43:29] of like are in this genre, right? But
[43:32] you can imagine, okay, there are kind of
[43:34] different benchmarks. So, one really
[43:35] great one, uh, is called sweefficiency,
[43:38] uh, from Jeffrey Ma and and some, uh,
[43:41] folks at Harvard and Google. Um, and so
[43:43] what they do there is the problem
[43:45] actually looks very much like a swee
[43:47] bench problem, uh, but instead of
[43:50] solving a GitHub issue, the issue says
[43:52] like, hey, given this code that is not
[43:55] running that fast, can you speed up that
[43:58] code, right? Can you apply some, I don't
[44:00] know, like some optimization if it's
[44:02] like, uh,
[44:03] yeah, I guess, you know, if it's Python
[44:05] or C and you can kind of optimize with
[44:07] respect to that language, like how fast
[44:09] can you make this code run? And so for
[44:11] sweefficiency, now the reward is not
[44:13] zero or one, now it's kind of a
[44:15] spectrum, right? Like if the human
[44:16] expert solution represents sort of like,
[44:19] um, I don't know, a 50 times speed up,
[44:21] and the model solution is a 20 times
[44:24] speed up, right? Do you, I mean,
[44:26] ultimately this is a choice. Like you
[44:28] could make the benchmark reward as like
[44:29] it has to be a 50 times speed up, and
[44:32] there's nothing else. Or if you want to
[44:34] give the benchmark some
[44:35] the the model some more signal on the
[44:37] task, you can say, okay, well, 20 over
[44:39] 50 is 0.4, I'm going to give the model
[44:42] like 0.4 as a score. So, that's binary
[44:44] versus continuous, um, static versus
[44:46] relative we've talked about, right?
[44:48] Static there's kind of like a fixed
[44:49] solution. In the case of sweefficiency,
[44:52] there is kind of like a reference
[44:53] solution that works very very well.
[44:56] Um,
[44:56] but, you know, if you're getting kind of
[44:58] into the regime of like competition and
[45:00] ELO and stuff like that, I think at
[45:02] least within the spectrum of benchmarks
[45:04] I've personally seen myself, I think
[45:07] there's a lot of static benchmarks and
[45:09] so that has fueled like making more
[45:12] benchmarks over time with harder tasks
[45:14] and harder test sets. I think it's like
[45:16] kind of interesting to think about uh,
[45:18] you know, when models get super good and
[45:20] superhuman and when we maybe get to this
[45:23] inflection point where it's very
[45:24] difficult for a human to just come up
[45:26] with a task that the model is not good
[45:28] at. Um, does competition eventually kind
[45:30] of become the more de facto way with
[45:33] which we rate model performance? Yeah,
[45:34] question. Yeah.
[45:36] >> Just in the previous slide,
[45:38] on the right hand side,
[45:39] bottom right corner sweep efficiency,
[45:42] sometimes the score for each model has a
[45:44] parameter say open hands.
[45:47] These
[45:48] so when we evaluate we score model the
[45:52] score with some specific
[45:54] or
[45:56] yeah, because that could change the
[45:58] harness you paired the model with,
[46:00] surrounded with could change the score.
[46:02] So how much do we usually observe that?
[46:06] Is it coming to fix the harness
[46:09] or
[46:10] is it incorporated into that model by
[46:11] that reporting company reporting model
[46:14] provider?
[46:15] >> Yeah.
[46:16] Yeah, no, that's an excellent question.
[46:18] That's exactly one of the core things
[46:20] when it comes to evaluation protocol,
[46:22] right? So
[46:23] if folks here ever decide to like write
[46:25] a benchmark paper and submit it,
[46:27] something you'll probably get from your
[46:28] reviewer which is not the end all be
[46:30] all. You can deal with it. It's like,
[46:31] hey, you know, like the scaffold that
[46:33] you picked to kind of run all these
[46:35] models with, it's like holding back the
[46:37] models in some way, you know, like oh,
[46:39] this scaffold like so for example, you
[46:41] know, there's Claude code and Codex. One
[46:43] scaffold that you'll see that's quite
[46:45] popular from Killian Larett and some of
[46:47] the folks from Princeton, Carlos Jimenez
[46:49] is this one called mini sweep agent. And
[46:52] so for that one, there's no sort of
[46:54] complex like loops and like in Codex you
[46:57] can slash and do a bunch of these
[46:58] commands. It's just a single tool call.
[47:01] The model can fire off a bash action.
[47:03] There's no file reading tool, there's no
[47:05] whatever, right? So I think that is an
[47:07] excellent question and the answer is
[47:09] that it's ultimately kind of up to the
[47:11] benchmark designer. So I would say that
[47:13] like, you know, in some benchmarks maybe
[47:17] you could make the argument that like
[47:18] somehow this harness is like tethered to
[47:21] the benchmark. Like in order for the
[47:22] numbers to be reliable um
[47:25] you kind of want to run with this
[47:27] specific harness and that has to be the
[47:29] case. With things like Terminal Bench
[47:31] and SWE-bench, if you guys just go to
[47:33] swebench.com or
[47:37] you'll see that like the leaderboard
[47:38] allows for other harnesses as well, you
[47:41] know? So people can propose like, okay,
[47:44] well I ran Claude Opus 5.5 but I when I
[47:47] run it with Claude Code versus Open Code
[47:50] versus Mini SWE-bench I actually get
[47:52] different numbers and that can sort of
[47:54] be tied to the harness. So basically
[47:57] there's no sort of concrete restriction
[47:58] of like you can do either one. It's just
[48:00] that's kind of starting to relate more
[48:01] to kind of how you communicate the
[48:03] benchmark. It's a great question. Yeah,
[48:04] cool.
[48:05] Yes, yes, yeah.
[48:06] >> Can you talk about the mechanisms
[48:09] for the reward?
[48:10] >> Oh, that's a great question. Yeah, I
[48:12] mean I guess like two lectures ago we
[48:14] kind of talked about the reward hacking
[48:15] at the end. So I think from the
[48:16] environment side I would just lean on
[48:18] those things as well. Um so there's
[48:20] certainly the sort of things that we've
[48:22] talked about which is like preserving
[48:23] the task and making sure it's well
[48:25] structured and stuff with that. I guess
[48:27] like reward hacking maybe more with
[48:29] respect to kind of like, I don't know,
[48:31] maintaining a good leaderboard and
[48:33] making sure that people submit things
[48:34] that sort of like, you know, are
[48:36] reliable and comparable apples to
[48:38] apples. Um I would say like
[48:41] you know, you can like set up
[48:42] leaderboards that like look through the
[48:44] trajectories. You have like an automated
[48:46] language model that kind of looks and
[48:47] makes sure like, hey, the problem is
[48:49] being solved the right way. Um you know,
[48:52] for example, I don't know, if you have
[48:54] like a benchmark where you're trying to
[48:56] grade a model on its ability to create a
[48:58] repo from scratch that is not just kind
[49:00] of like looking up the solution online
[49:02] or something like that. Does that answer
[49:04] your question? I guess TL;DR is just
[49:05] like what we kind of talked about
[49:07] before. Yeah. Yeah. Cool. Awesome.
[49:09] Awesome. Great. Okay. And then
[49:11] evaluation protocol is just this slide.
[49:13] Um so there's this is the kind of stuff
[49:15] where when you read a paper, it doesn't
[49:17] make up like, you know, two pages of the
[49:19] paper. This is kind of like all the sort
[49:21] of
[49:22] um logistic bookkeeping stuff that takes
[49:24] up like half of a page, but it's still
[49:26] very important because then when someone
[49:28] else runs, they know sort of like what
[49:31] are things that should be held constant
[49:33] and then the things that aren't held
[49:34] constant are exactly what ends up
[49:36] constituting your ablations and what you
[49:39] can sort of like um sort of perturb to
[49:42] understand your model's capabilities,
[49:44] right? So I think beyond sort of the
[49:46] harness which we talked about, simple
[49:48] thing is just like, okay, how many
[49:50] attempts do you get? Like do you get
[49:51] like one attempt? Um if you only, you
[49:54] know, get one attempt, how do you
[49:56] account for variance, right? Like we'll
[49:58] talk about kind of pass at K and pass
[50:00] carrot K and next time as two metrics
[50:02] here, but like yeah, like do you let the
[50:05] do you want the person reporting numbers
[50:08] to for every task run it five times and
[50:10] take the average? Um should they take
[50:12] the best score? Should they take the
[50:14] worst score? Should they take, you know,
[50:15] how do you aggregate if you do multiple
[50:18] rollouts? Um
[50:20] um you know, how does an agent indicate
[50:22] that it's done, right? Let's just say
[50:24] there's a task that takes an agent 6
[50:26] hours. So do you just
[50:28] cut it off at 6 hours? If the agent only
[50:31] takes three, like how does it indicate
[50:33] that it's done 3 hours later? Um you
[50:36] know, you could do like, you know, when
[50:38] you have a terminal environment and
[50:40] let's just say you're doing an
[50:41] evaluation like, I don't know, post
[50:43] train bench and you want a model to kind
[50:45] of fine tune a language model. Well,
[50:47] half of the time with the wall clock
[50:49] time, the model's going to spend just
[50:50] kind of waiting for the SFT job to
[50:52] finish, right? So is that time included
[50:55] in the allocation of time and compute
[50:59] the model has to
[51:01] you know, accomplish task? Like
[51:02] depending on your infrastructure, if
[51:04] your Slurm cluster is like very very
[51:06] busy and a SFT run that should take 3
[51:09] hours ends up taking 4 or something like
[51:11] that, um then how do you sort of factor
[51:13] that into like well the model loses an
[51:15] hour. If you count that hour against it,
[51:17] maybe it's then less capable of spending
[51:19] more compute and more tokens and you
[51:22] know sort of more turns on the task. So
[51:24] how do you sort of account for those
[51:25] things depending on what task you're
[51:27] building, right? And then sort of the
[51:29] configurations of the language model
[51:30] itself, the harness. There's no right
[51:32] answers for this. I think generally
[51:33] there's some best practices where if you
[51:35] read papers from specific domains and
[51:38] specific areas well, you'll know what
[51:40] the answers are in sort of more fine
[51:42] grain ways, but this is very different
[51:44] for like web agents versus coding
[51:46] agents. Yeah, but important questions to
[51:48] answer. Okay, cool. And then now I think
[51:50] we're going to just kind of rapid fire
[51:52] through a couple of these benchmarks.
[51:53] Most of them you've already um seen at
[51:56] this point. Um
[51:57] so uh before we came up with like you
[52:00] know I don't know like a terminal bench
[52:02] and and and Swe bench and a lot of these
[52:05] kind of more challenging, realistic,
[52:07] economically valuable things. Um a lot
[52:10] of interesting uh
[52:12] attempts at evaluating language models
[52:15] and agents were very very born in like
[52:18] text games. So uh
[52:20] game versus text game, why the text
[52:22] prefix just means that the game is like
[52:24] fully accomplishable and playable
[52:26] through through the terminal. It doesn't
[52:28] involve sort of like multimodal
[52:31] understanding. Uh you know it's not like
[52:33] it's playing a GBA game and it has to
[52:34] kind of look at the a screenshot from
[52:37] the Game Boy Advance screen, right? Um
[52:38] so early on these kinds of platforms are
[52:41] very popular because um
[52:44] when you're hill climbing this
[52:45] benchmark, you don't have to deal with
[52:47] multimodal understanding. That's not
[52:48] something we care about. We just care
[52:50] about text understanding, right? And so
[52:52] things like um text world, uh another
[52:55] one is like NetHack. Um they're they're
[52:57] all quite fun like you know you'll
[52:59] you'll look so so I think like uh text
[53:01] world is something that's like
[53:02] potentially like a little bit sort of
[53:04] more realistic, you know, like hey, you
[53:06] know, you you're kind of the model's in
[53:08] this like text-based environment and
[53:10] it's in this like text-based room. And
[53:12] the model can like walk around, it can
[53:14] like go left, go right, uh you know, a
[53:16] bunch of steps up, down. It can like
[53:19] open the fridge or whatever. I'm sure
[53:20] maybe folks have like played these kinds
[53:22] of games like when we were all a bit
[53:24] younger. And so the good thing here is
[53:26] that like hey, this is like conveniently
[53:28] agentic, right? Like you have to do at
[53:30] least this minimal sequence of actions
[53:33] in order for the task to be
[53:35] accomplished. And so if you look at
[53:37] papers from like Karthik Narasimhan at
[53:40] MIT when he was a PhD there, there was a
[53:43] lot of sort of like engagement with like
[53:46] trialing language models and like very
[53:49] early reinforcement learning policies
[53:51] that were text-oriented
[53:53] on these kinds of tasks, you know. So
[53:57] but then soon enough we wanted to make
[53:59] things more realistic and more sort of
[54:02] like
[54:04] you know, like some more impressive
[54:05] visually speaking, right? So with
[54:08] AlfWorld, this is something that like
[54:10] the React paper uses if you guys
[54:11] remember
[54:12] the the diagrams there. And so from
[54:15] AlfWorld now you're kind of escaping the
[54:17] text-only regime and AlfWorld is kind of
[54:20] interesting in that I don't the original
[54:22] benchmark was not motivated to be a
[54:25] language model agent benchmark. It was
[54:28] more just motivated to be kind of like
[54:29] an embodied agent's benchmark. So even
[54:32] early on with a lot of these benchmarks,
[54:34] again, they weren't kind of built for
[54:36] language models. If you look at sort of
[54:38] the evaluation protocol there, they have
[54:40] like a multimodal system there, you
[54:42] know, and they have like a like a
[54:45] visual I wouldn't even say VLM, but just
[54:48] like a visual understanding model.
[54:50] And you have this system that's kind of
[54:51] like stitched up together like it takes,
[54:54] you know, visual input, it like encodes
[54:56] it as something either directly into
[54:59] text or maybe like, you know, translates
[55:01] it into some embedding that sort of like
[55:03] a joint text and you know, model when
[55:06] when when modeling research was a little
[55:08] bit more heterogeneous
[55:11] and you would have the model kind of do
[55:12] a very similar task to text world, but
[55:15] it's very fun in that it's sort of
[55:16] there's sort of like a mapping between
[55:18] the two. So the reason I kind of point
[55:20] out this mapping is that the same author
[55:22] who created React also created Webshop.
[55:25] And so prior to Webshop, this is one of
[55:28] the pretty much like one of the first
[55:31] web browsing tasks. And if you look at
[55:34] before Webshop, there was kind of like
[55:36] World of Bits.
[55:38] And this is that that was like a paper
[55:39] also from Percy and from Stanford's
[55:41] group. And it was also about website
[55:43] navigation. But those websites were very
[55:46] toy. It was effectively just like a
[55:47] single HTML page with like different
[55:49] buttons that you could click and just
[55:51] had to click them in the right order for
[55:52] the task to be accomplished.
[55:54] Webshop was one where they kind of
[55:56] made this decision of like, okay,
[55:58] operating directly on amazon.com,
[56:01] which is what the agents do now because
[56:03] they're super capable. But when they
[56:04] weren't capable, simply like if you just
[56:06] inspect element on the Amazon page, it's
[56:10] just too much. Like the language model
[56:11] is going to get super confused by the
[56:13] HTML tags. But we still want to test web
[56:16] browsing capabilities, right? So what do
[56:18] we do? We create a simulated version of
[56:21] Amazon that has all of this kind of
[56:23] extra tag stuff stripped away and it
[56:26] gives sort of a nice text rendering. So
[56:29] again, similar to AlfWorld, there is
[56:31] kind of this nice visual rendering of
[56:33] it. But when when you look at the paper
[56:35] and kind of the early models they
[56:36] evaluated, they don't do like
[56:38] screenshots of the web page and like
[56:40] pipe it into the model. They just do
[56:41] like literally like a text visual like
[56:45] Conway's Game of Life. I don't know,
[56:46] like ASCII art basically, and have the
[56:48] model kind of operate against that,
[56:50] right? So
[56:51] it's quite interesting to see how these
[56:53] benchmarks just do less and less of this
[56:55] kind of
[56:56] handicapping and babysitting like, you
[56:59] know, as time goes on and the models
[57:01] become more capable, right? So this is
[57:03] kind of an early
[57:04] e-commerce one. And then you have kind
[57:07] of coding and so yeah, I think in this
[57:09] class we probably drilled SweepBench a
[57:12] little bit too much at this point. So
[57:13] you guys know exactly what this is. I
[57:15] I'm not going to
[57:16] Yeah, we can just move on.
[57:17] And then for like WebArena, so this I
[57:20] think is a very interesting transition
[57:22] from WebShop over to
[57:25] sort of like more realistic, right? Like
[57:27] as you look at this progression, what
[57:29] you're going to see is like if you read
[57:31] the introduction of these benchmark
[57:32] papers, it's very exciting because
[57:35] they're all more comprehensive, they're
[57:37] all more realistic, and they're all more
[57:39] challenging. And it's true. But like,
[57:42] you know, if you read these papers more
[57:43] these days, I think it's
[57:45] if you see those words, it's also good
[57:46] to kind of understand like how they
[57:48] actually justify challenging, realistic,
[57:51] and and yada yada yada. So with
[57:53] WebArena, what they do is like, okay,
[57:54] well, you guys just did Amazon, we're
[57:56] going to do like a bunch of websites.
[57:58] And for each of these websites, what we
[57:59] find in the environment construction
[58:01] process, which you know, conceptually
[58:03] it's like, yeah, pretty simple, just
[58:05] create a replica of like, you know, I
[58:06] don't know, Google Maps, but like to
[58:09] avoid lawsuits, like OpenStreetMap or
[58:10] something like that. And when we create
[58:12] these replicas, we find that well,
[58:13] different different websites need
[58:16] different kind of serving, need
[58:17] different kinds of information and
[58:19] databases and stuff like that. And so
[58:21] the contribution of WebArena was to kind
[58:22] of really hash out that landscape of
[58:24] like, what does it look like to build
[58:26] web environments? What changes when
[58:28] you're doing Amazon and maybe underneath
[58:30] the hood you have kind of a bunch of
[58:33] Postgres databases that are being used
[58:35] to kind of make sure the model can sort
[58:37] of
[58:38] you know, click on things and have items
[58:40] that show up and you have both the
[58:41] solutions and the distractors around.
[58:44] But when you're trying to simulate like
[58:45] OpenStreetMap or like mapping software
[58:47] or something like that,
[58:49] how do you sort of like render that as
[58:51] text, right? Because like something like
[58:53] this is like quite difficult to
[58:55] communicate to like a GPT-3.5 model at
[58:58] the time. So like how do you sort of
[59:01] give the model a foothold into this
[59:03] task?
[59:04] And sort of beyond the task, as you can
[59:06] see, plenty of harness iteration and
[59:10] very very sort of early um semblance of
[59:14] sort of simulating a user, right? Like a
[59:16] lot of these static benchmarks, yes, a
[59:18] lot of them are sort of occurring in the
[59:20] scenario where the model doesn't have to
[59:22] interact with anyone. But, you know,
[59:24] realistically when you and I solve a
[59:25] GitHub issue, we're piloting the thing
[59:27] in Cloud Code, right? There's going to
[59:29] be occasional feedback from the user.
[59:31] So, you know, with some of these
[59:32] benchmarks where it's just completely
[59:34] insulated and there's no user, it's very
[59:36] convenient uh for a model builder to
[59:38] run, but maybe you're sacrificing on the
[59:40] realism of the benchmark a bit. Yeah.
[59:43] Cool. Okay. All right. So, that's Web
[59:44] Arena. Um and then Tau-Bench kind of
[59:48] pushes this uh user aspect um you know,
[59:51] user-oriented uh benchmark sort of to
[59:54] the max. So, as opposed to before where
[59:56] it was like, hey, you know, you don't
[59:58] really need a user, just like find, you
[60:00] know, Amazon, you know, basketball shoes
[60:02] or something like that. Here it's like
[60:04] very motivated by um
[60:07] customer service is like the big one.
[60:09] So, uh Tau-Bench specifically, this is
[60:12] still like the guy who who like created
[60:14] React um and also Webshop, but uh this
[60:16] benchmark was created from like Sierra.
[60:18] So, this is I don't know if people know
[60:20] this one um uh but this is like
[60:23] uh they're applying AI towards like
[60:24] customer service and a lot of sort of
[60:26] automated um AI agents for helping
[60:29] people fulfill requests like canceling a
[60:31] reservation and like modifying things,
[60:33] whatever. Um the interesting thing about
[60:36] Tau-Bench if you get to read it is like
[60:37] compared to the prior two benchmarks
[60:39] where it's kind of like navigate a
[60:42] website to get to a particular
[60:44] destination or particular product or
[60:46] answer or some sort of end state. With
[60:49] Tau-Bench, the way that they do grading
[60:51] is they look at the underlying database
[60:54] as opposed to some answer that the model
[60:57] surfaces, right? So, in this case, the
[60:59] agent is not evaluated on like, okay,
[61:01] you've kind of set the product sort of
[61:04] toggles correctly and you've purchased
[61:06] the right thing and you've submitted it
[61:08] sort of at the right end state. Um and
[61:10] here the grading is throughout the
[61:12] course of the trajectory, the model is
[61:14] interacting with the customer and it is
[61:16] getting sort of like, I don't know, uh,
[61:17] you know, like this kind of Tao airline
[61:19] is one of their subdomains, right? And
[61:21] so the user issues something. The model
[61:24] then operates against this real database
[61:26] underneath the hood and it's saying,
[61:28] okay, well, let me see the details of
[61:29] the flight. Uh, let me see what the
[61:31] customer book is. Um, you know, is this
[61:33] kind of like within the cancellation
[61:35] period? Is it okay to cancel? And then
[61:37] the grading simply looks at the final
[61:40] database and does like an equivalence
[61:42] check there. So I think something that's
[61:43] interesting is that
[61:45] uh, with TaoBench and then WebArena and
[61:47] then WebShop, this whole lineage of like
[61:49] web-oriented benchmarks, um,
[61:52] I would say the environment
[61:53] [clears throat] and the queries to some
[61:54] extent, they all kind of like look
[61:57] fairly the same, right? Like the problem
[61:58] statement is fundamentally just text.
[62:00] The main thing that's changing is like
[62:02] from WebShop to WebArena, you get more
[62:04] diverse environments. With
[62:06] WebArena/WebShop to TaoBench, you get
[62:08] this user component and because the user
[62:10] is incorporated, now you have like
[62:13] different style of verification, if that
[62:15] makes sense. Yeah, cool. Okay. Um,
[62:18] and then, okay, we're we have about 15
[62:20] minutes left. So you guys heard from
[62:22] like the fantastic terminal bench folks
[62:24] already, so like they can explain it
[62:26] much better than I can. Uh, but SweBench
[62:28] came before terminal bench. Um, a lot of
[62:31] the designs uh,
[62:33] that terminal bench does well was kind
[62:34] of informed from literally the authors
[62:37] like Alex like looking at SweBench and
[62:39] sort of making this observation that,
[62:41] you know what? Like this is cool.
[62:43] SweBench is fundamentally a terminal
[62:45] bench style task, but there's actually
[62:47] kind of like a more generalized version
[62:50] of this benchmark that I can make that's
[62:51] not necessarily tethered to GitHub repos
[62:54] and to GitHub issues, right? Um, so you
[62:57] know, SweBench has this component of the
[62:59] problem statement, the terminal
[63:01] environment, um, and then the
[63:03] verification specifically is like very
[63:05] unit test oriented and it's very kind of
[63:07] like patch oriented. Okay, what if I
[63:09] take a big step back and I can sort of
[63:12] create environments that are in the
[63:14] terminal? I fundamentally use kind of
[63:16] pie test as like a testing
[63:18] infrastructure, but I can verify things
[63:20] beyond just whether the code runs. I can
[63:22] verify whether this particular state is
[63:24] true, whether this particular action was
[63:26] done. Um you know and so Terminal Bench
[63:28] I think does a really fantastic job of
[63:30] just kind of generalizing this whole
[63:32] like uh you know uh coding/software
[63:36] engineering style agent to do things
[63:38] like much beyond um you know simply
[63:41] crawling GitHub. Um I think a
[63:43] interesting caveat worth asking yourself
[63:45] is that like Terminal Bench and Sweet
[63:47] Bench I think they're quite interesting
[63:49] in that they inspired very very
[63:51] different um
[63:52] uh very different task creation and
[63:55] collection approaches in the research
[63:58] world and especially with Terminal Bench
[64:01] quickly spun out into like you know the
[64:03] the a lot of the origin of kind of data
[64:05] vending as we know it today is to get
[64:08] human experts to create these kinds of
[64:09] tasks at scale, right? Like for
[64:10] something like Sweet Bench the
[64:12] collection pipeline is very very
[64:14] amenable to you just crawl GitHub issues
[64:17] and PRs at scale and you can create a
[64:19] large swath of data. Terminal Bench is
[64:21] completely hand authored, right? So
[64:24] especially early on uh to create tasks
[64:26] that like you know you could hill climb
[64:28] Terminal Bench performance with you
[64:30] literally have like human experts and
[64:31] software engineers that are paid to
[64:33] create tasks, right? Soon people then
[64:35] kind of realize okay well there there is
[64:37] kind of it's expensive, you know you can
[64:38] only go so fast. Um your upper bound is
[64:41] literally the number of people you have
[64:42] concurrently making tasks. How do we
[64:45] kind of think about how to like create
[64:46] more scalable data collection pipelines
[64:49] and that's when kind of people looked at
[64:50] Docker images and Docker files. So
[64:53] anyway um you guys are all familiar with
[64:54] the benchmark, but just kind of
[64:56] harkening back to the benchmark's
[64:58] influence on kind of um you know data
[65:00] and the things we've talked about two
[65:02] lectures ago. Um and then kind of within
[65:04] the vein of computer use uh uh you know
[65:06] we went from kind of Web Arena and stuff
[65:09] and uh the key there is that a lot of
[65:11] those environments were simulated and
[65:13] they were kind of exclusive to the
[65:14] browser, right? It's
[65:16] just operating in Chrome. Um OS World uh
[65:19] which comes from a bunch of folks at HKU
[65:22] and Tao Yu's group,
[65:23] does this really great paper where
[65:25] they're like, okay, you know what? Like,
[65:26] eventually we don't just care about
[65:28] browser operations. Like, computer use
[65:30] is really sort of the umbrella that
[65:32] encompasses coding agents and web agents
[65:35] as well. You know, we use computers.
[65:37] Let's just train a model to use
[65:38] computers the way that we do, right? And
[65:40] so this is kind of like OS World as a
[65:42] premise, right? And so the way that then
[65:44] they kind of
[65:46] with these benchmarks, it becomes very
[65:48] important in your paper to express how
[65:51] your task motivates using all of the
[65:54] environment, right? So if you simply
[65:57] took a SWE-bench task and slapped it
[65:59] into OS World, technically the OS World
[66:02] environment supports that kind of task,
[66:04] but in a weird way it's not sort of a
[66:06] good fit because the model doesn't
[66:08] really need to interact with that many
[66:10] applications, right? It can just open
[66:12] the terminal in the VM and just be done
[66:13] with it. So with OS World, what they do
[66:15] is they come up with a lot of tasks,
[66:17] also human curated, where it requires
[66:21] like maybe like interacting with the
[66:23] file system via, you know, the terminal
[66:26] and then taking those results and git
[66:28] pushing them to github.com,
[66:30] but then you do need to open the browser
[66:32] and then like check that, you know, the
[66:34] repo was successfully created and then
[66:37] via the browser you like share it, you
[66:39] know, with some other user account,
[66:41] right? So one of the big sort of
[66:42] innovations here was that looking at the
[66:45] task construction, you'll see that it
[66:47] should sort of motivate like touching
[66:49] all parts of like browsing and, you
[66:51] know, the terminal and like everything
[66:54] that sort of outside of the Venn diagram
[66:56] of those two, but included within what
[66:57] would be available on a computer. Yeah.
[67:00] Cool. Okay. And then this is I guess a
[67:03] little bit of like a self-promotion
[67:05] here. So like with this code clash
[67:07] benchmark, the idea here was that like
[67:10] the inspiration was that, okay,
[67:12] a lot of these static benchmarks usually
[67:15] like the model gets really good at them.
[67:16] It saturates all of the tasks and then
[67:18] you kind of need to make a new benchmark
[67:20] and you can make terminal bench one,
[67:22] two, 2.1, three, you know, four. And
[67:25] that lineage works very very well. Code
[67:27] clashes sort of stemming from this
[67:29] inspiration of, okay, well, like, you
[67:32] know,
[67:32] what if we could make a benchmark where
[67:34] a it kind of has a property of like not
[67:37] being that easy to saturate? So you, you
[67:39] know, are there are there natural kinds
[67:41] of tasks in the wild where code sort of
[67:43] competes with one another, right? Like a
[67:46] model is writing code and then that code
[67:48] base can be run against each other and
[67:50] you can calculate ELO for that. And then
[67:52] then, you know, you get this nice stuff
[67:54] where it's like, okay, the model is
[67:56] trying to do an agentic coding task, but
[67:58] this task is less about saturating some
[68:01] set of unit tests and more about like
[68:03] observing the behavior of their opponent
[68:06] script and inferring across multiple
[68:08] rounds like, hey, you know, like in
[68:11] round one,
[68:12] my poker bot is operating in a way where
[68:15] like I'm kind of like more
[68:18] more risk averse and I try I I tend to
[68:21] fold when like the numbers don't look
[68:23] good in my favor. But it seems like sort
[68:25] of the
[68:26] the opponent, you know, like the
[68:28] opponent's poker bot has revealed a
[68:29] bunch of their hands and it looks like
[68:31] they're kind of playing a little bit
[68:33] fast and loose and you know, I could
[68:34] probably take advantage of that. So in
[68:35] the next round when I refine my poker
[68:37] bot like, you know, can I do it you
[68:39] know, in a way that's kind of informed
[68:41] by my competitor. So that's code clash.
[68:44] Deviates away from kind of unit tests
[68:47] end-to-end tests as like a form of
[68:49] verification and moves much more towards
[68:51] like introducing this idea of
[68:53] competition with agentic coding.
[68:55] Cool. And then a bit of a bounce back.
[68:57] So
[68:58] around like 2024 2025 and especially
[69:01] today,
[69:02] a lot of these like multi-agent
[69:05] benchmarks are becoming more popular.
[69:07] Multi-agent is typically tethered with
[69:09] long horizon of just like, do you have
[69:11] tasks that are just like require
[69:14] you know, multiple hours, tens of
[69:16] thousands of steps, you know, millions
[69:19] of tokens to accomplish. Browser comp by
[69:21] Jason Wei when he was at OpenAI um is a
[69:24] really great benchmark where if you look
[69:26] at the construction of the benchmark,
[69:27] it's not actually that difficult. Um but
[69:30] you know, the goal is that like they
[69:31] have a query that you would require
[69:33] multiple Wikipedia articles to answer.
[69:35] And it's almost kind of like a browsing/
[69:38] website retrieval task kind of bundled
[69:40] into one. But it's very nice and that's
[69:41] very conducive to testing multi-agent
[69:43] systems. Okay, we're running a little
[69:46] short on time. So I'm going to skip
[69:47] through like the rest of these
[69:48] benchmarks. Vending uh vending bench
[69:50] vending machine bench is really fun. Um
[69:53] it's like can a model kind of manage a
[69:54] supply chain of like virtual vending
[69:56] machines? Um Airs bench um from um
[70:01] sorry, from a group at FAIR. Um this was
[70:03] one of the earlier works uh with uh
[70:05] Yaron Bachrach. They took a look at sort
[70:07] of AI tasks, right? So when if you kind
[70:10] of are dialed into the sort of uh San
[70:12] Francisco Kool-Aid of like RSI and like
[70:15] AI that can do AI and stuff like this,
[70:18] this is what we mean. Like we just take
[70:20] stuff that research scientists do, like
[70:21] data cleaning and SFT and post train. Um
[70:24] I think like the the narrative is quite
[70:26] fun, but like in practice, you know,
[70:28] it's really just like can AI do what AI
[70:30] researchers do? And so Airs bench is one
[70:32] of many. There's like paper bench, MLE
[70:35] bench from OpenAI, Neel Chaudhry and the
[70:37] preparedness group. Um those are all
[70:39] great benchmarks to to check out. And
[70:41] okay, all right, I'll stop like very
[70:43] briefly for questions if anybody had
[70:45] anything good.
[70:47] Cool. Okay, hopefully that was fun. Um
[70:49] now we're going to do sort of um
[70:51] a very quick rundown with like the last
[70:53] 10 minutes about like good benchmarks.
[70:55] There's a segment on reliability that
[70:57] I'll spend like a minute going through
[70:58] at the end. Um but I think that one is
[71:00] already pretty heavily covered by this
[71:03] kind of good benchmarks definition,
[71:04] right? So um as with many things in this
[71:06] class, this is certainly not fully
[71:08] encompassing, but um at least in sort of
[71:10] the experience of us three instructors,
[71:13] um this is kind of what's come up like
[71:15] pretty frequently. So um to go through
[71:17] each of these sort of like um just one
[71:19] two three seven qualities like one by
[71:21] one. Um I would say like when you look
[71:23] at this list right here, uh we'll talk
[71:25] about what each of these means, but as
[71:27] you listen to them, there is a natural
[71:29] tension. So when we talk about
[71:30] challenging, it just means that the
[71:31] benchmark should be hard, right? Like if
[71:33] you come up with the task that like
[71:35] today's Opus 5.5 can do, it's really
[71:37] cool Opus 5.5 can do that task, but it's
[71:40] not really a measure at that point,
[71:42] right? So that kind of ties in very well
[71:44] with discriminative, but then as we
[71:47] create more and more difficult tasks,
[71:49] you still [snorts] want to make sure
[71:50] that they're natural, right? Like I
[71:52] could sort of create an arbitrarily hard
[71:55] sweep and problem where I just take 200
[71:58] GitHub issues, I squash them all into
[72:00] the same environment, and I say, okay,
[72:02] I've created harder sweep bench now. You
[72:04] just have to do 200 issues instead of
[72:06] one. Yes, that's more difficult. Is that
[72:09] more natural or realistic? I don't know.
[72:11] You can decide, you know. Um but okay,
[72:13] great. Um so again like kind of
[72:16] harkening back to what we talked about
[72:17] earlier with like why are benchmarks
[72:19] important. When you build these things,
[72:20] I think ultimately you want to build
[72:23] good tasks and kind of get into the
[72:24] weeds of it, but just make sure you
[72:26] don't get like too sort of into the
[72:29] technicalities of it. Ultimately, it's a
[72:31] vehicle for communicating why is this a
[72:34] capability that we care about and why is
[72:37] this something that actually
[72:37] discriminates meaningful things about
[72:39] the models that, you know, we have
[72:41] today. Um so challenging is very simple.
[72:44] Um you should
[72:46] uh so, you know, a benchmark that is if
[72:47] you release it and it's already at 90%
[72:49] performance, it's kind of unlikely that
[72:51] someone will hill climb it, right? So if
[72:53] you want someone to use your benchmark,
[72:55] having it be difficult enough is really
[72:57] important. This diagram is just to
[72:58] illustrate that in the natural life
[73:00] cycle of these kind of like static
[73:01] benchmarks, this has happened to sweep
[73:03] bench, sweep bench verified, multimodal,
[73:05] multilingual, all the variants, internal
[73:07] bench 1, 2.1, 3, 4.
[73:10] There is they're all it's kind of a
[73:11] ephemeral like fleeting glory, right?
[73:13] Like they get reported, the models, the
[73:15] providers sort of make their models
[73:17] better and better, and then once you
[73:19] kind of hit this general regime of like
[73:21] 70, 80, 90%, whatever the ceiling is,
[73:24] they become less useful, and that
[73:25] motivates sort of the next benchmark. So
[73:27] when you release one, it's good for it
[73:29] to be challenging. Realistic, you know,
[73:32] stuff like this is fantastic, right?
[73:34] But, you know, um I guess not to
[73:38] No, I'm not going to call out specific
[73:39] benchmarks, but you know, as you kind of
[73:41] like look at certain things, um you
[73:43] know, you can just ask yourself the
[73:45] question of like, okay, I could I don't
[73:48] know, like if I take like a like a lot
[73:51] of these like puzzle games or something
[73:52] like that. Yes, it's very difficult. I I
[73:54] can't, you know, do those puzzles as
[73:56] well, but is this something that like we
[73:59] actually
[74:00] translates to kind of like a meaningful
[74:02] model capability, right? So
[74:04] um when you look at benchmarks and they
[74:06] claim hardness, another thing I would
[74:08] say out of this list that is like
[74:10] tantamount in importance is is it
[74:12] actually realistic and natural and does
[74:14] it translate to something useful?
[74:16] If if we're applying critiques, I'll
[74:17] apply it to my own sort of prior work
[74:20] and experience. One of the big problems
[74:22] with Code Clash is that if you look at
[74:24] the arenas and environments that were
[74:25] used, they were all programming games,
[74:28] right? And so when you you sell people,
[74:30] hey, this is very cool. Yes, it's very
[74:32] cool that they're competing,
[74:34] but why do I care that my model can code
[74:36] up like a better Battle Snake than than
[74:38] this other model? Like who cares, right?
[74:40] So so I think it's it's a harsh question
[74:42] to ask yourself, but it's a worthwhile
[74:44] one. Um discriminative is pretty
[74:46] straightforward, right? If everybody
[74:47] gets 0% or everybody gets 100% then like
[74:51] okay, cool. I just know everybody's
[74:53] really bad or very really good at it. Um
[74:56] it's I mean as we've talked about with
[74:58] like RL, with kind of how GRPO works and
[75:01] even sort of at the human level, it's
[75:03] all these like discrepancies, right?
[75:05] Like RL works when like a partial number
[75:07] of rollouts succeeds and not all of them
[75:09] or none of them. In the same way with
[75:11] benchmarks, you know, it's like
[75:12] interesting when there's like gaps in
[75:14] abilities and the numbers kind of then
[75:16] hint at like, okay, well, Opus 5.5 is so
[75:20] good at coding and then you can look and
[75:22] see like, okay, yeah, this number
[75:23] correlates to it's just better about,
[75:25] you know, reconnaissance and looking at
[75:27] problems and reproducing bugs or, you
[75:29] know, what the actual behaviors are. Um
[75:32] okay, cool. And then uh easy to run is
[75:34] also quite important. So, often times,
[75:38] let's just say you did your own version
[75:40] of TauBench and I want to run TauBench
[75:43] now. And in your set of command, you
[75:44] say, okay, well first you got to go to
[75:46] Hugging Face and you got to download
[75:48] this dataset. And then you got to run
[75:50] this script and like convert it to like
[75:52] a Postgres database. And then you got to
[75:54] run this command which I I don't know if
[75:57] it works on Mac, but it works on Linux
[75:59] and it launches your Postgres database.
[76:01] And then you got to take this website in
[76:03] a separate terminal, you know, start it
[76:05] up on this port, but not this port
[76:07] because that one's going to be used.
[76:09] It's like terrible, right? Like I mean
[76:11] we we we all sort of
[76:13] everybody's time is important and so
[76:15] like they're going to look at that and
[76:16] they're going to say like, okay, great.
[76:18] Congratulations on your really difficult
[76:19] benchmark. I'm not going to help climb
[76:21] this cuz I can't iterate fast enough on
[76:23] this, right? So, I mean easy to run
[76:25] refers to both the setting up, but you
[76:27] can also think of the verification as
[76:29] well, right? Like, okay, I have the
[76:31] model has created a solution. Now, I
[76:34] have to launch a unit test suite that
[76:35] takes 10 hours to run. This is actually
[76:37] true for like early suite bench when um
[76:40] you know, it was kind of less optimized.
[76:42] Literally some of these agent test
[76:44] things were, hey, I'm evaluating across
[76:45] 500 instances and each of them have like
[76:48] 10 to 100 tests to run and there's no
[76:50] good way to paralyze it. Yeah, people
[76:52] didn't you know, suite bench was not
[76:54] popular for like the first four or five
[76:55] months of existence because it was so
[76:57] inconvenient to run verification, right?
[77:00] So, just to motivate like, you know,
[77:02] at the end of the day, I think
[77:04] benchmarking is like a very human
[77:05] endeavor and so that that's something
[77:07] definitely worth keeping in mind. Um,
[77:09] we'll we'll talk about this a bit more
[77:10] next time, but like yeah, easy to verify
[77:12] we've talked about as well. Beyond kind
[77:14] of like the ease of running the
[77:15] verification, there is also just kind of
[77:17] like the reliability of it and we'll
[77:19] talk about this more with Ellen as a
[77:20] judge um in the next lecture. Um,
[77:24] interpretable um I think like this is
[77:27] starting getting more into the regime of
[77:29] just like you know, just make sure like
[77:31] you have the right surfaces that if you
[77:32] release a benchmark, you have a easy to
[77:34] read paper, you have a website, you have
[77:37] a GitHub repository. That website for
[77:39] your agent test preferably these days
[77:41] because Claude code is so accessible, it
[77:43] has a trajectory viewer, right? And so
[77:46] interpretable here means not only the
[77:48] results are sort of like reasonable to
[77:51] understand and that some other
[77:52] practitioner can look at your terminal
[77:55] bench or sweet bench trajectories. They
[77:57] can dive in and they can ask like, okay,
[77:59] based on the failure modes, how do I
[78:01] train a better model or build a better
[78:02] system that you know, like accounts for
[78:05] these failure modes? It's also that you
[78:07] present this information in kind of an
[78:09] accessible way.
[78:11] And then last but not least, yeah, is
[78:13] durable. So
[78:15] something that's also worth thinking
[78:17] about. So after sweet bench, there's
[78:20] been this kind of big lineage of these
[78:21] kind of GitHub issue resolution
[78:23] benchmarks. You went from
[78:25] sweet bench
[78:26] verified to multilingual and multimodal
[78:29] and then you had sweet bench Pro from
[78:30] the scale AI people and then you had you
[78:34] know, bunch of other sweet benches as
[78:35] well. And then kind of the latest one
[78:38] from data curve, which is one of these
[78:41] data vendors is deep sweet, right? And
[78:43] underneath the hood, they all kind of
[78:45] have the sweet bench task formulation.
[78:47] But a big thing that changed from sort
[78:50] of generation to generation of what
[78:51] people used is like, okay, for sweet
[78:54] bench, people complained a lot about
[78:56] contamination. You're sourcing these
[78:57] problems from GitHub repos that are
[78:59] available in the open.
[79:01] And so like technically the model has
[79:04] been pre-trained, SFTed, whatever on you
[79:07] know, the NumPy solution that you're
[79:08] asking the model for. So how can you be
[79:10] sure that the model's actually coming up
[79:12] with a solution organically?
[79:15] Fine. Let's just then create a private
[79:18] test split, right? And that's exactly
[79:20] what sweet bench Pro did where it's
[79:22] like, hey, we have a
[79:23] public set of tasks, but we also have a
[79:25] private one. We'll run the private ones
[79:27] for you. With deep sweet, the way they
[79:28] went this is that the the task instances
[79:31] and benchmark was ultimately public, but
[79:33] when they constructed the tasks, if you
[79:35] viewed if you read the paper, it doesn't
[79:37] come from crawling GitHub. It's We have
[79:39] human experts using Claude that actually
[79:41] created sort of sweet bench style
[79:43] issues, but they're technically
[79:44] uncontaminated because we created them
[79:46] and they're organic. So at that point
[79:48] it's sort of like there's a certain
[79:50] lifespan for it, right? Like then people
[79:52] he'll climb the heck out of it um and
[79:54] then it's sort of sort of contaminated
[79:56] as well. Uh but upon the release that's
[79:58] potentially a good thing that you could
[79:59] say. Um another thing that people have
[80:01] done with like sweet rebench, sweet
[80:03] bench live, live code bench is that you
[80:05] have a constant um refreshed index,
[80:08] right? The model Opus 5.5 was trained
[80:11] like I don't know like this is random. I
[80:13] don't actually know 3 months ago. Well
[80:15] then technically all of the GitHub
[80:17] issues and PRs that were created in the
[80:18] 3 months since would be sort of
[80:20] uncontaminated, right? So you can kind
[80:22] of create like a live index um and then
[80:24] sort of robust grading we've talked
[80:25] about before. But okay, I will like um
[80:28] yeah. So this is kind of like the
[80:29] general lineage. We talked about it. Um
[80:32] this is just sort of a nice bullet list
[80:34] where you can kind of see from the left
[80:36] this was kind of like the earliest
[80:37] version of that particular category of
[80:39] ancient benchmarks and you know you
[80:41] often see like people propose harder and
[80:43] harder versions of them over time and
[80:46] you know they advance the verification
[80:47] or the environment or the problem
[80:49] statement um and so you know that's sort
[80:51] of the virtuous cycle of benchmarking.
[80:53] Um this is sort of like a final list of
[80:57] you know questions. But cool. Okay, I'm
[80:59] a little bit over time. Thank you so
[81:00] much all for staying. Um next time we'll
[81:03] talk about LMS judge. Thank you.