Code2Video Compass benchmark evaluates code based video creation
Code2Video-Compass: A Comprehensive Benchmark for General-Purpose Code-Based Video Generation across T2V, I2V, and V2V
Computer Vision and Pattern RecognitionArtificial Intelligence
Summary
Creating videos by writing code instead of making them directly allows for more precise control and easier editing. The authors made a big test called Code2Video-Compass to see how well different AI models can create videos from text, images, or other videos using code. Their test covers many types of video tasks and checks video quality and how well the videos match the instructions. They found that even the best models still have trouble making good, fully accurate videos, especially when the tasks are more complex. This benchmark helps improve AI that makes videos through coding.
What this means in practice
- •For video software developers: Use the benchmark to test and improve AI tools that generate or edit videos by writing code from text or images.
- •For multimedia content creators: Develop code-based video generation systems that reliably create videos matching complex text and visual instructions across diverse creative categories.
Authors
Zhenghan Chen, Zekai Shao, Xin Lin, Leting Cheng, Siming Chen
Abstract
Code-based video generation offers fine-grained control, targeted editing, and component reuse compared with direct video generation. This approach requires multimodal large language models (MLLMs) to translate visual and temporal requirements into executable programs that produce complete videos. However, existing code-based benchmarks primarily target specialized tasks, leaving complete video creation across diverse creative categories and input modalities insufficiently evaluated. We introduce Code2Video-Compass, a general-purpose benchmark for code-based video generation across text-to-video (T2V), image-to-video (I2V), and video-to-video (V2V) settings. Code2Video-Compass comprises 2,104 tasks spanning 10 categories, 24 subtypes, and three complexity dimensions covering construction, dynamic animation, and state dependency. It combines tasks curated from textual instructions and visual references with corresponding T2V, I2V, and V2V tasks derived from complete professional and user-created videos. We propose a dual-level evaluation framework combining 12 objective metrics and five subjective metrics. Objective evaluation covers operational performance, video quality, text-video alignment, and reference fidelity, while subjective evaluation uses an MLLM judge to evaluate instruction following and holistic video quality. Extensive evaluation of 15 recent proprietary and open-weight MLLMs from nine families reveals that even leading models face challenges in reliably generating high-quality complete videos aligned with textual and visual requirements, with performance generally declining as construction, dynamic animation, and state-dependency complexity increases. We anticipate that Code2Video-Compass will advance reliable, coherent, and controllable code-based video generation and inspire broader progress in programmatic visual creation.