AIsaAIsaStudio English 打开 AIsa Studio

Hugging Face 发布智能体评测构建与维护指南,并开源 raman-lab 示例

原标题:How to build and maintain an agentic evaluation

Hugging Face 发布关于构建与维护智能体评测的指南,讲解评测从问答型、智能体型到多智能体协作型的三个阶段演变。作者以物理实验室拉曼光谱拟合为例,基于 Harbor 和 Terminal-Bench 的 raman-fitting 任务走完定义 claim、改写任务、验证评测、读取 trace、报告分数和对比模型等八个步骤;其中一个跳过拟合的捷径脚本能在全部八个任务上返回预期缺陷比值,暴露了仅检查比值的验证器缺陷,作者据此补充了拟合检查。文章还给出按评测组件逐项决定开源范围与保护策略的表格,并引用 Terminal-Bench 2.1 修复 89 个任务中的 28 个、OpenAI 估计 SWE-bench Pro 约 30% 任务损坏等案例,说明基准错误和污染的普遍性。

为什么值得看

作者亲手搭建并开放了一个智能体评测样例,读者可以借此了解各环节如何复用、验证与开放发布。

阅读原文 ↗11月24日 AI 日报

本页的摘要、推荐理由与解读出自 AIsa Studio 的 AI 风向智能体,原文版权归原作者所有。

深度解读

发生了什么

Hugging Face 发布了题为「How to build and maintain an agentic evaluation」的指南,完整讲解如何构建、验证并开源 AI 智能体的评测。与指南一起,团队发布了一个可运行的示例 raman-lab:一个物理实验室场景的评测,智能体需要对石墨烯拉曼光谱的峰进行拟合。指南建立在 Hugging Face hub 作为「AI 评测之家」的基础上:平台托管约 3500 个评测榜单,评测数据集约 17000 个,过去一年增长约 16 倍。

指南覆盖四个部分:评测设计的三个时代、构建智能体评测的八步流程、基准出错时怎么办,以及按组件拆解的“该开源什么”的策略。

关键细节

**评测的三个时代。**指南梳理了评测设计随模型能力演进的三个阶段:

  • 问答类基准(如 2020 年的 MMLU、2023 年的 GPQA)将模型回答与答案对比。
  • 智能体基准(如 SWE-bench、WebArena)检查智能体在环境中做了什么改动。
  • 团队与蜂群基准对一组智能体共同产出的结果打分。

指南聚焦智能体评测,原因有二:一是智能体部署受用户和企业关注,这类评测在模型发布公告中日益突出;二是一旦智能体使用工具,周边软件的每个部分都可能影响分数。作者引用一项对 Terminal-Bench 的审计:模型固定不变、只更换 agent harness,准确率波动高达 29.9 个百分点。

**八步实操。**示例基于开源评测框架 Harbor,改编自 Terminal-Bench 的 raman-fitting 任务。起点是该任务上 gpt-oss-120b 三次 rollout 全部失败;团队随后构建 raman-lab:八条参数已知的合成石墨烯光谱。改编后的设置通过 24 次 rollout 中的 11 次,pass@3 为 7/8,pass^3 为 1/8。六个模型的对比中,三个模型通过全部 24 次 rollout,说明开发集太简单,无法对它们排序。

**评分器错了。**一个跳过拟合、直接从数据读取峰高并猜测峰宽的捷径脚本,在全部八个任务上都返回了正确的缺陷比——只检查该比值的验证器会给它满分。团队为此加上了对每个拟合峰的检查。指南引用一项综述:任务设置或奖励设计的缺陷可使测得的性能在相对值上偏移最多 100%。

**公开评审纠正基准。**指南列举了多个案例:Terminal-Bench 2.1 在用户报告后修复了 89 个任务中的 28 个;OpenAI 对 SWE-bench Verified 的审计发现 138 个问题中 59.4% 存在实质性缺陷;CritPt 因参考解答保密,审计的物理学家不得不自己解题,才在审阅的 56 个挑战中发现 21 个有错。污染确实存在——SWE-bench Verified 审计发现前沿模型能复现参考补丁——但一项对 60 个基准的研究发现,公开与私有的基准同样会饱和,与较低饱和相关的是专家策展和更大的测试集。

**开源什么。**指南用一张详细的表格,把评测的每个组件(任务、环境、harness、trace、验证器、结果、修正记录)对应到可公开的内容、在 Hub 上的发布方式,以及可保留保护的部分。ARC-AGI-2、AILuminate 和 Terminal-Bench 是部分开源的范例。指南还给出一份清单,涵盖声明用途、可复用工件、空转智能体基线、不确定度、缺陷记录和任务刷新计划。

为什么重要

指南回应了 AI 评测中的结构性矛盾:对独立验证的需求在增长——98.2% 的模型-基准分数仅由单一一方报告——而越来越多的基准创建者为防止污染而隐藏测试集。作者的立场是:隐私本身不等于质量,即使测试条目受保护,构建者仍可以公开基础设施、评分方法和任务设计证据。

捷径事件给出的教训具有普遍意义:测试输出证明了什么,而不是数字是否正确。「更快的有效方法应该通过;跳过必要技能的方法不应该通过。」指南还强调构念效度——分数一致也可能测错了东西,声明只应覆盖任务真正测试的内容。

结语将基准视为有生命周期的存在:被构建、被采用、被针对性优化、最终饱和。饱和度研究中的 60 个基准有 29 个被评为高度饱和,且饱和率随基准年龄上升。开放程度决定了基准留下什么:已解决的任务可成为新 harness 的回归检查,环境与验证器可孕育更难的后续版本,基准会被修复再发布(MMLU 衍生为 MMLU-Redux;Terminal-Bench 2.0 经社区贡献成为 2.1)。

对谁有影响

基准构建者获得一份具体清单和一个参考实现,示范如何逐部分发布评测。选择模型的企业和研究者应注意 29.9 个百分点的 harness 影响以及分数本身无法区分“提前停止”与“拟合错误”而 trace 可以的事实。政策制定者和审计者则关系到指南为受保护条目提出的评审通道。物理实验室这类领域专家在流程中被明确纳入,负责设定容差和真实噪声水平。任何依赖单方报告分数的基准指标的人,都受到指南核心论点的影响:可审查性要求给他人质疑测量方式并纠正错误的途径。

全文翻译

以下翻译只覆盖原文的前一部分,其余内容请看下方原文。

