TL;DR
Imagine watching a slick motion-graphics video and wishing you could tweak a single color or delay an animation by two seconds—without having the original project files. ReelCodeBench tests whether today's frontier AI models can watch a raw video, reverse-engineer it into executable code, and then cleanly edit their own code on command. Spoiler: while writing code beats pixel-based diffusion for surgical edits, AI models still struggle mightily with time, motion, and not breaking their own creations.
What Problem Does This Paper Address?
When diffusion models generate video, they "paint" in pixels. That’s great for photorealistic footage, but terrible if you want to make a precise local adjustment—like moving a chart label five pixels left without hallucinating a new background. Motion graphics, UI animations, and data visualizations are naturally built from code (HTML, SVG, Canvas, Three.js), where elements are explicit variables.
Until now, AI benchmarks split this real-world workflow in half:
- Video-to-code benchmarks stop at one-shot visual reproduction.
- Code-editing benchmarks hand the model clean, human-written source code, usually for static visuals rather than animations.
- Evaluation metrics rely on global pixel similarity (which unfairly penalizes requested changes) or simple checklists that ignore collateral damage.
Nobody had asked the messy, practical question: Can a model edit the imperfect, spaghetti-code program it just reconstructed from raw pixels?
Methods
ReelCodeBench introduces a coupled two-stage task—Reconstruct, then Edit—paired with a diagnostic, ground-truth-free evaluation protocol.
- Coupled Pipeline: Given only a reference video, a multimodal LLM writes a self-contained HTML program to reproduce it. Next, given the video, its own generated code, and a natural-language prompt, it modifies the code to render an edited video.
- WHERE / WHEN / HOW Taxonomy: Every editing instruction is broken into 1–3 specific requirements targeting spatial layout (WHERE), temporal behavior like entrance/exit timing (WHEN), or visual appearance (HOW).
- Decomposed VLM-as-a-Judge: Because there is no "ground truth" video for open-ended edits, two Vision-Language Model judges (GPT-6.1 Sol and Claude Sonnet 5.5) inspect rendered frames sampled at 1 fps:
- Reconstruction ($S_{\text{recon}}$) combines weighted binary rubrics across five dimensions (Text, Layout, Style, Motion, Timing) with holistic 1–5 ratings.
- Editing ($S_{\text{edit}}$) separates Completion ($C$) (did the change happen in the right time window?), Keep rate ($K$) (did unmentioned nearby elements survive?), and Quality ($Q$). Taking a geometric mean ensures that a lazy model changing nothing scores zero, even if its keep rate is 100%.
Datasets
The authors introduce ReelCodeBench, curated from ~5,800 candidates down to 420 diverse motion-graphics videos (3 seconds to 3 minutes long, median 20s).
- Sources: LottieFiles (162), LemoLab code-driven short films (74), open-source web animations (60), and raw video-only clips from YouTube and X (124).
- Diversity: Spans 6 content types (e.g., Explainer, Brand Promo) and 6 visual forms (Flat Vector, UI Design, Charts & Diagrams, 3D Rendering, Drawn Illustration, Particles & Shaders).
- Scale: Paired with human-verified prompts totaling 844 edit requirements (301 WHERE, 311 WHEN, 232 HOW) and ~21.8 binary evaluation checks per video.
Key Insights and Ideas
- Time is the ultimate bottleneck: Across every single model, Motion is the lowest-scoring reconstruction dimension, and WHEN (temporal) edits are the hardest to complete. LLMs grasp static layout and color far better than choreography.
- Sins of the reconstruction carry over: Because preserved elements are checked against the original video, messy or missing geometry in Stage 1 tanks performance in Stage 2. Even the best editor only preserves ~60% of the unedited content it should keep intact.
- An obsession with imperative Canvas 2D: Given total freedom, models write procedural HTML5 Canvas 2D pixel-drawing scripts 56–87% of the time—even when declarative SVG (for flat vectors) or Three.js (used at most 13% of the time for 3D scenes) would make downstream editing vastly easier.
- Silent runtime deaths: Open-weight models fail to even render valid frames on 9–37% of runs—mostly due to infinite animation loops, state mismanagement, and timeouts rather than basic syntax typos.
Key Results
Evaluating 16 code-generating MLLMs and 2 pixel-diffusion video baselines revealed a steep climb ahead:
- Frontier models lead, barely: Only one model, GPT-6 Astra, broke 70 on reconstruction ($70.7$) and 60 on editing ($61.2$). Proprietary models swept the top 5 spots, with Kimi-K3.1-Pro leading open-weight models in 6th for reconstruction ($47.1$).
- Code vs. Pixels: Diffusion baseline MiniMax-H3 achieved the highest keep rate ($69.7\%$) because it edits pixels directly, but bombed on spatial ($27.0\%$) and temporal ($32.0\%$) completion, finishing with $S_{\text{edit}} = 39.5$—behind 12 of the 16 code models.
- Structured vs. Organic visuals: Models thrive on Charts & Diagrams and UI animations, which map cleanly to web primitives, but drop up to 20 points on hand-drawn illustrations and 3D scenes.
- Judge Reliability: VLM rubric scores correlated strongly with human annotators ($r = 0.81\text{--}0.87$), whereas traditional frame metrics like CLIP and SSIM compressed models into a narrow, misordered band by ignoring motion.
Limitations and Future Work
While the paper does not feature a standalone limitations section, the authors highlight clear boundaries in current paradigms and hope ReelCodeBench catalyzes progress in temporally grounded visual programming and self-editing agents—specifically pushing models away from fragile, monolithic 2D drawing loops toward modular, declarative graphics architectures that don't self-destruct upon editing.
Summary updated