ZICQ
中 Log in / Sign up
Newsroom Research & Papers #Coding Agents #Visual Reasoning #Program Synthesis #Video Generation #VBVR-Pro-Bench

Coding Agents Outperform Video Models on Visual Reasoning by Writing Code

Avatar of Mr.Xu

By Mr.Xu Compiled & Reviewed by Editorial

Published:

中文阅读 (Chinese) English Version
Co-reading Select any sentence in the article to highlight, annotate, or copy a quote card. Join discussion ↓

Summary:A controlled comparison suggests that coding agents can be stronger visual reasoners than video-generation models when a task can be computed from an initial frame and a natural-language instruction. On the 500-instance VBVR-Pro-Bench suite, 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, respectively—each more than 0.22 above the strongest video model. GLM-5 leads 23 runnable open-weight models with 0.572. The study also sep


Experimental Design: One Scoring Contract for Two Media

The study does not compare coding agents and video models under their preferred native metrics. Both receive the same first frame, prompt, and task constraints. A video model denoises pixels directly, while a coding agent writes a program that computes state and renders the answer video. Both artifacts are then scored by the same unmodified rule-based evaluator.

VBVR-Pro-Bench contains 500 instances spanning five cognitive categories and provides symbolic ground truth. The agents receive the same first frame and prompt as the video models, with no access to ground truth, metadata, or the competing generation systems, and receive only one attempt per instance. This controls the information available to each route and prevents changing the evaluator or reading the answer.

This is not, however, a strictly equal-compute comparison. The abstract does not disclose inference budgets, tool permissions, context lengths, renderer configurations, or end-to-end costs. The results should therefore be interpreted as a comparison of task completion rather than a ranking of complete system efficiency.

Why Program Synthesis Can Be More Reliable

The advantage does not come from code being inherently more perceptive. It comes from translating a visual problem into a form suited to symbolic execution. Operationally, the route can be decomposed into four stages:

  1. Extract objects, spatial relations, coordinates, or other observable state from the first frame.
  2. Convert the natural-language instruction into constraints, variables, and executable operations.
  3. Compute state updates, geometric transformations, or action sequences in code.
  4. Render the answer video and pass it to the deterministic evaluator.

A video model must compress visual evidence, task semantics, and answer planning into a single generative process. Diffusion is effective for texture, motion, and continuous imagery, but it does not naturally guarantee exact object counts, spatial relations, angles, or numerical updates. A program can preserve intermediate state explicitly in variables and control flow, making errors easier to inspect and reducing reliance on an implicit generative representation.

The paper distinguishes two kinds of programs. Depictive programs navigate and manipulate the image to recover a transferable procedure. Propositional programs instead operate on hard-coded values. The former more closely resembles reasoning from visual evidence; the latter may merely encode the expected answer. Both can produce a video that passes the evaluator, so final accuracy alone cannot establish general visual reasoning. The generated program must also be audited to determine whether it actually computes variables from the input image.

Benchmark Results: Closed Agents Lead by More Than 0.22

| System | Inference route | Score | Main observation | |---|---|---:|---| | Codex + gpt-6-astra | Coding agent generates a program | 0.923 | Highest score overall | | Claude Code + Fable 5.1 | Coding agent generates a program | 0.894 | 0.029 below the leader | | Gemini CLI + Gemini 3.1 Pro | Coding agent generates a program | 0.893 | 0.030 below the leader | | GLM-5 | Open-weight coding agent | 0.572 | Best of 23 runnable open-weight models | | Strongest video model | Direct answer-video generation | Exact score undisclosed | All three closed agents lead by more than 0.22 |

The top two closed agents are separated by only 0.03, but without repeated-run variance, confidence intervals, or matched inference budgets, that small gap cannot be treated as proof of a stable ordering. GLM-5 reaches 0.572 and exceeds every video model except the reinforcement-trained one. This demonstrates the cross-model potential of program synthesis while also exposing a large gap in foundation-model capability, tool-use ability, and agent scaffolding.

Single attempts and the prohibition on accessing ground truth are credible controls, but several engineering indicators remain missing: tool calls per task, generated-code volume, rendering latency, GPU memory, retry rates, and dependence on particular IDEs, drawing libraries, or preinstalled tools. The experiment demonstrates the potential of the code route, not that it is already the cheapest route.

