Zhanli-Li Claude Code commited on
Commit
461fd27
·
verified ·
1 Parent(s): 38d5f9b

Simplify the card: wordmark header, project/paper/collection/code links

Browse files
Files changed (1) hide show
  1. README.md +47 -197
README.md CHANGED
@@ -19,44 +19,37 @@ size_categories:
19
  <div align="center">
20
  <img src="assets/data-world-wordmark.svg" alt="DataWorld logo" width="480">
21
  <p><strong>Scaling Data Environments from Scratch</strong></p>
 
 
 
 
 
 
 
22
  </div>
23
 
24
  # DataWorld-Bench
25
 
26
- **A 100-task benchmark for agentic, evidence-grounded data analysis.**
27
- Each task drops an agent into a self-contained business world, hands it a
28
- multi-system pile of raw data, and asks for a conclusion that a strict LLM judge
29
- then grades against a task-specific rubric.
 
 
30
 
31
  The repository is laid out in the **harbor task format**: every task is a
32
  self-contained directory that can be built, run and verified on its own, with no
33
  shared state between tasks and no top-level dataset configuration.
34
 
35
- > **Code, task-generation pipeline and evaluation harness:**
36
- > **<https://github.com/Zhanli-Li/Data-World>**
37
-
38
- ## Repository layout
39
-
40
  ```
41
  DataWorld-Bench/
42
- ├── README.md
43
  ├── sample_manifest.json # metadata for the 100 tasks
44
  └── dataworld-pXXXXXX-<cause|consequence>-<1|2>/ # × 100 task directories
45
  ```
46
 
47
- - `pXXXXXX` is the id of the source world, `cause` / `consequence` is the task
48
- kind (every world in this benchmark contributes exactly one of each), and the
49
- trailing `1` / `2` is the variant index within that kind.
50
- - `sample_manifest.json` is a single flat JSON object describing the corpus:
51
- name, status, size, and a `tasks` map with one entry per task directory.
52
- - A directory of task directories *is* the dataset — nothing else has to be
53
- configured to point harbor (or any other harness) at this repository.
54
-
55
- ## Task layout
56
-
57
  ```
58
  dataworld-pXXXXXX-<cause|consequence>-<1|2>/
59
- ├── instruction.md # the problem statement, data mapping, answer path
60
  ├── task.toml # harbor schema 1.1: timeouts, resources, artifacts
61
  ├── environment/
62
  │ ├── Dockerfile # image recipe + COPY data/
@@ -70,196 +63,53 @@ dataworld-pXXXXXX-<cause|consequence>-<1|2>/
70
  └── judge.env # judge credentials/endpoint (placeholders here)
71
  ```
72
 
