Zhanli-Li commited on
Commit
8342c8d
·
verified ·
1 Parent(s): 5ff08a2

DataWorld-Bench: English dataset card (points to github.com/Zhanli-Li/Data-World), 0-100 scoring, release notes

Browse files
Files changed (1) hide show
  1. README.md +166 -75
README.md CHANGED
@@ -1,88 +1,179 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  # DataWorld-Bench
2
 
3
- DataWorld-Bench 是 dataworld v7 全量任务集(9,692 题)经三层精选得到的 **100 题**终版基准:
4
- **audit 事实过滤 → taxonomy 均衡采样 → human preference 人工校验**。
5
- 本目录即终版,50 道来自原候选(-1 题),50 道来自挑战者(-2 题)。
6
-
7
- ## 筛选链路
8
-
9
- 1. **Audit 过滤(事实正确性)**
10
- v7 的 9,689 个 task 归并到 1,302 个源 world
11
- (`Data-World/outputs/new_world/pXXXXXX/.build/audit/audit_result.json`,
12
- 全部 6+ 种 audit schema 统一解析,1302/1302 覆盖)。
13
- 仅保留 **audit 检查零失败**的 world:**852 个**(65%),
14
- 其余含事实错误的 world 连同其 task 整体剔除。
15
-
16
- 2. **Taxonomy 均衡采样**
17
- 候选池在 16 个 domain 类目(`dag_factory/categories.py`)上严重偏斜
18
- (7–165 个/类)。按类目分层:每类 3 个 world、两个最大类各 4 个,
19
- 类内 audit 0 警告 + 检查数多者优先 → **50 个 world**,
20
- 每个取 cause-1 + consequence-1 = **100 道候选**。
21
-
22
- 3. **Human preference 校验(题目偏好)**
23
- 每道入选题与同路线次优候选组成 100 对二选一
24
- (cause-1 vs cause-2、consequence-1 vs consequence-2),
25
- 标注者只凭 human preference 选择(事实性已由 audit 保证,不复核)。
26
- - 自研标注系统(`dataworld-eval/labeling`,mis 认证、独占预分配、
27
- 超时回收);**每对至少 2 个不同标注者**,共 15 人 + AI 评审参与
28
- - 两票分歧的 47 对全部经终审决断(owner adjudication,部分由独立盲审支持)
29
- - 终局:**原 -1 题胜 50 / 挑战者 -2 题胜 50**
30
- (73 对多数一致 + 27 对 owner 决断),票仓可溯:
31
- `labeling/votes.json` + `labeling/adjudicated.json`
32
-
33
- ## 构成
34
-
35
- - 100 个任务 = 50 个 world × 2 题(cause + consequence 各 1 道胜者)
36
- - 16 个 domain:每类 6 题,cat13/cat15 各 8 题
37
- - 逐题 provenance(票数、定案方式)见 `sample_manifest.json`
38
- - 相关留档:`../../results/v7_audit_all.tsv`(全量 audit 通过率)、
39
- `../../results/v7_perfect_balanced50x2.tsv`(候选名单)
40
-
41
- ## 任务格式
42
-
43
- 与 v7 全量集一致的 harbor 布局(源目录:
44
- `github.com/harbor-framework/harbor/datasets/dataworld_v7`):
 
 
 
 
 
 
 
 
 
 
 
 
 
45
 
46
  ```
47
  dataworld-pXXXXXX-<cause|consequence>-<1|2>/
48
- ├── instruction.md # 题面 + 数据映射 + 答案路径(/app/answer.txt)
49
- ├── task.toml # schema 1.1,超时/资源/artifacts
50
  ├── environment/
51
- │ ├── Dockerfile # 基础镜像 + 镜像源 + COPY data/
52
- │ └── data/ # 该 world env/ 的自包含副本
53
  └── tests/
54
- ├── test.sh # verifier 入口
55
- ├── grade.py / judge.py / judge_prompt.py
56
- ├── rubric.json # 评分细则(仅 judge 可见)
57
- └── judge.env # judge 凭据/端点(跑评测前确认网关可用)
 
 
58
  ```
59
 
60
- 判分:LLM judge 按 rubric 打分。
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
61
 
62
- ## 运行
 
 
63
 
64
- ```bash
65
- python3 eval_sweep.py --dataset datasets/DataWorld-Bench --run-dir results/<run-name> \
66
- --agent-model <model> --jobs <n>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
67
  ```
68
 
