| |

Late November new study: Coding Agent outperforms video generation models on 500 visual reasoning questions

Late November new study: Coding Agent outperforms video generation models on 500 visual reasoning questions

coding-agents-beat-video-models-vbvr-pro-bench-en-image-0

Bottom line: on VBVR-Pro-Bench, a set of 500 synthetic visual reasoning problems, coding agents score noticeably higher than video generation models. The average score of three closed-source coding agents lands between 0.893 and 0.923, while the strongest video baseline sits at 0.670. That result comes from a v1 preprint posted to arXiv on November 25, 2026 (UTC), and it hasn’t been peer-reviewed yet. All it shows is that “solving problems with code” is more reliable on this kind of procedurally generated task with clean geometric structure — it can’t be used to judge video quality, and it doesn’t generalize to real-world visual understanding.

What you’ll take away from this piece:

  • What VBVR-Pro-Bench problems actually look like, and how coding agents versus video generation models go about answering them
  • Concrete scores, runtimes, tool-call counts, and how open models performed
  • Where the evaluation conditions for the two families of systems aren’t comparable, and what scope the conclusion actually covers
  • How to use an OpenAI-compatible interface to reproduce a simplified visual reasoning pipeline following the “read the image, write code, execute, revise” loop

Contents: We’ll start with a To Know table that explains a few key concepts, then a short breakdown of impact by audience. The “Objective Facts” section covers the paper’s evaluation setup, scores, and efficiency numbers, along with differences across task types and the generalization question. The “Analysis and Judgment” section digs into why coding agents have the edge on these problems and marks out the boundaries of the conclusion. After that comes a runnable quick-start example, and finally the FAQ and references.


To Know: VBVR-Pro-Bench and Programming Agent Concepts

Concept Brief Explanation
VBVR-Pro-Bench A visual reasoning benchmark with 100 task families and 500 synthetic problems in total, where each answer must be expressed as a video
Task Family A template for one type of problem, such as grid paths, that can generate multiple concrete instances
First Frame A 1024×1024 starting image provided for each problem, serving as the starting point for the answer
Programming Agent An AI tool that can autonomously read files, write programs, execute them, and revise code based on the results. This article covers Codex, Claude Code, Gemini CLI, and OpenCode
I2V Model Image-to-Video, a model that generates video from an image plus a text instruction, such as Wan2.2-I2V
RL Fine-tuning Further training a model with reinforcement learning; the strongest video baseline is the RL version
Wall-clock Time The actual elapsed time from task start to finish, as opposed to pure compute time
Connected Component A block of interconnected, color-consistent pixels in an image, often used to locate graphic objects
Graph Search An algorithm for finding a path through a structure made of nodes and edges, such as the BFS shortest path
Preprint A version of a paper made public before formal peer review, whose conclusions may change in subsequent versions

Impact at a Glance: Who Cares About Coding Agents’ Visual Reasoning Results

  • Developers: If your product involves structured image tasks—charts, grids, diagrams—consider having the model write code to compute the answer. You don’t necessarily need to have it output the answer directly or generate an image.
  • Researchers: This study provides a comparison baseline. When video generation models are evaluated as visual reasoners, they should be compared alongside the “code-based solving” route.
  • Video generation model users: The conclusions don’t cover visual quality, motion naturalness, or real-world performance, so you don’t need to use these results when choosing a video model.
  • Benchmark designers: Some agent programs can only draw the correct answer for the original problem; switch to another instance of the same type and they fail. Benchmarks need to consider whether the model has truly learned a general algorithm.

What the Facts Say: What the VBVR-Pro-Bench Paper Reports

The Coding Agent Visual Reasoning Paper: What It Is and When It Came Out

The paper is titled Solve Vision with Code: Coding Agents Are Stronger Visual Reasoners Than Video Models, by Dezhi Luo and others. The arXiv v1 release went live on November 25, 2026 (UTC) as a preprint. Companion resources include the vbvr-pro repository on GitHub and the VBVR-Pro online leaderboard.

How VBVR-Pro-Bench Tasks Are Built

VBVR-Pro-Bench is made up of 100 task families, 5 tasks each, for 500 synthetic problems in total. Every task gives you a 1024×1024 first frame plus a natural-language instruction, and whoever answers has to submit a video that meets the specified format to show the answer. For grid tasks, for instance, you draw the path traversal; for completion tasks, you draw the missing shape.

Task types include grid paths, judging occlusion relationships, and incremental shape completion, grouped into five major categories: perception, abstraction, knowledge, transformation, and spatial. All tasks are program-generated, with clean geometric structure and no real-world footage.

Evaluation Conditions for Coding Agents and Video Generation Models

Both types of systems use the same tasks, output specification, and scorer, but they run under different conditions. The table below summarizes what the paper describes:

