File size: 16,380 Bytes
fba29fd f750715 fba29fd f750715 fba29fd f750715 | 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 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 | ---
language:
- en
license: apache-2.0
pretty_name: VideoGym-Train
size_categories:
- 100K<n<1M
task_categories:
- image-to-video
- text-to-video
tags:
- video-generation
- image-to-video
- visual-reasoning
- procedural-generation
- sft
- rlvr
- videogym
configs:
- config_name: default
default: true
data_files:
- split: train
path: data/*/*.parquet
- config_name: geometry
data_files:
- split: train
path: data/geometry/*.parquet
- config_name: next_state_prediction
data_files:
- split: train
path: data/next_state_prediction/*.parquet
- config_name: spatial_navigation
data_files:
- split: train
path: data/spatial_navigation/*.parquet
- config_name: rearrangement_game
data_files:
- split: train
path: data/rearrangement_game/*.parquet
- config_name: in_context_learning
data_files:
- split: train
path: data/in_context_learning/*.parquet
- config_name: graph_theory
data_files:
- split: train
path: data/graph_theory/*.parquet
- config_name: dynamics_game
data_files:
- split: train
path: data/dynamics_game/*.parquet
- config_name: constraint_grid
data_files:
- split: train
path: data/constraint_grid/*.parquet
- config_name: board_game
data_files:
- split: train
path: data/board_game/*.parquet
- config_name: physics
data_files:
- split: train
path: data/physics/*.parquet
- config_name: spatial_3d
data_files:
- split: train
path: data/spatial_3d/*.parquet
---
<div align="center">
# VideoGym-Train: Procedural Visual Reasoning Dataset for Video Generation
### Official Training Dataset of *Can Video Generation Models Really Learn to Reason?*
<p align="center">
<img src="https://img.shields.io/badge/arXiv-Paper_(Coming_Soon)-B31B1B?style=flat-square&logo=arxiv&logoColor=white" alt="arXiv Paper">
<a href="https://videogym.github.io/VideoGym/"><img src="https://img.shields.io/badge/Project-Website-2E5AA8?style=flat-square" alt="Project Website"></a>
<a href="https://github.com/VideoGym/VideoGym"><img src="https://img.shields.io/badge/GitHub-VideoGym-181717?style=flat-square&logo=github&logoColor=white" alt="GitHub Code"></a>
<br>
<a href="https://huggingface.co/datasets/OpenMOSS-Team/VideoGym-Train"><img src="https://img.shields.io/badge/%F0%9F%A4%97_Dataset-VideoGym--Train-D99B26?style=flat-square" alt="VideoGym-Train"></a>
<a href="https://huggingface.co/datasets/OpenMOSS-Team/VideoGym-Test"><img src="https://img.shields.io/badge/%F0%9F%A4%97_Benchmark-VideoGym--Test-D99B26?style=flat-square" alt="VideoGym-Test"></a>
<a href="https://huggingface.co/OpenMOSS-Team/VideoGym-LTX-2.3"><img src="https://img.shields.io/badge/%F0%9F%A4%97_Model-VideoGym--LTX--2.3-D99B26?style=flat-square" alt="VideoGym-LTX-2.3"></a>
<a href="LICENSE"><img src="https://img.shields.io/badge/License-Apache_2.0-4B5563?style=flat-square" alt="License: Apache-2.0"></a>
</p>
[**Overview**](#overview) · [**Task Families**](#families) · [**Data Contract**](#contract) · [**Repository & Schema**](#schema) · [**Quick Start**](#quick-start) · [**Citation**](#citation)
</div>
---
<p>
<img src="assets/figures/fig2_tasks.png" alt="Representative VideoGym tasks in the Single-Step Group and Multi-Step Group showing Input Image, Mid-Video Frame, and Final State" width="100%">
<sub><b>Figure 1. Representative In-Domain Tasks in VideoGym-Train.</b> Examples from the <b>Single-Step Group</b> (left: marking one fixed answer on an unchanging puzzle) and <b>Multi-Step Group</b> (right: sequential state transitions where each move updates the visual scene) across five task families.</sub>
</p>
<a id="overview"></a>
## 🔎 Overview
**VideoGym-Train** is the official large-scale procedural video reasoning dataset of [**VideoGym**](https://github.com/VideoGym/VideoGym), comprising **245,884** verified examples across **246 In-Domain tasks** and **11 task families** (~1,000 instances per task). Each example pairs a clean `512×512` initial puzzle image <i>I</i><sub>0</sub>, a structured rule prompt <i>P</i> (`Input Image`, `Rule`, and `Required Output`) where the answer is never stated in advance, a `16 FPS` VP9 `.webm` reference solution video, and exact symbolic ground-truth state for deterministic full-video verification and RLVR reward scoring.
Together with the 6-level generalization benchmark [**VideoGym-Test**](https://huggingface.co/datasets/OpenMOSS-Team/VideoGym-Test) and the 22B full-DiT post-trained model [**VideoGym-LTX-2.3**](https://huggingface.co/OpenMOSS-Team/VideoGym-LTX-2.3), `VideoGym-Train` provides a controlled foundation for studying what SFT and RLVR actually teach video generation models.
<div style="overflow-x: auto;">
| Property | Specification |
| :--- | :--- |
| **Total Scale** | **245,884** training instances across **246** procedural tasks and **11** task families |
| **Task Groups** | **132** `Single-Step Group` tasks (131,992 videos) · **114** `Multi-Step Group` tasks (113,892 videos) |
| **Visual & Video Format** | `512×512` RGB PNG input image <i>I</i><sub>0</sub> · `512×512`, `16 FPS` VP9 `.webm` silent reference video |
| **Prompt Structure** | Explicit `Input Image`, `Rule`, and `Required Output` sections without answer leakage |
| **Symbolic Annotations** | Exact `semantic_input`, typed `ground_truth`, seed, and precomputed `training_profile.json` |
| **Storage Format** | Sharded Hugging Face Parquet (`Image()` + `Video()`) + `canonical_manifest.jsonl` + `unpack.py` |
</div>
<a id="families"></a>
## 🧩 Task Groups & 11 Task Families
`VideoGym-Train` partitions its 246 tasks into two groups by rule-defined visual execution ("single-step" and "multi-step" describe visual scene execution rather than internal search depth or frame count):
<div style="overflow-x: auto;">
| Task Group | Tasks | Videos | Rule-Defined Visual Execution |
| :--- | ---: | ---: | :--- |
| **Single‑Step Group** | 132 (53.66%) | 131,992 (53.68%) | Marks one fixed answer on an unchanging puzzle (e.g., N-Queens, Eulerian trail, circumcenter) or applies one simultaneous update; progressive stroke drawing never alters the underlying puzzle state. |
| **Multi‑Step Group** | 114 (46.34%) | 113,892 (46.32%) | Executes sequential state transitions or chained transforms (e.g., Sokoban, mazes, Rush Hour, 3D net folding), where each stage updates the visual scene for the next. |
</div>
Across all 11 task families, `VideoGym-Train` covers both static geometric/combinatorial deduction and multi-step state-transition dynamics:
<div style="overflow-x: auto;">
| Family (`config_name`) | Single‑Step | Multi‑Step | Total Tasks | Videos | Representative Tasks & Domains |
| :--- | ---: | ---: | ---: | ---: | :--- |
| `geometry` | 72 | 4 | **76** | 75,998 | Euclidean constructions, loci, projections, inversions, and chained transforms |
| `next_state_prediction` | 8 | 24 | **32** | 31,952 | Cellular automata, state machines, BFS frontiers, and discrete grid rollouts |
| `spatial_navigation` | 0 | 31 | **31** | 30,998 | Mazes, keys/locks, bridges, portals, conveyors, and resource routing |
| `rearrangement_game` | 0 | 23 | **23** | 22,964 | Bookshelf sorting, Hanoi, pancake flips, crane stacks, and buffer queues |
| `in_context_learning` | 16 | 3 | **19** | 18,998 | Visual analogies, attribute progressions, set operations, and matrix rules |
| `graph_theory` | 17 | 0 | **17** | 16,998 | Shortest paths, tree diameter, LCA, bridges, Eulerian trails, bipartiteness |
| `dynamics_game` | 1 | 13 | **14** | 13,998 | Sokoban, Breakout, Snake, match-clear cascades, and Lemmings rollouts |
| `constraint_grid` | 13 | 0 | **13** | 12,998 | N-Queens, Star Battle, Akari, Slitherlink, Shikaku, Nurikabe, Masyu, Yin–Yang |
| `board_game` | 1 | 7 | **8** | 7,984 | Go capture search, Mancala, Gomoku, Lights Out, and knight tours |
| `physics` | 1 | 6 | **7** | 6,998 | Multi-mirror ray tracing, elastic collisions, spill cascades, and gear trains |
| `spatial_3d` | 3 | 3 | **6** | 5,998 | Cube-net folding, polycube rotations, orthographic views, and cross-sections |
| **Total** | **132** | **114** | **246** | **245,884** | **11 families spanning static answers and sequential state transitions** |
</div>
<p>
<img src="assets/figures/fig1_generalization.png" alt="VideoGym seven-level generalization framework and pass-rate curves" width="100%">
<sub><b>Figure 2. How VideoGym-Train Connects to Seven-Level Generalization Evaluation.</b> Every level in <a href="https://huggingface.co/datasets/OpenMOSS-Team/VideoGym-Test"><b>VideoGym-Test</b></a> is constructed relative to the exact task membership, parameter ranges, and rule sets recorded in <code>VideoGym-Train/training_profile.json</code>.</sub>
</p>
<a id="contract"></a>
## 🎬 Data Generation & Video Contract
Every instance in `VideoGym-Train` follows a deterministic rendering and verification contract so models cannot exploit visual artifacts or prompt shortcuts:
- **Supersampled visual rendering (`512×512`):** Input puzzles and reference frames are rendered deterministically via 4× supersampled primitives (`data/common/render_primitives.py`), keeping essential labels and legends crisp while placing full solving rules in text prompt <i>P</i>.
- **Step-synchronized reference durations (`16 FPS`):** Reference videos hold the unchanged initial state <i>I</i><sub>0</sub>, execute each state transition or answer mark cleanly without motion blur, teleportation, or crossfade shortcuts, and hold the solved final state. Because step counts vary across problem instances, reference durations span multiple frame buckets rather than forcing all problems into one fixed clip length.
- **Cryptographic sample identity & zero evaluation overlap:** Each sample ID (`<task_name>-<24-hex-digest>`) hashes the task name, seed, `semantic_input`, `ground_truth`, prompt, and decoded RGB input pixels. The companion `training_profile.json` indexes all 245,884 sample IDs, seeds, parameter bounds, and mechanism sets so `videogym benchmark audit` guarantees zero overlap with `VideoGym-Test`.
<details>
<summary><b>View Figure 3: Why variable-duration reference videos matter during training and evaluation</b></summary>
<br>
<p>
<img src="assets/figures/fig3_duration.png" alt="Epoch scaling and duration sensitivity comparing Reference Length and Fixed Length" width="100%">
<sub><b>Figure 3. Epoch Scaling and Duration Sensitivity.</b> Training across variable step-matched durations teaches accurate pace under Reference Length (56.34% In-Domain at Epoch 10), whereas evaluating at a mismatched Fixed Length (81 frames) triggers multi-object shortcuts when shorter and post-solution over-painting when longer (32.20%).</sub>
</p>
</details>
<a id="schema"></a>
## 🗂️ Repository Layout & Data Schema
### Repository Structure
```text
VideoGym-Train/
├── README.md Dataset card and subset configuration index
├── LICENSE Apache-2.0 license
├── unpack.py Parallel CLI to extract Parquet media into families/ for videogym CLI
├── canonical_manifest.jsonl All 245,884 canonical training records (JSONL)
├── training_profile.json Exact training sample IDs, seeds, parameter ranges, and mechanisms
├── assets/figures/ Dataset overview figures
└── data/ Sharded Parquet files (Image + Video) across 11 task families
├── board_game/
├── constraint_grid/
├── dynamics_game/
├── geometry/
├── graph_theory/
├── in_context_learning/
├── next_state_prediction/
├── physics/
├── rearrangement_game/
├── spatial_3d/
└── spatial_navigation/
```
### Parquet Column Schema
Each shard in `data/<task_family>/<task_name>-00000-of-NNNNN.parquet` exposes native Hugging Face `Image()` and `Video()` columns alongside structured metadata:
<div style="overflow-x: auto;">
| Column | Type | Description |
| :--- | :--- | :--- |
| `id` | `string` | Deterministic canonical sample ID (`<task_name>-<24-hex-digest>`) |
| `task_name` | `string` | Procedural task identifier (one of 246 In-Domain tasks) |
| `task_family` | `string` | Task family identifier (one of 11 families) |
| `task_group` | `string` | `Single-Step Group` or `Multi-Step Group` |
| `split` | `string` | Always `"train"` |
| `image` | `Image` | `512×512` PNG initial puzzle image <i>I</i><sub>0</sub> (`bytes` + relative `families/...` `path`) |
| `prompt` | `string` | Structured instruction prompt <i>P</i> (`Input Image`, `Rule`, `Required Output`) |
| `video` | `Video` | `16 FPS` VP9 `.webm` reference solution video (`bytes` + relative `families/...` `path`) |
| `video_fps` | `int32` | Reference frame rate (`16`) |
| `video_num_frames` | `int32` | Exact frame count of the reference video |
| `seed` | `int64` | Procedural generation seed |
| `answer_kind` | `string` | Typed ground-truth schema kind (`option`, `grid`, `path`, `position`, `positions`, etc.) |
| `ground_truth_json` | `string` | JSON-serialized `CanonicalAnswer` dictionary |
| `semantic_input_json` | `string` | JSON-serialized symbolic problem specification (`semantic_input`) |
</div>
<a id="quick-start"></a>
## 🚀 Quick Start
### 1. Stream or Load with Hugging Face `datasets`
Stream all 245,884 examples directly or load any of the 11 task-family subsets without downloading the entire repository upfront:
```python
from datasets import load_dataset
# Stream across all 246 tasks (default config)
ds = load_dataset("OpenMOSS-Team/VideoGym-Train", split="train", streaming=True)
sample = next(iter(ds))
print(sample["id"], sample["task_family"], sample["task_group"], sample["video_num_frames"])
# Or stream / load a single task family (e.g., "geometry", "spatial_navigation", "dynamics_game")
geom_ds = load_dataset("OpenMOSS-Team/VideoGym-Train", "geometry", split="train", streaming=True)
```
### 2. Unpack for `VideoGym` CLI Training & Exposure Profiling
To run SFT, FlowGRPO RLVR, or zero-overlap benchmark auditing with the [`VideoGym`](https://github.com/VideoGym/VideoGym) CLI, download the dataset (or selected families) and run `unpack.py` to materialize the exact `families/<task_family>/tasks/<task_name>/...` media paths referenced by `canonical_manifest.jsonl`:
```bash
# 1. Download the full dataset (or pass --include "data/geometry/*" "canonical_manifest.jsonl" "unpack.py")
hf download OpenMOSS-Team/VideoGym-Train \
--repo-type dataset --local-dir datasets/videogym-train
# 2. Unpack Parquet media into datasets/videogym-train/families/
python datasets/videogym-train/unpack.py \
--dataset-dir datasets/videogym-train --workers 16
# Optional: unpack only selected families, tasks, or first N samples per task
python datasets/videogym-train/unpack.py \
--dataset-dir datasets/videogym-train \
--tasks sokoban maze_square angle_bisector --samples-per-task 200 --workers 8
```
Once unpacked, pass `canonical_manifest.jsonl` directly to `videogym` post-training:
```bash
videogym training export-data \
--manifest datasets/videogym-train/canonical_manifest.jsonl \
--output outputs/train.jsonl --samples-per-task 1000
videogym training launch \
--config training/configuration/presets/ltx23.toml \
--manifest outputs/train.jsonl --output-dir outputs/sft-run \
--tuning full --sharding fsdp --processes 8
```
<a id="citation"></a>
## 📝 Citation
If you use **VideoGym-Train** in your research, please cite our paper:
```bibtex
@article{chen2026videogym,
title={Can Video Generation Models Really Learn to Reason?},
author={Chen, Hongji and Tong, Jingqi and Li, Hangcheng and Li, Mingzhe and Mou, Yurong and Yang, Yongzhuo and Zhang, Haowei and Wang, Zile and Xie, Zhide and Qiu, Shenling and Chen, Ke and Hu, Xiaomeng and Li, Chenglin and Dou, Shihan and Deng, Hokin and Zheng, Yining and Ho, Tsung-Yi and Zhao, Jun and Chen, Xinchi},
journal={arXiv preprint},
year={2026}
}
```
## 📄 License
**VideoGym-Train** is released under the [Apache-2.0 License](LICENSE).
|