Command Palette
Search for a command to run...
ビジョンをコードで解く:コーディングエージェントは動画モデルよりも優れた視覚推論器である
ビジョンをコードで解く:コーディングエージェントは動画モデルよりも優れた視覚推論器である
概要
動画生成モデルは、視覚的推論器として評価されることが増えている。最初のフレームと自然言語によるプロンプトが与えられたとき、指定されたタスクが実行される動画をモデルが生成できるかどうかが問われるのである。このパラダイムは、推論が視覚媒体にネイティブであり、言語やコードを介さずにフレーム内で直接展開されるという点で有利と考えられている。このネイティブな経路が実際により信頼性の高い視覚的推論への道であるかどうかは、同一条件下で記号的代替手法と比較検証されていなかった。そこで我々は、同一の入力、出力仕様、評価器を用いて、同じタスクを両方の媒体に課す。すなわち、ピクセルのノイズ除去を行う代わりに、コーディングエージェントが解答動画をレンダリングするプログラムを作成し、それを無修正のルールベース評価器が採点する。VBVR-Pro-Bench(Xu et al., 2026)は、記号的グラウンドトゥルースを持つ5つの認知カテゴリにわたる500インスタンスからなるスイートであるが、このベンチマークにおいて、エージェントは動画モデルと同じ最初のフレームとプロンプトを受け取り、グラウンドトゥルース、メタデータ、生成モデルへのアクセスは一切なく、インスタンスごとに1回の試行のみが許される。3つのクローズドモデルエージェント(Codex with gpt-6-astra、Claude Code with Fable 5.1、Gemini CLI with Gemini 3.1 Pro)は、それぞれ0.923、0.894、0.893のスコアを記録し、いずれも最強の動画モデルを0.22以上上回った。実行可能な23のオープンウェイトモデルの中では、最高のGLM-5が0.572に達し、RLで訓練された動画モデルを除くすべての動画モデルを上回った。以上を総合すると、最初のフレームとプロンプトから解を計算できるタスクについては、プログラム合成が現在、動画生成よりも実質的に信頼性の高い視覚的推論への経路であることが示される。さらに我々は、画像を探索して転移可能なスキームを復元する描写的プログラムと、ハードコードされた値に対して操作を行う命題的プログラムとを区別し、エージェントが作成したプログラムにおいて視覚的推論がどのように展開するか、そしてそれが一般的な推論の本質に対して何を示唆するかを明らかにする。
One-sentence Summary
Researchers from University College London, Nanyang Technological University, and other institutions show that coding agents that write programs to render answer videos, rather than generate pixels, are substantially stronger visual reasoners on VBVR-Pro-Bench, with three closed-model agents scoring at least 0.893 and more than 0.22 above the strongest video model, while open-weight GLM-5 reaches 0.572.
Key Contributions
- The paper contributes a controlled comparison methodology in which coding agents solve the same visual reasoning tasks as video generation models by writing programs that render answer videos, using identical first frames, prompts, output specifications, and evaluators.
- On VBVR-Pro-Bench, 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, while the strongest video model, trained with reinforcement learning on the benchmark’s task families, scores 0.670. The best open-weight agent, GLM-5, reaches 0.572, exceeding every video model except the reinforcement-learning-trained video model.
- The paper distinguishes depictive programs, which navigate the image to recover a transferable scheme, from propositional programs, which operate on hard-coded values, and shows their use varies by task type. Depictive programs are most common when locating, measuring, and moving objects in pixels, whereas propositional programs are most common when recognizing a rule or applying stored knowledge.
Introduction
Video generation models can now produce photorealistic, temporally coherent footage, which raises the question of whether they can act as visual reasoners for structured tasks rather than simply rendering descriptions. Benchmarks such as VBVR-Pro make this question verifiable by pairing procedurally generated tasks with rule-based evaluation against symbolic ground truth, but current video models remain far below the benchmark ceiling, including a model trained with reinforcement learning on the benchmark’s own task families. The authors address the same benchmark by changing the answer medium: instead of denoising pixels, a coding agent receives the same first frame and prompt and writes a program that renders the answer video, after which the unmodified official evaluator scores the output. Under this controlled protocol, coding agents substantially outperform video models across all task categories, showing that explicit program synthesis is currently a stronger route to this form of visual reasoning.
Dataset
The authors use the VBVR-Pro-Bench setup as the benchmark.
- Composition: each instance is a 1024×1024 image plus a task prompt.
- Source: inherited from VBVR-Pro-Bench.
- Category labels: 120 total families split into Perception (39), Abstraction (25), Knowledge (20), Transformation (19), and Spatiality (17); 16 families have more than one label.
- Label weighting: a family with k labels counts as 1/k toward each category; category score is the weighted average over instances from those families.
- Open-weight usage: the same protocol is applied to open-weight models through OpenCode, an open-source coding agent, using a standard chat API.
- Open-weight model pool: 24 models served by Amazon Bedrock from GLM, Kimi, MiniMax, DeepSeek, Qwen, gpt-oss, Nemotron, Mistral, Llama, and Gemma families.
- Processing/rules: each model runs under the same task statement, sandbox, and time limit as the closed agents; DeepSeek R1 is marked unsupported because it cannot call tools on Bedrock, leaving 23 scored models.
Method
Evaluation Protocol
The authors cast visual reasoning as a coding-agent evaluation protocol. A coding agent receives the same first-frame and prompt inputs as a video model, writes a program that renders the answer video, and is scored by the benchmark's official evaluator. All results are produced by a single end-to-end pipeline implementing this protocol.
Task Statement and Sandbox
Each instance runs in a fresh container holding only its inputs together with a task statement generated by the harness. The statement is identical in structure for every agent and instance, while the instance-specific output format varies. The agent is instructed to write a program that renders the answer video under three constraints: no image or video generation model may be called, only what the prompt requires may change, and the action must unfold over the full clip.
The container is a CPU-only Python environment with standard imaging and scientific libraries and a set of preinstalled fonts. The agent runs as an unprivileged user under fixed resource limits and a 30-minute wall-clock budget. Network access is enabled for model API calls and package installation, but generative image and video models are forbidden. Compliance is confirmed by auditing every event log and retained program. Each instance receives exactly one attempt with no retry, and an instance without a video at exit scores zero.
Agent Execution Loop
Each agent is an off-the-shelf command-line coding tool that drives a language model. The agent reads files, runs commands, edits code, and iterates until it decides the task is complete. The tools are run in their official non-interactive modes with approvals bypassed and default settings, without adding system prompts, skills, or other modifications.
Scoring
Every generated video is scored by the official VBVR-Pro-Bench evaluation kit, unmodified and in the mode used for the published leaderboard. Each task family's rule-based evaluator compares the generated video with symbolic ground truth using classical computer vision and OCR. A system's score is the mean over all instances, and category scores follow the benchmark's weighting. Video-model scores are taken from the published VBVR-Pro results and are not recomputed.
Efficiency Accounting
Each agent CLI writes a machine-readable log of its run, retained for every instance. From these logs, the authors derive tool calls, token counts, and wall-clock time. Tool calls and tokens are reported as means over all instances, and wall-clock time is reported as the median. The logs also record whether the agent called any tool, whether it reached the time limit, and whether a failed instance involved tool use, supporting later failure analysis.
Experiment
The authors evaluate coding agents on VBVR-Pro-Bench by having them write programs that render answer videos from the same first frame and prompt used for video models, keeping the official evaluator unchanged. Closed-model agents outperform all video models, including the benchmark-trained one, and lead in every task category, while the strongest open-weight agents also exceed most video models; low scores among open-weight systems are mainly driven by delivery failures rather than content quality. The analysis further distinguishes depictive programs that derive answers by inspecting the frame at run time from propositional programs that hard-code previously inferred answers, with the balance tracking task demands rather than performance. The authors caution that the synthetic, code-generated benchmark setting and the agents' sandbox and iteration advantages may limit generalization to real-world visual reasoning.
The benchmark runs three off-the-shelf closed-model coding agents through their official command-line interfaces in non-interactive mode with approvals bypassed. Codex CLI uses gpt-6-astra, Claude Code uses Claude Fable 5.1 via Amazon Bedrock, and Gemini CLI uses gemini-3.1-pro-preview. Across the evaluated tasks, spatial manipulation prompts tend to yield depictive programs, while rule recognition and stored knowledge prompts tend to yield propositional programs. All three agents operate in fresh CPU-only containers as unprivileged users with fixed resource limits, network access, and a 30-minute wall-clock budget. Tasks that require locating, measuring, and moving objects have the highest share of depictive programs, whereas tasks requiring rule recognition or stored knowledge have the highest share of propositional programs.
Closed-model coding agents lead the benchmark, with Codex, Claude Code, and Gemini CLI occupying the top ranks and producing videos for all 500 instances. Open-weight coding agents vary widely, and the strongest among them surpass all video models except the reinforcement-learning-trained VBVR-Pro-Wan2.2-I2V-A14B. Lower-scoring open-weight agents are strongly associated with delivery failure, especially no tool use, premature termination, or timeouts. The three closed-model coding agents occupy the top three positions and each deliver a video on all 500 instances. The strongest open-weight agent, GLM-5, ranks fifth overall and outperforms every video model except the RL-trained VBVR-Pro-Wan2.2-I2V-A14B.
Closed-model coding agents outperform both the open-weight coding agents and the best video model across all five task categories, with each closed agent scoring above 0.8 in every category. The open-weight models show a different profile, performing best on Perception and lagging most on Abstraction. The closed agents' edge over the video model is largest on Perception and smallest on Transformation. Codex leads among the closed-model agents on Abstraction, Knowledge, and Spatiality; Gemini CLI leads on Perception; Claude Code leads on Transformation. The open-weight models are strongest on Perception and fall furthest behind the closed-model mean on Abstraction. The best video model is strongest on Transformation and weakest on Perception, while the closed agents span a narrower range across categories. Every closed-model agent outperforms the best video model in all five categories, with the largest margin on Perception and the smallest on Transformation.
The benchmark evaluates off-the-shelf coding agents in non-interactive mode with approvals bypassed, running Codex CLI, Claude Code, and Gemini CLI in fresh CPU-only containers with fixed resource limits and a 30-minute budget. Spatial manipulation prompts tend to produce depictive programs, while rule recognition and stored knowledge prompts tend to produce propositional programs. The closed-model agents rank highest and deliver videos for all 500 instances, outperforming every open-weight agent and the best video model across all task categories, with the largest margin on Perception and the smallest on Transformation; open-weight agents are strongest on Perception and weakest on Abstraction.