概述

AI 评估有助于塑造人们构建、采用和信任的系统。评估向系统提供任务,检查其答案或行为,并生成评分。因此,构建和维护有用的评估需要切实的工作:定义反映领域专业知识的任务、可靠地对其进行评分,并检查结果是否支持所做出的声明。当方法、代码和数据保持私密时,其他人更难审查或在此基础上进行改进。

开源提供了一种构建更强大、更新更频繁且更具可比性的评估及其基础设施的途径。现有的任务、环境和工具为构建者提供了起点,使他们能够将精力集中在领域专业知识和验证上。分享评估的构建过程(包括哪些地方出了问题)可以让他人发现错误、改进评估并重复使用它。

Hugging Face Hub 是 AI 评估的大本营:我们托管了约 3500 个评估排行榜,并且看到 过去一年 Hub 上的评估数据集增长了约 16 倍,达到约 17000 个数据集。在最近几个月,我们还加入了对与评估相关的代理抽象的支持。例如,Traces 以易于审查和共享的方式存储代理的工作;Benchmarks 突出显示用于通过排行榜评估模型的数据集;以及 Environments 展示用作代理强化学习或评估环境的数据集。

本指南涵盖四个方面:

  • 评估的三个时代(第 1 节)。评估从检查答案发展到检查代理的行为,再到检查代理团队产生的结果。每一步都增加了可能改变分数的软件。
  • 代理评估的步骤(第 2 节)。我们跟随一个任务经历八个步骤,从声明到报告的分数。完整的演练及命令见 附录 A。
  • 当基准测试出错时(第 3 节)。任务和评分器中的错误很常见。我们探讨如何发现并纠正这些错误。
  • 策略性地开放什么以及为什么(第 4 节)。一张表格详细说明了每个组件应共享的内容以及可以保护的内容。

在研究社区中,AI 评估术语 notoriously inconsistent 。文章末尾的 词汇表 定义了我们要使用的每个术语,并指出了你可能遇到的其他名称。

1. 引言:评估设计的变化

随着语言模型能力的提升以及执行更复杂工作的能力增强,AI 评估设计经历了三种形式的演变:问答式、代理式和团队/群体式。像 MMLU (2020) 和 GPQA (2023) 这样的问答基准测试通过模型生成的答案来衡量知识和推理能力。随着模型具备规划和使用工具的能力,像 SWE-bench 和 WebArena 这样的代理基准测试将范围扩展到解决软件问题和完成网站上的任务。这些任务需要评估设置,以考虑系统运行的环境及其所做的更改。

最近,关于多智能体系统的研究开始增加另一个维度:智能体如何协调以及它们共同完成了什么。这包括 去中心化群体、由编排器管理的团队 以及 专门从事科学工作的智能体协作。图 1 展示了这三个评估时代的粗略时间线。

图 1. 三种类型的语言模型评估。问答基准测试根据标准答案检查响应。代理基准测试检查代理对环境做了什么更改。团队和群体基准测试对一组代理产生的结果进行评分。

本文将重点关注代理评估,原因有二。首先,由于用户和企业对代理部署的高度兴趣,它们正变得越来越成为 模型发布公告 中最突出的类型。其次,它们为理解评估设计如何影响模型性能提供了一个有用的起点。团队和群体评估通过智能体之间的交互引入了进一步的复杂性,这超出了本指南的范围。一旦智能体使用工具完成任务,周围软件的每个部分都可能影响其分数。例如,在 Terminal-Bench 的审计 中,研究人员保持模型固定不变,但更改了代理框架。准确率变化高达 29.9 个百分点。为了理解此类差异,我们考察代理评估的结构,并跟踪一个任务,从智能体收到的指令到确定其是否通过的检查。

代理评估的结构

图 2. 代理评估的不同组成部分。

代理评估包含多个部分。任务向智能体提供指令。智能体框架包裹模型及其工具,使其能够在固定的环境中工作。在一次运行(rollout)中,智能体从头到尾尝试完成任务:它可能会运行几个命令,检查输出,并在停止之前重试。评估框架为每个任务运行多次。当一次运行结束时,验证器会对环境的最终状态进行评分。每次运行还会留下痕迹(trace),痕迹和分数一起成为最终发布的证据的一部分。每个部分都可以单独发布、检查和重用。

为什么基准测试发布决策很重要

对独立评估的需求正在增长。政策制定者、企业和研究人员希望获得他们可以验证的评估,而目前他们大多无法做到这一点:98.2% 的模型-基准分数仅由一方报告,研究人员认为 内部评估是不够的。

同时,越来越多的基准测试保留测试项以减少污染:即问题或解决方案进入训练数据,导致分数可能反映先前的接触。Artificial Analysis 表示其 Intelligence Index v5(于 2026 年 10 月宣布)中有 60% 依赖于具有私有测试集或保留答案的评估。Google DeepMind 最近试点了 双盲评估,其中安全 enclave 将外部评估者的测试提示隐藏起来,不让模型提供商看到,同时也将模型的权重隐藏起来,不让评估者看到。虽然这可以减少污染,但隐私本身并不能保证质量,而且 withholding supporting materials(扣留支持材料)会使专家审查变得更加困难。我们认为,构建者仍然可以并且应该共享基础设施、评分方法和关于任务设计的证据。审查取决于给予他人质疑测量和纠正错误的方法,包括在公共发布不合适的情况下进行受控审查。

2. 构建评估:复用、适应和验证什么

有了结构基础,我们现在为一个实际用例构建一个代理评估:一个分析物理实验室测量的代理。与其从头开始,我们改编了一个开放任务,因此我们的大部分精力都集中在领域专业知识和验证上。

我们经过八个步骤:定义声明、寻找任务、原样运行、适应任务、检查评估、阅读痕迹、报告分数 和 比较模型。然后我们总结复用了什么。完整的演练见 附录 A。图 3 映射了步骤以及在我们的示例中每个步骤产生的内容。

图 3. 构建代理评估的八个步骤。左面板依次突出显示每个步骤,右面板显示在我们的示例中涉及的内容。黄色步骤处理评估本身,橙色步骤运行模型并读取结果。

方法