69
- (与 v7 全量评测同一套 `eval_sweep.py` / `agent_harness.py` 链路。)
70
-
71
- ## 发布说明(HF 版)
72
-
73
- - **判分尺度:`tests/grade.py` 把每题按自身 rubric 的上下限归一后,输出 `[0, 100]` 的
74
- reward**(正分项全满足 = 100,负分项全触发 = 0)。若要与论文表格里的平均分
75
- (当时口径为 `[-1, 1]`)对照,换算 `r_[-1,1] = reward / 50 - 1`。
76
- judge 基础设施故障不用分值表达:`details.json` 会带 `judge_error`,此时 reward 固定写 0
77
- (0 同时也是合法下界,只能靠该字段区分)。
78
- - **代码注释与运行日志文案为英文**;`tests/judge_prompt.py` 的 `JUDGE_PROMPT`、
79
- `tests/rubric.json`、`instruction.md` 等**任务内容仍为中文**(题面与判分标准本身是中文,
80
- 改动会改变判分行为)。
81
- - `environment/Dockerfile` 与 `tests/judge.env` 里的**内部镜像源与 judge 网关凭据已替换为
82
- 占位符**(`<base-image>` / `<your-judge-token>` / `<judge-gateway>` /
83
- `<judge-model-path-or-id>`),跑评测前请填入你自己的值。
84
- - `sample_manifest.json` 中的内部路径与标注者用户名已脱敏(`annotator-01..15`)。
85
- - **布局调整(数据内容未改)**:`dataworld-p000384-cause-1` /
86
- `dataworld-p000384-consequence-1` 的 `environment/data/aml/case_narratives/` 各含
87
- 10,530 个文件,超过仓库单目录 10,000 文件上限,故按 `shard-00 … shard-10`(每片 ≤960)
88
- 分片存放,**文件名与内容与平铺版逐字节一致**。
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - zh
4
+ task_categories:
5
+ - question-answering
6
+ - text-generation
7
+ tags:
8
+ - agent
9
+ - benchmark
10
+ - data-analysis
11
+ - causal-inference
12
+ - multi-step-reasoning
13
+ - llm-judge
14
+ - sandbox
15
+ - tool-use
16
+ size_categories:
17
+ - n<1K
18
+ ---
19
+
20
  # DataWorld-Bench
21
 
22
+ **A 100-task benchmark for agentic, evidence-grounded data analysis.**
23
+ Each task drops an agent into a self-contained business world, hands it a
24
+ multi-system pile of raw data, and asks for a conclusion that a strict LLM judge
25
+ then grades against a task-specific rubric.
26
+
27
+ > **Code, task-generation pipeline and evaluation harness:**
28
+ > **<https://github.com/Zhanli-Li/Data-World>**
29
+
30
+ Task content (`instruction.md`, `rubric.json`, the judge prompt and the data
31
+ itself) is written in **Chinese**; the benchmark is otherwise model-agnostic and
32
+ can be driven by any tool-calling agent.
33
+
34
+ ## What is in this repository
35
+
36
+ - **100 tasks** = **50 worlds × 2 tasks each** (one `cause` analysis + one
37
+ `consequence` analysis of the same underlying world).
38
+ - Each task directory is a self-contained, runnable unit: instruction, data,
39
+ container image recipe, verifier and rubric.
40
+ - Roughly **23.6 GB / ~50k files**, dominated by the per-task raw data
41
+ (transactions, ledgers, logs, tickets, sensor readings, documents, ...).
42
+
43
+ ## How the 100 tasks were selected
44
+
45
+ The benchmark is the final slice of a much larger generated corpus (`dataworld
46
+ v7`, 9,692 tasks over 1,302 source worlds), reduced in three stages:
47
+
48
+ 1. **Audit filtering (factual correctness).** Every v7 world was re-checked by
49
+ automated audit; only worlds with **zero failed checks** were kept —
50
+ **852 of 1,302 (65%)**. Worlds containing factual errors were dropped
51
+ together with all of their tasks.
52
+ 2. **Taxonomy-balanced sampling.** The surviving pool is heavily skewed across
53
+ 16 domain categories (7–165 tasks per category). Stratified sampling took 3
54
+ worlds per category (4 for the two largest) — preferring worlds with zero
55
+ audit warnings and more checks — yielding **50 worlds**, and from each world
56
+ the `cause-1` and `consequence-1` tasks: **100 candidates**.
57
+ 3. **Human preference validation.** Each selected task was paired against the
58
+ runner-up from the same world (`cause-1` vs `cause-2`, `consequence-1` vs
59
+ `consequence-2`) and put to two-alternative human comparison (factual
60
+ correctness already guaranteed by the audit, so annotators judged only task
61
+ preference). Every pair was seen by **at least two different annotators**
62
+ (15 annotators in total, plus an AI reviewer); the **47** pairs with
63
+ disagreeing votes were all adjudicated by the dataset owner, partly backed by
64
+ an independent blind review. Final outcome: **50 wins for the original
65
+ candidates, 50 for the challengers** (73 pairs decided by majority, 27 by
66
+ owner adjudication).
67
+
68
+ Per-task provenance (vote counts, how the decision was reached) is recorded in
69
+ `sample_manifest.json`; annotator identities are anonymized (`annotator-01` …
70
+ `annotator-15`).
71
+
72
+ **Composition:** 16 domain categories; 6 tasks per category except the two
73
+ largest, which have 8. Each world contributes exactly one `cause` and one
74
+ `consequence` task.
75
+
76
+ ## Task layout
77
 
