Executable visual reasoning: Solve Vision with Code and VideoCoS
Read first: CodeAct: Executable Code Actions Elicit Better LLM Agents · ReAct: Synergizing Reasoning and Acting in Language Models
Intuition. If a visual problem reduces to counting, geometry or an explicit state transition, a program can do the exact work and then render the answer. The difficulty moves from drawing plausible pixels to extracting the right state. Two papers expose both sides of that trade-off.
| Source | Actual submission | Question |
|---|---|---|
| Solve Vision with Code, v1 HTML | November 25, 2026; surfaced on HF November 27 | Can existing coding agents solve structured visual tasks through video rendering? |
| VideoCoS, v1 HTML | November 26, 2026 | When does a reusable executable world state help reasoning and generation? |
First read: compare information access and evaluation units. Skip individual open-model rankings and reconstruction-tool details.
Solve Vision with Code: a rendered answer, not video prediction in general
Section titled “Solve Vision with Code: a rendered answer, not video prediction in general”The evaluation contains 500 instances: 100 families with five instances each, spanning five cognitive categories with symbolic ground truth. Coding agents receive the same first frame and prompt as video models, and produce the same video output format for the unmodified rule-based evaluator.
They can use Python and other sandbox tools, but not ground truth, task metadata, or generative image/video models. There is one end-to-end attempt per instance, with a 30-minute CPU sandbox budget. This permits iterative tool calls within the attempt; it does not mean one model call.
Author-reported mean scores, on a continuous scale from zero to one:
| System | Mean score |
|---|---|
| Codex, GPT-6 Astra | 0.923 |
| Claude Code, Fable 5.1 | 0.894 |
| Gemini CLI, 3.1 Pro | 0.893 |
| Strongest published video-model baseline | 0.670 |
| Best of 23 runnable open-weight coding agents, GLM-5 | 0.572 |
The video-model numbers are taken from the published leaderboard, not rerun. The experiment aligns task inputs, output formats and evaluation, not training data or inference compute. Unsupported tool-calling configurations such as DeepSeek-R1 are excluded from the runnable comparison.
What the score means
Section titled “What the score means”Missing output videos score zero. In a synthetic example, 450 outputs averaging 0.90 and 50 missing outputs yield
Neither 0.81 nor the reported 0.923 is a percent of tasks completely solved: both average continuous partial credit.
The qualitative program analysis distinguishes depictive solutions that recover a scene scheme from the image at runtime from propositional solutions that encode values derived for one instance. That distinction motivates transfer experiments; categorizing programs is not itself evidence that they generalize to new layouts.
VideoCoS: reconstruct once, query or edit many times
Section titled “VideoCoS: reconstruct once, query or edit many times”VideoCoS changes the task boundary. A codification agent reconstructs a reusable Blender program from raw video plus off-the-shelf perception cues such as depth, camera poses and object tracks. A separate reasoning agent operates from the saved program alone, without access to raw frames or renders.
State reads answer questions without modifying the scene; state writes edit selected components, simulate or render a result. Seven task families cover four read types (counting, metric geometry, viewpoint and appearance order) and three write types (novel views, goal planning and future prediction).
| Task dependence | Why code can help | Remaining failure mode |
|---|---|---|
| Relative direction or distance | Explicit coordinates support exact transformations | Incorrect reconstructed geometry |
| Repeated queries and rigid placement | Reuse one persistent scene and change only targeted state | Missing or misidentified entities |
| Appearance order | Combine object positions with camera history | Multiple noisy estimates compound |
| Hands, fluids and photorealism | Explicit scene structure can constrain a hybrid renderer | Non-rigid dynamics and realistic appearance are not solved by code alone |
The authors find that task-relevant attribute accuracy, rather than visual similarity of a reconstruction, governs downstream reasoning. A beautifully rendered but geometrically wrong scene can be worse for measurement than a crude correct one. These are author-reported results for the tested reconstruction pipelines, not a theorem about all world models.
A useful practitioner connection, not another benchmark
Section titled “A useful practitioner connection, not another benchmark”Simon Willison’s November 28 code-driven illustration post provides a related workflow: editable SVG/code visuals with human render-feedback iterations. It is a qualitative demonstration, not a matched experiment or independent replication of either paper.
The common principle is executable structure plus feedback. The important differences are who supplies perception, whether state persists across queries, and whether the desired output requires realistic continuous dynamics.
Connections
Section titled “Connections”- CodeAct explains why executable code can serve as an expressive action language.
- ReAct supplies the observation/tool loop.
- EM-WAM asks a complementary question: which past observations and unexpected events should a world-action policy remember?
- OS-Omni illustrates why a plausible artifact or trace is different from a verified final state.
Questions to think through
These questions have no single right answer. Write or say your answer before you open the hints. Mark a question once you could defend your answer in a reading group.
- Derive / compute
Solve Vision with Code averages 500 continuous scores in [0,1], with missing videos scored zero. Suppose 50 videos are missing and the other 450 average 0.90. Derive the reported score, then explain why neither that value nor the paper's 0.923 result is the fraction of completely solved tasks.
What a strong answer covers
- The total score is 450 × 0.90 / 500 = 0.81; averaging only returned videos would incorrectly report 0.90.
- Continuous partial credit does not specify how many instances reached a full score of one.
- A thresholded success rate requires an explicitly chosen threshold and the per-instance score distribution.
- Mechanism
Compare a coding agent that produces one task-specific video with VideoCoS's separate codification and reasoning agents. Explain what information each agent can access and why saved executable state enables reuse without proving accurate perception.
What a strong answer covers
- Solve Vision with Code agents see the first frame and prompt, use sandbox tools, and render an output video; they receive neither symbolic ground truth nor task metadata.
- VideoCoS codification uses raw video and off-the-shelf perception cues to build a Blender scene; downstream reasoning works from the saved program alone.
- Persistent entities, geometry and camera state support repeated queries or targeted edits without reconstructing the scene each time.
- Wrong object identity, geometry or camera estimates remain wrong in an executable program; exact downstream computation does not repair them.
- Critique
Closed coding agents score up to 0.923 while the strongest published video-model baseline scores 0.670. Design the controls needed before interpreting this as an algorithmic or compute-efficiency advantage rather than a result for two different system configurations.
What a strong answer covers
- Video-model values come from the existing leaderboard, not reruns; input and output formats and evaluator are aligned, but training and inference compute are not matched.
- Coding agents have a 30-minute CPU sandbox budget and may iterate tool calls inside one end-to-end attempt.
- Report wall time, total model tokens, tool compute, failures and inference settings for both systems on the same frozen instances.
- Conclusions should stay within tasks specified by a first frame and prompt, not general natural-video prediction.
- What if…
VideoCoS finds that geometry-oriented tasks can benefit while appearance-order queries suffer from compounded state errors. Design a controlled corruption experiment to distinguish task-relevant state accuracy from visual fidelity of the rendered scene.
What a strong answer covers
- Perturb object positions, identities and camera trajectories independently while holding the query and reasoning agent fixed.
- Use known synthetic ground truth to measure the perturbed attribute error as well as downstream query accuracy.
- Separately change textures or lighting without changing geometry to test whether render similarity predicts the task result.
- Order queries require several correct estimates jointly; compare their degradation with single-attribute distance or direction queries.
- Design
A visual assistant must answer ten geometry questions and produce one realistic fluid-motion clip from each input video. Choose which stages should use a reusable executable scene and which should retain neural rendering, and specify a validation plan under a fixed reconstruction budget.
What a strong answer covers
- Amortize one scene reconstruction over the geometry questions; cache versioned state and audit the queried attributes.
- Use a neural or hybrid rendering path for fluids and photorealism rather than assuming Blender state reconstruction alone solves them.
- Measure reconstruction cost, query cost, geometric correctness and rendering realism separately against a raw-video baseline.
- Escalate uncertain geometry or identity estimates and evaluate the whole pipeline, including reconstruction failures.
- Research idea
Solve Vision with Code distinguishes depictive programs that recover a scene at runtime from propositional programs that hardcode an instance's derived values. Propose a transfer test that could falsify the claim that the former are more reusable.
What a strong answer covers
- Hold the program fixed and change layouts, initial positions or rule parameters within a held-out task family.
- Prevent regeneration or manual repair, and compare correctness and execution failures under equal budgets.
- Inspect whether runtime perception genuinely updates variables rather than matching a memorized template.
- If depictive programs do not retain more correctness under those changes, the proposed reuse advantage is unsupported.