声明。 考虑一个物理实验室,希望有一个代理来拟合拉曼光谱中的峰值。拉曼光谱是一种测量值,其峰值揭示了材料的特性,这里是石墨烯。代理的工作是普通的编码:读取数据文件,对每个峰值拟合曲线,并保存结果(附录 A 中的图 5)。出于本文的目的,我们的声明故意狭窄:拟合指定的峰值,计算所需的 D 峰与 G 峰的比率(一个峰值相对于另一个峰值的强度,这可能表明材料中的缺陷;我们也称之为缺陷比率),并始终如一地保存准确的结果。审查整个实验报告需要额外的技能和证据。

起始任务和基线。 我们复用了 Harbor 任务格式和 Terminal-Bench 的 raman-fitting 任务。Harbor 是一个开源评估框架,Terminal-Bench 是一个代理在终端中完成任务的开放基准。我们首先运行了任务的参考解决方案,该方案通过了,然后使用 Terminus-2(一个终端代理框架)和 gpt-oss-120b(OpenAI 的一个开放权重模型)三次运行原始任务。Harbor 在 HF Job 内运行,每次运行使用自己的 HF Sandbox,Inference Providers 提供模型响应。复用运行器和任务格式使我们能够专注于物理、评分和审查。只有代理框架不需要新工作。每个其他组件都需要检查或新工作,我们在 附录 A 的末尾 逐部分列出。

适应。 我们构建了 raman-lab:八个具有已知参数和不同噪声及缺陷水平的合成光谱。适应过程拟合三个峰值而不是两个,并报告缺陷比率。我们使用代理来帮助生成光谱,手动审查它们,并编写新的指令、参考拟合和输出检查。新指令说明了原始指令中隐含的单位参数定义。这八个任务是开发集,意味着我们在构建评估时使用的任务;更广泛的覆盖范围应遵循真实测量的变化。

检查。 在执行更多模型运行之前,我们测试了评估本身。我们运行了参考解决方案、一个什么都不做的代理和一个跳过必要工作的捷径。参考解决方案应通过所有任务,而其他两个应失败。我们的捷径直接从数据中读取每个峰值的高度并猜测宽度。它在所有八个任务上返回了预期的缺陷比率,而没有拟合光谱,因此我们添加了对拟合本身的检查。

捷径。 我们还

查看原文

Overview

AI evaluations help shape which systems people build, adopt, and trust. An evaluation gives a system tasks, checks its answers or actions, and produces a score. Building and maintaining a useful evaluation therefore takes real work: defining tasks that reflect domain expertise, scoring them reliably, and checking that the results support the claims made. When methods, code, and data stay private, that work is harder for others to scrutinize or build on.

Open source offers a means to build stronger, more frequently updated, and more comparable evaluations and the infrastructure around them. Existing tasks, environments, and tools give builders a starting point, so their effort can go to domain expertise and validation. Sharing how an evaluation was built, including what went wrong, lets others find errors, improve it, and reuse it.

The Hugging Face hub is the home for AI evaluation: we host around 3500 eval leaderboards and have seen about a 16X growth in eval datasets on the hub in the past year, to about 17000 datasets. In recent months, we have also incorporated support for agentic abstractions that are relevant to evaluation. For example, Traces that store an agent’s work in an easily reviewable and sharable way; Benchmarks that highlight datasets used to evaluate models with leaderboards; and Environments that show datasets used as agentic RL or evaluation environments.

This guide covers four things:

  • Three eras of evaluation (section 1). Evaluations moved from checking answers, to checking what an agent did, to checking what a team of agents produces. Each step adds software that can change the score.
  • The steps in an agentic evaluation (section 2). We follow one task through eight steps, from the claim to the reported score. The full walkthrough, with commands, is in Appendix A.
  • When a benchmark is wrong (section 3). Errors in tasks and graders are common. We look at how they are found and corrected.
  • What to open strategically and why (section 4). A table sets out, component by component, what to share and what can stay protected.

In the research community, AI evaluation terminology is notoriously inconsistent. The glossary at the end defines each term we use and notes the other names you may come across.

1. Introduction: how evaluation design has changed

AI evaluation design has evolved in three forms as language models have become more capable and able to perform more complex work: question answer, agentic, and teams or swarms. Question-answer benchmarks such as MMLU (2020) and GPQA (2023) measure knowledge and reasoning through the answers models produce. As models became capable of planning and using tools, agentic benchmarks such as SWE-bench and WebArena expanded the scope to resolving software issues and completing tasks on websites. These tasks require evaluation setups that account for the environment in which the system operates and the changes it makes.

Lately, research on multi-agent systems has started to add another dimension: how agents coordinate and what they accomplish together. This includes decentralized swarms, teams managed by an orchestrator, and specialized agents collaborating on scientific work. Figure 1 shows a rough timeline of these three eras of evaluations.

Figure 1. Three types of language model evals. Question-and-answer benchmarks check a response against a key. Agentic benchmarks check what an agent changed in an environment. Team and swarm benchmarks score what a group of agents produced.

We’ll focus on agentic evaluations in this article for two reasons. First, they are becoming increasingly the most prominent type in model release announcements due to high user and enterprise interest in agentic deployment. Second, they offer a useful starting point for understanding how evaluation design affects model performance. Team and swarm evaluations introduce further complexity through interactions between agents, which we leave outside the scope of this guide. Once an agent uses tools to complete a task, each part of the surrounding software can affect its score. For instance, in an audit of Terminal-Bench, researchers kept the model fixed and changed the agent harness. Accuracy varied by up to 29.9 percentage points. To understand differences like that, we examine the anatomy of an agentic evaluation and follow one task from the instructions the agent receives to the checks that determine whether it passed.

The anatomy of an agentic evaluation

Figure 2. The different components of an agentic evaluation.

There are various parts to an agentic evaluation. A task gives the agent its instruction. The agent harness wraps the model and its tools, letting it work inside a pinned environment. During one rollout, the agent attempts the task from start to finish: it may run several commands, inspect their output, and try again before it stops. The evaluation harness runs several rollouts for each task. When a rollout ends, the verifier grades the environment's final state. Each rollout also leaves a trace, and traces and scores together become part of the final published evidence. Each part can be published, inspected, and reused separately.

Why benchmark release decisions matter

Demand for independent evaluation is growing. Policymakers, enterprises, and researchers want evaluations they can verify, and today they mostly cannot: 98.2% of model-benchmark scores are reported by only one party, and researchers have argued that in-house evaluation is not enough.

