How Far Has Code-Writing Video AI Come? A Breakdown of Code2Video-Compass

A benchmark that measures how well AI capable of understanding text, images, and video can write code to produce finished videos, scored across a fixed subset of 1,054 tasks. Even the top models fail to reliably produce good videos once the tasks get complex.
← All posts
온
온틀 리서치
2026년 10월 25일 Updated 2026.11.27 33 min read views 3

There are broadly two paths to making video with AI. One has the AI draw the pixels on screen directly (what people usually mean by a "video generation model"). The other is the code-based generation this paper deals with. Instead of "drawing" the video itself, a multimodal LLM — an AI that understands text, images, and video — writes a program that produces the video. A rendering engine (here, Remotion) then runs that code to spit out the final video.

First, the Results

One caveat before the numbers. In this benchmark, each model gets exactly one shot at writing the code. There is no run-check-the-error-and-fix loop. So the figures below reflect "how well it writes on the first try," not "how well it can finish the job including debugging."

Under those conditions, the overall winner for text input (T2V) is Claude Opus 5.5. Here "average rank" is the mean of the placements a model earned across the various metrics, so lower is better (closer to 1). Opus 5.5 lands at 1.600, Claude Sonnet 5.5 at 1.900, and GPT-6.1 Sol at 2.600. Even first place is far from perfect: Opus 5.5's execution success rate (the share of outputs that produced an error-free, playable video) was 94.4%, and its requirement pass rate was 91.5%. At the bottom, MiniMax M3 drops to 51.9% and 33.0% respectively. And as we'll see later, this gap only widens as the tasks get harder.

This article is based on an excerpt of the paper, and the discussion of results focuses on text input (T2V) and image input (I2V). For video input (V2V), all we can say for certain is that 693 tasks were allocated to it; the results table falls outside the excerpted range, so we don't cover those numbers.

Why Make Video with Code?

Models that draw pixels directly struggle with localized edits like "just enlarge the subtitle text at the 3-second mark." Generative video editing that changes only specific elements does exist (Runway Aleph), but deterministically guaranteeing a precise local change — like a single line of subtitle font size — is still not easy. When it's written in code, you just fix that one line. The three advantages the paper credits to the code approach — fine-grained control, partial edits, and component reuse — all flow from this "fix just one line" property.

How These Results Were Measured

So how do you measure this capability? Existing benchmarks only looked at one side. The code-based ones specialized in a single genre, such as instructional videos, logos, or vector animation (names in the appendix), while the pixel-drawing ones judged the quality of the output video but never checked whether the code actually ran without errors. There was no venue broadly measuring the general-purpose ability to "produce a finished video, across many genres, from many kinds of input." Code2Video-Compass targets that gap, uniting the three inputs — text, image, and video — into one framework, and ranking 15 state-of-the-art models across 2,104 tasks, 10 categories, and 17 metrics — a large scale even among its peers (Table 1 in the paper). The essentials are below (per-stage collection figures and measurement tools are gathered in the appendix at the end).

Tasks — diversity and duplicate management are the crux. The tasks come in two branches. One is a set of independent tasks, built by expanding broadly on creative scope from text seeds and reference images and videos. The other is a set of paired tasks, reverse-engineered from finished videos actually made by professionals and users. What makes the paired set useful is that from a single source video, three tasks — "recreate this from text alone," "make this using this image," "reconstruct this clip" — were extracted so they share the same creative goal. That lets you compare models under identical conditions while varying only the input modality. The final 2,104 tasks (T2V 718 / I2V 693 / V2V 693) are what's left after gathering from diverse sources and filtering out duplicates. Because mixing the same video in multiple times would distort the evaluation, everything from exact-address duplicates to visually similar near-duplicates was filtered, with a final human review.

Scoring — three things, looked at separately. The scoring criteria fall into three groups. (1) Did it run — did it execute without errors, and how many tokens (the units of text a model processes) did it consume? (2) Is the video itself good — sharpness, aesthetic polish, smoothness of motion, and whether what's on screen matches what was instructed? (3) Did it follow the requirements? The third matters especially, because a video running doesn't guarantee it was made according to the brief (the production requirements). Whether a video is sharp and whether it displayed the requested price accurately on screen are entirely different checks. So each task's instructions are broken into a "verification question" checklist, and an AI judge (Gemini 3.8 Flash) is asked whether the video satisfies each item, yielding a pass rate.

Complexity — split along three axes. Each task carries three kinds of difficulty, each on a 3-level scale, because "hard to draw," "hard to animate," and "hard to remember over time" are distinct problems in video. Drawing a single logo precisely is a construction problem; making several elements dance at once is an animation problem; keeping the same character's color consistent a minute later is a state-dependency problem. Splitting it this way lets you see exactly where a model breaks down.

