VideoGym-Train / README.md
realZillionX's picture
Add files using upload-large-folder tool
f750715 verified
|
Raw History Blame Contribute Delete
16.4 kB
metadata
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

VideoGym-Train: Procedural Visual Reasoning Dataset for Video Generation

Official Training Dataset of Can Video Generation Models Really Learn to Reason?

arXiv Paper Project Website GitHub Code
VideoGym-Train VideoGym-Test VideoGym-LTX-2.3 License: Apache-2.0

Overview · Task Families · Data Contract · Repository & Schema · Quick Start · Citation


Representative VideoGym tasks in the Single-Step Group and Multi-Step Group showing Input Image, Mid-Video Frame, and Final State Figure 1. Representative In-Domain Tasks in VideoGym-Train. Examples from the Single-Step Group (left: marking one fixed answer on an unchanging puzzle) and Multi-Step Group (right: sequential state transitions where each move updates the visual scene) across five task families.

🔎 Overview

VideoGym-Train is the official large-scale procedural video reasoning dataset of 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 I0, a structured rule prompt P (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 and the 22B full-DiT post-trained model VideoGym-LTX-2.3, VideoGym-Train provides a controlled foundation for studying what SFT and RLVR actually teach video generation models.

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 I0 · 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

🧩 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):

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.

Across all 11 task families, VideoGym-Train covers both static geometric/combinatorial deduction and multi-step state-transition dynamics:

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

VideoGym seven-level generalization framework and pass-rate curves Figure 2. How VideoGym-Train Connects to Seven-Level Generalization Evaluation. Every level in VideoGym-Test is constructed relative to the exact task membership, parameter ranges, and rule sets recorded in VideoGym-Train/training_profile.json.

🎬 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 P.
  • Step-synchronized reference durations (16 FPS): Reference videos hold the unchanged initial state I0, 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.
View Figure 3: Why variable-duration reference videos matter during training and evaluation

Epoch scaling and duration sensitivity comparing Reference Length and Fixed Length Figure 3. Epoch Scaling and Duration Sensitivity. 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%).

🗂️ Repository Layout & Data Schema

Repository Structure

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:

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 I0 (bytes + relative families/... path)
prompt string Structured instruction prompt P (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)

🚀 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:

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 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:

# 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:

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

📝 Citation

If you use VideoGym-Train in your research, please cite our paper:

@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.