A coding agent scored 0.923 on a visual reasoning benchmark where the best video generator reached 0.670. Given the same first frame, instruction, output format, and evaluator, writing a program that renders the answer was more reliable than generating the answer video directly.
- Three closed-model coding agents scored 0.923, 0.894, and 0.893.
- The strongest video model scored 0.670.
- Each coding agent led the best video model by more than 0.22.
- The best of 23 runnable open-weight coding models scored 0.572.
The result comes from Solve Vision with Code, which compares two ways to solve the same tasks from VBVR-Pro-Bench. A video model denoises pixels into a sequence. A coding agent writes and executes a program that renders a sequence. An unchanged rule-based evaluator scores both outputs against symbolic ground truth.
The comparison holds the task fixed
Visual reasoning through video generation has an appealing premise. If a task asks a model to rotate a shape, continue a sequence, or move an object through a maze, the model can express its reasoning directly in frames. It does not have to describe the answer in language.
That intuition had not been tested against a symbolic route under matched conditions. The researchers gave both systems the same first frame and natural-language prompt. The coding agent had no access to the answer, benchmark metadata, or a generation model, and received one attempt per task. Its program had to render a video in the same format expected from the video generators.
The official evaluator then compared every output with symbolic ground truth using classical computer vision. That removes a common confound in cross-modality comparisons: the coding agents did not receive a friendlier text-based grader.
The benchmark contains 500 instances across abstraction, knowledge, perception, spatial reasoning, and transformation. The paper reports the headline closed-model results over that suite. Its public project page also exposes a 100-task subset with rendered outputs for inspection.
Programs make the intermediate structure explicit
The paper separates two kinds of agent-written solution. A depictive program inspects the input image and recovers a reusable rule, such as locating objects and computing their next positions. A propositional program identifies the answer for one instance and hard-codes the values needed to render it.
Both can score correctly, but only the first is strong evidence of a transferable visual procedure. This distinction matters because an executable program is not automatically a faithful reasoning trace. A program can expose intermediate operations while still embedding a brittle answer.
Video generation has the opposite problem. Its intermediate computation stays inside the model, so a correct-looking output does not show which relation the model recovered. The benchmark can score the final frames, but it cannot easily distinguish a learned rule from a visually plausible continuation.
What the result does and does not establish
The experiment shows that program synthesis is currently a better route for tasks whose solutions can be computed from a first frame and a prompt. It does not show that code is the best representation for every visual problem.
VBVR-Pro-Bench has symbolic ground truth and a rule-based evaluator. That favors answers that can be represented precisely. Open-ended physical prediction, photorealistic interaction, and tasks with uncertain futures may depend on knowledge that is easier to express in a generative world model.
There is also a large gap between closed and open coding models. The best open-weight result, 0.572 from GLM-5, trails the leading video model. The striking conclusion is therefore narrower: with a strong enough agent, converting visual reasoning into executable operations beats asking a video generator to carry the reasoning in pixels.
For builders, the design lesson is useful beyond this benchmark. If a task has explicit state, deterministic transformations, and a machine-checkable result, generate the procedure first. Render the pixels afterward.


