How to build and maintain robust agentic evaluations
Hugging Face outlines the transition from question-answer benchmarks to complex agentic evaluations and provides a framework for building them.
Source: Hugging Face BlogThe shift from simple question-and-answer benchmarks to agentic evaluations represents a fundamental change in how AI capability is measured. As models move from generating text to executing actions in software environments, the methods used to verify their performance must become significantly more sophisticated.
How has AI evaluation evolved over time?
According to a guide published by Hugging Face, evaluation design has transitioned through three distinct eras. The first era focused on question-and-answer benchmarks, such as MMLU and GPQA, which measure a model's internal knowledge and reasoning by checking its answers against a key.
The second era introduced agentic benchmarks, like SWE-bench and WebArena. These do not just look at text, but rather at how an agent interacts with an environment, such as resolving software issues or navigating websites. This requires an evaluation setup that can account for the specific changes an agent makes to its surroundings.
The third and most recent era involves testing teams or swarms of agents. These benchmarks focus on how multiple agents coordinate, whether they are managed by a central orchestrator or acting as decentralized swarms, and what they can achieve through collective collaboration.
What are the core components of an agentic evaluation?
An agentic evaluation is more complex than a standard test because it involves several moving parts that can influence the final score. Hugging Face identifies several key components in the anatomy of such a system.
First, there is the task, which provides the initial instruction. This is handled by an agent harness that wraps the model and its tools, allowing the agent to operate within a controlled, "pinned" environment. During a rollout, the agent attempts the task, which may involve running multiple commands and inspecting outputs.
When the rollout concludes, a verifier examines the final state of the environment to grade the performance. Crucially, each rollout also produces a trace, which serves as a record of the agent's work. These traces, along with the scores, form the evidence used to support the evaluation's results.
Why is it difficult to trust current AI benchmarks?
Reliability in benchmarking is a growing concern for researchers and enterprises. Hugging Face notes that 98.2% of model-benchmark scores are currently reported by only a single party, making independent verification difficult.
One major challenge is contamination, where test questions or solutions accidentally enter the model's training data, leading to artificially high scores. To combat this, some developers use private test sets. For example, Artificial Analysis reported that 60% of its Intelligence Index v5 relied on evaluations with private or held-out answers.
Furthermore, the software used to run the agent can significantly impact results. In an audit of Terminal-Bench, researchers found that keeping the model constant while changing the agent harness caused accuracy to vary by up to 29.9 percentage points. This highlights that the evaluation framework itself is often as important as the model being tested.
How can developers build a reliable agentic evaluation?
Building a useful evaluation requires moving beyond simple task creation toward rigorous validation. Hugging Face suggests an eight-step process using a practical example of a physics lab agent tasked with analyzing Raman spectra.
Developers should start by defining a narrow, specific claim—such as a model's ability to fit specific peaks in a spectrum and calculate a defect ratio. Instead of starting from scratch, builders are encouraged to reuse existing open-source components like evaluation harnesses and task formats.
Validation is a critical step. Developers should test the evaluation itself by running "shortcut" scripts. In the physics example, a shortcut that simply read peak heights from data without performing actual curve fitting was used to see if the grader could be fooled. If the grader gave full marks to a cheating script, the evaluation was not robust enough and required more stringent checks on the actual fitting process.
How can researchers apply these evaluation principles?
For those working in research or specialized domains, the key is to balance domain expertise with open-source infrastructure. By sharing grading methods and task designs, even if the specific test data remains protected, builders allow for the scrutiny necessary to correct errors and improve model performance.
If you are looking to explore complex AI research papers or technical documentation regarding new evaluation frameworks, you can use Reader to conduct deep research over PDFs and scientific papers. This allows you to query specific methodologies and summarize findings across multiple documents.
Frequently asked questions
What is the difference between agentic and question-answer evaluations?
Question-answer evaluations measure a model's knowledge by comparing its text responses to a known correct answer. Agentic evaluations measure a model's ability to perform actions within an environment, checking the final state of that environment or the changes made by the agent to determine success.
Why can the agent harness affect benchmark scores?
An agent harness is the software layer that manages how a model interacts with tools and environments. Because the harness can influence how an agent perceives errors or executes commands, changing the harness can lead to significant variations in accuracy, even if the underlying model remains exactly the same.
How does contamination impact AI model testing?
Contamination occurs when the specific questions or solutions used in a benchmark are included in the model's training data. This leads to scores that reflect the model's ability to recall memorized information rather than its actual ability to reason or solve new problems through the task at hand.
Source: Hugging Face Blog
Source: Hugging Face Blog — How to build and maintain an agentic evaluation


