Paper: 2611.34813 — Solve Vision with Code: Coding Agents Are Stronger Visual Reasoners Than Video Models Authors: Dezhi Luo and coauthors Categories: cs.AI, cs.CV, cs.LG, cs.MM Reading scope: Original arXiv HTML, main Sections 1–5 and Appendices A–D, without text excerpting; all seven figures inspected. The workflow image below is a crop of Figure 1. This is a source-based reading, without independent review, a repository audit, or experiment reproduction.

The Problem

A picture contains three colored circles. The instruction asks for a red ring around the second largest one. The answer must be a video in which that ring appears, with the circles otherwise preserved. This is the paper’s G-161 task, described in Appendix D.4. Recognizing the right circle and producing the right frames are both necessary. But must one model do both by generating pixels?

Visual-reasoning benchmarks already ask video models to turn an initial frame and a prompt into an answer clip. The authors try another route on VBVR-Pro-Bench: let a coding agent inspect the image, solve the task, and write a program that renders the clip. They compare systems using the same inputs, required video format, and official scorer. Their question concerns this particular collection of computable visual tasks; the agents’ tools and iteration budget also matter to the comparison.

The Explanation

Put the measurement into a program

For G-161, the worked Codex program finds regions whose pixels have sufficiently different color channels, groups adjacent pixels into objects, and orders those objects by pixel area. It selects the second largest region, obtains a center and radius from its bounding box, and draws a growing red ring over successive copies of the original image. The existing circles remain in those copies. The program turns an image measurement into a rendered answer; it never asks a video generator to invent the frames. Appendix D.4 and Figure 6 show this concrete run.

Workflow crop from the paper's Figure 1: shared first frame and prompt, two solving routes, answer videos, and the official evaluator

Figure 1, cropped to its input–solver–output–evaluation workflow. The original result panels and program examples are outside this crop.

Every benchmark instance runs in a fresh CPU sandbox. The agent receives the first frame, prompt, and output specifications, with standard Python imaging libraries available. It cannot access the task generator, metadata, or correct answer, and the rules forbid image and video generation models. There is one agent attempt per instance, with up to 30 minutes to use tools, execute code, and revise it. One attempt therefore includes an iterative coding session; it does not mean one model response. These are the conditions in Section 2.1.

Score the delivered video

The benchmark has 100 task families with five instances each, covering perception, abstraction, spatial relations, transformations, and knowledge. Its official evaluator uses classical computer vision and text recognition to compare the video against symbolic ground truth—the correct objects, relations, or actions generated with the task. Each clip receives a score from 0 to 1. A missing video receives 0, and the overall score averages all 500 instances. Thus 0.923 is a mean score, not a claim that exactly 92.3% of tasks were solved. Sections 2.2–2.3 define this accounting.

The authors run the coding agents themselves. The video-model numbers come from the published VBVR-Pro leaderboard and are not rerun in this study. Table 2 reports:

SystemMean scoreVideos delivered by the coding agent
Codex, gpt-6-astra0.923500/500
Claude Code, Fable 5.10.894500/500
Gemini CLI, Gemini 3.1 Pro0.893500/500
GLM-5 through OpenCode0.572495/500
Best published video model, VBVR-Pro-Wan2.2-I2V-A14B (RL)0.670Not rerun

The strongest video model had reinforcement learning on the benchmark’s in-domain task families using its evaluator as reward. All three closed-model coding systems score above it; the best open-weight coding system remains below it. This supports the coding route for the tested systems and setting, rather than a universal advantage for every model that can write code.

The circles help explain why the setting matters. A color mask and an area calculation can recover exact quantities from these clean, generated images. Section 3.2 explicitly cautions that this favors programmatic solutions on perception tasks. Extracting the same information from a textured, partly hidden object in a real photograph is a further problem.

Separate a wrong answer from no answer

An agent that describes a solution but never writes a video gets the same zero as any other missing delivery. Section 3.3 finds four open-weight models that never invoke tools across their 500 attempts. Their result measures a failure of the evaluated model–harness setup to deliver the required artifact; it cannot by itself locate a visual-reasoning deficit.

The opposite case is Qwen3-Coder-Next. It delivers 498 videos and scores 0.264, while reaching the time limit on 93 instances. A video written before timeout is still scored. Here the low score largely concerns the content of delivered clips, rather than simply their absence. Counting completed files alongside evaluator scores makes the diagnosis possible.