78
  ```
79
  dataworld-pXXXXXX-<cause|consequence>-<1|2>/
80
+ ├── instruction.md # the problem statement, data mapping, answer path
81
+ ├── task.toml # schema 1.1: timeouts, resources, artifacts
82
  ├── environment/
83
+ │ ├── Dockerfile # image recipe + COPY data/
84
+ │ └── data/ # self-contained copy of the world's data files
85
  └── tests/
86
+ ├── test.sh # verifier entry point
87
+ ├── grade.py # scoring implementation (stdlib only)
88
+ ├── judge.py # judge gateway client (stdlib only)
89
+ ├── judge_prompt.py # the judge prompt template
90
+ ├── rubric.json # per-task rubric (visible to the judge only)
91
+ └── judge.env # judge credentials/endpoint (placeholders here)
92
  ```
93
 
94
+ The agent writes its final answer to `/app/answer.txt`; the verifier grades that
95
+ file and emits `/logs/verifier/reward.txt` plus `/logs/verifier/details.json`.
96
+
97
+ ## Scoring
98
+
99
+ Each task carries its own rubric, made of **positive criteria** (things a
100
+ correct analysis must establish) and **negative criteria** (known wrong
101
+ conclusions, or plausible-looking paths that lead to wrong numbers). The judge
102
+ returns one verdict per criterion:
103
+
104
+ - positive criterion — `satisfied` earns its points, `not_satisfied` earns 0;
105
+ - negative criterion — `triggered` deducts its points;
106
+ - a conclusion the report never mentions neither earns nor loses points.
107
+
108
+ The raw score is then normalized against that task's own reachable bounds:
109
+
110
+ ```
111
+ reward = 100 * (raw - lo) / (hi - lo) # in [0, 100]
112
+ ```
113
 
114
+ where `hi` is the total of the positive criteria and `lo` the total of the
115
+ negative ones. So **all positive criteria satisfied = 100**, **all negative
116
+ criteria triggered = 0**.
117
 
118
+ Two edge cases matter when you aggregate results:
119
+
120
+ - **A missing or empty `/app/answer.txt`** is treated as a blank submission:
121
+ reward is forced to `0` (the rubric floor) regardless of the rubric's negative
122
+ share.
123
+ - **A grading-infrastructure failure** (judge unreachable, unparseable verdicts)
124
+ is *not* expressed through the score. `details.json` then carries a
125
+ `judge_error` key and the reward is written as `0`. Since `0` is also a
126
+ legitimate score, **detect failures via `judge_error`, never via the value** —
127
+ otherwise a broken judge silently reads as a task the model failed.
128
+
129
+ Earlier reported results used a `[-1, 1]` normalization; convert with
130
+ `r_[-1,1] = reward / 50 - 1`.
131
+
132
+ ## Running the benchmark
133
+
134
+ Install `docker`, then for each task build the image from
135
+ `environment/Dockerfile` (it `COPY data/ /app/data/`), run the agent inside it,
136
+ and finally execute `tests/test.sh` — it sources `tests/judge.env`, grades
137
+ `/app/answer.txt` and writes the reward. The full evaluation harness lives in
138
+ [Data-World](https://github.com/Zhanli-Li/Data-World).
139
+
140
+ `tests/judge.env` selects the judge gateway and model through ordinary
141
+ environment variables:
142
+
143
+ ```
144
+ ANTHROPIC_BASE_URL # gateway base URL
145
+ ANTHROPIC_AUTH_TOKEN # gateway token
146
+ ANTHROPIC_MODEL # judge model id
147
  ```
148
 
149
+ ## Release notes for this Hugging Face copy
150
+
151
+ - **Placeholders instead of credentials.** `tests/judge.env` ships with
152
+ `<your-judge-token>` / `<judge-gateway>` / `<judge-model-path-or-id>`, and every
153
+ `environment/Dockerfile` builds from `<base-image>:latest` with public package
154
+ mirrors. Fill in your own values before running; nothing in this repository
155
+ grants access to any endpoint.
156
+ - **Scoring is on the `[0, 100]` scale** described above.
157
+ - **Code comments and log messages are in English.** The judge prompt
158
+ (`judge_prompt.py`), the rubrics and the instructions remain in Chinese, since
159
+ they are the benchmark content itself and translating them would change the
160
+ grading behaviour.
161
+ - **One layout adjustment, no content change.** The two `dataworld-p000384-*`
162
+ tasks carry 10,530 tiny case-narrative files each, above the 10,000-files-per-
163
+ directory limit of the Hub. Those directories are therefore stored as
164
+ `case_narratives/shard-00 … shard-10` (≤960 files per shard);
165
+ **file names and contents are byte-identical** to the flat layout.
166
+ - **Anonymized annotators.** Individual annotator usernames have been replaced by
167
+ `annotator-01` … `annotator-15`, and internal filesystem paths and gateway
168
+ addresses have been removed.
169
+ - Unrelated internal build artifacts (Python `__pycache__`) are not included.
170
+
171
+ ## License
172
+
173
+ No license file accompanies the original task corpus; add one here before
174
+ relying on this dataset commercially.
175
+
176
+ ## Citation
177
+
178
+ If you use DataWorld-Bench, please link
179
+ <https://github.com/Zhanli-Li/Data-World> and this dataset card.