73
- Each task carries **its own copy of the world's data**; nothing is mounted from
74
- a sibling task. There are no hidden files in a task directory, and the two files
75
- that would give the answer away (`WORLD.md`, `dag.json`) are deliberately absent
76
- from the corpus and asserted absent inside the image.
77
-
78
- ### instruction.md
79
-
80
- Roughly 0.6–1.4 KB. It is the requester's own description of the
81
- business situation (what they think went wrong, which systems they got the
82
- numbers from, what decision the answer has to support) followed by two fixed
83
- lines found in all 100 tasks: a note that paths written as `env/…` in the text
84
- correspond to the files mounted at `/app/data/…`, and the answer path
85
- `/app/answer.txt`.
86
-
87
- Nothing in the instruction states the expected conclusion — the target node
88
- lives in `tests/rubric.json`, which the agent never sees.
89
-
90
- ### environment/data/ — the world's files
91
-
92
- The data mirrors several independent systems of one synthetic business. Each
93
- task has **4–12 top-level subsystems** (mean ≈ 7), named after that world's
94
- systems; **237 distinct subsystem names** occur across the corpus, for example:
95
-
96
- ```
97
- dataworld-p000014-cause-1/environment/data/
98
- ├── master/ employees, ingredients, menu items, stations, suppliers, tables
99
- ├── erp/ supplier_performance_monthly
100
- ├── pos/ order_items, orders, reservations_daily, substitutions
101
- ├── wms/ inventory_daily
102
- ├── kds/ prep_batches, tickets
103
- ├── hr/ attendance_log, shift_schedule
104
- ├── feedback/ comment_cards_ocr, customer_reviews, quality_scores
105
- └── in_world/ kitchen_layout, standard_recipes
106
- ```
107
-
108
- ```
109
- dataworld-p000384-cause-1/environment/data/
110
- ├── core_txn/ transactions_2018H1 … 2024H2, default_events, charge_off_records
111
- ├── aml/ alerts, alert_transaction_links, cases, rule_configurations,
112
- │ rule_tuning_history, sar_filings, case_narratives/shard-00…10
113
- ├── credit/ credit_assessments_scd2, credit_model_versions
114
- └── grc/ (governance/risk/compliance records)
115
- ```
116
-
117
- Per task: **1.2 MB – 6.1 GB** (median ≈ 85 MB) and **8 – 10.6k files**
118
- (median ≈ 31); the whole repository is ≈ **50.2k files / 50.7 GB**, dominated by
119
- this raw data.
120
-
121
- | file type | what it usually holds |
122
- |---|---|
123
- | `.csv` / `.tsv` | the bulk of the tabular data — transactions, ledgers, master data, rosters, rule configurations, metric tables |
124
- | `.jsonl` | event streams and link tables — tickets, orders, alerts, substitutions, record-to-record links |
125
- | `.parquet` | the larger fact tables (e.g. daily inventory snapshots, multi-year transaction extracts) |
126
- | `.xlsx` | spreadsheets that arrive as attachments — planning sheets, audit workpapers |
127
- | `.txt` / `.md` / `.pdf` / `.html` | free-text evidence — policies, meeting notes, OCR'd cards, incident reports, web captures |
128
- | `.dat` + `.hdr` | binary sensor/telemetry recordings with sidecar header files |
129
- | `.hl7` | clinical messages (healthcare worlds) |
130
- | `.geojson` / `.log` / `.gz` | spatial layers, application logs, compressed exports |
131
-
132
- The counts are skewed by small documents; the bytes sit mostly in the tabular
133
- and binary files.
134
-
135
- ### task.toml
136
-
137
- harbor `schema_version = "1.1"`. All 100 tasks use the same resource envelope:
138
-
139
- | key | value |
140
- |---|---|
141
- | `[agent]` | `timeout_sec = 28800.0` (8 h), `user = "agent"` |
142
- | `[verifier]` | `timeout_sec = 1200.0`, `user = "verifier"` |
143
- | `[environment]` | `cpus = 8`, `memory_mb = 16384`, `storage_mb = 10240`, `build_timeout_sec = 600.0`, `allow_internet = true` |
144
- | `[task]` | `name`, `description`, `authors`, `keywords` |
145
- | `[metadata]` | `category`, `difficulty`, `difficulty_explanation`, and the world/DAG shape: `world`, `dag_nodes`, `dag_edges`, `dag_category_id`, `dag_category_name` |
146
-
147
- `artifacts` at the top of the file is the run contract — what the platform
148
- collects into the trial directory after the verifier finishes:
149
-
150
- ```
151
- /app/answer.txt # written by the agent
152
- /logs/verifier/reward.txt # the scalar reward
153
- /logs/verifier/details.json # per-criterion verdicts + diagnostics
154
- /logs/artifacts/ # everything the verifier chose to keep
155
- /logs/agent/trajectory.json # the agent's own trajectory
156
- ```
157
-
158
- ### tests/rubric.json
159
-
160
- One rubric per task, four scalars plus a list of criteria:
161
-
162
- ```json
163
- {
164
- "world": "p000014",
165
- "task_id": "cause_1",
166
- "task_kind": "cause",
167
- "target_node": "<the node of the world's causal graph this task asks about>",
168
- "criteria": [
169
- {"id": "dc-1", "section": "data_computation", "points": 4,
170
- "criterion": "<a concrete computation a correct analysis must carry out>"},
171
- {"id": "dc-8", "section": "data_computation", "points": -2,
172
- "criterion": "<a plausible-looking path that leads to a wrong number>"}
173
- ]
174
- }
175
- ```
176
-
177
- - `section` is either `data_computation` (did you compute the right thing from
178
- the right files) or `insight_discovery` (did you reach the right conclusion).
179
- - Positive `points` are what a correct analysis must establish; negative
180
- `points` are wrong conclusions, or traps that a careless analysis falls into.
181
- - Across the corpus: **12–32 criteria per task** (mean ≈ 17.5), of which
182
- **4–13 are negative**; the positive criteria of a rubric sum to 17–54 points
183
- and the negative ones to −24 … −8.
184
 
185
  ## Scoring
186
 
187
- The judge returns **one verdict per criterion**:
188
-
189
- - positive criterion — `satisfied` earns its points, `not_satisfied` earns 0;
190
- - negative criterion — `triggered` deducts its points;
191
- - a conclusion the report never mentions neither earns nor loses points.
192
-
193
- The raw score is then normalized against that task's own reachable bounds:
194
 
195
  ```
196
  reward = 100 * (raw - lo) / (hi - lo) # in [0, 100]
197
  ```
198
 
