krystal7 commited on
Commit
c08de33
Β·
verified Β·
1 Parent(s): 954e93a

Fix ATBench-Pro Viewer with lossless 918-trajectory preview and released-data card

Browse files
Files changed (2) hide show
  1. README.md +115 -17
  2. data/atbench-pro.jsonl.gz +3 -0
README.md CHANGED
@@ -9,6 +9,29 @@ tags:
9
  - long-horizon
10
  - safety-evaluation
11
  - risk-taxonomy
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
12
  ---
13
 
14
  <p align="center">
@@ -20,12 +43,12 @@ tags:
20
  πŸ€— <a href="https://huggingface.co/collections/AI45Research/agentdog2-6b09556a028a2ce10c53f2fe"><b>Models and Datasets</b></a> &nbsp; | &nbsp;
21
  🌐 <a href="https://mjc-ma-01.github.io/AgentDoG/v2_0_dark/"><b>Project Page</b></a> &nbsp; | &nbsp;
22
  🎬 <a href="https://mjc-ma-01.github.io/AgentDoG/v2_0_dark/#demos"><b>Demos</b></a> &nbsp; | &nbsp;
23
- πŸš€ <a href="#usage-and-data-format"><b>Usage</b></a>
24
  </p>
25
 
26
  # ATBench-Pro: A Long-Horizon Agent Trajectory Benchmark for Safety Evaluation and Diagnosis
27
 
28
- > This repository currently provides the benchmark introduction and documentation only. The actual dataset is not yet available for download.
29
 
