Solve Vision with Code: Coding Agents Are Stronger Visual Reasoners Than Video Models
Reading guide · Based on sections of the original paper
Why read this
Practitioners weighing generative video against program synthesis for verifiable visual-reasoning tasks will get a controlled head-to-head comparison, a failure and cost breakdown for open-weight agents, and a way to tell whether agent code generalises.
What the authors found
- On all 500 instances, Codex, Claude Code and Gemini CLI score 0.923, 0.894 and 0.893. The best video model, Wan2.2 RL-trained with the evaluator as reward, scores 0.670. Agents had one attempt each, a CPU sandbox and 30 minutes. Video-model scores come from the published leaderboard and were not rerun. Overall Ranking.
- All three closed agents beat the RL video model in every category. The margin is largest on Perception (video model 0.488) and smallest on Transformation (0.840). The authors caution that rule-based code can measure exactly on Perception tasks, which inflates the gap there. 3.2 Results by Category
- The best open-weight agent, GLM-5 under OpenCode, scores 0.572. Across the 23 open-weight models, score tracks the number of videos delivered (ρ=0.93). Failures come from models that never call a tool, stop early or time out. Among closed agents, cost varies nearly tenfold for a 0.030 score spread: Codex averages 3.2 calls and 57k input tokens versus 25.3 calls and 659k tokens for Gemini. 3.3 Delivery Failure and Efficiency Analysis
Main limitation
The authors note that the tasks are code-rendered scenes with flat colours and exact geometry, so results may not transfer to real footage. They also describe the comparison as asymmetric: agents get tools and iteration time, while video models produce a single sample. 4 Discussion
Where to start
3.4 Distinct Strategies of Agentic Code-driven Visual Reasoning: Depictive and propositional programs · This section describes the behavioural transfer test that separates depictive from propositional programs. It shows, for example, that only 35% of Codex's solving programs are depictive, which matters if you need programs that generalise beyond one instance.
Abstract
Video generation models are increasingly evaluated as visual reasoners: given a first frame and a natural-language prompt, can the model produce the video in which the specified task is carried out? The paradigm is considered advantageous because the reasoning is native to the visual medium, unfolding directly in the frames rather than through language or code. Whether this native route is in fact the more reliable path to visual reasoning has not been tested against a symbolic alternative under the same conditions. We therefore pose the same tasks, with identical inputs, output specification and evaluator, to both media: rather than denoising pixels, a coding agent writes a program that renders the answer video, which an unmodified rule-based evaluator scores. On VBVR-Pro-Bench (Xu et al., 2026), a 500-instance suite spanning five cognitive categories with symbolic ground truth, the agent receives the same first frame and prompt as the video model, with no access to ground truth, metadata or generation models, and one attempt per instance. Three closed-model agents (Codex with gpt-6-astra, Claude Code with Fable 5.1 and Gemini CLI with Gemini 3.1 Pro) score 0.923, 0.894 and 0.893, each more than 0.22 above the strongest video model. Among 23 runnable open-weight models, the best, GLM-5, reaches 0.572, above all video models except the RL-trained one. Together, we show that for tasks whose solutions can be computed from a first frame and a prompt, program synthesis is currently a substantially more reliable route to visual reasoning than video generation. We further distinguish depictive programs, which navigate the image to recover a transferable scheme, from propositional programs, which operate on hard-coded values, revealing how visual reasoning unfolds in agent-written programs and what it implies for its nature of reasoning in general.