Participating models. Fifteen models, nine families. GPT family (6 Astra, 6.1 Sol, 6 Luna), Claude family (Opus 5.5, Sonnet 5.5, Haiku 5.5), Gemini 3.8 Flash, Qwen3.8 (Max, Flash), plus the open-weight Qwen3.8-27B, Kimi K3, GLM-5.3-Flash, DeepSeek-V4.1-Flash, MiniMax M3, and MiMo-V2.6-Pro. Every model was run on a fixed subset of 1,054 tasks (T2V 360 / I2V 347 / V2V 347) sampled evenly from the whole, and the complexity and prompt-length distributions of this subset were confirmed to be statistically indistinguishable from the full set. Outputs that fail to execute are scored zero on every item except the operational metrics — a safeguard against quietly dropping hard tasks to inflate the average.

Reading the Results Closely

A video that runs and a video made well are different abilities. Code executing without errors doesn't mean a good video comes out. The paper treats execution reliability and video quality as moving independently. That said, the excerpt has no concrete table of cases that "executed successfully but scored low on quality," so exactly where the two abilities diverge is beyond what this article can confirm. What's established here stops at "you shouldn't lump the two into one score."

Change the input and the rankings swing. Qwen3.8-Max sits mid-pack on text input (average rank 6.250) but slides to 14.000 once a reference image is in play (its execution success rate also drops from 87.5% to 64.0%). Conversely, Claude Haiku 5.5 is at 10.600 on text but jumps to 4.000 on image input (tied with GPT-6 Astra). This reads as some models finding it especially hard to understand a reference image and place it correctly — though whether image processing itself is the cause can only be settled by categorizing the failures by type. The operational implication is clear regardless: you shouldn't casually use the same model for text work and for image/video reference work. The overall winner on image input (I2V) is, again, Claude Opus 5.5 (average rank 1.083, execution success rate 96.0%).

Efficiency varies wildly. On text input, token consumption is frugal for GPT-6 Luna at 9,923 and GPT-6.1 Sol at 13,022, while GLM-5.3-Flash reaches 94,000 and Qwen3.8-27B 87,862. In other words, some models burn nearly ten times the tokens for comparable or worse quality. But don't read token consumption as call cost directly — token unit prices differ by model, and the paper analyzes token consumption and API cost separately (§5.4 of the original paper). Roughly ten times the tokens does not mean roughly ten times the cost.

It buckles as complexity rises. Of the three axes, take "state dependency" (the ability to hold onto what was fixed earlier through to the end). Level 1 only needs consistency with the immediately preceding step, but Level 3 has to maintain consistency across a long stretch, skipping over several changes in between — keeping a brand color used at the start of the video consistent a minute later belongs here. Scores fall as the level climbs, which appears to be because the model loses track of state it set earlier. That said, since tasks that "got almost everything right but were wiped out by a trivial error" get bundled into the same zero as tasks that were "wrong from the start," reading these numbers precisely still requires an analysis that separates the texture of the failures.

Limits and Open Questions

That this evaluation runs under single-call, no-repair conditions (write once, never fix) is a design choice. So "how much better would it get with agent-style iterative fixing?" is a question these numbers don't answer. A real-world pipeline would attach an iteration loop that feeds execution logs back for fixes, so it's fair to view these numbers as close to a floor. It's also worth keeping in mind that the subjective evaluation rests on a single AI judge (Gemini 3.8 Flash) — though the paper set up a separate judge-validation procedure to back this.

Two questions remain. First, the rendering stack (the toolset used to produce the video) is fixed as HTML/CSS, SVG, Canvas, Three.js + Remotion, so models strong on a particular stack may have an edge. Whether the results generalize to other pipelines is a separate matter. Second, scoring execution failures as zero is fair but doesn't distinguish the kind of failure. Pulling apart where and why things failed could shift the interpretation of the numbers considerably.

The ONTLE Take

ONTLE's AI PM is an agent that takes a client's production request and sees it through to the deliverable. Suppose a B2B client requests a "30-second motion-graphics onboarding video explaining a new feature." The PM agent drafts it in Remotion and SVG code, renders it, and uploads it. That much is what it actually does today.

The problem is what comes next. Say the video is supposed to show "9,900 won/month," but the code prints "9,000 won/month." The render finishes without errors, and if you trust execution success alone and wave it through, a video with the wrong price goes straight to the client. The very reason Code2Video-Compass deliberately separates execution reliability from requirement satisfaction maps onto exactly this scene.

