agentabstain-ar
收藏资源简介:
AgentAbstain 是一个用于评估工具使用大语言模型代理“何时不该行动”能力的配对任务基准。该数据集包含 263 个任务对,每个对包含一个“应该执行”任务和一个“应该弃权”任务,两者仅在指令、环境状态或工具集的单个受控扰动上有所不同,因此任何始终执行或始终弃权的策略都无法获得超过 50% 的配对准确率。数据集覆盖 42 个可执行的 MCP 沙箱环境,并基于 8 种代理弃权场景构建:缺少关键参数(39 对)、模糊行动规范(30 对)、冲突约束(32 对)、高风险行动(31 对)、工具能力不足(34 对)、关键工具故障(34 对)、冲突证据(30 对)、紧急风险发现(33 对)。其中 131 对为操作型(状态改变),132 对为信息型(只读)。数据以 JSON Lines 格式提供(tasks.jsonl),共 526 行,每行包含字段:pair_id、category、task_type(act/abstain)、action_type(operational/informational)、instruction、system_prompt、critical_actions、execution_dag、abstention_trigger 和 environments。数据集可通过 Hugging Face Datasets 加载,也可通过快照下载完整目录(包含 tasks/ 和 environments/ 文件夹)供运行时使用。评估结合确定性提交检查(对工具调用轨迹)和 LLM 判断(对终端响应)。所有任务和环境由 AbstainGen 流水线生成,经确定性重放和跨族批评家验证,并由三位独立标注员评估,94-98% 的样本被评定为设计良好。数据集采用 CC BY 4.0 许可证。
AgentAbstain is a benchmark for evaluating the ability of tool-using large language model agents to know when not to act, consisting of paired tasks. The dataset contains 263 task pairs, each with a should act task and a should abstain task that differ only in a single controlled perturbation of instruction, environment state, or toolset, ensuring that any always-act or always-abstain strategy cannot achieve more than 50% pair accuracy. It covers 42 executable MCP sandbox environments and is built on 8 agent abstention scenarios: missing critical parameters (39 pairs), ambiguous action specification (30 pairs), conflicting constraints (32 pairs), high-risk actions (31 pairs), insufficient tool capability (34 pairs), critical tool failure (34 pairs), conflicting evidence (30 pairs), and urgent risk discovery (33 pairs). Among them, 131 pairs are operational (state-changing) and 132 pairs are informational (read-only). The data is provided in JSON Lines format (tasks.jsonl), with 526 lines, each containing fields: pair_id, category, task_type (act/abstain), action_type (operational/informational), instruction, system_prompt, critical_actions, execution_dag, abstention_trigger, and environments. The dataset can be loaded via Hugging Face Datasets or downloaded as a snapshot of the full directory (including tasks/ and environments/ folders) for runtime use. Evaluation combines deterministic submission checks (for tool call traces) and LLM judgments (for terminal responses). All tasks and environments are generated by the AbstainGen pipeline, verified through deterministic replay and cross-family critic validation, and assessed by three independent annotators, with 94-98% of samples rated as well-designed. The dataset is licensed under CC BY 4.0.
AgentAbstain 数据集详情
数据集概述
AgentAbstain 是一个面向智能体弃权(Agentic Abstention) 能力的配对任务基准数据集,旨在评估使用工具的LLM智能体能否在恰当情境下识别出"不应当行动"的时机。数据集包含 263个任务对,分布在 42个可执行的MCP沙箱环境中,覆盖了基于智能体原生视角构建的 8类弃权场景。
数据集结构
核心设计
每个应当行动(should-act)任务都配有对应的应当弃权(should-abstain)变体,两者之间仅通过单一受控扰动(对指令、环境状态或工具集进行改动)来区分。这一设计确保任何"始终行动"或"始终拒绝"的策略在配对准确率上都无法超过50%。
文件组织
tasks.jsonl 526行数据(263对 × act/abstain变体) tasks/ 任务原生目录结构,供运行时直接使用 environments/ 42个可执行MCP沙箱环境
tasks.jsonl 字段说明
| 字段 | 描述 |
|---|---|
pair_id |
任务对标识,格式为 <category>/<task_id> |
category |
8类弃权场景之一 |
task_type |
act(行动)或 abstain(弃权) |
action_type |
operational(改变状态)或 informational(只读) |
instruction |
给智能体的用户指令 |
system_prompt |
每个任务专属的系统提示词 |
critical_actions |
提交级工具调用(预期副作用) |
execution_dag |
act变体的参考工具调用DAG |
abstention_trigger |
abstain变体的扰动记录(改了什么、改在哪、为何行动是错误的) |
environments |
该变体所挂载的沙箱环境 |
8类弃权场景分布
| 场景 | 任务对数 |
|---|---|
| S1 缺失关键参数 | 39 |
| S2 行动规格模糊 | 30 |
| S3 约束冲突 | 32 |
| S4 高影响行动 | 31 |
| S5 工具能力不足 | 34 |
| S6 关键工具故障 | 34 |
| S7 证据矛盾 | 30 |
| S8 突发风险发现 | 33 |
其中操作型任务131对,信息型任务132对。
评估结果
在4种智能体框架下的17个前沿LLM中,最佳智能体的配对准确率仅为 59.5%,表明现有模型在智能体弃权能力上仍有较大提升空间。
使用方式
可通过 load_dataset("antiquality/agentabstain", split="test") 加载任务元数据;运行可执行基准测试需配合代码仓库使用。评估方法结合了工具调用轨迹的确定性提交检查与对终端响应的LLM评判器。
质量保障与更新
所有任务和环境均由AbstainGen流水线生成,经确定性回放和跨家族批评者验证;3名独立标注者对100个抽样任务中94%至98%的任务评为设计良好。生成代码特意不予公开,以防止大规模合成与基准匹配的训练数据,但可按需私下生成新任务实例用于未来评估轮次。
许可证
数据集采用 CC BY 4.0 许可证,配套代码以MIT许可证发布。





