Original title: VideoRSI: Verifiable Self-Improvement for Code-to-Video Generation
VideoRSI splits text-to-video generation into two steps: a director model (based on Qwen3.8-27B) writes a Three.js 3D scene program for the prompt, rendering it into a proxy video that iterates on layout, motion, and camera; then MiniMax-H3 generates the final video by referencing the proxy video, a realistic reference image edited by Qwen-Image-Edit, and the prompt. The authors found that video models carry geometric and motion errors from the program directly into the final output, so they execute each program, track the 4D state of all objects and cameras for verification, fine-tune the director model only on self-generated trajectories that pass verification, and iterate the workflow under the same verification.
Why it matters Visual models often fail to detect errors like clipping or cameras missing specified positions; this approach verifies each object and camera at the program level, training only on scenes that pass verification
Likes 49 · Code stars 170
Reasons
- The paper claims that the trained 27B director model produces significantly better videos with equally rich scenes, approaching closed-source GPT-6.1 (the abstract does not provide specific scores)
- The director model weights 12-02 are on ModelScope (cheng021/VideoRSI-Director-27B), the code is Apache-2.0, and it includes four example scenes: pendulum wave, orrery, barrel hitting a box, and toy train; you can generate videos using the included proxy videos and reference images just by installing MiniMax-H3
- The authors used it to direct a short film titled "Manual Override," where each shot is a scene program written by the director model and rendered by the video model
- Face-palm likes 49 and code stars 170 only represent attention
Usage
- Create a Python 3.10 environment with conda, install PyTorch 2.7.1 (cu126), requirements.txt, Playwright Chromium, and Codex CLI 0.163.0; deploy the director model in a separate environment using vLLM 0.32.0 (scripts/serve_director.sh)
- Download the director model (from ModelScope), use python download_h3.py --output <directory> to download the MiniMax-H3 reference-image-to-video weights, and Qwen-Image-Edit-2511 can be automatically downloaded on first run
- Use python -m inference.generate_program --prompt "..." --output my_scene/ws to generate the scene program and proxy.mp4; then use inference.generate_reference_local to generate the reference image, and inference.generate_video to generate a video with 960×544 resolution, 124 frames, 24 fps, and an audio track; --keep-steps determines how many of the first steps in the 20-step denoising process follow the proxy video
Risks
- Disk space requires approximately 55 GB for the director model, 210 GB for MiniMax-H3, and 55 GB for Qwen-Image-Edit; video generation defaults to placing the text encoder and generation model on two separate GPUs
- The Codex agent in the first step executes commands by default without approval or sandboxing; the README recommends running it in a container or virtual machine, or adding --sandbox workspace-write
- The proxy video must strictly be 960×544 resolution, 124 frames, and 24 fps; the director model, MiniMax-H3, and Qwen-Image-Edit each have their own licenses