199
- where `hi` is the total of the positive criteria and `lo` the total of the
200
- negative ones. So **all positive criteria satisfied = 100**, **all negative
201
- criteria triggered = 0**.
202
-
203
- Two edge cases matter when you aggregate results:
204
-
205
- - **A missing or empty `/app/answer.txt`** is treated as a blank submission:
206
- reward is forced to `0` (the rubric floor) regardless of the rubric's negative
207
- share.
208
- - **A grading-infrastructure failure** (judge unreachable, unparseable verdicts)
209
- is *not* expressed through the score. `details.json` then carries a
210
- `judge_error` key and the reward is written as `0`. Since `0` is also a
211
- legitimate score, **detect failures via `judge_error`, never via the value** —
212
- otherwise a broken judge silently reads as a task the model failed.
213
-
214
- Earlier reported results used a `[-1, 1]` normalization; convert with
215
- `r_[-1,1] = reward / 50 - 1`.
216
 
217
  ## Running a task
218
 
219
- Install `docker`, then for each task:
 
 
 
 
 
 
220
 
221
- 1. build the image from `environment/Dockerfile` — it builds on the public
222
- `quay.io/jupyter/scipy-notebook` image (see below), `COPY data/ /app/data/`,
223
- creates the `agent` and `verifier` users declared in `task.toml`, and asserts
224
- that no ground-truth material is present in the image;
225
- the container is meant to be started and then driven with `docker exec`;
226
- 2. run the agent as the `agent` user; it must leave its report at
227
- `/app/answer.txt`;
228
- 3. run `tests/test.sh` as the `verifier` user — it sources `tests/judge.env`,
229
- grades `/app/answer.txt` and writes `reward.txt` + `details.json`.
230
 
