Meet ‘Code-as-World’: An Agentic Loop That Rewrites Real Videos Into Executable MuJoCo Physics Programs

2026年8月30日 01:35
站內 AI 整理稿

MirroS released Code-as-World: a paradigm that represents physical worlds through executable world representations.The argument is narrow and testable: pixels are evidence of a physical scene, not its ontology.

A video model can predict plausible frames without ever representing mass, contact, or gravity.So instead of pixels, latents, or captions, Code-as-World represents a scene as executable code — a scene.

json that MuJoCo can run, that an agent can verify against the source video, and that anyone can edit and re-simulate.An agentic loop recovers those programs from real footage in up to five rounds.

The verified worlds then become training data with exact physical labels, which real video does not carry.Trained on that supervision, Code-as-World-VL-9B scores 55.4 MRA on QuantiPhy-validation, above Gemini-3.1 Flash at 54.8 and roughly 15 points above the strongest open-weight baseline.

Is it deployable?Yes, at the research and internal-prototype tier.MirroS shipped the GitHub repo and two checkpoints — Code-as-World-VL-4B and Code-as-World-VL-9B — under Apache 2.0, fine-tuned from Qwen3.5-4B and Qwen3.5-9B.

Both are BF16 safetensors served by vLLM behind an OpenAI-compatible /v1 endpoint, with 16 sampled frames per video and --max-model-len 4608.#mtp-caw-embed{margin:22px 0!important;background:transparent!

important} #mtp-caw-embed p:empty,#mtp-caw-embed hr,#mtp-caw-embed del,#mtp-caw-embed s{display:none!important} #mtp-caw-embed iframe{display:block!important;width:100%!important;border:0!important;background:transparent!important} (function(){ window.addEventListener("message",function(e){ if(e&&e.

data&&e.data.cawHeight){ var f=document.getElementById("mtpCawFrame"); if(f){f.style.height=Math.max(360,parseInt(e.data.

cawHeight,10))+"px";} } },false); })(); The idea: pixels are evidence, not ontology The MirroS technical report argues that video models, 3D reconstruction, and captions each recover part of a scene but none recovers its mechanism.

Code-as-World represents a scene as an executable world representation (EWR), a triple p = (C, E, A): Composition: objects, geometry, metric dimensions, mass, friction, gravity.Floors and walls are static physical entities so they can support and collide.

Evolution: initial states, forces, contacts, collisions, termination conditions, duration.Executing it expands composition into a full state trajectory.Appearance: camera, lighting, materials, background, frame rate, render config.Changing it never changes the physics.

In the released implementation, that triple compiles into a scene.json executed in MuJoCo, with two interchangeable engines: an animation engine (kinematic poses) and a physics engine (forces and contacts).

Agentic discovery instead of one-shot prediction Recovering an EWR from a video is an inverse problem, so the team frames it as abductive search.An agent runs propose → instantiate → execute → render → verify for up to K = 5 rounds.

For video input, SAM 3 supplies instance masks and image-plane tracks, VGGT-Omega estimates depth and camera geometry, and SAM 3D generates per-object meshes.Candidate rollouts are projected back into the input view and compared at selected key frames on RGB, depth, masks, and trajectories.

Frame-level discrepancies aggregate into structured feedback Δ that guides the next revision; when the budget runs out without acceptance, the hypothesis is rejected.

At a matched five-evaluation budget, the loop beats Best-of-5 independent sampling on Visual Alignment, Object IoU, Traj-ADE, and Accuracy@2%D — and the result repeats under the second execution engine.

Candidate videos come from WISA-80K after motion-focused filtering; sim-to-real re-rendering uses Wan2.2-VACE plus an internal video model.

Verified worlds as training supervision Phase 1 is supervised fine-tuning on 73,335 image-space QA pairs built from RefCOCO/+/g, RefCLEF and GOT-10K, covering extent, position, displacement, velocity and acceleration in raw pixels.

Phase 2 applies GRPO to world-space VQA drawn from 1,585 text-driven and 988 video-driven executable worlds, rewarded on scale-normalized numerical accuracy plus unit and format terms.Training used eight NVIDIA H100 GPUs.