Tool count is also an unreliable shortcut to quality. Table 4 reports means of 3.2 calls per instance for Codex and 25.3 for Gemini CLI, with median elapsed times of 22 and 218 seconds, while their mean scores differ by 0.030. These logs describe different working styles and costs. They do not show that removing verification or reducing calls would improve a given agent.

Ask what survives a new picture

The red-ring program provides a second test. Run it on another G-161 picture, now with four circles in different positions. Does it measure again, or does it mark the old coordinates?

The authors call programs that inspect the frame at execution time depictive, and programs that render an answer already established during the agent’s session propositional. The latter can still embody a correct solution: the agent may have measured the image with earlier tools, then written the resulting coordinates into its final program. The distinction concerns where the procedure remains, not whether reasoning happened.

For G-161, Appendix D.4 reports 15 closed-agent programs tested on another instance. Twelve again obtain score 1.0; three crash on the changed input. None simply draws its old answer. The paper groups all 15 with the image-reading strategy. That is evidence about behavior, with a clear remaining robustness problem—not proof that all 15 are reusable solvers.

More broadly, Section 3.4 classifies 1,385 programs selected for solving their original instance by replaying each on another instance of its family. Figure 3 retains a large intermediate group for partial or incorrect changes. Its depictive criterion can include a program that fails while measuring the new frame. The replay test distinguishes mechanisms more carefully than an original-instance score, but successful transfer needs its own count.

Core Concepts

Ground truth has a structure. In the circle task, the target follows from objects and their areas. The scorer can check this without asking another language model for an opinion. Such generated structure makes exact measurement and rendering useful, while narrowing what the benchmark represents.

The agent is an executing system. Its answer includes an actual video file. Model output, tool invocation, code execution, and rendering all affect whether that file exists. Keeping delivery separate from its content prevents a broken tool path from masquerading as an inability to solve the circle problem.

A solved instance and a reusable procedure are different assets. Fixed coordinates can satisfy today’s red-ring request. A program that finds and sorts circles may serve tomorrow’s request too, provided it survives the changed image. The correct evaluation depends on which asset you need.

The Insight

Requiring a visual answer leaves room to choose how it is computed. On these tasks, a useful route is to recover measurable structure, compute the required change, and render it precisely. The reported advantage belongs to a setting where the first frame and prompt contain enough information and code can produce the answer.

There is another engineering lesson inside that result: a high score for an agent does not establish that its final script has preserved a general solver. Evaluate the whole session for a one-off answer, and evaluate the saved program on changed inputs when reuse is the goal.

A Critical Reading

The comparison gives both routes the same task inputs, video format, and deterministic scorer. It does not equalize computation: coding agents use a sandbox and up to 30 minutes of iteration, while the video baselines produce a single sample. Different underlying models and agent harnesses also remain part of the result. Section 4 acknowledges this asymmetry, so the leaderboard should be read as a comparison of evaluated systems, not an isolated causal test of answer medium.

The benchmark’s flat colors, exact geometry, and program-generated answers make the code route particularly natural. The paper leaves real footage, occlusion, variable lighting, and hybrid generative renderers for further work. Its replay classifications also describe observable programs, without establishing the models’ internal representations or a theory of human mental imagery.

One presentation detail deserves care: Figure 4 labels its paired G-131 example as the same instance, yet its two displayed solutions carry different pixel-size annotations. I have not reconciled those annotations and do not use them as a shared-input measurement. The red-ring explanation instead follows Figure 6 and Appendix D.4, including the failed replays. This assessment rests on the source; I have not independently run the agents or evaluation kit, or audited their logs.

What You Can Use

For a diagram, grid, or generated scene whose answer follows exact rules, try an image-reading program before choosing a generative renderer. Use the circle example as the pattern: extract objects, compute the requested relation, make only the required edit, and inspect the resulting clip. This is a practical inference from the reported setting, not a tested promise for every visual task.

Record whether the clip was delivered, how well it satisfies the task, and what time and tools it required. If you intend to keep the script, change the circle sizes, count, and positions and run it again. Check both correctness and crashes. The goal is to carry the measurement forward to the next picture, rather than preserve only today’s drawing.

