Does Visual Reasoning Have to Happen in Video? An Experiment in Rendering Answers with Code

Given the same inputs and evaluated by the same scorer, coding agents that wrote programs to render answer videos beat video generation models by more than 0.22 points.
← All posts
온
온틀 리서치
2026년 11월 28일 Updated 2026.12.02 38 min read views 1

A growing number of evaluations ask video generation models to do something like this: “Here’s the first frame and an instruction. Generate a video showing the task being completed.” This paper keeps the inputs and scorer exactly the same but makes one change: instead of generating the answer as video, the model writes a program to render it. The results were clear. Three coding agents—Codex, Claude Code, and Gemini CLI—scored 0.923, 0.894, and 0.893 on the 500 problems in VBVR-Pro-Bench, each more than 0.22 points ahead of the strongest video model at 0.670.

The Problem This Paper Addresses

Over the past few years, video generation models have learned to produce photorealistic footage with natural motion over time. That progress raises an obvious question: can these models go beyond “drawing” a description and act as visual reasoners, producing videos that answer structured tasks?

The argument behind this line of research is that reasoning happens natively in a visual medium. Instead of passing through language or code, the thinking unfolds directly in pixel frames, so perhaps a visual route is better suited to visual problems. It sounds plausible. But the authors ask a pointed question: has anyone actually tested whether this “native route” is more reliable than a symbolic alternative under the same conditions?

Their starting point is an important observation. For most VBVR-Pro tasks, the correct output is a “deterministic function” of the first frame and the instruction. In other words, once you see the frame and read the instruction, the answer can be computed. A model that reconstructs pixels from noise has to embed this function implicitly in its generation process. A model that writes code can state the function explicitly and leave the rendering to an interpreter. That asymmetry is what the experiment sets out to examine.

The Core Idea

Think of two people solving a problem. One tries to imagine the entire scene and draw it directly. The other writes down a procedure—“find the center of this shape, then rotate it 90 degrees”—and follows those steps. The second person has less room to go wrong because the intermediate work is broken into instructions that can be checked.

That is exactly what the paper does. It changes the medium used to construct the answer while holding the rest of the evaluation fixed. The coding agent receives the same first frame and instruction as the video model, plus the output specifications: frame size, frame rate, frame count, and duration. It then writes a program that renders the answer video. The unmodified official scorer evaluates that output in exactly the same way as a video model’s output.

The constraints are fairly strict. Agents cannot access the ground truth, task generators, or task metadata. Calls to image or video generation models are prohibited; the authors say they verified this by auditing all event logs and retained programs. Agents run in a CPU-only Python sandbox with standard imaging libraries, have a 30-minute wall-clock budget, and get just one attempt per problem. If no video is produced, the score is 0—the same treatment a video model receives when generation fails.

The clever part is that the authors did not build a new evaluation around coding agents’ strengths. They took a benchmark designed for video models, preserved its scoring criteria, and put coding agents through it. That is the central fairness argument.

How the Experiment Was Designed

The benchmark is VBVR-Pro-Bench (Xu et al., 2026). Each input consists of one 1024×1024 image and a task instruction. There are 100 task families with 5 instances each, for a total of 500 problems. Tasks are labeled across five cognitive categories: Perception, with 39 families; Abstraction, 25; Knowledge, 20; Transformation, 19; and Spatiality, 17. There are 16 families with multiple labels. A family with k labels contributes a weight of 1/k to each category.

The comparison covers three groups. First are three commercial CLI agents using closed models: Codex CLI (gpt-6-astra), Claude Code (Fable 5.1, Amazon Bedrock), and Gemini CLI (gemini-3.1-pro-preview). All three ran in their vendors’ official non-interactive modes, with approvals bypassed and otherwise default settings. No custom system prompts, skills, or other modifications were added. Second are 23 open-weight models run through the OpenCode harness; DeepSeek R1 was excluded because it could not make tool calls on Bedrock. Third are video models, whose scores were taken directly from the public VBVR-Pro leaderboard without rerunning them.

Scoring uses the official VBVR-Pro-Bench evaluation kit without modification, in the same mode as the leaderboard. Each task family has a rule-based evaluator that uses classical computer vision and OCR to compare the video against a symbolic ground truth and assign a score in [0,1]. A system’s score is its average across all 500 problems.

What this design measures—and what it cannot measure—matters. The authors explicitly caution against taking the Perception gap at face value. Perception tasks mostly involve locating and measuring objects within a frame, and rule-based code executes operations such as connected-component analysis and color filtering exactly. That can make code’s advantage look larger than it really is. Conversely, they suggest that the smaller gap in Transformation may reflect an ability video models learn more naturally from video data: transforming objects over time, rather than constructing explicit algorithms to do so. The authors acknowledge upfront that some categories structurally favor code under this evaluation.

Results and What They Mean

The three closed-model agents took the top three places among all 37 systems and produced videos for all 500 problems. Codex led with 0.923. The strongest video model, VBVR-Pro-Wan2.2-I2V-A14B, had received reinforcement learning (RL) on the benchmark’s task families, using the evaluator as its reward—in effect, it had been trained specifically for this test. Even so, it scored only 0.670, trailing Codex by 0.253. The next video model, VBVR-Pro-Wan2.1-I2V-14B, was another 0.108 behind.

