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

相關文章

鈦媒體AI Agent

Edge AI Daily 早報(8月30日)

Edge AI Daily2026.08.30 08:52 · 來自北京全文3182字00:00 / 09:05微軟完成WinUI主線開源至GitHub,Windows組件化進程加速;亞馬遜推出配送速度競價機制,物流能力可量化交易;OpenAI以服務條款合規為由終止向SpaceX旗下Cursor提供模型,條款成巨頭武器;Meta發佈XR Operator,通過AI代理自動化VR測試,轉向開發者基礎設施;Bullish向USD.

剛剛
IT之家AI Agent

Anthropic 揭示“AI 訓練 AI”新方法,比人類研究員成本更低、速度更快

作者:清源 責編:清源 評論: 8 月 29 日消息,用 AI 模型訓練其他 AI 模型,正成為新一代 AI 實驗室重點探索的方向。當地時間 28 日,Anthropic 研究員計劃的一名研究人員展示了這種思路真正落地後可能呈現的樣子。Anthropic 發佈了最新論文《自動化研究員能夠可靠緩解對齊失效》,介紹如何利用 AI 系統改善模型在一系列對齊基準測試中的表現。

5 小時前
量子位AI Agent

OpenClaw:紅過,愛過,散了

OpenClaw曾是幾個月前AI圈現象級出圈的智能體,被譽為「賈維斯時刻」,吸引許多人搶購Mac mini或付費部署。如今僅過約半年,社群已轉向研究Claude Code、Codex等工具,OpenClaw迅速從爆紅淪為時代眼淚。

6 小時前
MarkTechPost AIAI Agent

使用 NVIDIA Earth2Studio 建置自訂批次系集天氣預報

在本教學指南中,我們使用 NVIDIA Earth2Studio 建置一套系集天氣預報工作流程。我們安裝所需的 Earth2Studio 元件,同時保留 Colab 既有的 CUDA 加速 PyTorch 環境,載入 FCN 預報模型,並從 GFS 擷取大氣初始條件。接著,我們實作一個自訂的風力發電診斷功能,將 10 米風速分量轉換為渦輪機容量因子,並建置一套變數縮放擾動系統,對不同大氣變數施加符合物理特性的噪聲振幅,同時保留一個未受擾動的控制成員。利用 Earth2Studio 的低階迭代器、座標對應、批次處理及 Zarr API,我們自行建構系集執行管線,將預報與診斷欄位寫入具備座標感知的資料儲存中。

8 小時前
何夕2077AI Agent

CommerceAgentBench開源

CommerceAgentBench開源,這是一個電商智慧體基準,涵蓋107項任務,覆蓋採購、售後等流程。目前最佳模型僅通過66題,顯示真實工作流的難度更高,不易刷分。

1 天前
量子位AI Agent

我的自媒體搭子太能卷,一頓飯功夫17份成品

百度搭子發布會強調「交付即驚豔」新標準,實際測試自媒體套件,能自動完成帳號分析、內容生成到配圖封面,一口氣產出17份成品,大幅縮短工作時間。企業版則進一步提供15個專業套件、企業知識庫與VPC安全版本,將個人能力擴展為組織級穩定交付。

1 天前