Solve Vision with Code: Coding Agents Are Stronger Visual Reasoners Than Video Models
Paper, explained · Hugging Face ·A close reading of the source at huggingface.co: what it says, what it means for someone who builds with AI, and which claims are the publisher’s own.
Video GenerationCoding AgentsVision-Language ModelsZhipu / Z.ai
The idea
Video models are now tested as visual reasoners: from a first frame and a prompt, generate the video in which the task is done. This paper (HF, arXiv) gives the same tasks, inputs and rule-based evaluator to coding agents instead. The agent writes a program that renders the answer video. On VBVR-Pro-Bench (500 instances, five cognitive categories, symbolic ground truth, one attempt each), Codex with gpt-6-astra scores 0.923, Claude Code with Fable 5.1 0.894, Gemini CLI with Gemini 3.1 Pro 0.893, each more than 0.22 above the best video model. The best of 23 open-weight models, GLM-5, reaches 0.572, above every video model except the RL-trained one.
Why it matters
For tasks whose answer can be computed from the first frame (move this block, count, trace a path), writing code is much more reliable than generating pixels. If you need an agent to reason about an image, have it write a program that inspects and redraws it rather than asking a generator to imagine the answer. It also means video "reasoning" scores should be compared with a code baseline before they are read as progress.
In plain words
Ask a painter and an engineer to show where a ball lands. The painter paints a plausible picture. The engineer measures the table, computes the bounce and draws it. On these puzzles the engineer wins by a wide margin. The authors also split agent programs into "depictive" ones that read the image to find a general rule and "propositional" ones that hard-code values, a way to see whether the agent understood the scene or copied numbers.
Caveat: abstract only; the per-category results and the video-model list are in the full paper. The benchmark favors tasks with symbolic answers, which is where code is strongest.