VideoGym-LTX-2.3 / README.md
realZillionX's picture
Add files using upload-large-folder tool
7786fe8 verified
|
Raw History Blame Contribute Delete
18.1 kB
metadata
library_name: diffusers
pipeline_tag: image-to-video
base_model:
  - Lightricks/LTX-2.3
  - diffusers/LTX-2.3-Diffusers
datasets:
  - OpenMOSS-Team/VideoGym-Train
  - OpenMOSS-Team/VideoGym-Test
language:
  - en
license: other
license_name: ltx-video-2-open-source-license
license_link: https://huggingface.co/Lightricks/LTX-2.3/blob/main/LICENSE
tags:
  - diffusers
  - safetensors
  - image-to-video
  - text-to-video
  - image-text-to-video
  - visual-reasoning
  - ltx-2
  - ltx-2-3
  - ltx-video
  - sft
  - videogym

VideoGym-LTX-2.3: Full-DiT Post-Trained 22B Video Model for Visual Reasoning Studies

Official Model Checkpoint of Can Video Generation Models Really Learn to Reason?

arXiv Paper Project Website GitHub Code
VideoGym-Train VideoGym-Test VideoGym-LTX-2.3 License: LTX Video 2

Overview · Training Recipe · Evaluation & Findings · Repository Structure · Quick Start · Citation


VideoGym seven-level generalization framework and pass-rate curves across Single-Step Group, Multi-Step Group, Overall, and Base Models Figure 1. Seven-Level Generalization Profile of VideoGym-LTX-2.3. Starting from 0.00% pass@1 on base LTX-2.3, 10-epoch full-DiT post-training on 245,884 VideoGym-Train videos yields strong gains within familiar task patterns (56.34% In-Domain, 70.45% in the Single-Step Group) yet drops near 0% beyond familiar task patterns (0.59% Composition, 0.61% Cross-Task).

🔎 Overview

VideoGym-LTX-2.3 is the official Epoch 10 full-parameter Diffusion Transformer (DiT) SFT model from VideoGym, trained on all 245,884 procedural visual reasoning videos across 246 tasks in VideoGym-Train starting from Lightricks/LTX-2.3 (diffusers/LTX-2.3-Diffusers).

This repository releases the final Epoch 10 model in a self-contained Hugging Face diffusers pipeline layout (LTX2Pipeline / LTX2ImageToVideoPipeline), directly compatible with both VideoGym's native ltx-core evaluation backend (python -m inference.backends.ltx) and diffusers.

⚙️ Architecture & Post-Training Recipe

VideoGym-LTX-2.3 updates all 48 joint audio-video DiT blocks (LTX2VideoTransformer3DModel, ~22B backbone) in bfloat16 while keeping the Gemma 3 text encoder, multimodal text connectors, Video VAE, Audio VAE, and vocoder frozen. Because VideoGym tasks are silent visual reasoning trajectories, first-frame conditioning is applied with probability 1.0 and audio reconstruction loss is disabled.

Hyperparameter Value
Base Backbone Lightricks/LTX-2.3 (diffusers/LTX-2.3-Diffusers, 48-layer DiT)
Trainable Module Full DiT (transformer, 4,186 tensors, ~38.0 GB in bfloat16); encoders & VAEs frozen
Training Dataset OpenMOSS-Team/VideoGym-Train (245,884 videos, 246 tasks, 11 families)
Published Checkpoint Epoch 10 (76,840 optimizer steps; 7,684 steps/epoch)
Hardware & Sharding 32 × NVIDIA H200 GPUs (4 nodes × 8 GPUs), PyTorch FSDP (FULL_SHARD, bf16)
Batch & Optimizer Global batch size 32 (1 per GPU), AdamW, grad clip norm 1.0, seed 42
Learning Rate 1.0e-5 → 1.0e-6 (linear scheduler)
Spatial & Temporal Grid 768×512 native canvas (512×512 centered puzzle padded with black borders) at 24 FPS (delivered at 512×512, 16 FPS)
Temporal Buckets 28 8k+1 native frame buckets: 25, 33, 41, ..., 233, 241 frames
Inference Guidance 30 Euler steps, CFG 3.0, STG 1.0 (block 28), guidance rescale 0.7, empty negative prompt

Exact training configurations are archived in training_config/ (parameters.json, config.yaml, and fsdp.yaml).

📊 Evaluation Results & Key Findings

Evaluated at pass@1 without external LLM/VLM prompt rewriting under deterministic frame-by-frame full-video verification on VideoGym-Test (3,220 questions across 6 levels) and VBVR-Pro Bench (500 questions):

1. Seven-Level Generalization Summary

