File size: 8,353 Bytes
c0da504
 
 
 
 
 
3cb19ba
c0da504
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
c945c5c
c0da504
c945c5c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
c0da504
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
c945c5c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3ca6676
 
c945c5c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
c0da504
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
---
tags:
  - world-model
  - game-simulation
  - reinforcement-learning
  - timeseries
license: bsd-3-clause
size_categories:
  - 100K<n<1M
task_categories:
  - time-series-forecasting
pretty_name: AutoWorldModel-Bench
configs:
  - config_name: asteroids
    data_files:
      - split: train
        path: data/asteroids/train.parquet
      - split: validation
        path: data/asteroids/val.parquet
      - split: test
        path: data/asteroids/test.parquet
      - split: scenario
        path: data/asteroids/scenario.parquet
  - config_name: breakout
    data_files:
      - split: train
        path: data/breakout/train.parquet
      - split: validation
        path: data/breakout/val.parquet
      - split: test
        path: data/breakout/test.parquet
      - split: scenario
        path: data/breakout/scenario.parquet
  - config_name: frogger
    data_files:
      - split: train
        path: data/frogger/train.parquet
      - split: validation
        path: data/frogger/val.parquet
      - split: test
        path: data/frogger/test.parquet
      - split: scenario
        path: data/frogger/scenario.parquet
  - config_name: kong
    data_files:
      - split: train
        path: data/kong/train.parquet
      - split: validation
        path: data/kong/val.parquet
      - split: test
        path: data/kong/test.parquet
      - split: scenario
        path: data/kong/scenario.parquet
  - config_name: platformer
    data_files:
      - split: train
        path: data/platformer/train.parquet
      - split: validation
        path: data/platformer/val.parquet
      - split: test
        path: data/platformer/test.parquet
      - split: scenario
        path: data/platformer/scenario.parquet
  - config_name: pong
    default: true
    data_files:
      - split: train
        path: data/pong/train.parquet
      - split: validation
        path: data/pong/val.parquet
      - split: test
        path: data/pong/test.parquet
      - split: scenario
        path: data/pong/scenario.parquet
  - config_name: racer
    data_files:
      - split: train
        path: data/racer/train.parquet
      - split: validation
        path: data/racer/val.parquet
      - split: test
        path: data/racer/test.parquet
      - split: scenario
        path: data/racer/scenario.parquet
  - config_name: snake
    data_files:
      - split: train
        path: data/snake/train.parquet
      - split: validation
        path: data/snake/val.parquet
      - split: test
        path: data/snake/test.parquet
      - split: scenario
        path: data/snake/scenario.parquet
---

# AutoWorldModel-Bench

Game state sequences for training and evaluating action-conditioned world models.
8 classic game environments with a unified entity-based tensor schema, deterministic train/val/test/scenario splits, and 152,000 total episodes.

