arXiv:2610.28416cs.CVOct 2026Cited by 2 papers on PaperVantage

Manuscript Offprint

arXiv:2610.28416

Code2Video-Compass: A Comprehensive Benchmark for General-Purpose Code-Based Video Generation across T2V, I2V, and V2V

Zhenghan Chen, Zekai Shao, Xin Lin, Leting Cheng, Siming Chen

Zhenghan Chen 1^{1}, Zekai Shao 1,†^{1,\dagger}, Xin Lin 2^{2}, Leting Cheng 1^{1}, and Siming Chen 1,∗^{1,*}

1^{1}Fudan University 2^{2}Sun Yat-sen University

†^{\dagger}Project Lead, ∗^{*}Corresponding author

Project Repository: https://code2video-compass.github.io/

Three Input Modalities

T2V Task

Text instruction

I2V Task

Text

Keyframe

Figure

V2V Task

Text + Reference Clip

Figure

2-10 s reference clip

15 Evaluated MLLMs

GPT

6.1 Sol / 6 Astra / 6 Luna

Claude

5.5 Opus / Sonnet / Haiku

Qwen

3.8 Max / Flash / 27B

Gemini

3.8 Flash

K' Kimi

K3

Z GLM

5.3 Flash

DeepSeek

V4.1 Flash

MiniMax

M3

MiMo

V2.6 Pro

General Stack

Remotion

HTML/CSS | SVG | Canvas | Three.js

2,104 Tasks | 10 Video Categories | 24 Subtypes

Figure

Explainer Motion Graphics

Branding & Promotional Motion

Kinetic Typography

UI & Product Motion

Data & Infographic Animation

Figure

Title Sequences

Broadcast & Show Graphics

Illustrative & Character Narrative

Abstract & Experimental Motion

3D Motion

Dual-level evaluation

12 OBJECTIVE METRICS

Operational

• Execution success

• Token consumption

Video quality

• Technical Quality

• Aesthetic Quality

• Motion smoothness

T-V Alignment

• Local TVAIgn

• Global TVAIgn

Image fidelity

• Perceptual Fidelity

• Structural Fidelity

Clip fidelity

• Sequence Alignment

• Appearance Fidelity

• Motion Fidelity

5 SUBJECTIVE METRICS

Instruction Following

• Checklist QA

(6 Dimensions | ≤16 QAs)

Holistic Video Quality

• Content Coherence • Visual Design

• Viewer Engagement • Motion Quality

Figure 1. Overview of Code2Video-Compass. The benchmark evaluates 15 multimodal large language models (MLLMs) on code-based text-to-video (T2V), image-to-video (I2V), and video-to-video (V2V) generation. Models generate executable code from text and optional visual references using a general-purpose stack supporting HTML/CSS, SVG, Canvas, and Three.js, with Remotion rendering the resulting videos. It comprises 2,104 tasks spanning 10 categories and 24 subtypes, evaluated through a comprehensive dual-level framework combining 12 objective metrics with five subjective metrics.

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.

1. Introduction

Recent advances in multimodal large language models (MLLMs) [3, 18, 38, 41, 44] are making it increasingly feasible to create complete videos through executable code, a task requiring world knowledge, spatial reasoning, creative judgment, and complex programming. Compared with direct video generation, code-based approaches explicitly represent visual structures and animation parameters, enabling fine-grained control, targeted editing, and component reuse [12, 33, 46]. Generating complete videos that follow textual instructions requires models to plan coherent narratives and visuals, reliably generate lengthy code across interdependent files, and coordinate animations and evolving states across scenes and timelines. Moreover, visual references introduce additional challenges, requiring models to reconstruct the referenced appearance or motion and integrate it into the complete video [29, 63].

Existing benchmarks for direct video generation, including VBench [22], EvalCrafter [32], and T2V-CompBench [51], evaluate visual quality, semantic alignment, and compositional requirements, while LongAV-Compass [30] extends evaluation to longer sequences and multiple input conditions. Code-based tasks target specialized applications or representations, including Manim educational videos [13], data narratives [35], SVG animations [53], and web animation reconstruction [24]. Similarly, HeyGen's Code2Video Benchmark [62] focuses on short motion graphics clips representing individual beats of product launch videos. Nevertheless, as shown in Tab. 1, existing code-based benchmarks remain limited in task coverage and input modalities, and lack comprehensive evaluation combining objective and subjective metrics.

To address these gaps, we introduce Code2Video-Compass (Fig. 1), a general-purpose benchmark for code-based text-to-video (T2V), image-to-video (I2V), and video-to-video (V2V) generation, where models create complete videos following textual instructions and, when provided, reconstruct and integrate visual references at appropriate temporal positions. Guided by a taxonomy of motion-design practices, we combine independently constructed tasks based on curated textual instructions and visual references with tasks derived from complete professional and user-created videos. This yields 2,104 tasks across 10 categories and 24 subtypes, each annotated along three complexity dimensions: construction, dynamic animation, and state dependency. We further propose a comprehensive dual-level evaluation framework combining 12 objective metrics and five subjective metrics. Objective evaluation measures execution success, token consumption, technical and aesthetic quality, motion smoothness, text–video alignment, and reference fidelity. Subjective evaluation employs an MLLM-as-a-judge protocol to evaluate fine-grained instruction following through explicit checklists and evaluate holistic creative quality across content coherence, visual design, motion quality, and viewer engagement.

In summary, our main contributions are as follows:

• General-Purpose Code-Based Video Generation. We formulate unified T2V, I2V, and V2V tasks that require MLLMs to generate executable code for video generation.

• Taxonomy-Driven Benchmark Dataset. We curate 2,104 tasks spanning 10 categories and 24 subtypes, annotated along three complexity dimensions, each with three levels.

• Comprehensive Dual-Level Evaluation Framework. We integrate 12 objective metrics and five subjective metrics to evaluate code-based video generation capabilities.

• Extensive MLLM Benchmarking and Insights. We evaluate 15 proprietary and open-weight MLLMs, revealing that video quality and execution reliability do not always align, with performance declining as complexity increases.

References (38)