论文: 2611.34813 — Solve Vision with Code: Coding Agents Are Stronger Visual Reasoners Than Video Models 作者: Dezhi Luo 等 分类: cs.AI、cs.CV、cs.LG、cs.MM 阅读范围: 原始 arXiv HTML,正文第1—5节及附录A—D,未截取文字;已查看全部七张图。 下方流程图裁自原图1。 本文据原文解读,没有独立评审、仓库审计或实验复现。

问题

画面里有三个彩色圆,题目要求给第二大的圆套上红圈。 答案还得是一段视频:红圈逐渐出现,原来的圆保持不变。 这是论文附录D.4里的G-161题。 选对圆和画对每一帧,都得完成。 可这两件事,必须交给一个直接生成像素的模型一起做吗?

已有视觉推理评测,会给视频模型一张起始图和一句指令,让它生成完成任务的片段。 作者在VBVR-Pro-Bench上另试一条路:编程助手读图、求解,再写程序画出答案视频。 两边面对相同输入,遵守相同视频格式,也交给同一个评分器。 问题限定在这批可以从图和指令算出答案的题上;助手能用工具、能反复执行程序,也是比较条件的一部分。

翻译

把量圆的过程写进程序

G-161的一个Codex程序,先用像素各颜色通道的差异找出彩色区域,再把相邻像素归成一个个物体。 接着按像素面积排序,取第二大的区域,从它的外接框算出圆心和画圈所需的半径。 程序连续复制原图,在每一帧上逐步补出红圈,原有圆形便留在这些副本里。 量出对象,再画出变化,这就把题解变成了视频。 整个过程没有调用视频生成模型。 附录D.4和图6展示了这次具体运行。

原图1的流程裁图:相同起始图和指令,两条求解路线,答案视频及官方评分器

裁自原图1,保留输入、求解、输出和评分流程;原图的成绩面板与程序示例未纳入。

每道题都会启动一个新的CPU沙箱,放入起始图、指令和视频输出规格,并提供常用Python图像库。 助手拿不到题目生成器、元数据和标准答案,规则也禁止调用图像或视频生成模型。 每题只启动一次助手会话,最多运行30分钟;会话里可以用工具、执行程序和修改代码。 所以“一次尝试”包含反复操作,并不是模型只能回复一次。 这些条件见第2.1节。

评分器收的是视频

这套题有100个任务族,每族5个实例,共500题,涉及看清对象、抽取规律、空间关系、形状变化和知识运用。 官方评分器用传统计算机视觉与文字识别,将视频同题目自带的标准对象、关系或动作比较。 这些标准记录就是“符号真值”:它知道答案该指向哪个物体、该完成什么变化。 每段视频得0到1分,没交视频得0分,总分是500题的平均值。 因此0.923是平均评分,不能直接读成“恰好做对92.3%的题”。 计分方式见第2.2—2.3节。

编程助手由本文作者实际运行。 视频模型的数据取自已发表的VBVR-Pro排行榜,这篇论文没有重跑视频模型。 表2给出以下结果:

系统平均分编程助手交出的视频数
Codex,gpt-6-astra0.923500/500
Claude Code,Fable 5.10.894500/500
Gemini CLI,Gemini 3.1 Pro0.893500/500
OpenCode调用GLM-50.572495/500
最强已发表视频模型,VBVR-Pro-Wan2.2-I2V-A14B(RL)0.670本文未重跑

最强视频模型曾在这套评测的域内任务族上做强化学习,用评分器提供奖励。 三个闭源编程系统都超过它,最强开放权重编程系统仍低于它。 结果支持的是这些系统在当前条件下的编程路线,不能推出任何会写代码的模型都有优势。

圆形例子也说明了优势从何处容易出现。 这些图由程序生成,颜色干净、几何关系明确,颜色筛选加面积计算便能取回精确量。 第3.2节特意提醒,这会让编程方案在感知题上占便宜。 换成有纹理、被遮挡的真实物体,首先得解决怎样取出同样可靠的信息。

没答出来,也可能没交出来

助手说了一段正确思路,却没有写出视频文件,仍然得0分。 第3.3节发现,四个开放权重模型在各自500次尝试中从未真正调用工具。 这个结果首先说明所测模型与工具框架的组合没有交付作品;光看零分,无法定位它究竟缺少哪种视觉推理能力。

Qwen3-Coder-Next则相反:交出498段视频,平均分只有0.264,并在93题上撞到时间上限。 只要超时前已经写出视频,该视频仍会计分。 这里低分主要落在交付内容,而不是文件缺席。 同时看文件交付数和答案评分,才分得清问题在哪一步。