At the same time, more benchmarks are holding back test items to reduce contamination: questions or solutions entering training data, so scores may reflect prior exposure. Artificial Analysis says 60% of its Intelligence Index v5, announced in October 2026, rests on evaluations with private test sets or held-out answers. Google DeepMind recently piloted double-blind evaluations, where a secure enclave hides an outside evaluator's test prompts from the model provider and the model's weights from the evaluator. While that can reduce contamination, privacy by itself does not guarantee quality, and withholding supporting materials can make expert review harder. We argue that builders can and should still share infrastructure, grading methods, and evidence about task design. Scrutiny depends on giving others a way to question the measurement and correct mistakes, including controlled review where public release is unsuitable.

2. Building an eval: what to reuse, adapt, and validate

With the anatomy in place, we now build one agentic evaluation for a real use case: an agent that analyzes measurements for a physics lab. Rather than starting from scratch, we adapt an open task, so most of our effort goes into domain expertise and validation.

We work through eight steps: define the claim, find a task, run it unchanged, adapt it, check the evaluation, read the traces, report the score, and compare models. We then take stock of what we reused. The full walkthrough is in Appendix A. Figure 3 maps the steps and what each produced in our example.

Figure 3. The eight steps of building an agentic evaluation. The left panel highlights each step in turn, and the right panel shows what it involved in our example. Yellow steps work on the evaluation itself, and orange steps run models and read the results.

Method

Claim. Consider a physics lab that wants an agent to fit peaks in a Raman spectrum. A Raman spectrum is a measurement whose peaks reveal properties of a material, here graphene. The agent's job is ordinary coding: read the data file, fit a curve to each peak, and save the results (Figure 5 in Appendix A). For the purposes of this article, our claim is deliberately narrow: fit the specified peaks, calculate the requested D-to-G ratio (the intensity of one peak relative to another, which can indicate defects in the material; we also call it the defect ratio), and save accurate results consistently. Reviewing a whole lab report would need additional skills and evidence.

Starting task and baseline. We reused the Harbor task format and Terminal-Bench's raman-fitting task. Harbor is an open source evaluation harness, and Terminal-Bench is an open benchmark of tasks that an agent completes in a terminal. We first ran the task's reference solution, which passed, and then ran the original task three times with Terminus-2, a terminal agent harness, and gpt-oss-120b, an open-weight model from OpenAI. Harbor ran inside an HF Job, each rollout used its own HF Sandbox, and Inference Providers supplied the model responses. Reusing the runner and task format let us concentrate on the physics, grading, and review. Only the agent harness needed no new work. Every other component needed checking or new work, which we list part by part at the end of Appendix A.

Adaptation. We built raman-lab: eight synthetic spectra with known parameters and varied noise and defect levels. The adaptation fits three peaks instead of two and reports a defect ratio. We used an agent to help generate the spectra, reviewed them by hand, and wrote new instructions, reference fits, and output checks. The new instructions state the units and parameter definitions that the original left implicit. These eight tasks are a development set, meaning tasks we use while building the evaluation; broader coverage should follow the variation in real measurements.

Checks. Before executing more model runs, we tested the evaluation itself. We ran the reference solution, an agent that does nothing, and a shortcut that skips the required work. The reference solution should pass every task, and the other two should fail. Our shortcut read the height of each peak straight from the data and guessed the widths. It returned the expected defect ratio on all eight tasks without fitting the spectra, so we added checks on the fit itself.

Shortcut. We also tested a shortcut to check how robust the evaluation is against cheating. Our shortcut is a short script that skips the actual fitting. It reads the tallest point of each peak straight from the data, guesses the peak widths, and divides the D height by the G height. Even so, it returned the expected defect ratio on all eight tasks, so a grader that checked only the ratio would have given it full marks. We added checks on each fitted peak, and the final verifier rejects it.

Results

Figure 4. What we learned by measuring different aspects while building the evaluation. (A) Testing the grader with a shortcut showed that a ratio-only check could be fooled. (B) Reading gpt-oss-120b’s traces showed that most of its failures came from stopping early. (C) Running other models showed that the tasks can be solved. Appendix A has the detailed results in Figure 7 (how gpt-oss-120b’s attempts ended), Figure 8 (all six models) and Figure 9 (when each model said it was done).

Baseline. On the original task, gpt-oss-120b passed 0 of 3 rollouts. In two it declared completion before observing relevant output; in the third it could not read the data file, which uses decimal commas that the reference solution converts before loading. The score alone could not tell these failures from an incorrect fit. The traces could.

Traces and score. On the eight adapted tasks, we ran three rollouts per task. The adapted setup passed 11 of 24 rollouts. In 19, the model called mark_task_complete in its first response; 11 of those attempts produced no results file. Several of these began with a script failing because NumPy or SciPy was missing, which the task expects the agent to install. Most failures therefore came from stopping early or from a missing package, and only two of the 13 failed the fit check (Figure 7 in Appendix A). Our pass@3 was 7/8: seven tasks succeeded at least once. Our pass^3 was 1/8: one task succeeded every time. Retries may be acceptable when a person reviews the output. Unattended processing needs consistency, so the second measure matters more. The mean pass rate was 0.46, with a standard error of about 0.11 when rollouts are clustered by task. A repeat run passed 10 of 24. With eight development tasks, we would be cautious about generalizing either result to new spectra.

Model comparison. We then compared six models on the same eight tasks (Figure 4). Several providers can serve the same open-weight model with different quantization and context limits, so we pinned one provider per model. With DeepInfra pinned as the provider, gpt-oss-120b passed 13 of 24 rollouts, compared with 11 of 24 in the earlier run, which used the default provider. Only gpt-oss-120b declared completion in its first response, in 22 of 24 rollouts. None of the other five models did so in any rollout (Figure 9 in Appendix A). The comparison also shows the limits of the development set. Qwen3.8-27B, DeepSeek-V4.1-Flash, and MiniMax-M3.1-Flash passed all 24 raman-lab rollouts, so these tasks cannot rank them. That will take harder tasks.

3. Bitter lessons: when a benchmark is wrong

Our shortcut returned the expected defect ratio without fitting a spectrum. A verifier that checked only the ratio would have given it full marks on all eight tasks. We found it by trying to break the grader with a solution we knew was incomplete, then added checks on the fitted spectrum (Appendix A, Step 5).

The shortcut got the right answer for the wrong reason, like a student who copies the final number without the working. The lesson for us was to test what the output demonstrates. A faster valid method should pass; a method that skips a required skill should not. Domain experts can help set tolerances so the verifier accepts alternative correct fits without accepting work that misses the point of the task.

