VideoCoS

VideoCoSWhen Do Executable World States Help Video Reasoning and Generation?

Shoubin Yu*Daeun Lee*Zun WangHan LinYue ZhangMohit Bansal

The University of North Carolina at Chapel Hill* equal contribution

Move your cursor: the room behind this title is a codified world state. Point at a box to read it.

Formulation

Reasoning is a read, generation is a write,
over the executable world states.

Video reasoning and generation both depend on the underlying world state: which entities exist, where they are, and how they and the camera move. VideoCoS makes that state explicit as an executable Blender program, built once per video, and asks when this helps.

codifyreadwrite Raw video scene.pyexecutable state Answer New video
scene.py
Figure 1 · interactive

Left: unlike models with implicit, entangled latents, VideoCoS codifies a video once into an executable program, an explicit, factorized and persistent state that an agent queries to answer questions, or edits and simulates to render new videos. Right: performance relative to the same base model without an executable state.

Figure 3 · interactive

The codification agent turns perception evidence into an executable scene program through a loop of building, checking and rendering. The reasoning agent then reads this scene to answer questions, or edits and simulates it to generate videos. It receives only text feedback from tools and never sees the frames. Tool outputs here are illustrative.

Interactive

Open a world state

Each scene below is an executable world state, exported from its Blender file. Four things to try:

  • DragLook aroundDrag to turn the scene. Click it once, then scroll to zoom; right-drag to pan.
  • ClickInspect an objectClick any object to read its record: category, position and size, as a reasoning agent reads them. Double-click to fly to it.
  • AskAsk the statePick a question: the agent’s tool calls run on the scene, light up the objects they touch and submit an answer. Or Measure two objects yourself.
  • Move ✦Write to itSwitch to Move and drag any object across the floor: you are editing the program’s state, the way a write task does. Play replays the input video.
frame 0001
Aria Digital Twin, sequence 131Loads when this section scrolls into view.
query.pyinspect
# Click an object to read its record.
Ask the state
scene.pythe program behind this scene

    

The kitchen, bedroom, classroom and bathroom were codified by VideoCoS from raw video (rooms of VSI-Bench); their meshes are thinned for the web. The console values are computed in your browser from each object’s world-space bounds, the quantity the harness tools inspect_entities and measure_pair(metric="center") report: metres, Blender axes, Z up. Outer walls between you and the room are hidden.

Results

Evaluation on four read tasks and three write tasks

Each task family probes a different component of the state: its entities, their geometry over time, or the camera. Benchmarks ship no ground-truth scene programs, so every state below was inferred from raw video.

Read · entity, geometric, viewpoint, history querying

A video becomes an executable world state the agent can query

VSI-Bench-Debiased. The same reasoner answers from the video, or from a codified scene alone. Viewpoint questions gain most, by 21.9 and 17.5 points for GPT and Gemini; history questions lose for every reasoner.

Below, each room’s raw video beside three codified scenes of it: two from the agents of BVB, one from VideoCoS, each rendered through its own estimated camera.

Clips run at twice real time. These five rooms were chosen among those where the VideoCoS scene answers more questions. BVB’s scenes often look cleaner; VideoCoS follows the camera pose and the object layout of the video more closely.

Write · novel-view synthesis

Change the camera, keep the scene

Kubric-4D. The agent writes only the camera, and Blender renders the same scene again. VideoCoS leads on both metrics at every camera shift, and its object mIoU stays at 0.224 to 0.254 from 42° to 128°.

VideoCoSTarget view (truth)
⇆

Drag across the video to wipe between a method and the true target view. All five views of both scenes play below.

Input view
CogNVS
ReCamMaster
VideoCoS
Target view (truth)
Input view
CogNVS
ReCamMaster
VideoCoS
Target view (truth)
Write · goal-conditioned planning

Plan the motion in the state, then render it

Ego2Act. From one start photo and a goal, the agent keyframes rigid object motion in Blender. Rendered in Blender, VideoCoS has the second-highest task score after Seedance-2.0, and the lowest physical score: the plan has no hand. Conditioning MiniMax-H3 on the plan adds one. The clips compare it with four video generators.

The baseline clips are the generations released with Ego2Act (seed 101); a clip shorter than 15 seconds holds its last frame. The Blender + MiniMax-H3 clips use the full MiniMax-H3 model.

Write · future prediction

Simulate forward from the last observed frame

Physics-IQ. The agent sets up rigid-body physics in the codified scene and simulates the next five seconds. Its rigid trajectory error (11.1) is close to Cosmos3 (10.3 and 10.5) and well below MiniMax-H3 (16.1); on non-rigid motion and on the Physics-IQ score it trails.

Every method continues the same three observed seconds; the clips are its next five. The Blender + MiniMax-H3 clips use the full MiniMax-H3 model.

Findings

When do executable world states help?

Every task on one axis: how much the same model gains or loses once it works through an executable state. Switch the reasoner, hover for the raw numbers, click a bar to see its results.

Finding 1

Executable states help when a task is a direct geometric operation on 3D structure, such as changing the viewpoint or moving rigid objects.

Novel views and viewpoint questions

Finding 2

Executable states fall short when an answer combines several noisy state estimates or requires physical realism (hands, non-rigid dynamics, photorealism).

Physics and plausibility

Finding 3

Executable states can beat video despite imperfect reconstruction, but error tolerance varies by task, and a wrong state hurts more than a missing one.

Reads from codified scenes
Figure 7 · interactive · analysis of reads from executable states

State errors compound across the estimates an answer combines; state accuracy, not visual similarity, predicts question accuracy; code input tolerates moderate error.

Cite

BibTeX

@article{yu2026videocos,
  title   = {VideoCoS: When Do Executable World States Help Video Reasoning and Generation?},
  author  = {Yu, Shoubin and Lee, Daeun and Wang, Zun and Lin, Han and Zhang, Yue and Bansal, Mohit},
  journal = {arXiv preprint},
  year    = {2026}
}