工具调用次数也不能直接当成质量。 表4中,Codex每题平均调用3.2次,Gemini CLI是25.3次;运行时长的中位数分别为22秒和218秒,平均分相差0.030。 日志记录了不同做法和开销,却没有证明删掉检查、减少调用,就能让某个助手答得更好。

换张图,留下的是什么

再把红圈程序放到另一张G-161图上:圆变成四个,位置和大小都换了。 它会重新量一遍,还是继续圈旧坐标?

作者把执行时仍读图、量对象的程序叫作depictive;这里可以理解为“把看图步骤留在程序里”。 另一类叫propositional:助手在会话中已定下答案,最后的程序只按固定值画出来。 后者也可能来自正确求解——助手完全可以先用临时脚本量图,再把坐标写进成品。 两类区分的是求解过程留在哪里,不能据此判断有没有推理。

附录D.4报告,G-161的15个闭源助手程序被放到另一个实例上重跑。 12个再得1.0分,3个在新图上报错;没有一个只是照画旧答案。 论文把这15个都归入读图策略。 这提供了行为证据,也留下了明确的稳健性问题,不能说15个都已成为可靠的通用解题器。

更大范围内,第3.4节挑出1385个在原实例上求解成功的程序,每个再跑同任务族的另一个实例。 图3保留了较大的中间类别:有的只转移部分答案,有的改变了输出却仍答错。 它对depictive的判定还包括“尝试测量新图时失败”。 所以重跑比只看原题分数更能说明程序怎样工作,但真正成功复用的数量还要单独数。

核心概念

标准答案带着结构。 圆形题的目标能由物体和面积确定,评分器不必再问一个语言模型“你觉得对不对”。 这种程序生成的结构,让精确测量和绘制特别有用,也限定了评测代表哪些场景。

助手是会执行的系统。 答案里必须有真正的视频文件。 模型输出、工具调用、代码运行和渲染,都会影响文件能否出现。 先分清交付与内容,才不会把工具路线断了误判成不会量圆。

解出一题与留下解法,是两份成果。 固定坐标能完成今天的画圈请求。 能找圆、排序的程序,才可能接住明天的新图;前提是它经得住输入变化。 评测怎么做,要看你准备留下哪份成果。

洞见

要求视觉答案,并没有替你决定计算路线。 对这批题,可以先取出可测的结构,算清变化,再准确画出来。 优势成立的条件是:起始图和指令已经给够信息,代码也确实能生成所需答案。

高分里还藏着一层区分:助手会话答得好,不代表成品脚本保留了通用解法。 只求一次答案,就评整段会话;准备复用程序,就换输入评程序。

博导审稿

两条路线面对同题、同视频格式、同一个确定性评分器,这使结果容易比较。 但计算条件并未拉齐:编程助手能用沙箱,最多反复操作30分钟,视频基线生成一次样本;底层模型与助手框架也不同。 第4节承认了这种不对称。 所以排行榜比较的是所测系统,不能单独用它证明“答案媒介”造成了分差。

平涂颜色、精确几何和程序生成的答案,又恰好适合代码求解。 真实影像、遮挡、光照变化以及搭配生成式渲染器,仍是论文留给后续的问题。 程序重跑的类别描述可观察行为,也不能证明模型内部采用了什么表征,更不能直接定下人类心象如何工作。

原文还有一处展示细节需要留心:图4把G-131的两段输出标为同一实例,但两边写出的像素尺寸不同。 我没有调和这些标注,也没有把它们用作同输入下的测量证据。 本文改用图6与附录D.4的红圈例子,并保留重跑失败的结果。 这份判断来自原文阅读;我没有独立运行助手、审计日志或评分工具。

启发

遇到答案能由精确规则推出的图表、网格或程序生成场景,可以先试读图程序,再决定用什么渲染器。 照着圆形题走:取出对象,计算题目要求的关系,只改该改的部分,最后检查视频。 这是从本文条件推出来的实用做法,不是对所有视觉任务的效果保证。

记录视频有没有交出来、答案满足要求的程度,以及耗时和工具开销。 若打算保留脚本,就改变圆的大小、数量和位置再跑一次,同时查答错与报错。 你要把量圆的步骤带到下一张图,才能让今天的答案接住明天的请求。