On QuantiPhy-validation (159 items, MRA macro-averaged over 2S/2D/3S/3D): 4B = 50.6, 9B = 55.4, 27B reasoning = 58.6, against Gemini-3.1 Flash at 54.8, ChatGPT-5.1 at 48.4, and the strongest open-weight baseline Qwen3-VL-32B-Instruct at 40.2.

The ablation is the more useful number: image-space-only scores 44.2 (4B) and 50.9 (9B); adding both world-space sources lifts them to 50.6 and 55.4.Pixel-level grounding improves too — the 9B goes 63.7 → 68.3 on RefCOCO and 20.1 → 26.6 on GOT-10K after world-space RL.

Key Takeaways Code-as-World turns a video into an editable scene.json that MuJoCo can execute and verify.Five-round propose→verify search beats Best-of-5 sampling at the same compute budget.Verified worlds supply exact physical labels that real video simply does not carry.9B hits 55.

4 MRA on QuantiPhy, above Gemini-3.1 Flash at 54.8; 4B and 9B are Apache 2.0.Rigid-body only, and the model never learns the discovery loop itself.Check out the Technical report, MirroS blog, Project page, GitHub and Announcement on X.

Also, feel free to follow us on Twitter and don’t forget to join our 150k+ML SubReddit and Subscribe to our Newsletter.Wait!are you on telegram?now you can join us on telegram as well.Need to partner with us for promoting your GitHub Repo OR Hugging Face Page OR Product Release OR Webinar etc.?

Connect with us The post Meet ‘Code-as-World’: An Agentic Loop That Rewrites Real Videos Into Executable MuJoCo Physics Programs appeared first on MarkTechPost.

Related

相關文章

何夕2077AI Agent

智能體工作報告系統性遺漏負面結果

Ad Skip to content AI models hide mistakes in their own work reports, but one sentence in your prompt can help Jonathan Kemper View the LinkedIn Profile of Jonathan Kemper Oct 17, 2026 Nano Banana Pro prompted by THE DECODER Language models writing up their own work systematically skip problems that undermine the results.

23 小時前
何夕2077AI Agent

智能體高風險審批暴露綁定漏洞

Computer Science > Cryptography and Security arXiv:2610.21063 (cs) [Submitted on 15 Oct 2026] Title:Approve What, Exactly? Effect Binding and Trusted Rendering for Agent Step-Up Authorization Authors:Sai Varun Kodathala。

1 天前
雷峰網AI Agent

JAECOO × Momenta完成首個無接管凱旋門智駕挑戰,聯合征服巴黎“最難魔鬼環島”

當地時間10月12日,巴黎車展期間,JAECOO與Momenta共同完成首個無接管的凱旋門智駕挑戰。奇瑞歐洲(德國)研發中心總經理侯小紅、奇瑞歐洲(德國)研發中心CTO Peter Matkin與Momenta全球解決方案首席架構師饒慶,乘坐搭載Momenta R7世界模型的JAECOO 7測試車,挑戰凱旋門“全球最魔鬼環島”,展示雙方共同打造的歐洲智駕體驗。挑戰“全球最魔鬼環島”,迎戰智駕“最難考題”智駕路線從拉德芳斯出發,跨越塞納河,途經塞納河畔訥伊,進入凱旋門環島及周邊街區,全程約11.38公里。

2 天前
AIBaseAI Agent

AI 代理網購遭亞馬遜封殺!馬斯克被逼急:大不了自己建個電商帝國去競爭

馬斯克被逼急:大不了自己建個電商帝國去競爭發布於AI新閒資訊時間 :Oct 16, 2026閱讀 :1分鐘人工智能智能體(AI Agent)正試圖顛覆傳統的網購模式,但各大傳統電商平臺顯然並不打算輕易敞開大門。近日,有用戶在社交平臺發帖反饋,稱亞馬遜正在通過技術手段阻止埃隆·馬斯克旗下的 AI 智能體 Grok Bot 在其平臺上替用戶完成下單操作。

2 天前6600