Solve Vision with Code: Coding Agents Are Stronger Visual Reasoners Than Video Models
Dezhi Luo, Fengyuan Yu, Haotian Zhang, Zehong Zhao, Ran Ji, Siyuan An, Huayi Qin, Qingying Gao and 6 others
University College London · Nanyang Technological University · University of Southern California · University of California, San Diego · Carnegie Mellon University · Johns Hopkins University
Published November 25, 2026 · on the feed November 27, 2026 · ▲ 74 · arXiv 2611.34813
The 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.
The Brief
3:03A short podcast summary of the paper. Written and voiced by AI.
Transcript
Solve Vision with Code. Coding Agents Are Stronger Visual Reasoners Than Video Models. By Dezhi Luo and thirteen others, from University College London, Nanyang Technological University, and six other institutions. Published on the twenty-fifth of November.
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. It unfolds directly in the frames, rather than through language or code. But whether this native route is in fact the more reliable path to visual reasoning had not been tested against a symbolic alternative under the same conditions.
This work runs that test, and its claim is plain. 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. Coding agents, writing programs, beat video models at the video models' own task.
The comparison holds everything fixed except the medium. Both receive the same tasks, with identical inputs, the same output specification and the same evaluator. Rather than denoising pixels, a coding agent writes a program that renders the answer video, and an unmodified rule-based evaluator scores it. The suite is VBVR-Pro-Bench, from Xu and colleagues: five hundred instances spanning five cognitive categories, with symbolic ground truth. The agent gets the same first frame and prompt as the video model. It has no access to ground truth, metadata or generation models, and it gets one attempt per instance.
Three closed-model agents were tested. Codex with gpt-6-astra scores zero point nine two three. Claude Code with Fable five point one scores zero point eight nine four. Gemini CLI with Gemini three point one Pro scores zero point eight nine three. Each of them sits more than zero point two two above the strongest video model.
Open-weight models were run too. Among twenty-three runnable open-weight models, the best is GLM-5, which reaches zero point five seven two. That is well below the closed agents, yet still above every video model except the one trained with RL.
The claim is drawn with care. It covers tasks whose solutions can be computed from a first frame and a prompt, and the benchmark behind it has symbolic ground truth. It is a statement about what is currently the more reliable route, not about what video generation could eventually do. And the margin depends on which agent writes the code. The closed-model agents lead clearly, while the best open-weight model is far behind them and does not beat the RL-trained video model.
The authors also look inside the programs themselves. They distinguish depictive programs, which navigate the image to recover a transferable scheme, from propositional programs, which operate on hard-coded values. One kind reads the picture and finds a rule that would carry over to another instance. The other kind writes down the answer it already settled on. That split, they argue, reveals how visual reasoning unfolds in agent-written programs, and what it implies about the nature of reasoning in general. The question of which medium wins turns out to open a second question, about what counts as reasoning about an image in the first place.
Paper Quest · 7 chapters · about 40 min
Play this paper
Learn it by doing: make the calls the authors made, guess the result before you see it, and defend it in a viva graded on your own words. Chapter 1 is right here.
Chapter 1 🧩 · The problem
Video models are said to reason in pixels. Has anyone checked the alternative?
Video models are being tested as visual reasoners: given a first frame and a prompt, produce the video in which the task is carried out.
The road ahead
- 1 · The problem ~7 min Video models are now judged as visual reasoners, and their in-the-frames reasoning is called an advantage, but nobody has checked that claim against a symbolic route.
- 2 · What came before ~3 min
- 3 · The key idea ~8 min Keep every part of the video-model test fixed, but let a coding agent write a program that renders the answer, since the answer is computable.
- 4 · Choose your own research ~3 min
- 5 · Build the method ~8 min The agent gets the video model's inputs, writes and runs a program that renders the video, and the official evaluator scores it against published video-model scores.
- 6 · The experiment ~6 min You’ll guess: On VBVR-Pro-Bench, how did the best open-weight coding agent, GLM-5, compare with the video models?
- 7 · The viva ~5 min Three questions from the examiners, answered in your own words. Win it for the paper’s trophy.
Free, with Google or an email address. Your stars and progress are kept.