Engineering Trade-offs: Trading Generation Error for System Complexity

Program synthesis does not eliminate cost. It moves cost from diffusion sampling into code generation, tool execution, and rendering.

| Dimension | Coding-agent route | Video-generation route | |---|---|---| | Exact constraints | Suitable for counting, coordinates, angles, and explicit state updates | Continuous generation can introduce detail and temporal errors | | Auditability | Source code, control flow, and intermediate variables can be inspected | Intermediate reasoning is usually opaque | | Visual quality | Depends on the drawing stack and renderer | Better suited to texture, occlusion, continuous motion, and realism | | Runtime cost | Includes model calls, code execution, sandboxing, and rendering | Includes multi-step sampling and video decoding | | Generalization risk | May hard-code answers or depend on a fixed environment | May generate photorealistic but semantically wrong video | | Security risk | Requires isolated execution of untrusted code | Usually does not execute local code |

The rule-based evaluator can itself become an optimization target. If a program can inspect its environment, infer evaluator logic, or write specific constants, a passing video does not prove visual understanding. The distinction between depictive and propositional programs is therefore a necessary safeguard against benchmark exploitation, although the abstract does not report the prevalence of each program type or its relationship to the score.

What the Study Establishes—and What It Does Not

The evidence supports a bounded conclusion: when an answer can be computed from an initial frame and prompt and verified with symbolic rules, program synthesis is currently more reliable than direct pixel generation. Coding agents can isolate visual perception errors from the remaining solution logic and execute that logic explicitly, yielding higher task-completion rates.

The result does not show that coding agents dominate every visual task. VBVR-Pro-Bench uses symbolic ground truth and five cognitive categories, naturally favoring computable and verifiable problems. Open-world perception, ambiguous intent, real physical interaction, long-horizon consistency, and aesthetic quality belong to different evaluation dimensions. Video models may retain advantages in those areas, or teams may adopt a hybrid design in which code controls geometry while a video model renders texture and motion.

Deployment Guidance: Build an Executable, Verifiable Dual Track

  1. Route by task type: Send counting, spatial transformations, constraint satisfaction, and symbolic state updates to coding agents first; favor video models for open-scene understanding, continuous motion, material generation, and aesthetic expression.
  2. Define one task contract: Specify the observation, instruction, permitted state, output media, and independent verifier so that a model's preferred output format is not mistaken for reasoning capability.
  3. Isolate execution: Run generated code in a sandbox with no network, read-only mounts, CPU and GPU time limits, pinned dependencies, and a fixed rendering backend.
  4. Retain program-level evidence: Archive source code, program output, tool calls, exceptions, and resource usage alongside the final video to separate depictive reasoning from hard-coded shortcuts.
  5. Separate correctness from realism: Evaluate task completion independently from visual quality. For photorealistic products, an agent can generate solver code and key state while a video model renders the scene, although the paper does not directly test this hybrid architecture.
  6. Track cost and stability: Record success across multiple seeds, end-to-end latency, token consumption, tool-call count, rendering failures, and per-task cost rather than selecting an architecture from one accuracy number.

Conclusion

The study challenges a common assumption in visual-model evaluation: generating a plausible video is not equivalent to completing a task through visual reasoning. For computable and verifiable problems, having a coding agent turn reasoning into executable code and then use a renderer to produce the answer is currently more reliable and auditable. Its broader significance is not that video models cease to reason visually, but that multimodal systems now have a new route for precise, tool-verified reasoning.


Source: Hugging Face Daily Papers (2026-11-25)

— END —

Tags: #Coding Agents #Visual Reasoning #Program Synthesis #Video Generation #VBVR-Pro-Bench

Editorial & Fact-Checking Note: This article is compiled from primary research, official release documentation, and source papers by the ZICQ Newsroom pipeline with automated entity verification and human editorial review. If you notice any technical inaccuracy, please submit a correction via our corrections policy or email our editorial desk directly.

What's your take on this story?
🚀 Explore & Submit Works

Community Comments

Loading live comments and annotations…