Dimension Coding Agent Video Generation Model
Answering method Reads images, writes code, executes, revises, and finally renders video in an isolated CPU Python environment Generates video directly from the first frame and instruction
Disabled capabilities Cannot call video or image generation models Not applicable
Information provided No answers or hidden task metadata are provided First frame + instruction
Run count One run, with up to 30 minutes of iteration Single-sample results from an existing leaderboard
Re-run? Actually run by the paper’s authors The paper did not re-run the video models
Compute budget / cost alignment Not aligned Not aligned

Here’s something to keep in mind: the paper doesn’t compare the two types of systems under the same compute budget, nor does it provide a cost comparison. So the score gap shouldn’t be read as “who’s stronger with equal resources.”

Overall Visual Reasoning Scores for Coding Agents and Video Generation Models

Scores are averages on a 0–1 scale, not the proportion of tasks answered perfectly.

coding-agents-beat-video-models-vbvr-pro-bench-en-image-1

System Type Average score (0–1) Verified availability
Codex / GPT-6 Astra Coding Agent 0.923 Subject to actual listing on official platforms and APIYI apiyi.com
Claude Code / Fable 5.1 Coding Agent 0.894 Subject to actual listing on official platforms and APIYI
Gemini CLI / Gemini 3.1 Pro Coding Agent 0.893 Subject to actual listing on official platforms and APIYI
VBVR-Pro-Wan2.2-I2V-A14B (RL) Video model (strongest baseline) 0.670 Leaderboard data
VBVR-Pro-Wan2.1-I2V-14B Video model 0.562 Leaderboard data
Seedance 2.0 Video model 0.499 Leaderboard data
Kling VIDEO 3.0 Video model 0.392 Leaderboard data
Veo 3.1 Video model 0.309 Leaderboard data

The three closed-source agents are within 0.03 of each other, while the gap between them and the strongest video baseline is over 0.2. Notably, the top two video models are both Wan variants trained on VBVR-Pro.

Coding Agent Efficiency and Open Model Data

Thirty minutes is just the upper limit—most tasks take far less time than that:

Coding Agent Median wall-clock time Average tool calls
Codex 22 sec 3.2
Claude Code 105 sec 9.2
Gemini CLI 218 sec 25.3

On the open-system side, the paper evaluates OpenCode 1.18.30 with 23 open-weight models; among them, GLM-5 scored 0.572. That score is lower than all three closed-source Agents, which also shows that the Agent framework is only part of the story—the capability of the underlying model matters just as much.

Task-Type Differences and Generalization Issues in VBVR-Pro-Bench

Results vary widely across task types. On the grid shortest-path task, all three closed-source Agents scored 1.000; on the obstacle-avoidance task, the three scored 0.414, 0.805, and 0.609, respectively—and their ranking there was different from their ranking on the overall score.

The paper also examined the programs the Agents wrote. Some “successful” programs, when swapped to new instances of the same task type, still drew at the fixed coordinates from the original task—that’s hard-coding. Other programs did read the image first and then compute the answer based on the image content. The authors use this to argue that the scores reflect delivery outcomes on the current tasks, not proof that the Agents have learned general algorithms that work in every situation.


Analysis: What It Means When a Coding Agent Wins at Visual Reasoning

Why Coding Agents Have the Edge on VBVR-Pro-Bench

coding-agents-beat-video-models-vbvr-pro-bench-en-image-2

These tasks are programmatically generated: object colors are uniform, boundaries are clean, and positions can be expressed precisely in coordinates. For a coding agent, the problem decomposes into a set of deterministic steps — first find objects via color segmentation and connected components, then do coordinate math, then solve with graph search, and finally draw the answer frame by frame to spec. Each step can be executed and checked, and if something goes wrong you can fix it. A video generation model has to “reason correctly” and “render correctly” all in a single generation, with no intermediate checkpoint where anything can be inspected.

The perfect score on grid shortest paths and the marked gap on obstacle-avoidance tasks fit this explanation too. The former has a standard algorithm and almost never goes wrong. The latter requires first correctly understanding the obstacles and the rules — once that understanding drifts, the code simply executes the mistake very precisely.

The Boundaries of the Coding Agent vs. Video Generation Model Conclusion

The following boundaries need to be stated clearly and not crossed:

  • This is not a video-quality evaluation: The scorer looks at whether the answer is correctly expressed, not at how good the picture looks or how natural the motion is.
  • This is not a real-world vision evaluation: The benchmark doesn’t include the complex textures, realistic occlusions, natural physical processes, or open-ended “multiple plausible futures” of real human video.
  • The conditions aren’t symmetric: The video results are single-sample runs from an older leaderboard, while the agent gets up to 30 minutes of iteration time. The budgets and costs of the two sides aren’t aligned.
  • A score isn’t a capability: Some programs hardcode coordinates, so partial high scores don’t mean the agent has mastered transferable algorithms.