This dataset accompanies the [AutoWorldModel-Bench](https://github.com/AutoWorldModelBench/Benchmark) benchmark for evaluating frontier coding agents on open-ended world-model research.

## Dataset Structure

```
data/                                # Parquet training data
└── {game}/
    ├── train.parquet                # 10,000 episodes
    ├── val.parquet                  #  3,000 episodes
    ├── test.parquet                 #  3,000 episodes
    ├── scenario.parquet             #  3,000 episodes
    └── meta.json                    # max_entities, dimensions, total_frames

scenarios/                           # Curated scenario archives (tar.gz per game)
└── {game}.tar.gz
    └── {game}/
        └── {scenario_name}/         # e.g. ball_hits_paddle, ship_dies
            └── data_ep_{id}/
                ├── frames.jsonl.gz  # Per-frame entity states
                ├── manifest.json    # Game schema, entity kinds, action/global fields
                ├── meta.json        # Episode metadata, event info, rollout params
                └── rollout.mp4      # Visual replay
```

## Games

| Game | Max Entities | Total Frames | Size | Data Version |
|------|:---:|---:|---:|:---:|
| asteroids | 20 | 5.6M | 0.9 GB | v2 |
| breakout | 52 | 33.0M | 0.7 GB | v2 |
| frogger | 28 | 6.2M | 0.8 GB | v2 |
| kong | 16 | 23.0M | 0.5 GB | v2 |
| platformer | 24 | 10.6M | 0.3 GB | v2 |
| pong | 5 | 42.5M | 1.7 GB | v1 |
| racer | 6 | 21.1M | 0.9 GB | v1 |
| snake | 48 | 15.9M | 0.2 GB | v1 |

**Total: 152,000 episodes (19,000 per game), 158.0M frames**

All games share a unified tensor schema: `registry_dim=34`, `state_dim=23`.

Each game has 10,000 train / 3,000 val / 3,000 test / 3,000 scenario episodes.

### Data Collection Policy

v2 games (asteroids, breakout, frogger, kong, platformer) use a 3-policy mix for diverse behavioral coverage:
- **Random** — uniform random actions
- **Heuristic** — hand-crafted game-specific strategies
- **RL checkpoint** — DQN/PPO agents at various training stages

v1 games (pong, racer, snake) use a 50/50 heuristic + random mix.

## Scenarios

Hand-picked and categorized episodes that isolate specific game events — sourced from the scenario split and augmented with synthetically collected episodes. Each episode captures a short rollout around a key event (e.g., collision, scoring, death) with history context.

| Game | Scenarios | Episodes | Archive Size |
|------|---:|---:|---:|
| asteroids | 14 | 420 | 41 MB |
| breakout | 6 | 160 | 9 MB |
| frogger | 5 | 180 | 27 MB |
| kong | 5 | 180 | 7 MB |
| platformer | 5 | 160 | 10 MB |
| pong | 15 | 460 | 14 MB |
| racer | 5 | 140 | 6 MB |
| snake | 5 | 160 | 11 MB |

Each episode contains 32 history frames + 1 pre-event frame, followed by up to 20 rollout frames (including the event). Rollouts are truncated early on termination.

Each game includes a `same_state_different_actions` scenario that tests action-conditioning by replaying the same initial state with varied actions.

### Downloading scenarios

```python
from huggingface_hub import hf_hub_download
import tarfile

path = hf_hub_download(
    "AutoWorldModel/AutoWorldModelBench",
    "scenarios/pong.tar.gz",
    repo_type="dataset",
)
with tarfile.open(path) as tar:
    tar.extractall("./scenarios")
# ./scenarios/pong/ball_hits_left_paddle_moving/data_ep_.../frames.jsonl.gz
```

## Tensor Schema

Each Parquet row stores one episode as serialized numpy arrays:

| Tensor | Shape | Description |
|--------|-------|-------------|
| registry | (N, 34) | Static entity properties (collider, scale, physics) |
| states | (T, N, 23) | Dynamic: pos_xy, alive, vel_xy, gameplay(14), pos_history(4) |
| actions | (T, 7) | Unified action vector (7 fields across all games) |
| globals | (T, 17) | Global game state (17 fields across all games) |
| terminals | (T,) | Episode termination flags |
| mutable_mask | (N,) | Which entities are prediction targets |
| type_ids | (N,) | Global entity type IDs |
| slot_ids | (N,) | Original 64-slot table indices |
| rewards | (T,) | Per-frame rewards |

Where N = max_entities (game-specific), T = episode length.

## Usage

### With the `datasets` library

```python
from datasets import load_dataset

ds = load_dataset("AutoWorldModel/AutoWorldModelBench", "pong")
print(ds["train"][0].keys())
```

### Direct download with `huggingface_hub`

```python
from huggingface_hub import hf_hub_download
import pyarrow.parquet as pq
import numpy as np, json

path = hf_hub_download(
    "AutoWorldModel/AutoWorldModelBench",
    "data/pong/train.parquet",
    repo_type="dataset",
)

table = pq.read_table(path)
row = table.to_pydict()
states = np.frombuffer(
    row["states"][0], dtype=row["states_dtype"][0]
).reshape(json.loads(row["states_shape"][0]))
```

## Evaluation

Models trained on this data are evaluated on multi-step open-loop rollouts at horizons {1, 10, 20}:

- **Position L1**: Mean absolute error on entity (x, y) positions (lower is better)
- **Alive F1**: F1 score on entity alive/dead classification
- **Composite**: `0.9 * (1 - pos_l1) + 0.1 * alive_f1` (higher is better)

## Citation

If you use this dataset, please cite:

```bibtex
@misc{autoworldmodelbench2025,
  title={AutoWorldModel-Bench: A Benchmark for Evaluating Coding Agents on World Model Research},
  author={AutoWorldModel Team},
  year={2025},
  url={https://github.com/AutoWorldModelBench/Benchmark}
}
```