Among open-weight models, GLM-5 performed best at 0.572. It beat every video model except the one specifically trained with RL. Running through OpenCode, GLM-5 ranked 5th overall and Kimi K2.5 ranked 7th. Scores dropped sharply below them, but the authors attribute much of that decline to “delivery failure,” rather than “content failure”: the models never produced a video at all. Three patterns emerged. Some models responded only in prose without ever calling a tool—Gemma 3 27B·12B, Llama 3.3 70B, and Magistral Small made 0 tool calls across all 500 attempts. Others stopped early after writing a code skeleton without executing it; Qwen3-32B delivered only 25 videos, and Llama 4 Maverick only 7. Others timed out: Qwen3-Coder-Next hit the 1,800-second limit on 93 problems, but usually wrote a video before the deadline and delivered 498 in total.

The cost findings deserve particular attention. The three closed-model agents’ scores were within 0.030 of one another, but their costs differed by nearly an order of magnitude. Compared with Codex, Claude Code used about 3 times as many tool calls and 4 times as many input tokens, yet scored 0.029 lower. Gemini CLI used about 8 times as many calls and 12 times as many tokens, while scoring 0.030 lower. More interestingly, once a video had been delivered, additional tool calls did not improve the score. The two strongest open-weight agents used more than twenty times Codex’s input tokens and 40–50 tool calls, yet scored more than 0.3 lower. Within a given agent, problems that required more calls tended to be harder. The authors conclude that call count is better read as a marker of problem difficulty than of more thorough reasoning.

Then comes the paper’s most conceptually interesting analysis. The authors classified 1,385 programs that the closed-model agents used to solve their own instances, distinguishing two strategies. Depictive programs actually work through the first frame’s pixel array: filtering colors, measuring regions, locating objects, and deriving the answer from those operations. They therefore transfer directly to other instances in the same family. Propositional programs operate on hardcoded values—coordinates, colors, cell indices—that the agent has already worked out during its session, and simply render those values. They externalize the conclusion without preserving the procedure that produced it. Run them on another instance, and they draw the same answer, which is now wrong.

The classification method is straightforward. Rerun each program on a different instance from the same family. If its answer changes with the new input—or it fails while trying to measure the new frame—it is depictive. If it renders the same incorrect answer, it is propositional. The balance varied by category. Depictive programs were more common in Perception (67%) and Transformation (45%), and less common in Abstraction (33%) and Knowledge (27%). Propositional programs were most common in Abstraction (26%) and Knowledge (28%), but accounted for just 6% in Transformation. In tasks that involve finding, measuring, and moving objects, code extracts the answer directly from pixels. In tasks that require discovering a rule or applying stored knowledge, the agent is more likely to settle on the answer during its session. Agents also differed in their preferences. Claude Code more often retained measurement steps inside its programs, with 61% classified as depictive, compared with Codex’s 35%. Gemini CLI opened the frame on only 10 of the 500 problems (2.0%). Interestingly, neither strategy predicted the score. A propositional program that gets the answer right by hardcoding it receives the same score for that instance.

Limitations and Open Questions

Start with the limitations the authors acknowledge themselves. They warn that the Perception gap is inflated because the evaluation favors rule-based code. Propositional programs, meanwhile, are solutions that work only for that particular instance and do not transfer. On the scoreboard, they earn the same 1 point as depictive programs, but they are qualitatively different in how general their reasoning is. The fact that the score hides this distinction calls into question the equation “high benchmark score = visual reasoning.”

The premise is also conditional. This advantage applies only to tasks whose answers can be computed from the first frame and instruction. The authors’ claim is not simply that “code beat video generation.” It is more specific: for tasks whose solutions are deterministic functions of the first frame and instruction, program synthesis is currently a substantially more reliable route than native video generation. This conclusion should not be extended to tasks that resist explicit computation, such as physical intuition or dynamics that must be learned from data. The smaller gap in Transformation hints at that boundary.

There is another point I would emphasize. The three closed-model agents use gpt-6-astra, Fable 5.1, and Gemini 3.1 Pro—frontier models of their time. These numbers represent coding agents powered by top-tier models, rather than coding agents in general. The steep drop across the 23 open-weight models makes that divide painfully clear. They fail to call tools, write code without running it, or run out of time. The success of this approach therefore depends heavily on the agent’s ability to carry the work through to completion inside a sandbox, beyond the idea of writing code itself.

How It Compares with Other Approaches

This paper sits at the intersection of two research strands. One evaluates video models as visual reasoners, including the work cited in the abstract and introduction, such as Wiedemer et al. 2025. VBVR-Pro provided that strand with a large-scale, verifiable standard. The other uses program synthesis to solve visual problems: the code-based visual reasoning work grouped in the introduction, including Gao et al. 2023, Surís et al. 2023, and Gupta·Kembhavi 2023.

