Frontier Foundry

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.

Where this leads

the concepts it is about

Related briefs

every brief

Cite this page

the version of 2026-11-27
APA
Han, R. (2026, November 27). Solve Vision with Code: Coding Agents Are Stronger Visual Reasoners Than Video Models. Frontier Foundry. https://www.ryanhan.ai/briefs/2026-11-27-hf-papers-solve-vision-with-code-coding-agents-are-stronger-visual-rea
BibTeX
@misc{han2026-briefs-2026-11-27-hf-papers-solve-vision-with-code-coding-agents-are-stronger-visual-rea,
  author       = {Han, Ryan},
  title        = {{Solve Vision with Code: Coding Agents Are Stronger Visual Reasoners Than Video Models}},
  howpublished = {Frontier Foundry},
  year         = {2026},
  month        = nov,
  url          = {https://www.ryanhan.ai/briefs/2026-11-27-hf-papers-solve-vision-with-code-coding-agents-are-stronger-visual-rea}
}