HyperAIHyperAI

Command Palette

Search for a command to run...

حل الرؤية بالكود: وكلاء البرمجة متفوقون على نماذج الفيديو في الاستدلال البصري

الملخص

تُقيَّم نماذج توليد الفيديو بشكل متزايد بوصفها أدوات استدلال بصري: فبإعطائها إطارًا أولًا وموجهًا باللغة الطبيعية، هل يمكن للنموذج إنتاج الفيديو الذي يُنفَّذ فيه المهمة المحددة؟ يُعد هذا النموذج مفيدًا لأن الاستدلال يجري في الوسيط البصري نفسه، ويتكشف مباشرة في الإطارات بدلًا من اللغة أو الكود. لكن لم تُختبر موثوقية هذا المسار الأصلي في الاستدلال البصري مقابل بديل رمزي في الظروف نفسها. لذلك نطرح المهام ذاتها، بمدخلات ومواصفات مخرجات ومقيّم متطابقة، على الوسيطين معًا: فبدلًا من إزالة الضوضاء عن البكسلات، يكتب وكيل برمجي برنامجًا يعرض فيديو الإجابة، ويقيّمه مقيّم قائم على قواعد دون تعديل. على معيار VBVR-Pro-Bench (Xu et al., 2026)، وهو مجموعة من 500 حالة تغطي خمس فئات معرفية مع حقائق أرضية رمزية، يتلقى الوكيل الإطار الأول والموجه نفسهما اللذين يتلقاهما نموذج الفيديو، دون وصول إلى الحقائق الأرضية أو البيانات الوصفية أو نماذج التوليد، وله محاولة واحدة لكل حالة. حقق ثلاثة وكلاء مغلقة النماذج (Codex مع gpt-6-astra، وClaude Code مع Fable 5.1، وGemini CLI مع Gemini 3.1 Pro) درجات 0.923 و0.894 و0.893، أي بفارق يتجاوز 0.22 عن أقوى نموذج فيديو. ومن بين 23 نموذجًا مفتوح الأوزان قابلًا للتشغيل، بلغ أفضل نموذج، GLM-5، درجة 0.572، متفوقًا على جميع نماذج الفيديو باستثناء النموذج المدرَّب بالتعلم المعزز. وبذلك نُظهر أن تركيب البرامج يُعد حاليًا مسارًا أكثر موثوقية للاستدلال البصري من توليد الفيديو بالنسبة للمهام التي يمكن حساب حلولها من إطار أول وموجه. كما نميز بين البرامج التصويرية التي تتنقل في الصورة لاستخلاص مخطط قابل للنقل، والبرامج القضوية التي تعمل على قيم مشفرة ثابتة، كاشفين بذلك كيف يتكشف الاستدلال البصري في البرامج التي يكتبها الوكيل وما يعنيه ذلك لطبيعة الاستدلال عمومًا.

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.8930.8930.893 and more than 0.220.220.22 above the strongest video model, while open-weight GLM-5 reaches 0.5720.5720.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.


بناء الذكاء الاصطناعي بالذكاء الاصطناعي

من الفكرة إلى الإطلاق — سرّع تطوير الذكاء الاصطناعي الخاص بك مع المساعدة البرمجية المجانية بالذكاء الاصطناعي، وبيئة جاهزة للاستخدام، وأفضل أسعار لوحدات معالجة الرسومات.

البرمجة التعاونية باستخدام الذكاء الاصطناعي
وحدات GPU جاهزة للعمل
أفضل الأسعار

HyperAI Newsletters

اشترك في آخر تحديثاتنا
سنرسل لك أحدث التحديثات الأسبوعية إلى بريدك الإلكتروني في الساعة التاسعة من صباح كل يوم اثنين
مدعوم بواسطة MailChimp