GlossaryGuardrails and control
Evals
Definition: Evals are tests that measure what an AI model or agent does on a defined set of tasks, with each result scored by code, by another model or by people.
Anthropic’s guide to agent evals describes an eval as “a test for an AI system: give an AI an input, then apply grading logic to its output to measure success”, and says agent evals typically combine code-based, model-based and human graders (Anthropic, 9 January 2026). Code-based graders run fixed checks, such as matching a string or requiring tests to pass. Model-based graders use a language model to score output, for example against a rubric, and the guide says they need calibrating against human graders, such as subject-matter experts. For an agent, a grader can check the outcome, meaning the final state of the environment, as well as the transcript of what the agent said and did. For example, an eval for a trading agent may run it through several hundred scripted market scenarios, each with a stated position limit and daily loss limit, and use code to check every order request the agent makes against those limits. The score may be the share of scenarios in which no request broke a limit, and running the same scenarios after each change to the agent’s prompt or model may show whether that share rose or fell.
A public benchmark is an eval whose tasks and grading are published, so different models can be scored on the same items. SWE-bench (Jimenez et al., 10 October 2023) gives a model a Python codebase and the text of a real GitHub issue. It counts the issue as resolved only if, after the model’s edit, two sets of tests pass: those that the developers’ own fix made pass, and those that passed before. The paper’s 2,294 tasks came from 12 Python repositories, and the best model it tested, Claude 2, resolved 1.96% of them. Because a benchmark’s items are published, they can end up in a model’s training data. This is called contamination, and it can make a model’s score on that benchmark overstate how it does on new items of the same kind. The team behind GPT-3 searched its training data for overlaps with the benchmarks it reported, but wrote that “a bug in the filtering caused us to ignore some overlaps”, and the paper then measured how the remaining overlaps affected its results (Brown et al., 28 May 2020). Zhang et al. (1 May 2024) wrote 1,205 new grade-school math problems matched to the GSM8K benchmark. The largest drop they found was for Yi-6B-Chat, which solved 43.7% of GSM8K problems and 35.7% of the new ones. Models that assigned a higher probability to GSM8K’s own problems tended to show larger drops, which the authors read as a sign that some models may have partly memorized GSM8K. Teams also build private evals from their own tasks and data, and OpenAI’s Evals framework supports evals built “without exposing any of that data publicly” (OpenAI Evals).
Scoring models on published test sets predates OpenAI’s framework: the GPT-3 paper, for example, evaluated its model on “over two dozen” datasets. OpenAI open-sourced a framework named OpenAI Evals when it announced GPT-4 on 14 March 2023, describing it as “our software framework for creating and running benchmarks for evaluating models like GPT-4”.