The authors’ contribution is to put the two approaches head-to-head on the same evaluation. They bring code-based visual reasoning into a benchmark built for video models and score it by those models’ criteria. By changing only the medium while holding the inputs, output specifications, and scorer fixed, they can attribute the score gap relatively cleanly to that difference in medium. The depictive–propositional distinction also goes beyond a simple taxonomy. It borrows a distinction between representations from the mental imagery debate (Kosslyn 1980, Pylyshyn 1981) and applies it to agents’ solutions. Depictive programs preserve and work through the first frame as a spatial array; propositional programs record the answer symbolically, independently of the frame’s spatial structure. It is a connection that brings a debate about human visual cognition back into view through machine-written code.

ONTLE’s Take

Picture a typical situation for an AI PM. A customer asks, “Take photos of our store shelves and produce a video highlighting violations of our display rules.” Someone eager to move quickly feeds the photos and instructions to a multimodal generation model and tries to get the finished result in one shot. The video looks convincing. But measure it, and the boundaries are off by 1px. Feed in the same shelf photo again, and the errors change. The model has implicitly imitated the rules without explicitly representing them.

The lesson this paper offers is clear. If the answer can be computed from the input, ask the model to write a program that produces the result, then run that program. For a PM, this changes three things. First, the output becomes reproducible and auditable: the code remains, so you can trace why a measurement was made the way it was. Second, a cheap, simple test—rerunning the program on another input—can distinguish a solution that transfers to the next case in the same family (depictive) from one that only handles the current case (propositional). Third, it changes how you think about cost. Spending twenty times more tokens and calls did not improve quality. Once an agent reliably delivers an output, it makes sense to choose a cheaper route rather than assume that a more expensive model or more iterations will help. For an AI PM assigned by ONTLE, deciding whether a task calls for direct generation or a program that generates the result is a skill in its own right.

A Checklist for Practitioners

  • First, determine whether the answer is a deterministic function of the input. If the correct answer can be computed from the first frame and instruction—or the inputs to your own task—the advantage reported here applies. Do not extend it to tasks such as physical intuition or dynamics that require learned understanding rather than computation.
  • Ask for code that generates the output. Have the model write a program that renders the result, then execute it in a sandbox. Keeping the code is what makes reproduction and auditing possible.
  • Make transfer tests routine. Rerun the program on another input of the same kind. If the answer changes with the input (depictive), it is a general solution; if it produces the same, now incorrect answer (propositional), it only handles the original case. Scores alone cannot distinguish the two.
  • Measure successful delivery separately from quality, and measure it first. Low open-weight scores were driven by delivery failures such as never calling tools, stopping early, and timing out. Start by checking how often your agent actually produces the requested artifact.
  • More calls and tokens do not guarantee better results. Beyond the minimum tool use needed for delivery, call count indicated difficulty rather than quality. Once delivery is reliable, choose the cheaper route that preserves quality—the three closed-model agents’ scores differed by just 0.030, while costs varied by nearly an order of magnitude.
  • Question whether the evaluator favors a particular approach. The Perception gap was inflated by operations that rule-based code executes exactly. Before trusting the benchmark score, examine which approaches the scorer makes it easy to succeed with.
Did coding agents win simply because video models are still less mature?

The strongest video model in the comparison had received reinforcement learning on the benchmark’s task families, using the evaluator as its reward. It was effectively trained specifically for this test. Even so, it scored only 0.670, trailing Codex (0.923) by 0.253. That gap is hard to explain away as immaturity alone.

Does this mean video generation models are useless for visual reasoning?

No. The authors limit their claim to tasks whose answers can be computed from the first frame and instruction. In fact, the gap was smallest in Transformation, which involves changing objects over time. The authors suggest this may be an ability that video models learn more naturally from video data.

Which scores higher: depictive or propositional programs?

Neither strategy predicted the score. A propositional program may hardcode a correct answer that works only for its particular instance, but it receives the same score on that problem as a depictive program. The point of the distinction is that the scoreboard alone cannot tell a generalizable solution from one that only handles the current case.

Do more expensive models and more tool calls improve accuracy?

Not in this experiment. The three closed-model agents’ scores were within 0.030 of one another, while costs differed by nearly an order of magnitude. Once a video was delivered, additional tool calls did not improve the score. Within an agent, problems with more calls were harder problems, rather than problems solved more thoroughly.

Why did open-weight models score so poorly?

Most of the shortfall came from delivery failures rather than content quality. Models answered in prose without calling tools, stopped after writing code skeletons without executing them, or exceeded the 30-minute limit. Producing no video earns a score of 0, so these failures were the main reason for the lowest scores.

References

  • Paper: Solve Vision with Code: Coding Agents Are Stronger Visual Reasoners Than Video Models
  • Authors: Dezhi Luo, Fengyuan Yu, Haotian Zhang, Zehong Zhao, Ran Ji, Siyuan An, Huayi Qin, Kaia Gao, Zhongang Cai, Lei Yang, Ziqi Huang, Ruisi Wang, Mark Wang, Hokin Deng et al.
  • arXiv: https://arxiv.org/abs/2611.34813
  • HuggingFace: https://huggingface.co/papers/2611.34813