Such errors are common, and they move scores considerably. A review of agentic benchmarks found that flaws in task setup or reward design can shift measured performance by up to 100% in relative terms.

Public review is essential for correcting benchmarks

Public review can expose errors in instructions and tests that benchmark builders missed. Terminal-Bench 2.1 fixed 28 of its 89 tasks after user reports, including one whose tests expected Spark SQL while its instructions asked for PostgreSQL, and agent rankings stayed stable through the correction.

Access to the evidence also determines how much work an outside audit takes. CritPt keeps its reference solutions private, so the physicists who audited it had to solve the problems themselves before finding errors in 21 of the 56 challenges they reviewed. The authors then released a corrected version. OpenAI's audit of SWE-bench Verified found material issues in 59.4% of the 138 problems it examined, working from tasks and tests that anyone can read. For a builder, outside scrutiny is part of validation: publish what reviewers need to challenge a task, give them a way to report problems, and record what changed.

Similar flaws emerged in SWE-bench Pro. In July 2026 OpenAI estimated that about 30% of SWE-Bench Pro tasks were broken and withdrew its recommendation to adopt it. Benchmark validation needs to continue after release.

Check the claim as well as the code

A consistent score can still measure the wrong thing. Measuring what Matters, a review of 445 LLM benchmarks by 29 expert reviewers, found recurring patterns in tasks and metrics that undermine construct validity: whether the tasks and metrics support claims about the intended capability.

For example, fitting synthetic spectra does not establish that an agent can review lab reports. That may also require recognizing a poor measurement or asking for help. If every task supplies a usable spectrum, the test cannot show whether the agent knows when a fit would be inappropriate.

Harder Than the Task extends this concern to organizational work, where authority, distributed knowledge, and dependencies can decide success. Its authors find that fewer than one quarter of prominent benchmarks claim to cover any such dimension. An agent may need calibration data from another team or permission to replace a measurement, and supplying everything at the outset removes those difficulties. If they matter to the claim, they belong in the evaluation. If they do not, it is enough to say that they remain untested.

Each error is worth a short record: the failed assumption, how it was found, and what changed. The record should also name the affected versions and say whether earlier scores remain comparable.

Contamination vs saturation

The SWE-bench Verified audit described above also found contamination: every frontier model tested could reproduce the reference patch or verbatim problem details for some tasks. SWE-bench's public repositories and wide use exposed tasks to training. The openness that enabled scrutiny of bad tests also made items easier to encounter before evaluation.

However, if contamination is carefully controlled for during training, hiding the test set by itself does not prevent saturation. A study of 60 language model benchmarks found similar saturation in public and private ones, and concluded that hiding test data does not prevent saturation once a benchmark is widely adopted, meaning a good benchmark falls out of use due to saturation without developers being able to learn from and build on it. What did correspond to lower saturation was expert curation and a larger test set.

This leaves a practical release question: what can we expose for review while protecting active test items?

4. Open sourcing an evaluation strategically

Balancing contamination risks against saturation requires a strategic approach to what content is made public. Rather than treating openness as an all-or-nothing decision, benchmark creators can decide what to release part by part, protecting active test tasks from data leakage while still sharing the underlying infrastructure, grading methods, and reference examples that allow external researchers to audit and build upon the evaluation.

Existing benchmarks show a range of openness. ARC-AGI-2 publishes a training set and a 120-task evaluation set, and holds back semi-private and private sets of 120 tasks each. AILuminate keeps its official prompts confidential, publishes its methods and taxonomy, and keeps the underlying evidence for controlled review by authorized auditors and trusted researchers. Terminal-Bench publishes its tasks and marks their files with a canary string asking that they stay out of training corpora. No public reviewer can check a protected item, so whatever stays closed needs a review route of its own.

Table 1 outlines the core considerations of open sourcing an evaluation: what can be open, where it lives on the Hugging Face Hub, and what may stay protected. It has one row for each component in Figure 2, so you can go straight to the part you are about to release.

Part

What can be open

How to share on the Hugging Face Hub

What can stay protected with alternatives for public review

Task

Specifications, categories, construction methods, and a public development split

A dataset repository, with a dataset card recording the source task, changes, license, and limitations

Active test items and answers, kept in a separate gated dataset with manual approval of each access request. Release retired items where permissible.

Environment

Container definition, build files, pinned dependencies, and synthetic fixtures

In the dataset repository, declared as an environment type in the dataset card

Private data, credentials, licensed assets, or dangerous details. Document how public substitutes differ.

Agent harness and tools

Agent-loop code, tool interfaces, adapters, permissions, and budgets

A link to the harness source and its pinned version, kept in the run record with the configuration used. Give the pinned harness version in the notes field of each .eval_results entry, so it’s next to the score

Secrets, private services, and sensitive tool implementations. Provide safe substitutes and authorized inspection.

Rollout and trace

Public-task traces, reviewed excerpts, and analysis code

A dataset or storage bucket. Harbor's trace exporter pushes rollout records, and the Hub's trace viewer opens supported session formats. Link scores to these traces through the source field of each .eval_results entry

Traces exposing tasks, private data, or restricted model behavior. Offer protected analysis and case inspection.

Reference solution

Solution method and code for public examples

The dataset repository, with each task

Solutions that reveal protected items. Let authorized reviewers check them against the task.

Evaluation harness

Rollout orchestration, model configuration, logging, score aggregation, and version records

A run record kept with the dataset: the job script, model and harness configuration, and package versions. Inspect writes its logs straight to an hf://buckets/ path

Credentials and item-identifying configuration. Keep a reviewable record of the exact restricted run.

Verifier

Rubrics, grader code, tolerances, and worked examples

The dataset repository, with each task

Reference answers and logic that reveal protected items. Authorized experts should inspect disputed judgments.

Claims and task design

Intended use, selection rationale, contextual assumptions, and validation evidence

The dataset card. Bundle the task dataset, trace dataset, any harness Space, and the paper into one Hub Collection

Sensitive source material may need redaction.

Results

Scores, uncertainty, costs, exclusions, and limitations, with the model setup and other reproducibility details

Register the dataset as a Hub Benchmark with an eval.yaml. Scores go in each model repo's .eval_results/ folder, opened as a pull request, with source linking to the trace dataset. Optionally, also convert them to the EEE schema