Given all this, the more accurate claim is: for synthetic visual reasoning tasks with clean geometry, “write code to solve it, then render” is currently more reliable than “generate the video directly.”

What to Watch Next for Coding-Agent Visual Reasoning (Predictions)

The following are the author team’s speculations and haven’t been verified yet. First, future benchmarks will likely add “retesting on new instances from the same family” to distinguish real algorithms from hardcoding. Second, combining video generation models with code tools — for example, solving with code first and then having the video model render — could become a research direction. Third, once you move to real captured footage, methods like color segmentation get noticeably harder, and at that point the gap between the two approaches may shrink or even flip. New experiments will be needed to answer that.


Quick Start: Reproducing the Visual Reasoning Pipeline with a Coding Agent Approach

Below, we’ll implement a simplified version of the pipeline using an OpenAI-compatible API: send the first frame and the instruction to a model that supports visual input, and have it generate a solver program. This is just a teaching demo of the paper’s approach, not the paper’s official evaluation framework.

A Minimal Example of Visual Reasoning with a Coding Agent

import base64
import openai

client = openai.OpenAI(
    api_key="YOUR_API_KEY",
    base_url="https://api.apiyi.com/v1"  # APIYI OpenAI-compatible endpoint
)

with open("first_frame.png", "rb") as f:
    img_b64 = base64.b64encode(f.read()).decode()

prompt = ("这是一道网格最短路题的首帧。请写 Python 程序:用 PIL 读取 first_frame.png,"
          "通过颜色分割定位起点、终点和障碍,用 BFS 求最短路,逐帧绘制路径并输出 answer.mp4。"
          "禁止写死坐标,只输出代码。")

resp = client.chat.completions.create(
    model="YOUR_VISION_MODEL",  # Replace with a model on the platform that supports image input
    messages=[{"role": "user", "content": [
        {"type": "text", "text": prompt},
        {"type": "image_url", "image_url": {"url": f"data:image/png;base64,{img_b64}"}},
    ]}],
)
print(resp.choices[0].message.content)
View the full implementation (generate → execute → revise loop + generalization check)
import base64
import re
import subprocess
import openai

client = openai.OpenAI(
    api_key="YOUR_API_KEY",
    base_url="https://api.apiyi.com/v1"
)
MODEL = "YOUR_VISION_MODEL"
MAX_ROUNDS = 5

def encode(path):
    with open(path, "rb") as f:
        return base64.b64encode(f.read()).decode()

def extract_code(text):
    m = re.search(r"```(?:python)?\n(.*?)```", text, re.S)
    return m.group(1) if m else text

def run(code, image_path, timeout=120):
    with open("solver.py", "w") as f:
        f.write(code)
    # Always run model-generated code in an isolated container/sandbox
    p = subprocess.run(["python", "solver.py", image_path],
                       capture_output=True, text=True, timeout=timeout)
    return p.returncode, p.stdout[-2000:], p.stderr[-2000:]

def solve(image_path, instruction):
    messages = [{"role": "user", "content": [
        {"type": "text", "text": instruction +
         "\n要求:图像路径从 sys.argv[1] 读取;必须基于像素分析求解,禁止写死坐标;只输出完整代码。"},
        {"type": "image_url", "image_url": {"url": f"data:image/png;base64,{encode(image_path)}"}},
    ]}]
    for i in range(MAX_ROUNDS):
        reply = client.chat.completions.create(model=MODEL, messages=messages)
        code = extract_code(reply.choices[0].message.content)
        rc, out, err = run(code, image_path)
        print(f"第 {i+1} 轮 返回码={rc}")
        if rc == 0:
            return code
        messages.append({"role": "assistant", "content": code})
        messages.append({"role": "user", "content": f"运行失败:\n{err}\n请修复后输出完整代码。"})
    return None

def generalization_check(code, new_instances):
    """Re-test on fresh instances of the same puzzle type to catch programs with hardcoded coordinates"""
    for path in new_instances:
        rc, _, err = run(code, path)
        print(path, "通过" if rc == 0 else f"失败:{err[:200]}")
        # Beyond this, a human or a grader should verify that answer.mp4 changes with the new image

if __name__ == "__main__":
    task = "这是一道网格最短路题。请找到从绿色起点到红色终点、绕开黑色障碍的最短路,逐帧绘制并输出 answer.mp4。"
    code = solve("first_frame.png", task)
    if code:
        generalization_check(code, ["new_case_1.png", "new_case_2.png"])

