Skip to content
AI.info

Papers

VideoRSI: Verifiable Self-Improvement for Code-to-Video Generation

In code-to-video generation, a language model writes a program describing a 3D scene, and a video model turns that scene into a realistic video. The authors argue that the video model often changes…

The paper’s first page · arXiv:2611.38151
arXiv
2611.38151 · Preprint · not peer-reviewed
Published
2026-11-27
Authors
Cheng Chen, Yi Tan, Tianrun Chen, Qi Guo, Xinyao Liao, Deyi Ji, Qi Zhu, Lanyun Zhu, Keyu Wen, Zhenshan Tan, Guosheng Lin, Fayao Liu

In plain words

In code-to-video generation, a language model writes a program describing a 3D scene, and a video model turns that scene into a realistic video. The authors argue that the video model often changes appearance but preserves the program’s layout, movement, timing, and camera path, so errors in those features can persist even when they are hard to spot in individual frames.

AI summary

Overview

  • Research area: Computer vision, code-to-video generation, and self-improving AI agents.
  • Technical level: Intermediate.
  • Scope: The paper presents a way to improve an AI director that writes 3D scene programs by checking the programs’ geometry, motion, and camera behavior before using them to generate videos.

What This Paper Is About

In code-to-video generation, a language model writes a program describing a 3D scene, and a video model turns that scene into a realistic video. The authors argue that the video model often changes appearance but preserves the program’s layout, movement, timing, and camera path, so errors in those features can persist even when they are hard to spot in individual frames. VideoRSI aims to make those errors verifiable and use the resulting feedback to improve both the model and its workflow.

Key Contributions

  1. A program-level 4D verifier: The system checks the executed scene over time, rather than trying to infer all its spatial and motion properties from video frames.
  2. Separate checks for distinct quality dimensions: It measures geometric plausibility, camera control, motion readability, and spatial grounding, and provides diagnostics that identify the relevant object and time.
  3. A two-part self-improvement process: The verifier selects stronger self-generated examples for model fine-tuning, then guides revisions to the agent’s instructions, skills, and execution strategies.
  4. Constraint-aware candidate selection: Each quality dimension must meet its own standard before programs are compared for task fidelity. This is intended to avoid rewarding a program that improves a score by removing actions or simplifying the scene.

Main Findings

  • Program structure is a useful verification target: The authors find that the video model can supply or rewrite visual details, but tends to follow the proxy program’s 4D structure—including mistakes in motion and camera movement.
  • Frame-based judging can miss 4D errors: The paper describes cases where a vision-language model judging keyframes does not catch a camera passing through a door, while checking the executed scene can detect the collision.
  • VideoRSI improves final-video controllability: On the paper’s 82-prompt benchmark, VideoRSI scores 52.6% on Camera Instruction Accuracy (CIA), 73.2% on Scene Specification Fidelity (SSF), and 17.3% on Visible Interaction Error Rate (VIER). The Base director scores 36.8%, 57.6%, and 26.8%, respectively. Higher is better for CIA and SSF; lower is better for VIER.
  • Results are competitive with the commercial baseline on the reported metrics: GPT-6.1 scores 51.7% on CIA, 72.1% on SSF, and 18.4% on VIER. VideoRSI is slightly higher on the three controllability metrics, while GPT-6.1 has higher VBench Aesthetic Quality (57.9 versus 56.1).
  • Both improvement stages contribute: In the ablation, adding RS-SFT to the Base director raises CIA from 36.8% to 42.1%; adding Harness Evolution raises it to 47.8%. The full method reaches 52.6% CIA and 73.2% SSF.
  • Scalar ranking can encourage undesirable simplification: Compared with the full method, scalar 4D ranking has lower CIA (48.3% versus 52.6%) and SSF (65.5% versus 73.2%). The authors report that it can favor programs that remove moving subjects or simplify interactions.

Methodology in Plain English

The director takes a prompt and writes an executable Three.js program for a dynamic 3D scene. The program is run in a headless browser, where VideoRSI records the state of each object and the camera over time. That record includes objects’ positions and sizes in the 3D world, their screen-space visibility, and the camera’s pose.

The verifier uses this information to check four things: whether the scene has geometric or temporal contradictions; whether the camera is positioned and framed effectively; whether the required movement can be seen clearly; and whether named objects satisfy requested spatial relationships. It returns scores for these dimensions along with diagnostics about detected problems.

VideoRSI then uses the feedback in two stages:

  • Improve the model’s weights: The director generates candidate programs and interaction trajectories. The verifier filters out candidates with 4D weaknesses; task-fidelity comparisons then select promising examples for rejection-sampling fine-tuning.
  • Improve the agent’s workflow: With the updated model held fixed, the system proposes changes to its instructions, skills, and execution strategies. A change is retained only if it improves performance on the same development prompts while preserving geometric plausibility and delivery stability.

The final videos are evaluated separately from the program checks. The experiments use a frozen MiniMax-H3 video generator, so the authors attribute improvements in final-video control to better scene programs and directing.

Why This Matters

Research impact: The paper offers a way to give coding agents feedback on qualities that are difficult to judge from a handful of images. Its central idea is to verify the structure the director actually controls—the scene program—rather than relying only on judgments of rendered frames. This may also help reduce reward hacking, such as improving a score by deleting difficult content.

Potential applications:

  • Generating videos with coordinated camera movement and subject motion for creative production.
  • Creating product or instructional videos where object placement and action sequences need to follow a specification.
  • Producing simulated scenes for robotics or training environments where spatial relationships and motion need to be checked.
  • Building interactive or animated visualizations with complex paths, events, and camera behavior.

Industry relevance: VideoRSI shows a route for improving an open-source director without changing the video generator. On the reported controllability measures, its Qwen3.8-27B director performs competitively with GPT-6.1, though GPT-6.1 has higher reported aesthetic quality. The approach is especially relevant where accurate camera direction and scene structure matter alongside visual realism.

Future Directions

  • Test whether the approach transfers to other video generators and director models, rather than relying on a frozen MiniMax-H3 setup.
  • Extend verification to scene properties that are not captured by the current object-and-camera representation, while retaining reliable and reproducible checks.
  • Study how well program-level quality predicts final-video quality across a wider range of tasks and generation systems.
  • Investigate how to scale the method to longer narratives and more complex chains of interacting events without making verification or self-improvement prohibitively costly.

Target Audience

This paper is most useful to researchers and practitioners working on code-to-video generation, AI agents that write executable programs, controllable video synthesis, or automated evaluation. It is also relevant to people building creative tools or simulation systems that need more reliable control over geometry, motion, and camera behavior.

Authors’ abstract

Executable environments let coding agents improve themselves; the key is reliable program verification. In code-to-video generation, an LLM director writes a 3D scene program that a video model renders realistically. Coupling geometry, physics, motion and camera, this complex visual task is hard to verify. To make it verifiable for self-improvement, we ask what to verify and how. We observe that the generator treats the proxy as a hard 4D constraint and the prompt as a soft…

The full abstract on arXiv
Read the original paper

Related papers