Task-revealing detail in results. Publish safe summaries and arrange review of the underlying evidence.

Corrections

A correction history that names the affected versions

Pull requests and discussions on the repository, with a change log in the card

The protected example behind a correction. Still record which versions it affected.

Table 1. What to open, how to share it on the Hugging Face Hub, and what can stay protected, for each evaluation component.

Our own example follows this approach. We released raman-lab as a dataset on the Hub. It includes eight synthetic graphene spectra in Harbor task format, each with its environment, reference fit, verifier, and tolerances. The raw rollouts behind our results are shared as a separate dataset including Harbor trial folders with trajectories and verifier output for all six models. The spectrum generator, analysis code, and results are in a companion GitHub repository, so both the agent harness and the evaluation harness can be inspected and rerun.

In a more sensitive domain, a clinical evaluation could open its environment definition, harness, tool interfaces, and grading framework, with synthetic cases for development use. Patient records and reference answers would stay under controlled access while authorized reviewers inspect disputed judgments. Each restriction should come with a condition for revisiting it.

Strategic open sourcing checklist

We recommend a short checklist, drawn in part from the more comprehensive Agentic Benchmark Checklist. Before releasing or retiring an evaluation, check that another builder can:

  • Identify what it measures, its intended use, and the conditions it leaves out.
  • Find the reusable artifacts, their licenses and versions, and a way to report problems.
  • See how a do-nothing agent scores and, where possible, how a human expert does.
  • Read each score with its uncertainty, and with guidance on what known flaws mean for it.
  • Learn which flaws were found, how they were handled, and how far they could move the results.
  • Know how and when tasks will be refreshed to limit contamination and overfitting.

These release decisions also determine what remains useful when the benchmark no longer separates the systems it was built to compare.

5. Conclusion: giving the evaluation a useful afterlife

Benchmarks have a lifecycle. They are built, adopted, optimized against, and in time stop separating the systems they were made to compare. The saturation study from section 3 rated 29 of its 60 language model benchmarks as highly saturated, with rates rising with age. Saturation is not a failure in itself, since it can mean the capability has arrived.

What a benchmark leaves behind depends on how open it was. Publishing only scores leaves future builders little they can run or adapt. When the tasks, environments, verifiers, and traces are open, each keeps working after the leaderboard stops. A solved task becomes a regression check for a new harness. Its environment and verifier can seed a harder successor. Open benchmarks also get repaired and reissued: MMLU's questions became MMLU-Redux, and Terminal-Bench 2.0 became 2.1 through community contributions. Our own walkthrough is an afterlife of this kind: raman-lab began as one task in a benchmark built for general terminal work.

That is the promise of building evaluations openly. The work that goes into an evaluation can outlive the benchmark itself, giving others a foundation to ask new questions, test new capabilities, and improve on what came before. The more we share what we build and learn, the less each new evaluation has to start from scratch.

If you’re curious what this looks like in practice, then follow our practical example.

Appendix A. Practical example: agentic deployment in a physics lab

Consider a physics lab that wants an agent to fit peaks in a Raman spectrum. Raman spectroscopy shines a laser on a sample and measures shifts in the frequency of the scattered light; the resulting peaks reveal properties of the material. For graphene, an atom-thick sheet of carbon, the G and 2D peaks near 1580 and 2700 cm⁻¹ identify the number of layers. A third peak, D, appears when the lattice is disordered, and its intensity relative to G can indicate defects. Figure 5 shows the setup.

Figure 5. Our intended setup. A laser lights a graphene sample, and a spectrometer records how the scattered light has shifted. The agent receives that spectrum as a file, fits a curve to each peak, and saves the fitted values. The verifier checks the saved values against reference fits. The curve shown is a sketch, not measured data.

We start by building on a task from an open benchmark. Terminal-Bench 2 already includes raman-fitting: fit a Lorentzian curve, a mathematical peak shape, to each of those two peaks and save eight parameters to /app/results.json. That gives us a runnable starting point for a narrower lab evaluation. We run these on the open source evaluation harness, Harbor. Table 2 lists what the task provides and what to check before reusing each part.

Part

In raman-fitting

Check before reuse

Task

instruction.md asks for two peak fits saved to /app/results.json.

Are units, parameter definitions, and the output format explicit?

Environment

A pinned container image holding the spectrum; task.toml sets resources and limits.

Which packages must the agent install? Are resources and permissions suitable?

Agent harness and tools

Terminus-2 connects the model to shell commands.

Can the agent inspect what its commands produced?

Rollout and trace

One attempt, recorded in agent/trajectory.json.

Does the record show what happened before the agent stopped?

Reference solution

solution/solve.sh runs the known fit.

Does it pass in the supplied environment?

Evaluation harness

Harbor runs rollouts and collects scores and traces.

Are versions and execution settings recorded?

Verifier

tests/test.sh checks eight fitted values against reference tolerances.

Does it grade the saved file and accept valid alternative fits?

Table 2. What to check before reusing each component.

Step 1. Define the claim

A good place to start is a claim: a plain statement of what the agent can do, which the evaluation is meant to support. "The agent can fit a Raman spectrum" is a claim, and so is "the agent can process a lab report." From there, you can break the claim into smaller skills that can be checked one at a time, such as reading the file, locating the peaks, and writing the output.

For the purposes of this article, our claim is deliberately narrow: fit the specified peaks, calculate the requested D-to-G ratio, and save accurate results consistently. Reviewing a whole lab report would need additional skills and evidence.

Domain experts can help here. We suggest asking them to choose realistic noise levels, tolerances, and available software, then score examples independently and investigate disagreements. From there, you can break the claim into parts you can check and map each part to what each task tests.

Step 2. Find a starting task

For your own domain, the Hugging Face Hub is a good place to look, under its Benchmark and Environment dataset types. When you find a candidate, it is worth inspecting its instructions, environment, reference solution, and tests. Even a task that models already solve can provide useful infrastructure. From raman-fitting we inherit a working task format. It has only one spectrum, though, and a lab's measurements vary, so we expand on this task further as described in Step 4.

Step 3. Run the task unchanged

Before running any model, it helps to run the reference solution (also called oracle). If it fails, the fault lies in the task, environment, or verifier, and needs to be fixed before you read anything into model failures. After that, you can run the model several times without changing the setup.