The generalization_check here targets the hardcoding problem the paper identified. Getting it to work on the original puzzle isn’t enough — the answer also has to change when you swap in a new image, and only then do you know the program is really reading the picture. Writing “don’t hardcode coordinates” in the prompt reduces this behavior, but it can’t eliminate it.

The table below lists common image-processing techniques for this kind of puzzle. You can put them in the prompt to steer the model toward the right approach:

Technique Purpose Corresponding Puzzle Type
Color segmentation Separate different objects by RGB thresholds Start / end / obstacle identification
Connected components Count and locate independent shape blocks Shape counting, completion
Coordinate calculation Derive grid rows, columns, and spacing from pixels Grid-type, transformation-type
Graph search (BFS / A*) Find the shortest path or check reachability Grid paths, obstacle avoidance
Frame-by-frame rendering Output answer videos to spec Final delivery for all puzzle types

🚀 Quick Start: We recommend grabbing free test credits through APIYI apiyi.com, then comparing the solution code that different vision models produce on a handful of puzzles first. The platform gives you unified access to OpenAI, Claude, Gemini, and other models with a single API key — switching models is just a matter of changing the model parameter.


FAQ

Q1: What is VBVR-Pro-Bench?

It’s a visual reasoning benchmark with 100 task families and 500 synthetic questions in total. Each question gives you a 1024×1024 first frame plus a text instruction, and asks you to submit a video in the specified format that demonstrates the answer. The question types span five categories: perception, abstraction, knowledge, transformation, and spatial.

Q2: How big is the gap between coding agents and video generation models in this study?

The three closed-source coding agents averaged 0.893 to 0.923, while the strongest video baseline, VBVR-Pro-Wan2.2-I2V-A14B (RL), scored 0.670, and Veo 3.1 scored 0.309. Keep in mind that the average score isn’t the share of fully correct answers, and the two kinds of systems weren’t given matching compute budgets.

Q3: When was this paper released? Are the conclusions reliable?

Paper v1 went up on arXiv on November 25, 2026 (UTC). It’s a preprint and hasn’t been peer-reviewed yet. You can check the data against the GitHub repository and the online leaderboard, but the conclusions may still change in later versions.

Q4: Does this mean video generation models produce lower-quality images than coding agents?

No. The study only evaluates whether the answers to synthetic visual reasoning questions are correct. It doesn’t touch image quality or how natural the motion looks, and it doesn’t cover complex textures, real occlusion, or physical processes in real-world videos.

Q5: How can I quickly try the “solve visual problems with code” approach through an API?

1. Sign up at APIYI apiyi.com and get an API key and free credits
2. Set base_url in the sample code to `https://api.apiyi.com/v1`
3. Pick a model that supports image input, then run the generate → execute → revise loop

It’s best to run the generated code inside a sandbox.

Q6: What are the known weaknesses of the coding agent approach?

First, some programs hardcode coordinates, so they break as soon as you swap in a new instance of the same question type. Second, scores swing a lot on question types like obstacle avoidance — the lowest of the three agents was just 0.414. Third, the approach depends on clean geometric structure; on real images, methods like color segmentation degrade noticeably. On the open-model side, OpenCode paired with GLM-5 scored 0.572, still behind the closed-source agents.

Q7: Is there an easy way to compare how well multiple models write solution code?

Use a unified API platform to run the same prompt and test images through each model, then re-test generalization with fresh instances of the same type. On APIYI apiyi.com, switching models only means changing the model name, and you’re billed by usage — good for small-scale comparison experiments.


If your work involves structured visual tasks like chart parsing, grid planning, or understanding diagrams, this study points to a direction worth trying: let the model write code to compute the answer, then use new instances to check whether the program actually read the image. Running a round of multi-model comparisons with a dozen or so images on APIYI apiyi.com before deciding whether to scale up is a safer bet than relying on a single model’s output.

References

  1. arXiv paper abstract page: Solve Vision with Code: Coding Agents Are Stronger Visual Reasoners Than Video Models

    • Link: arxiv.org/abs/2611.34813
    • Note: v1 preprint, released 2026-11-25 UTC
  2. arXiv paper HTML full text: experimental setup and per-question-type results

    • Link: arxiv.org/html/2611.34813v1
    • Note: covers evaluation conditions, efficiency data, and generalization analysis
  3. GitHub – vbvr-pro: benchmark and evaluation code repository

    • Link: github.com/video-reason/vbvr-pro
    • Note: you can inspect the task families and the scorer implementations
  4. VBVR-Pro leaderboard: video model and agent scores

    • Link: video-reason.com/pro/leaderboard
    • Note: source of the single-sample scores for the video baselines

Author: APIYI Technical Team
Technical discussion: feel free to reach out to us through the APIYI apiyi.com homepage. For more integration resources, visit the docs.apiyi.com documentation center

Related Articles

Similar Posts