So here's the flow we propose (an application scenario, not a current feature). The moment the brief comes in, break it into verification questions like "price is 9,900 won," "logo color follows the brand guide," "subtitle copy is exact." When the render finishes, ask the AI judge "does the video satisfy each item?" Here, items that absolutely must be correct — like price — are not folded into the average pass rate, because no matter how high the average, you must not ship if that one price line is wrong. If the price item comes back as a failure, fix just that one line of code and re-render (being code-based, you fix only the relevant part and regenerate), and if the overall pass rate falls below threshold, hand it to a human.

The final human check in this process takes responsibility for what the checklist can't catch. A checklist only filters mistakes you can break into questions, like "wrong price"; it can't guarantee against problems that were never in the questions to begin with. So we don't decide delivery on pass rate alone — we keep human review as the last gate (the passing condition).

Here the benchmark results translate into three operational rules. First, make execution success and brief satisfaction separate gates — a finished render is only the minimum bar, and the paper empirically demonstrated the mismatch between the two abilities. Second, pick models separately by input modality — the same model can be strong on text and collapse on image reference (the Qwen3.8-Max vs. Haiku 5.5 crossover we saw earlier). Third, as soon as a request arrives, pre-classify it by construction, animation, and state-dependency difficulty, and layer on more fix iterations and verification the harder the task.

Appendix: Collection Procedure and Metrics

Existing benchmarks (for reference). Code-based: instructional video (Code2Video/MMMC), data storytelling (DataReel), logos (LogoMotion), layered HTML (MG-Gen), vector animation (InternSVG, LottieGPT). Direct pixel generation: VBench, EvalCrafter, T2V-CompBench, VBench++, LongAV-Compass, T2AV-Compass, and others.

Task composition. 1,719 paired tasks came from 573 source videos, and adding 385 independent tasks brought the total to 2,104. For text prompts, 54,443 candidates scraped from VidProM and Shot2Story were narrowed to 720 via embeddings (a technique that turns sentences into numeric vectors to measure similarity, all-MiniLM-L6-v2) plus GPT-6.1 Sol assistance plus human review, from which 145 final seeds were chosen. The paired set took thousands of candidates scraped from YouTube, Bilibili, REDnote, and X, filtered them with Gemini 3.8 Flash, removed exact duplicates via normalized URL + SHA-256 and near-duplicates via SSCD frame embeddings + FAISS, after which humans kept 573. Three co-authors manually reviewed the entire process.

Three complexity axes (3 levels each). - Construction: combinations of standard shapes (L1) → custom geometry and detailed structure (L2) → procedural and simulation systems (L3). - Dynamic Animation: staged sequential direction (L1) → coordinated changes across elements and scenes (L2) → complex simultaneous motion and deformation (L3). - State-Dependency: adjacent-step consistency (L1) → dependency skipping intermediate steps (L2) → long-range dependency (L3).

Twelve automatic metrics (4 groups). Operational — execution success (ES), token consumption (TC). Video quality — technical quality (TQ, DOVER++), aesthetic quality (AQ, Aesthetic Predictor V2.5), motion smoothness (MS, AMT-based frame prediction error). Text-video alignment — local (L-TVA, ViCLIP sliding window), global (G-TVA, Qwen3-VL-Embedding cosine). Reference fidelity — for image input, perceptual fidelity (PF, DINOv3) and structural fidelity (SF, SSIM); for video input, sequence alignment (SA, DTW + DINOv3), appearance fidelity (AF, DreamSim), and motion fidelity (MF, CoTracker3 trajectory comparison).

Five subjective metrics (AI judge, Gemini 3.8 Flash). Instruction following (IF) is the pass rate over a verification-question checklist extracted from the instructions (up to 16 items — 14 general questions across 6 dimensions + 2 task-specific questions). The six dimensions are content (accurate text and figures), attributes (appearance, quantity), composition (layout, color), relations, dynamics, and aesthetics. The other four are holistic quality on a 5-point scale — content coherence (CC), visual design (VD), motion quality (MQ), and viewer engagement (VE).

Evaluation setup. Inference settings use each provider's defaults, and output tokens include reasoning tokens. For video input (V2V), GPT and Claude received 4-FPS frame sequences, while the rest received native video at 4 FPS via API sampling.

Frequently Asked Questions

Is code-based generation always better than drawing pixels directly?

No. The advantages of the code approach (fine-grained control, partial editing, component reuse) shine on tasks that "need structured editing and reuse." For videos where complex photorealistic texture is the point, drawing pixels directly may have the edge, and the paper does not claim the code approach to be strictly superior. It depends on the use case.

References