30
  **Part of [AgentDoG2: An Efficient Alignment Framework for Emergent Risk in Long-Horizon Agent Tasks](https://mjc-ma-01.github.io/AgentDoG/v2_0_dark/)**
31
 
@@ -51,14 +74,30 @@ ATBench-Pro follows the trajectory-level evaluation formulation of [ATBench](htt
51
 
52
  **AgentDoG2 project overview, reproduced from the manuscript's main figure.** The three panels compare (a) unsafe F1 and API inference cost, (b) inference latency and relative speedups, and (c) fine-grained diagnosis on **ATBench**. Cost estimates prioritize official API prices and use DeepInfra or OpenRouter rates for the base models of small open-source models and their derivatives. This figure provides project context; the **ATBench-Pro** results appear below in [Reported Model Results](#reported-model-results).
53
 
54
- ## Release Status
55
 
56
- This repository currently provides the dataset description for the **updated AgentDoG2 manuscript**. Dataset files, a finalized release schema, configuration and split names, loading instructions, and dataset-specific license terms are in preparation. The statistics below describe the manuscript snapshot; they do not imply that a downloadable dataset release is already available.
57
 
58
- Follow the [AgentDoG2 collection](https://huggingface.co/collections/AI45Research/agentdog2-6b09556a028a2ce10c53f2fe) and [GitHub repository](https://github.com/AI45Lab/AgentDoG) for release updates.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
59
 
60
  ## Benchmark Overview
61
 
 
 
62
  | Benchmark | Evaluation unit | Cases | Mean tool calls per trajectory | Mean tokens per trajectory |
63
  | --- | --- | ---: | ---: | ---: |
64
  | **ATBench-Pro** | Complete long-horizon trajectory | **1,000** | **48.98** | **57.51k** |
@@ -92,7 +131,7 @@ Given a **complete multi-step trajectory**, the evaluator predicts a binary safe
92
 
93
  The full AgentDoG2 taxonomy contains **18 risk sources, 21 failure modes, and 11 real-world harm categories**.
94
 
95
- For unsafe trajectories, primary labels follow the causal order **Risk Source β†’ Failure Mode β†’ Real-World Harm**. Safe trajectories carry no failure-mode or harm labels. An attacker-planted risk source that the agent verifies and rejects does not by itself make the trajectory unsafe. Action status and harm status are tracked independently: an attempted or blocked action must not be conflated with executed harm.
96
 
97
  <p align="center">
98
  <img src="./figs/taxonomy.png" alt="AgentDoG2 three-dimensional safety taxonomy: 18 risk sources, 21 failure modes, and 11 harm categories" width="100%">
@@ -102,7 +141,7 @@ For unsafe trajectories, primary labels follow the causal order **Risk Source
102
 
103
  ## Representative Long-Horizon Cases
104
 
105
- The following **illustrative summaries** are drawn from the manuscript's representative cases. They explain the evaluation task; they are not downloadable records or measured guardrail outputs.
106
 
107
  | Scenario | Trajectory pattern | Evidence required beyond an isolated action |
108
  | --- | --- | --- |
@@ -119,9 +158,9 @@ The manuscript describes a sub-label-guided synthesis process with **56 risk-sou
119
  2. **Structural and horizon checks:** candidates are checked for valid tool schemas, consistent tool-call/observation ordering, complete traces, and sufficient execution length.
120
  3. **Naturalness and leakage screening:** degenerate repetition, out-of-character instruction leaks, and private scenario metadata leaking into actor-visible context are filtered.
121
  4. **Consistency review:** cross-model trajectory screening identifies ambiguous cases for further review.
122
- 5. **Release auditing:** the manuscript defines an expert-audit protocol for final binary and primary taxonomy labels. Final audit and inter-annotator agreement summaries are pending the benchmark release; this card does not claim a finalized human-gold snapshot.
123
 
124
- Benchmark construction maintains source-level separation from training data. The release documentation will specify the actual files, deduplication boundaries, and final audit results.
125
 
126
  ## Reported Model Results
127
 
@@ -137,28 +176,85 @@ The table below reproduces the **base AgentDoG2 generative guard** results on AT
137
 
138
  Fine-grained diagnosis is evaluated on **unsafe trajectories**. Its mean is the unweighted accuracy average across Risk Source, Failure Mode, and Real-World Harm. Model performance on a fixed benchmark does not establish safety in every deployment environment.
139
 
140
- For cross-benchmark results, cost/latency comparisons and the separate single-pass Jev evaluation, see the [AgentDoG2 model card](https://huggingface.co/AI45Research/AgentDoG2-Qwen3.5-4B#evaluation) and [AgentDoG-Jev fine-grained model card](https://huggingface.co/AI45Research/AgentDoG-Jev-FG-Qwen3.5-4B#evaluation). Their model weights are available independently of this forthcoming dataset release.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
141
 
142
  ## Usage and Data Format
143
 
144
- ATBench-Pro is intended for **held-out trajectory safety evaluation and diagnosis**. It is not a substitute for pre-execution action monitoring.
145
 
146
- The downloadable files and schema are not yet included in this documentation preview. A verified `datasets.load_dataset` example, actual split/configuration names, field definitions, label encoding, and a sanitized record will be provided when dataset artifacts are released. No loader command or field schema is asserted before those artifacts are available.
 
 
 
 
 
 
 
 
147
 
148
- For the current method and result overview, see the [benchmark section](https://mjc-ma-01.github.io/AgentDoG/v2_0_dark/#benchmarks) and [AgentDoG source repository](https://github.com/AI45Lab/AgentDoG).
 
 
149
 
150
  ## Limitations and Intended Use
151
 
152
  - The benchmark covers specified long-horizon risks and cannot exhaust all tools, environments, permissions, or failure patterns encountered in deployment.
153
  - Primary diagnostic labels summarize a trajectory; they do not enumerate every secondary carrier or downstream effect.
154
  - A risk source, an unsafe action, and realized harm are distinct. Evaluations should retain those distinctions.
155
- - Synthetic trajectories and automated screening can introduce modeling artifacts. Final release auditing and agreement statistics are not yet published.
156
- - The reported snapshot may change after release review. Do not treat the manuscript count as a guarantee of final packaged split sizes.
157
- - Safety-evaluation content can depict adversarial or unsafe behavior. Dataset-specific access, redistribution, privacy, and license terms will be documented with the release rather than inherited automatically from older benchmarks.
158
 
159
  ## License and Release Information
160
 
161
- Dataset-specific license terms, access conditions and redistribution notices will accompany the data release. The licenses of AgentDoG model weights, source code and earlier ATBench datasets do not establish the license of this forthcoming dataset.
162
 
163
  ## Citation
164
 
@@ -167,3 +263,5 @@ This benchmark is introduced in **AgentDoG2: An Efficient Alignment Framework fo
167
  ## Contact
168
 
169
  Please use [GitHub Issues](https://github.com/AI45Lab/AgentDoG/issues) for questions, suspected benchmark errors, or release updates.
 
 
 
9
  - long-horizon
10
  - safety-evaluation
11
  - risk-taxonomy
12
+ configs:
13
+ - config_name: default
14
+ default: true
15
+ data_files:
16
+ - split: benchmark
17
+ path: data/atbench-pro.jsonl.gz
18
+ dataset_info:
19
+ - config_name: default
20
+ features:
21
+ - name: id
22
+ dtype: int64
23
+ - name: label
24
+ dtype: int64
25
+ - name: risk_source
26
+ dtype: string
27
+ - name: failure_mode
28
+ dtype: string
29
+ - name: real_world_harm
30
+ dtype: string
31
+ - name: tool_used
32
+ dtype: string
33
+ - name: contents
34
+ dtype: string
35
  ---
36
 
37
  <p align="center">
 
43
  πŸ€— <a href="https://huggingface.co/collections/AI45Research/agentdog2-6b09556a028a2ce10c53f2fe"><b>Models and Datasets</b></a> &nbsp; | &nbsp;
44
  🌐 <a href="https://mjc-ma-01.github.io/AgentDoG/v2_0_dark/"><b>Project Page</b></a> &nbsp; | &nbsp;
45
  🎬 <a href="https://mjc-ma-01.github.io/AgentDoG/v2_0_dark/#demos"><b>Demos</b></a> &nbsp; | &nbsp;
46
+ πŸš€ <a href="#getting-started"><b>Getting Started</b></a>
47
  </p>
48
 
49
  # ATBench-Pro: A Long-Horizon Agent Trajectory Benchmark for Safety Evaluation and Diagnosis
50
 
51
+ > **Dataset ready β€” 918 released trajectories.** Download the original JSON or browse the same records in the HF Dataset Viewer. The released file contains **599 safe** and **319 unsafe** trajectories.
52
 
53
  **Part of [AgentDoG2: An Efficient Alignment Framework for Emergent Risk in Long-Horizon Agent Tasks](https://mjc-ma-01.github.io/AgentDoG/v2_0_dark/)**
54
 
 
74
 
75
  **AgentDoG2 project overview, reproduced from the manuscript's main figure.** The three panels compare (a) unsafe F1 and API inference cost, (b) inference latency and relative speedups, and (c) fine-grained diagnosis on **ATBench**. Cost estimates prioritize official API prices and use DeepInfra or OpenRouter rates for the base models of small open-source models and their derivatives. This figure provides project context; the **ATBench-Pro** results appear below in [Reported Model Results](#reported-model-results).
76
 
77
+ ## Released Data
78
 
79
+ The dataset is uploaded and available. The original [`ATBench-Pro.json`](https://huggingface.co/datasets/AI45Research/ATBench-Pro/resolve/main/ATBench-Pro.json) contains **918 trajectories** and is **195,674,641 bytes**. It is preserved without changing its records or annotations.
80
 
81
+ | Resource | Contents | Link |
82
+ | --- | --- | --- |
83
+ | Original dataset | 918 records with native nested tool and trajectory lists | [Download JSON](https://huggingface.co/datasets/AI45Research/ATBench-Pro/resolve/main/ATBench-Pro.json) |
84
+ | Viewer and loading mirror | The same 918 records; `tool_used` and `contents` are lossless JSON strings | [Download JSONL.gz](https://huggingface.co/datasets/AI45Research/ATBench-Pro/resolve/main/data/atbench-pro.jsonl.gz) |
85
+ | HF Dataset Viewer | Configuration `default`, split `test` | [Browse trajectories](https://huggingface.co/datasets/AI45Research/ATBench-Pro/viewer/default/test) |
86
+
87
+ | Released label | Meaning | Trajectories |
88
+ | --- | --- | ---: |
89
+ | `0` | Safe | 599 |
90
+ | `1` | Unsafe | 319 |
91
+ | Total | | **918** |
92
+
93
+ The preview mirror preserves every record and all seven fields. Only the two nested-list fields are serialized as JSON strings to provide a consistent tabular schema; `json.loads` restores their original lists. See [Getting Started](#getting-started) for both loading methods.
94
+
95
+ The manuscript comparison tables below describe a **1,000-case evaluation snapshot**. That reported snapshot is distinct from the **918 records in the currently downloadable release**; the paper's result values are reproduced unchanged.
96
 
97
  ## Benchmark Overview
98
 
99
+ The following comparison statistics refer to the **manuscript snapshot**, not the number of rows in the downloadable release.
100
+
101
  | Benchmark | Evaluation unit | Cases | Mean tool calls per trajectory | Mean tokens per trajectory |
102
  | --- | --- | ---: | ---: | ---: |
103
  | **ATBench-Pro** | Complete long-horizon trajectory | **1,000** | **48.98** | **57.51k** |
 
131
 
132
  The full AgentDoG2 taxonomy contains **18 risk sources, 21 failure modes, and 11 real-world harm categories**.
133
 
134
+ For unsafe trajectories, primary diagnosis follows the causal order **Risk Source β†’ Failure Mode β†’ Real-World Harm**. The released annotation strings are preserved exactly, including `none`, `not_applicable` and populated diagnostic codes. Some records with `label=0` retain a Real-World Harm code; determine the binary verdict from `label`, rather than inferring it from whether a diagnostic field is populated. Fine-grained results below are evaluated on unsafe trajectories. An attacker-planted risk source that the agent verifies and rejects does not by itself make the trajectory unsafe. An attempted or blocked action must not be conflated with executed harm.
135
 
136
  <p align="center">
137
  <img src="./figs/taxonomy.png" alt="AgentDoG2 three-dimensional safety taxonomy: 18 risk sources, 21 failure modes, and 11 harm categories" width="100%">
 
141
 
142
  ## Representative Long-Horizon Cases
143
 
144
+ The following **illustrative summaries** are adapted from the manuscript's representative cases. They explain the evaluation task rather than serving as verbatim dataset records or measured guardrail outputs.
145
 
146
  | Scenario | Trajectory pattern | Evidence required beyond an isolated action |
147
  | --- | --- | --- |
 
158
  2. **Structural and horizon checks:** candidates are checked for valid tool schemas, consistent tool-call/observation ordering, complete traces, and sufficient execution length.
159
  3. **Naturalness and leakage screening:** degenerate repetition, out-of-character instruction leaks, and private scenario metadata leaking into actor-visible context are filtered.
160
  4. **Consistency review:** cross-model trajectory screening identifies ambiguous cases for further review.
161
+ 5. **Expert-review protocol:** the manuscript describes expert auditing of binary judgments and primary taxonomy labels.
162
 
163
+ Benchmark construction maintains source-level separation from training data. The published files and their loading schema are documented in [Released Data](#released-data) and [Usage and Data Format](#usage-and-data-format).
164
 
165
  ## Reported Model Results
166
 
 
176
 
177
  Fine-grained diagnosis is evaluated on **unsafe trajectories**. Its mean is the unweighted accuracy average across Risk Source, Failure Mode, and Real-World Harm. Model performance on a fixed benchmark does not establish safety in every deployment environment.
178
 
179
+ For cross-benchmark results, cost/latency comparisons and the separate single-pass Jev evaluation, see the [AgentDoG2 model card](https://huggingface.co/AI45Research/AgentDoG2-Qwen3.5-4B#evaluation) and [AgentDoG-Jev fine-grained model card](https://huggingface.co/AI45Research/AgentDoG-Jev-FG-Qwen3.5-4B#evaluation). Their model weights and the ATBench-Pro dataset are available through their respective HF repositories.
180
+
181
+ ## Getting Started
182
+
183
+ ### Load the original JSON
184
+
185
+ The original file retains native nested lists for `tool_used` and `contents`:
186
+
187
+ ```bash
188
+ python -m pip install -U huggingface_hub datasets
189
+ ```
190
+
191
+ ```python
192
+ import json
193
+ from huggingface_hub import hf_hub_download
194
+
195
+ path = hf_hub_download(
196
+ repo_id="AI45Research/ATBench-Pro",
197
+ filename="ATBench-Pro.json",
198
+ repo_type="dataset",
199
+ )
200
+ with open(path, encoding="utf-8") as stream:
201
+ records = json.load(stream)
202
+
203
+ assert len(records) == 918
204
+ example = records[0]
205
+ print(example["id"], example["label"])
206
+ print(len(example["tool_used"]), len(example["contents"]))
207
+ ```
208
+
209
+ ### Load the HF preview mirror
210
+
211
+ The Dataset Viewer and `datasets` loader use the same `default` configuration and `test` split. Decode the two JSON-string columns when native nested values are required:
212
+
213
+ ```python
214
+ import json
215
+ from datasets import load_dataset
216
+
217
+ dataset = load_dataset("AI45Research/ATBench-Pro", split="benchmark")
218
+ assert len(dataset) == 918
219
+
220
+ example = dict(dataset[0])
221
+ example["tool_used"] = json.loads(example["tool_used"])
222
+ example["contents"] = json.loads(example["contents"])
223
+ print(example["id"], example["label"])
224
+ ```
225
+
226
+ `test` names the released evaluation split. The original JSON and the viewer mirror contain the same 918 unique IDs and the same label values; the mirror does not generate or filter trajectories.
227
 
228
  ## Usage and Data Format
229
 
230
+ ATBench-Pro is intended for **held-out, complete-trajectory safety evaluation and diagnosis**. Preserve the user request, available tools, permissions and execution evidence when constructing evaluation inputs.
231
 
232
+ | Field | Original JSON type | HF mirror type | Meaning |
233
+ | --- | --- | --- | --- |
234
+ | `id` | Integer | `int64` | Unique trajectory identifier. |
235
+ | `label` | Integer | `int64` | Binary safety verdict: `0` = safe, `1` = unsafe. |
236
+ | `risk_source` | String | String | Released Risk Source annotation. |
237
+ | `failure_mode` | String | String | Released Failure Mode annotation. |
238
+ | `real_world_harm` | String | String | Released Real-World Harm annotation. |
239
+ | `tool_used` | List | JSON string | Native tool specifications; decode with `json.loads`. |
240
+ | `contents` | List | JSON string | Complete agent trajectory; decode with `json.loads`. |
241
 
242
+ All seven fields and all 918 records are retained. Annotation strings, including `none` and `not_applicable`, are provided as stored in the release; the viewer conversion does not reinterpret labels or replace populated diagnostic fields. Use the binary `label` to select the unsafe subset for fine-grained evaluation.
243
+
244
+ For the method and result overview, see the [benchmark section](https://mjc-ma-01.github.io/AgentDoG/v2_0_dark/#benchmarks) and [AgentDoG source repository](https://github.com/AI45Lab/AgentDoG).
245
 
246
  ## Limitations and Intended Use
247
 
248
  - The benchmark covers specified long-horizon risks and cannot exhaust all tools, environments, permissions, or failure patterns encountered in deployment.
249
  - Primary diagnostic labels summarize a trajectory; they do not enumerate every secondary carrier or downstream effect.
250
  - A risk source, an unsafe action, and realized harm are distinct. Evaluations should retain those distinctions.
251
+ - Synthetic trajectories and automated screening can introduce modeling artifacts. Dataset availability does not establish correctness for every individual annotation.
252
+ - The manuscript reports a 1,000-case snapshot; this downloadable release has 918 records. Report the release and split actually used when presenting evaluation scores.
253
+ - Safety-evaluation content can depict adversarial or unsafe behavior. Dataset-specific redistribution and license terms are separate from those of model weights and earlier benchmarks.
254
 
255
  ## License and Release Information
256
 
257
+ The dataset files are publicly downloadable. The current repository metadata does not declare a dataset-specific license, and this card does not add one. Consult the repository notices or maintainers for licensing terms; licenses for AgentDoG model weights, source code and earlier ATBench datasets do not establish the license of ATBench-Pro.
258
 
259
  ## Citation
260
 
 
263
  ## Contact
264
 
265
  Please use [GitHub Issues](https://github.com/AI45Lab/AgentDoG/issues) for questions, suspected benchmark errors, or release updates.
266
+
267
+ The HF `benchmark` split exposes all 918 released records for browsing and loading; it does not introduce an additional train/test partition.
data/atbench-pro.jsonl.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:895d0f128e74644fc8985792d863cd5b64baa1d4777420f058b1df9d8527c9f4
3
+ size 31607642