231
- `tests/judge.env` selects the judge gateway and model through ordinary
232
- environment variables, so the same task directory works against any endpoint
233
- that speaks the OpenAI-compatible or Anthropic Messages protocol:
234
-
235
- ```
236
- ANTHROPIC_BASE_URL # gateway base URL
237
- ANTHROPIC_AUTH_TOKEN # gateway token
238
- ANTHROPIC_MODEL # judge model id
239
- ```
240
-
241
- The file ships with placeholders (`<your-judge-token>`, `<judge-gateway>`,
242
- `<judge-model-path-or-id>`) — fill in your own endpoint and token before running.
243
-
244
- `environment/Dockerfile` needs no such placeholders. It builds from
245
- `quay.io/jupyter/scipy-notebook`, pinned to a dated tag: a public Python
246
- (conda-forge) environment that already ships the data-science stack these tasks
247
- use — pandas, numpy, scipy, statsmodels, scikit-learn, matplotlib, h5py,
248
- openpyxl, pytables, dask — and pulls the remaining analysis packages (pyarrow,
249
- pypdf, pillow) from public PyPI on top. Any image carrying `python3`/`pip` can be
250
- substituted: the apt and pip steps probe for existence first and skip whatever is
251
- already installed.
252
-
253
- `judge.py` prefers `JUDGE_*` over `ANTHROPIC_*` when both are set, streams the
254
- request (so a long judgment is never killed by a total-time timeout) and falls
255
- back to `judge_error` rather than crashing. The full evaluation harness lives in
256
- [Data-World](https://github.com/Zhanli-Li/Data-World).
257
 
258
  ## License
259
 
260
  Released under the **Apache License 2.0** — see [`LICENSE`](LICENSE).
261
-
262
- ## Citation
263
-
264
- If you use DataWorld-Bench, please link
265
- <https://github.com/Zhanli-Li/Data-World> and this dataset card.
 
19
  <div align="center">
20
  <img src="assets/data-world-wordmark.svg" alt="DataWorld logo" width="480">
21
  <p><strong>Scaling Data Environments from Scratch</strong></p>
22
+ <p>Specify the world behind the files. Generate the data. Ground the supervision.</p>
23
+ <p>
24
+ <a href="https://zhanli-li.github.io/Data-World/"><img src="https://img.shields.io/badge/Project%20Page-579187?style=flat-square" alt="Project Page"></a>
25
+ <a href="https://huggingface.co/collections/Zhanli-Li/dataworld"><img src="https://img.shields.io/badge/Hugging%20Face-FFD21E?style=flat-square&logo=huggingface&logoColor=black" alt="Hugging Face Collection"></a>
26
+ <a href="https://arxiv.org/abs/2610.21656"><img src="https://img.shields.io/badge/Paper-arXiv-6686A6?style=flat-square" alt="Paper on arXiv"></a>
27
+ <a href="https://github.com/Zhanli-Li/Data-World"><img src="https://img.shields.io/badge/Code-GitHub-181717?style=flat-square&logo=github&logoColor=white" alt="Code on GitHub"></a>
28
+ </p>
29
  </div>
30
 
31
  # DataWorld-Bench
32
 
33
+ **A 100-task benchmark for agentic, evidence-grounded data analysis.** Each task
34
+ drops an agent into a self-contained business world, hands it a multi-system pile
35
+ of raw data, and asks for a conclusion that a strict LLM judge then grades against
36
+ a task-specific rubric.
37
+
38
+ ## Format
39
 
40
  The repository is laid out in the **harbor task format**: every task is a
41
  self-contained directory that can be built, run and verified on its own, with no
42
  shared state between tasks and no top-level dataset configuration.
43
 
 
 
 
 
 
44
  ```
45
  DataWorld-Bench/
 
46
  ├── sample_manifest.json # metadata for the 100 tasks
47
  └── dataworld-pXXXXXX-<cause|consequence>-<1|2>/ # × 100 task directories
48
  ```
49
 
 
 
 
 
 
 
 
 
 
 
50
  ```
51
  dataworld-pXXXXXX-<cause|consequence>-<1|2>/
52
+ ├── instruction.md # problem statement, data mapping, answer path
53
  ├── task.toml # harbor schema 1.1: timeouts, resources, artifacts
54
  ├── environment/
55
  │ ├── Dockerfile # image recipe + COPY data/
 
63
  └── judge.env # judge credentials/endpoint (placeholders here)
64
  ```
65
 
66
+ - `pXXXXXX` is the id of the source world, `cause` / `consequence` is the task
67
+ kind (every world contributes exactly one of each), and the trailing `1` / `2`
68
+ is the variant index within that kind.
69
+ - Each task carries **its own copy of the world's data** — 4–12 subsystems
70
+ (mean ≈ 7), 1.2 MB – 6.1 GB (median ≈ 85 MB) and 8 – 10.6k files
71
+ (median ≈ 31); the whole repository is ≈ 50.2k files / 50.7 GB.
72
+ - The two files that would give the answer away (`WORLD.md`, `dag.json`) are absent
73
+ from the corpus and asserted absent inside the image.
74
+
75
+ `task.toml` is `schema_version = "1.1"` with one resource envelope for all 100
76
+ tasks: `[agent] timeout_sec = 28800.0` (8 h), `[verifier] timeout_sec = 1200.0`,
77
+ `[environment] cpus = 8`, `memory_mb = 16384`, `storage_mb = 10240`,
78
+ `allow_internet = true`.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
79
 
80
  ## Scoring
81
 
82
+ The judge returns one verdict per rubric criterion — `satisfied` /
83
+ `not_satisfied` for positive points, `triggered` for negative ones — and the raw
84
+ score is normalized against that task's own reachable bounds:
 
 
 
 
85
 
86
  ```
87
  reward = 100 * (raw - lo) / (hi - lo) # in [0, 100]
88
  ```
89
 
90
+ So all positive criteria satisfied = **100**, all negative criteria triggered = **0**.
91
+ Two edge cases matter when aggregating: a missing or empty `/app/answer.txt` is a
92
+ blank submission and scores `0`; a grading-infrastructure failure *also* writes `0`
93
+ but carries a `judge_error` key in `details.json` — **detect failures via
94
+ `judge_error`, never via the value**.
 
 
 
 
 
 
 
 
 
 
 
 
95
 
96
  ## Running a task
97
 
98
+ Build the image from `environment/Dockerfile`, run the agent as user `agent` (its
99
+ report must land at `/app/answer.txt`), then run `tests/test.sh` as user
100
+ `verifier`. `tests/judge.env` selects the judge through ordinary environment
101
+ variables (`ANTHROPIC_BASE_URL` / `ANTHROPIC_AUTH_TOKEN` / `ANTHROPIC_MODEL`, or
102
+ the `JUDGE_*` equivalents); it ships with placeholders. The Dockerfile builds on
103
+ the public `quay.io/jupyter/scipy-notebook` image, pinned to a dated tag, and needs
104
+ no configuration.
105
 
106
+ ## Links
 
 
 
 
 
 
 
 
107
 
108
+ - Project page — <https://zhanli-li.github.io/Data-World/>
109
+ - Paper — <https://arxiv.org/abs/2610.21656>
110
+ - Code, data generation pipeline and evaluation harness — <https://github.com/Zhanli-Li/Data-World>
111
+ - Full collection — <https://huggingface.co/collections/Zhanli-Li/dataworld>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
112
 
113
  ## License
114
 
115
  Released under the **Apache License 2.0** — see [`LICENSE`](LICENSE).