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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
tags:
|
| 3 |
+
- world-model
|
| 4 |
+
- game-simulation
|
| 5 |
+
- reinforcement-learning
|
| 6 |
+
- timeseries
|
| 7 |
+
license: apache-2.0
|
| 8 |
+
size_categories:
|
| 9 |
+
- 100K<n<1M
|
| 10 |
+
task_categories:
|
| 11 |
+
- time-series-forecasting
|
| 12 |
+
pretty_name: AutoWorldModel-Bench
|
| 13 |
+
configs:
|
| 14 |
+
- config_name: asteroids
|
| 15 |
+
data_files:
|
| 16 |
+
- split: train
|
| 17 |
+
path: data/asteroids/train.parquet
|
| 18 |
+
- split: validation
|
| 19 |
+
path: data/asteroids/val.parquet
|
| 20 |
+
- split: test
|
| 21 |
+
path: data/asteroids/test.parquet
|
| 22 |
+
- split: scenario
|
| 23 |
+
path: data/asteroids/scenario.parquet
|
| 24 |
+
- config_name: breakout
|
| 25 |
+
data_files:
|
| 26 |
+
- split: train
|
| 27 |
+
path: data/breakout/train.parquet
|
| 28 |
+
- split: validation
|
| 29 |
+
path: data/breakout/val.parquet
|
| 30 |
+
- split: test
|
| 31 |
+
path: data/breakout/test.parquet
|
| 32 |
+
- split: scenario
|
| 33 |
+
path: data/breakout/scenario.parquet
|
| 34 |
+
- config_name: frogger
|
| 35 |
+
data_files:
|
| 36 |
+
- split: train
|
| 37 |
+
path: data/frogger/train.parquet
|
| 38 |
+
- split: validation
|
| 39 |
+
path: data/frogger/val.parquet
|
| 40 |
+
- split: test
|
| 41 |
+
path: data/frogger/test.parquet
|
| 42 |
+
- split: scenario
|
| 43 |
+
path: data/frogger/scenario.parquet
|
| 44 |
+
- config_name: kong
|
| 45 |
+
data_files:
|
| 46 |
+
- split: train
|
| 47 |
+
path: data/kong/train.parquet
|
| 48 |
+
- split: validation
|
| 49 |
+
path: data/kong/val.parquet
|
| 50 |
+
- split: test
|
| 51 |
+
path: data/kong/test.parquet
|
| 52 |
+
- split: scenario
|
| 53 |
+
path: data/kong/scenario.parquet
|
| 54 |
+
- config_name: platformer
|
| 55 |
+
data_files:
|
| 56 |
+
- split: train
|
| 57 |
+
path: data/platformer/train.parquet
|
| 58 |
+
- split: validation
|
| 59 |
+
path: data/platformer/val.parquet
|
| 60 |
+
- split: test
|
| 61 |
+
path: data/platformer/test.parquet
|
| 62 |
+
- split: scenario
|
| 63 |
+
path: data/platformer/scenario.parquet
|
| 64 |
+
- config_name: pong
|
| 65 |
+
default: true
|
| 66 |
+
data_files:
|
| 67 |
+
- split: train
|
| 68 |
+
path: data/pong/train.parquet
|
| 69 |
+
- split: validation
|
| 70 |
+
path: data/pong/val.parquet
|
| 71 |
+
- split: test
|
| 72 |
+
path: data/pong/test.parquet
|
| 73 |
+
- split: scenario
|
| 74 |
+
path: data/pong/scenario.parquet
|
| 75 |
+
- config_name: racer
|
| 76 |
+
data_files:
|
| 77 |
+
- split: train
|
| 78 |
+
path: data/racer/train.parquet
|
| 79 |
+
- split: validation
|
| 80 |
+
path: data/racer/val.parquet
|
| 81 |
+
- split: test
|
| 82 |
+
path: data/racer/test.parquet
|
| 83 |
+
- split: scenario
|
| 84 |
+
path: data/racer/scenario.parquet
|
| 85 |
+
- config_name: snake
|
| 86 |
+
data_files:
|
| 87 |
+
- split: train
|
| 88 |
+
path: data/snake/train.parquet
|
| 89 |
+
- split: validation
|
| 90 |
+
path: data/snake/val.parquet
|
| 91 |
+
- split: test
|
| 92 |
+
path: data/snake/test.parquet
|
| 93 |
+
- split: scenario
|
| 94 |
+
path: data/snake/scenario.parquet
|
| 95 |
+
---
|
| 96 |
+
|
| 97 |
+
# AutoWorldModel-Bench
|
| 98 |
+
|
| 99 |
+
Game state sequences for training and evaluating action-conditioned world models.
|
| 100 |
+
8 classic game environments with a unified entity-based tensor schema, deterministic train/val/test/scenario splits, and 152,000 total episodes.
|
| 101 |
+
|
| 102 |
+
This dataset accompanies the [AutoWorldModel-Bench](https://github.com/AutoWorldModelBench/Benchmark) benchmark for evaluating frontier coding agents on open-ended world-model research.
|
| 103 |
+
|
| 104 |
+
## Dataset Structure
|
| 105 |
+
|
| 106 |
+
```
|
| 107 |
+
data/
|
| 108 |
+
└── {game}/
|
| 109 |
+
├── train.parquet # 10,000 episodes
|
| 110 |
+
├── val.parquet # 3,000 episodes
|
| 111 |
+
├── test.parquet # 3,000 episodes
|
| 112 |
+
├── scenario.parquet # 3,000 episodes
|
| 113 |
+
└── meta.json # max_entities, dimensions, total_frames
|
| 114 |
+
```
|
| 115 |
+
|
| 116 |
+
## Games
|
| 117 |
+
|
| 118 |
+
| Game | Max Entities | Total Frames | Size | Data Version |
|
| 119 |
+
|------|:---:|---:|---:|:---:|
|
| 120 |
+
| asteroids | 20 | 5.6M | 0.9 GB | v2 |
|
| 121 |
+
| breakout | 52 | 33.0M | 0.7 GB | v2 |
|
| 122 |
+
| frogger | 28 | 6.2M | 0.8 GB | v2 |
|
| 123 |
+
| kong | 16 | 23.0M | 0.5 GB | v2 |
|
| 124 |
+
| platformer | 24 | 10.6M | 0.3 GB | v2 |
|
| 125 |
+
| pong | 5 | 42.5M | 1.7 GB | v1 |
|
| 126 |
+
| racer | 6 | 21.1M | 0.9 GB | v1 |
|
| 127 |
+
| snake | 48 | 15.9M | 0.2 GB | v1 |
|
| 128 |
+
|
| 129 |
+
**Total: 152,000 episodes (19,000 per game), 158.0M frames**
|
| 130 |
+
|
| 131 |
+
All games share a unified tensor schema: `registry_dim=34`, `state_dim=23`.
|
| 132 |
+
|
| 133 |
+
Each game has 10,000 train / 3,000 val / 3,000 test / 3,000 scenario episodes.
|
| 134 |
+
|
| 135 |
+
### Data Collection Policy
|
| 136 |
+
|
| 137 |
+
v2 games (asteroids, breakout, frogger, kong, platformer) use a 3-policy mix for diverse behavioral coverage:
|
| 138 |
+
- **Random** — uniform random actions
|
| 139 |
+
- **Heuristic** — hand-crafted game-specific strategies
|
| 140 |
+
- **RL checkpoint** — DQN/PPO agents at various training stages
|
| 141 |
+
|
| 142 |
+
v1 games (pong, racer, snake) use a 50/50 heuristic + random mix.
|
| 143 |
+
|
| 144 |
+
## Tensor Schema
|
| 145 |
+
|
| 146 |
+
Each Parquet row stores one episode as serialized numpy arrays:
|
| 147 |
+
|
| 148 |
+
| Tensor | Shape | Description |
|
| 149 |
+
|--------|-------|-------------|
|
| 150 |
+
| registry | (N, 34) | Static entity properties (collider, scale, physics) |
|
| 151 |
+
| states | (T, N, 23) | Dynamic: pos_xy, alive, vel_xy, gameplay(14), pos_history(4) |
|
| 152 |
+
| actions | (T, 7) | Unified action vector (7 fields across all games) |
|
| 153 |
+
| globals | (T, 17) | Global game state (17 fields across all games) |
|
| 154 |
+
| terminals | (T,) | Episode termination flags |
|
| 155 |
+
| mutable_mask | (N,) | Which entities are prediction targets |
|
| 156 |
+
| type_ids | (N,) | Global entity type IDs |
|
| 157 |
+
| slot_ids | (N,) | Original 64-slot table indices |
|
| 158 |
+
| rewards | (T,) | Per-frame rewards |
|
| 159 |
+
|
| 160 |
+
Where N = max_entities (game-specific), T = episode length.
|
| 161 |
+
|
| 162 |
+
## Usage
|
| 163 |
+
|
| 164 |
+
### With the `datasets` library
|
| 165 |
+
|
| 166 |
+
```python
|
| 167 |
+
from datasets import load_dataset
|
| 168 |
+
|
| 169 |
+
ds = load_dataset("AutoWorldModel/AutoWorldModelBench", "pong")
|
| 170 |
+
print(ds["train"][0].keys())
|
| 171 |
+
```
|
| 172 |
+
|
| 173 |
+
### Direct download with `huggingface_hub`
|
| 174 |
+
|
| 175 |
+
```python
|
| 176 |
+
from huggingface_hub import hf_hub_download
|
| 177 |
+
import pyarrow.parquet as pq
|
| 178 |
+
import numpy as np, json
|
| 179 |
+
|
| 180 |
+
path = hf_hub_download(
|
| 181 |
+
"AutoWorldModel/AutoWorldModelBench",
|
| 182 |
+
"data/pong/train.parquet",
|
| 183 |
+
repo_type="dataset",
|
| 184 |
+
)
|
| 185 |
+
|
| 186 |
+
table = pq.read_table(path)
|
| 187 |
+
row = table.to_pydict()
|
| 188 |
+
states = np.frombuffer(
|
| 189 |
+
row["states"][0], dtype=row["states_dtype"][0]
|
| 190 |
+
).reshape(json.loads(row["states_shape"][0]))
|
| 191 |
+
```
|
| 192 |
+
|
| 193 |
+
## Evaluation
|
| 194 |
+
|
| 195 |
+
Models trained on this data are evaluated on multi-step open-loop rollouts at horizons {1, 10, 20}:
|
| 196 |
+
|
| 197 |
+
- **Position L1**: Mean absolute error on entity (x, y) positions (lower is better)
|
| 198 |
+
- **Alive F1**: F1 score on entity alive/dead classification
|
| 199 |
+
- **Composite**: `0.9 * (1 - pos_l1) + 0.1 * alive_f1` (higher is better)
|
| 200 |
+
|
| 201 |
+
## Citation
|
| 202 |
+
|
| 203 |
+
If you use this dataset, please cite:
|
| 204 |
+
|
| 205 |
+
```bibtex
|
| 206 |
+
@misc{autoworldmodelbench2025,
|
| 207 |
+
title={AutoWorldModel-Bench: A Benchmark for Evaluating Coding Agents on World Model Research},
|
| 208 |
+
author={AutoWorldModel Team},
|
| 209 |
+
year={2025},
|
| 210 |
+
url={https://github.com/AutoWorldModelBench/Benchmark}
|
| 211 |
+
}
|
| 212 |
+
```
|