ReelCodeBench Exposes Code Models' Weak Spots in Video Reconstruction and Editing
Summary:ReelCodeBench introduces a benchmark for evaluating whether code-generating models can reconstruct a video from pixels and then edit the resulting program. It covers 420 videos across six content types and six visual forms, with 844 edit requirements organized by a Where/When/How taxonomy for spatial, temporal, and appearance changes. Because an edited video has no exact ground truth, the benchmark renders model programs and asks a vision-language model to score completion within each edit's ti
Core task: generate a program, then edit that program
ReelCodeBench divides code-based video production into two consecutive stages. In the first stage, the model sees only a reference video and writes an executable program that reconstructs its imagery and motion. In the second, it receives a natural-language edit instruction, modifies the program it generated, and produces the edited result through rendering. Unlike direct video-token generation, the intervention target here is executable state. The benchmark therefore evaluates more than final-frame similarity: it asks whether a model can locate the relevant object, temporal window, and visual property without damaging unrelated content.
This design exposes an important distinction: pixel reconstruction is not the same as correct program semantics. Many different programs can render nearly identical frames, but only one may retain the object relationships, keyframes, easing curves, and layers that can be edited locally. ReelCodeBench does not attempt to recover the original production source code. Instead, it asks whether a model can discover a visual program representation that remains editable after reconstruction.
Dataset and evaluation protocol
The benchmark contains 420 videos, ranging from motion clips lasting a few seconds to three-minute explainer animations, across six content types and six visual forms. Each video is paired with an editing task, producing 844 edit requirements organized under a Where/When/How taxonomy: Where identifies spatial position, When identifies the temporal window, and How covers appearance-related changes such as color, style, or material.
Edited videos have no pixel-level ground truth, so the benchmark evaluates rubric responses from rendered frames using a vision-language model. Each task checks whether the requested change was completed within its designated time window, whether content that should remain unchanged was preserved, and whether the overall visual quality was acceptable. This separation makes it possible to distinguish missed edits, incorrect edits, and collateral damage instead of collapsing every failure into an opaque similarity score.
From an engineering perspective, a task can be modeled along three dimensions: completion C, preservation K, and overall quality Q. However, the public abstract does not disclose the aggregate-score formula, decision thresholds, frame-sampling rate, or judge configuration. The leaderboard score should therefore not be interpreted as a conventional PSNR, SSIM, or human-preference score.
Why motion and timing are the central bottleneck
Static-image reconstruction lets a model fit frames independently, but motion graphics require recovery of relationships between frames. If a program relies on CSS animation, SVG transforms, a Canvas drawing timeline, or a Three.js scene graph, editability generally depends on whether the model correctly preserves keyframes, easing curves, camera parameters, object visibility, and occlusion order. Optimizing visual similarity on a small set of sampled frames can easily produce a pseudo-reconstruction that looks close while behaving incorrectly over time.
Those errors propagate directly into editing. Moving an object to the left during the second half of a clip requires the model to identify the correct animation track and time window. If the initial reconstruction misidentified object identity, hierarchy, or duration, the edit operates on an already corrupted state. The paper's observation that reconstruction errors carry into editing follows from this shared program state: the two stages are not independent tasks.
The technical stacks also present different difficulties. HTML and CSS support local edits through the DOM and styles, but rendering depends on the browser, fonts, and device pixel ratio. SVG maps paths and transforms more directly but does not naturally solve complex path deformation. Canvas uses imperative drawing commands and often lacks explicit object semantics. Three.js exposes scene graphs, materials, and cameras, but introduces larger programs, asset dependencies, and WebGL consistency issues. Covering these representative paths also tests whether a model can preserve editable structure across different programming paradigms.
Reliability boundaries of the judge
A vision-language judge addresses the absence of exact ground truth, but it is not a neutral oracle. Sparse frame sampling can miss an edit that lasts only a few frames. A judge may mistake a stylistic change for an object change, or overlook subtle yet persistent motion errors. The more a Where/When/How task depends on temporal reasoning, the more the judge's capabilities and sampling strategy can affect the score.
A more robust production pipeline should combine vision-language assessment with deterministic checks. Object existence and color can be verified through program properties; temporal windows can be checked against explicit event logs; untouched regions can be constrained with pixel, perceptual, or structural similarity. Human review can then resolve semantic-equivalence disputes. The abstract does not disclose judge agreement, sensitivity across alternative judge models, or human calibration, so these questions must remain open when interpreting the leaderboard.
Evaluation results and principal findings
The research team evaluated 16 code-generating models and two diffusion video generation models. The abstract reports three robust findings: reconstruction-stage errors propagate into editing; motion and timing are the principal bottlenecks in both stages; and even the strongest editor preserves only about 60% of the content that should remain unchanged.
The implication is that current systems can often produce some requested change while failing to guarantee that only the requested elements change. The latter property is essential for production editing: one instruction must not alter typography, layout, palette, or unrelated animation segments. Because the abstract does not provide model-level scores, rendering time, or total cost, it supports conclusions about research directions and failure modes but is not sufficient for selecting a specific production model.
The intervention surfaces of code and diffusion models are not symmetric. Code models naturally expose program state, while diffusion editors generally operate directly in pixel or latent space. When comparing them, visual completion and edit controllability should be evaluated separately rather than treating the final-frame score as an overall advantage for the programmatic workflow.
Engineering trade-offs
The central benefit of a code representation is auditability and editability: source diffs identify changes, parameters can be adjusted precisely, and the same program can be rendered repeatedly in a fixed environment. That benefit comes with a harder reconstruction problem. Fonts, browser versions, WebGL drivers, animation clocks, and external assets can all introduce nondeterminism. Programs representing long videos may also exceed the model's effective context window or its ability to track dependencies reliably.
Repeated editing amplifies the risk. Regenerating the entire program can damage untouched regions, while a narrow text replacement can miss shared variables, animation dependencies, or global styles. A production system should distinguish localization failures, execution failures, rendering failures, and judge failures rather than attributing every anomaly to model quality.
Recommendations for deployment
- Separate reconstruction fidelity, edit completion, temporal accuracy, untouched-region preservation, and collateral damage instead of reporting only one aggregate score.
- Pin the browser, fonts, device pixel ratio, WebGL driver, animation start time, and asset versions; record the source code, environment, and timestamp for every render.
- Preserve source diffs and keyframe logs so failures can be attributed to object mapping, parameter changes, execution errors, or visual-judgment errors.
- Execute generated code in a sandbox with restrictions on networking, filesystem access, and rendering resources; impose time, frame-count, and memory limits for long or high-resolution jobs.
- Build internal test sets from real production videos and include human review. Because the abstract does not state whether the dataset and evaluation code are publicly available, teams should verify licensing, files, render scripts, and judge reproducibility before adoption.
— END —Source: Hugging Face Daily Papers (2026-11-26)
Tags: #ReelCodeBench #Code Generation #Video Reconstruction #Programmatic Editing #Multimodal Evaluation
Editorial & Fact-Checking Note: This article is compiled from primary research, official release documentation, and source papers by the ZICQ Newsroom pipeline with automated entity verification and human editorial review. If you notice any technical inaccuracy, please submit a correction via our corrections policy or email our editorial desk directly.
Community Comments