Reasoning with images? Code-writing agents beat video models on their own turf

30 Nov 2026 | Artificial intelligence

Over the past year an appealing idea has taken hold: if a video model can generate realistic scenes, perhaps it can also reason with images. Hand it the first frame of a puzzle and an instruction (“slide the piece into place”, “mark the point where the circles touch”) and it generates the video in which the task gets solved. The reasoning would happen right there in the pixels, never passing through words or code.

A team of researchers from several universities (University College London, Carnegie Mellon, Nanyang Technological University and others) has put that intuition to the most direct test possible: give video models and coding agents exactly the same tasks, and mark them with the same grader. The result, posted on arXiv on 25 November and the third paper of the day on Hugging Face Papers on the 27th, is hard to argue with.

Same exam, same examiner

The test is VBVR-Pro-Bench, a set of 500 exercises (100 task types, five variants each) built specifically to evaluate video models. It covers five abilities: abstraction, perception, spatial reasoning, transformation and knowledge. Each exercise starts from a 1024×1024 image and a text instruction, and a rule-based automatic evaluator compares the answer video against the correct solution.

The only change: instead of “painting” the video, the agent writes a Python program that draws it. The rules were tight. An isolated sandbox with no GPU, a 30-minute limit, one attempt per exercise, no calls to image or video generation models and no access to the answers. The agents were used straight out of the box, with no extra instructions.

The numbers

The three commercial agents tested took the top three spots: Codex with GPT-6 Astra scored 0.923 out of 1; Claude Code with Claude Fable 5.1, 0.894; and Gemini CLI with Gemini 3.1 Pro, 0.893. The best video model, a version of Wan 2.2 trained with reinforcement learning on the benchmark’s own task types — using this very evaluator as its reward — reached 0.670. Well-known commercial video models scored considerably lower: Seedance 2.0 at 0.499, Kling 3.0 at 0.392 and Veo 3.1 at 0.309. One important caveat: the video-model scores come from the benchmark’s published leaderboard; the authors didn’t rerun those models.

The agents win in all five categories. The gap is narrowest on transformation (moving or rotating objects over time), where the best video model reaches 0.840, and widest on perception, where it manages 0.488 against more than 0.93 for the agents. The authors themselves urge caution on that last margin: locating and measuring objects is exactly what code does with pixel-perfect precision.

Open models: the problem isn’t thinking, it’s delivering

The study repeated the test with 23 open-weight models running through OpenCode, an open-source coding agent. The best, GLM-5, scored 0.572, with Kimi K2.5 on 0.557 — ahead of every video model except the one trained specifically for the benchmark. But the tail is long, and the main reason isn’t poor reasoning: it’s failing to deliver anything at all. Four models never called a single tool across 500 attempts and answered in prose; others wrote a code skeleton and stopped without running it. No video means a score of zero.

There’s a cost lesson too. The three commercial agents finished within 0.03 points of each other, yet Codex solved each exercise with an average of 3.2 tool calls and a median of 22 seconds, against 9.2 calls and 105 seconds for Claude Code and 25.3 calls and 218 seconds for Gemini CLI. Near-identical results, nearly an order of magnitude apart in resource use.

Two ways to “see” with code

The most intriguing part of the work looks at the 1,385 programs with which the commercial agents got the answer right. Some are what the authors call depictive: they measure the image when they run — filtering colours, finding objects, computing sizes — so they work on any variant of the same exercise. Others are propositional: the agent has already worked out the answer during its session, and the program simply draws it from hand-typed coordinates. Run it on a different image and it would produce the same answer, now wrong.

On a sequence of growing circles, for instance, Claude Code’s program measured the widths (21, 39 and 57 pixels), inferred the step of 18 and predicted 75; Codex reached the same correct answer but delivered a program that just highlighted the chosen option. Same score, very different programs. Depictive programs dominate perception tasks (67%) and fall to 27% on knowledge tasks. Neither style, on its own, predicts the score.

What it doesn’t show

The authors are upfront about the limits. The tasks are computer-generated: flat colours, exact geometry, a deterministic grader — home turf for code. Whether the advantage holds on real photos, with texture, shadows and occluded objects, is an open question. And the comparison is lopsided: the agent can test and fix things for half an hour, while the video model produces a single sample. The paper describes where video models stand today, not a ceiling on what they’ll manage.

Why it matters for a business

Plenty of “visual” tasks in a small business have a computable answer: counting parts in a photo, reading a meter, checking a label sits where it should, pulling values out of a chart or a floor plan. This study reinforces a practical point: for that kind of job, an agent that writes and runs code that measures is usually more reliable, easier to audit and cheaper to repeat than asking a generative model to “take a look”.

It also leaves a genuinely useful warning. If an agent builds you a script to automate an inspection, test it on a different image from the one it used. If it returns exactly the same thing, it hasn’t learned to measure; it has simply drawn the answer to the first case. If you’re curious how agents are being tested on real-world work, we covered the OS-Omni benchmark results on agents using a computer.

If you want to see what agents could do in your case, see how we design AI agents for business and how we evaluate them on your real cases before they go into production.

If you have a process built on photos, drawings or scanned documents that you’d like to automate with proper safeguards, let’s look at it together in a free first meeting.

Further reading: project page with video examples · Hugging Face Papers entry.

Shall we apply it to your business?

Tell us about your case and we’ll tell you, with no obligation, what could be automated or built and how we’d do it.

Related articles