Generalization Level Duration Questions LTX‑2.3 (Base) VideoGym‑LTX‑2.3 Single‑Step Multi‑Step
Within Familiar Task Patterns
In‑Domain Fixed (81f) 1,230 0.00% 32.20% (396/1,230) 47.58% 14.39%
In‑Domain Ref. Length 1,230 0.00% 56.34% (693/1,230) 70.45% 40.00%
Text Prompt Paraphrase Ref. Length 1,230 0.00% 52.60% (647/1,230) 65.15% 38.07%
Vision Prompt Paraphrase Ref. Length 165 0.00% 28.48% (47/165) 49.47% 0.00%
Extrapolation Ref. Length 260 0.00% 25.77% (67/260) 52.00% 1.48%
Beyond Familiar Task Patterns
Composition Ref. Length 170 0.00% 0.59% (1/170) 0.00% 1.00%
Cross‑Task Ref. Length 165 0.00% 0.61% (1/165) 0.87% 0.00%
Cross‑Benchmark (VBVR‑Pro Bench) Ref. Length 500 0.60% 4.60% (23/500) 6.87% 0.00%

2. Core Empirical Takeaways

  • Pace fitting under preset frame budgets (Fixed Length vs. Reference Length): Switching In-Domain evaluation from Reference Length to Fixed Length (81 frames, 5 s) drops overall accuracy by 24.14 percentage points (56.34% → 32.20%), inducing illegal multi-object shortcuts when 81 frames is shorter than the natural trajectory and post-solution over-painting when 81 frames is longer.
  • Text robustness vs. visual symbol fragility (Prompt Paraphrase): Synonymous text rewrites retain 90.76% (629/693) of solved In-Domain questions via frozen Gemma 3 representations, whereas redrawing visual symbols (Vision Prompt Paraphrase) collapses to 0.00% (0/70) across all 14 Multi-Step Group tasks.
  • Scale & boundary limits (Extrapolation): On 5/5 mastered source tasks, Scale Extrapolation retains 80.00% (24/30) in the Single-Step Group yet collapses to 0.00% in the Multi-Step Group (0/100 overall; 0/80 at 20 questions/task).
  • Collapse beyond single familiar patterns (Composition & Cross-Task): Even on Composition tasks where every constituent In-Domain task scores 5/5 (60.8% expected under independent rule execution), accuracy is 1.67% (1/60; 0/50 Single-Step, 1/10 Multi-Step), matching the 0.00% Composition and Cross-Task collapse observed in external VBVR-Pro A14B (SFT) and VBVR-Pro 5B RLVR (SFT + RLVR) models.
View Figures 2–5: Visual analyses across Duration Sensitivity, Prompt Paraphrase, Extrapolation, and Composition

Epoch scaling and Fixed Length vs Reference Length duration sensitivity Figure 2. Epoch Scaling and Duration Sensitivity. Across Epochs 2–10, the Reference-vs-Fixed-Length gap widens to +24.1 pp while Composition and Cross-Task remain ≤ 0.61%.

Text Prompt Paraphrase vs Vision Prompt Paraphrase rollouts Figure 3. Prompt Paraphrase. Text rewrites preserve Multi-Step maze solving, whereas redrawn visual symbols trigger wall/gap violations across Multi-Step tasks.

Scale and Mechanism Extrapolation rollouts Figure 4. Extrapolation. Single-Step Scale transfers cleanly, whereas Single-Step Mechanism replays training growth direction and Multi-Step Scale merges/drops objects.

Serial Multi-Step and Joint Single-Step Composition rollouts Figure 5. Rule Composition Collapse. Despite 5/5 mastery on each constituent In-Domain task, composed rules drop one rule or corrupt state transitions.

🗂️ Repository Structure

Only the final Epoch 10 checkpoint is included in this release, formatted as a complete diffusers pipeline directory:

VideoGym-LTX-2.3/
├── README.md                     Model card and usage guide
├── model_index.json              Diffusers LTX2Pipeline component manifest
├── transformer/                  Epoch 10 full-DiT weights (8 bfloat16 safetensors shards + config.json)
├── text_encoder/                 Frozen Gemma 3 text encoder (11 shards)
├── connectors/                   Frozen LTX2TextConnectors (2 shards)
├── vae/                          Frozen AutoencoderKLLTX2Video
├── audio_vae/                    Frozen AutoencoderKLLTX2Audio
├── vocoder/                      Frozen LTX2VocoderWithBWE
├── tokenizer/                    GemmaTokenizerFast
├── processor/                    Multimodal processor configuration
├── scheduler/                    FlowMatchEulerDiscreteScheduler
├── training_config/              Official training hyperparameters (parameters.json, config.yaml, fsdp.yaml)
└── assets/figures/               Evaluation and qualitative figures