We ran Harbor inside an HF Job, which supplied compute for the runner. Each rollout used its own HF Sandbox for commands and files, and Inference Providers supplied the model responses. With Harbor's hf-sandbox extra installed and HF_TOKEN set, these commands test the oracle, then run three rollouts with Terminus-2, a terminal agent harness, and gpt-oss-120b, an open-weight model from OpenAI.

harbor run -t terminal-bench/raman-fitting \
  -a oracle -e hf-sandbox

OPENAI_API_KEY="$HF_TOKEN" harbor run \
  -t terminal-bench/raman-fitting -k 3 -e hf-sandbox \
  -a terminus-2 -m openai/openai/gpt-oss-120b \
  --ak api_base=https://router.huggingface.co/v1

In these commands, -t names the task, -a the agent, -e the environment, -m the model, and -k the number of rollouts per task.

The model passed 0 of 3 rollouts. In two it declared completion before observing relevant output; in the third it could not read the data file, which uses decimal commas that the reference solution converts before loading. The score alone could not tell these failures from an incorrect fit. The traces could.

Step 4. Adapt the task

We built raman-lab: eight synthetic spectra with known parameters and varied noise and defect levels. The adaptation fits three peaks instead of two and reports a defect ratio. We used an agent to help generate the spectra, reviewed them by hand, and wrote new instructions, reference fits, and output checks. These eight tasks are a development set, meaning tasks we use while building the evaluation; broader coverage should follow the variation in real measurements.

The D-to-G intensity ratio can indicate defects, but its interpretation depends on the laser excitation energy and the disorder regime. An evaluation asking for a "defect ratio" must say which peaks, whether intensity means height or integrated area, and how the result is checked.

The original instruction.md shows why such definitions matter: it asks for x0, gamma, amplitude, and offset without defining them or their units. The reference solution treats them as peak center, half-width at half-maximum, height above background, and background level, and converts the x-axis from nanometres to Raman shift. We put choices like these into the adapted instructions, so that the verifier's requirements are visible. Figure 6 shows the two files side by side.

Figure 6. The instruction.md files for raman-fitting and raman-lab, side by side. The highlighted additions cover the new parts of the claim: the D peak, the defect ratio, and both in the saved results. The remaining part, handling varied measurements, lives in the data: all eight raman-lab tasks share this instruction, and only the spectrum, with its noise and defect level, changes.

The verifier is guided by three rules:

  • Grade what the agent produced: inspect the saved output, not its claim to have finished. τ-bench does this by comparing the final database state with an annotated goal state.
  • State every checked fact in the instruction, including units, parameter conventions, tolerances, and required fields.
  • Generate synthetic data from known parameters so the reference answer is available, then review whether the examples represent the intended problem.

The shared format can stay as it is while the data and checks change. This command creates a task scaffold:

harbor task init my-org/task-01 -p datasets/my-evals

Step 5. Check the evaluation

Before executing more model runs, test the evaluation itself. Here datasets/my-evals contains the adapted tasks.

harbor run -p datasets/my-evals -a oracle -e hf-sandbox
harbor run -p datasets/my-evals -a nop -e hf-sandbox
  • The oracle should pass every task, i.e., the known solution must work in the supplied environment.
  • The no-op agent does nothing, so it should fail every task. A blank exam paper should not pass. A review of agentic benchmarks found one that counted empty responses as successes.
  • A shortcut that skips required work should fail. One way to test this is with a deliberately lazy solution, such as one that outputs a plausible answer without doing the work, to see whether the verifier accepts it. Also try plausible wrong answers and alternative correct methods, to catch both false passes and false failures.

Our shortcut returned the expected defect ratio on all eight tasks without fitting the spectra, so we added checks on the fit itself. Section 3 explains what that means for verifier design.

Step 6. Run it and read the traces

It is helpful to read both successful and failed rollouts. Harbor records messages, tool calls, and observations in agent/trajectory.json using ATIF, a shared trace format. Grouping failures by cause makes the patterns easier to see: parsing the data, executing a tool, stopping too early, or grading the output.

The adapted setup passed 11 of 24 rollouts. In 19, the model called mark_task_complete in its first response; 11 of those attempts produced no results file.

Figure 7. On 19 of 24 attempts, the agent called mark_task_complete in its first response. Eleven produced no results file, seven passed, and one failed the fit check. Of the five remaining attempts, four passed and one failed the fit check.

Several missing-file failures began with missing NumPy or SciPy. The published task expects the agent to install them; its reference solution starts with a pip install. A lab evaluation of fitting with supplied tools could install and pin them in advance. Dependencies also drift: Terminal-Bench 2.1 repaired nine tasks whose external dependencies had changed after release.

Preinstalling changes the evaluation condition, so keep the model, harness, tasks, and rollout count fixed when comparing the two setups.

Finally, we adapt the setup, repeat the checks in step 5, and rerun. Harbor's trace exporter can prepare records for sharing on the Hub. It is worth reviewing them for protected content first, and keeping both successes and failures so others can investigate the result.

Step 7. Report the score

The right metric depends on the decision you need to make:

  • pass@k asks whether at least one of k rollouts succeeds. Our pass@3 was 7/8: seven tasks succeeded at least once.
  • pass^k asks whether all k rollouts succeed. Our pass^3 was 1/8: one task succeeded every time.

Retries may be acceptable when a person reviews the output. Unattended processing needs consistency, so the second measure matters more.

A mean is more useful with its uncertainty beside it. Rollouts of the same spectrum share its difficulty, so they are not independent, and the standard error should be clustered by task. Clustering gave a mean success rate of 0.46 with a standard error of about 0.11. A repeat run passed 10 of 24 rollouts, compared with 11 of 24 in the first run. With only eight development tasks, we would be cautious about generalizing either result to new spectra.

Harbor writes a result.json per rollout, which it calls a trial. We group these by task, check that each task has three rollouts, and record errors or exclusions. Reporting tokens, elapsed time, and tool calls beside the score lets readers compare setups that reach similar results at different costs.

Step 8. Compare models

When a single model fails a task, that run alone cannot tell us what went wrong. It could be the model, the agent harness, or the evaluation itself. Running more models on the same tasks helps narrow the possibilities. When several models fail the same task, inspect the instructions, environment, and verifier for a shared cause. When one model repeatedly fails in a distinctive way, compare its traces with successful attempts.

Inference Providers serves many open-weight models through the same router, so each new model is one more value for -m. Several providers can serve the same model with different quantization and context limits, so it helps to pin one with a suffix such as :deepinfra and record it beside the score.

OPENAI_API_KEY="$HF_TOKEN" harbor run -p datasets/my-evals -k 3 \
  -e hf-sandbox -a terminus-2 -m openai/Qwen/Qwen3.8-27B:deepinfra \
  --ak api_base=https://router.huggingface.co/v1

Figure 8 shows the raman-lab results for each model.

Figure 8. raman-lab results per model, with pass@3, pass^3, and the mean pass rate with its clustered standard error. Select a square to inspect that rollout.

The comparison makes one pattern in gpt-oss-120b clearer: it often declares completion before seeing command output. In this separate run with DeepInfra pinned as the provider, it called mark_task_complete in its first response in 22 of 24 rollouts, while none of the other five models did so (Figure 9). The Step 6 run used the router's default provider and recorded 19 of 24 such early completions. It passed 11 of 24 rollouts, compared with 13 of 24 in the DeepInfra run. Both counts use the same test: whether the model called mark_task_complete in its first response.

Figure 9. raman-lab rollout outcomes by when the agent declared completion. Left: the agent observed command output first. Right: it called mark_task_complete in its first response.

The comparison also shows the limits of the development set. Qwen3.8-27B, DeepSeek-V4.1-Flash, and MiniMax-M3.1-Flash passed all 24 raman-lab rollouts, so these tasks cannot rank them. That will take harder tasks.

Inference for all six models cost under $5 at the router's list prices. The median raman-lab rollout used about 6,000 tokens for gpt-oss-120b and about 90,000 for MiniMax-M3.1-Flash. The companion repository holds the traces, the per-rollout results, and the scripts to add another model.

How we reused existing open components

Reusing the runner and task format let us concentrate on the physics, grading, and review. We could reuse them because Harbor and Terminal-Bench publish their code and tasks.

  • Task: We reused the Harbor task format and Terminal-Bench's raman-fitting task. The new work was a narrower claim, skill coverage, and instructions for raman-lab.

  • Task data: The original spectrum served as a starting example. We built a generator for eight spectra with known parameters and reviewed them manually.

  • Environment: Harbor's environment support and HF Sandbox ran the tasks. We checked package requirements and diagnosed missing dependencies.

  • Agent harness and tools: Terminus-2 with shell access, with Inference Providers for model responses. This part needed no new work.

  • Rollout and trace: Harbor's rollout records and ATIF captured each run. We reviewed successes and failures and grouped them by cause.

  • Reference solution: We kept the convention of running solution/solve.sh and wrote a reference fit for each new task.

  • Evaluation harness: Harbor ran in an HF Job. We configured the run and grouped results by task.

  • Verifier: We reused the tests/test.sh entry point and its way of writing the score to a file. The new work was fit and ratio checks, plus tests for shortcuts and incorrect outputs.

References

Glossary

Agent harness: The software around a model that turns its responses into actions, such as shell commands. Terminus-2 is the agent harness in this post.

Agentic evaluation: An evaluation that scores what an agent changed in an environment, not only the text it returned.

ATIF: Agent Trajectory Interchange Format, a shared format for recording an agent's messages, tool calls and observations.

Canary string: A unique marker in benchmark files that lets model trainers find and exclude them from training data.

Clustered standard error: A standard error that treats rollouts of the same task as related, which gives a wider and more honest margin than treating each rollout as independent.

Container image: A fixed package of operating system, files and software, so every rollout starts from the same environment.

Contamination: Test questions or solutions appearing in training data, so a score may reflect memory rather than skill.

Context limit: The maximum amount of text, counted in tokens, that a model can read in one request.

D, G and 2D peaks: Features in graphene's Raman spectrum. G and 2D indicate the number of layers, and D appears when the carbon lattice has defects.

Defect ratio: The intensity of the D peak divided by that of the G peak, used to indicate defects in graphene. Also called the D-to-G ratio.

Development set: Tasks used while building and debugging an evaluation, as opposed to a held-back test set used for final scores.

Environment: The software, files and resources an agent works in during a task.

Evaluation harness: The software that runs tasks, repeats rollouts, collects traces and aggregates scores. Harbor is the evaluation harness in this post.

Gated dataset: A Hugging Face dataset that can be downloaded only after the owner approves an access request.

Harbor: An open-source evaluation harness for agentic tasks.

HF Job: Compute on Hugging Face that runs a script. Here it runs Harbor.

HF Sandbox: An isolated Hugging Face environment where a single rollout runs its commands and stores its files.

Held-out test set: Test items kept private so that models cannot be trained or tuned on them.

Inference Providers: A Hugging Face service that routes model requests to third-party providers through one API, called the router.

Lorentzian: A mathematical curve commonly used to model the shape of a spectral peak.

No-op agent: An agent that does nothing. A sound evaluation gives it a score of zero.

Open-weight model: A model whose trained parameters are published for anyone to download and run.

Oracle: An agent that runs the reference solution, used to check that every task can be solved in the supplied environment.

pass@k: The share of tasks where at least one of k rollouts succeeds.

pass^k: The share of tasks where all k rollouts succeed.

Pinning: Fixing the exact versions of software, images or model providers so a run can be repeated.

Quantization: Storing model weights at lower numerical precision to run faster and cheaper, which can change outputs slightly.

Raman shift: The difference in frequency between the laser light and the light a sample scatters, measured in cm⁻¹.

Raman spectroscopy: A technique that shines a laser on a sample and measures shifts in the scattered light to identify properties of the material.

Reference solution: A known correct way to complete a task, stored with the task.

Rollout: One attempt by an agent at one task. Harbor calls it a trial.

Run record: A record of what ran behind a score: the exact task, environment, model configuration and code versions.

Saturation: The point where most models reach top scores on a benchmark, so it no longer separates them.

Synthetic data: Data generated from known parameters, so the correct answer is known in advance.

Terminal-Bench: An open benchmark of tasks that an agent completes in a computer terminal.

Terminus-2: The terminal agent harness used in this post. It connects the model to shell commands.

Token: The unit of text a model reads and writes, roughly a short word or part of a word.

Trace: The full record of a rollout: the model's messages, its tool calls and what each command returned. Also called a trajectory.

Verifier: The code that grades a rollout by checking the saved output or the environment's final state.

原文版权归 Hugging Face Blog 及原作者所有,本站转载仅供阅读。如需删除,请联系 support@aisa.one。