🚀 Quick Start & Inference

1. Official Benchmark Rollouts (VideoGym Native ltx-core Backend)

To reproduce exact paper rollouts across OpenMOSS-Team/VideoGym-Test or VBVR-Pro Bench, install VideoGym (pip install -e '.[training]' plus Lightricks' ltx-core), download the model, and run inference.backends.ltx:

# 1. Download complete model repository (~96 GB including frozen Gemma 3 & VAEs)
hf download OpenMOSS-Team/VideoGym-LTX-2.3 --local-dir models/VideoGym-LTX-2.3

# 2. Download VideoGym-Test CLI benchmark packages
hf download OpenMOSS-Team/VideoGym-Test \
  --repo-type dataset --exclude "data/*" --local-dir datasets/videogym-test

# 3. Generate pass@1 Reference Length rollouts (or replace --reference-timing with --frames 81 for Fixed Length)
python -m inference.backends.ltx \
  --inputs datasets/videogym-test/in-domain/model_inputs.jsonl \
  --reference-timing datasets/videogym-test/in-domain/reference-timing.jsonl \
  --model-path models/VideoGym-LTX-2.3 \
  --output-root outputs/rollouts/in-domain/reference-length \
  --shards 8 --shard-index 0 --device cuda:0

Tip (36 GB DiT-only download): If you already have diffusers/LTX-2.3-Diffusers cached locally, you can download only the fine-tuned Epoch 10 transformer/ directory (hf download OpenMOSS-Team/VideoGym-LTX-2.3 --include "transformer/*" --local-dir models/VideoGym-LTX-2.3-DiT) and pass --model-path <path-to-LTX-2.3-Diffusers> --checkpoint models/VideoGym-LTX-2.3-DiT/transformer.

2. Standalone Python Generation with diffusers

VideoGym-LTX-2.3 encodes 512×512 puzzle images centered on a 768×512 black canvas (128 px left/right padding) at 24 FPS (8k + 1 native frames, e.g., 129 frames at 24 FPS for an 81-frame 16 FPS rollout) with empty negative prompt and prompt enhancement disabled:

import numpy as np
import torch
from PIL import Image
from diffusers import LTX2ImageToVideoPipeline
from diffusers.pipelines.ltx2.export_utils import encode_video

pipe = LTX2ImageToVideoPipeline.from_pretrained(
    "OpenMOSS-Team/VideoGym-LTX-2.3",
    torch_dtype=torch.bfloat16,
).to("cuda")

# Pad a 512x512 VideoGym puzzle image onto the centered 768x512 native canvas
puzzle = Image.open("input.png").convert("RGB").resize((512, 512))
canvas = np.zeros((512, 768, 3), dtype=np.uint8)
canvas[:, 128:640] = np.asarray(puzzle)

video, _ = pipe(
    image=Image.fromarray(canvas),
    prompt=open("prompt.txt").read().strip(),
    negative_prompt="",
    width=768,
    height=512,
    num_frames=129,  # 8k + 1 native frames at 24 FPS (maps to 81 frames at 16 FPS)
    frame_rate=24.0,
    num_inference_steps=30,
    guidance_scale=3.0,
    stg_scale=1.0,
    modality_scale=1.0,
    guidance_rescale=0.7,
    spatio_temporal_guidance_blocks=[28],
    enable_prompt_enhancement=False,
    max_sequence_length=1024,
    generator=torch.Generator(device="cuda").manual_seed(10),
    output_type="np",
    return_dict=False,
)

# Crop back to the central 512x512 puzzle region and subsample to 16 FPS
cropped = video[0][:, :, 128:640, :]
indices = np.minimum(80, np.floor(np.arange(129) * 16 / 24 + 0.5).astype(int))
delivery_indices = [int(np.flatnonzero(indices == i)[0]) for i in range(81)]
encode_video(cropped[delivery_indices], fps=16.0, output_path="prediction.mp4")

⚖️ Intended Use & Limitations

VideoGym-LTX-2.3 is released as a scientific research artifact for studying post-training dynamics, full-video verification, and generalization boundaries in video generation models. As demonstrated in our paper, while VideoGym-LTX-2.3 solves many familiar-pattern visual tasks accurately, it relies on learned trajectory templates rather than composable rule reasoning and should not be deployed as a general-purpose planner or safety-critical solver.

📝 Citation

If you use VideoGym-LTX-2.3 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

Model weights inherit the upstream LTX Video 2 Open Source License from Lightricks/LTX-2.3. Original training, inference, and evaluation code in VideoGym is licensed under Apache-2.0.