arXiv(opens in a new tab)cs.CVAug 2026Cited by 13 papers on PaperVantage

Manuscript Offprint

arXiv:2608.27549

Code as Worlds: Agentic Discovery of Executable World Representations for Physical Reasoning

Hanyang Wang, Yimo Cai, Weiliang Chen, Jiawei Chi, Haowen Sun, Qiyu Dai, Yi-Hsin Hung, Xingzhuo Guo, Jinshan Ren, Runmao Yao, Ziwei Liu, Mingsheng Long, Yueqi Duan, Jun Gao, Jiangran Lyu, Fangfu Liu, Jialong Wu

Abstract

Physical understanding and reasoning depend on forming compact and generalizable representations of the world. While modern vision-language models can recognize and explain diverse physical events, they often lack explicit representations of the underlying mechanisms—such as object states, physical parameters, and governing dynamics—needed for reliably reasoning how the world evolves and responds to interventions. In this work, we introduce Code-as-World, a paradigm that represents physical worlds through executable world representations. By expressing physical composition, dynamic evolution, and visual appearance as executable code, Code-as-World provides a compact, quantitatively grounded, and controllable abstraction of the physical world. To construct such representations from multimodal observations, such as natural-language descriptions or real-world videos, we develop an agentic discovery loop inspired by abductive reasoning, where an agent proposes, executes, renders, verifies, and iteratively refines executable world hypotheses. As a concrete application, we use verified executable worlds to provide scalable physical supervision for training vision-language models on quantitative physical reasoning. Experiments show that Code-as-World-VL achieves state-of-the-art performance on QuantiPhy and surpasses leading proprietary models, highlighting the potential of executable world representations as a scalable foundation for physical intelligence.

Date: August 31, 2026

Blog: https://mirros.ai/blog/representing-physical-world

Code: https://github.com/mirros-lab/code-as-world

Project Page: https://mirros-lab.github.io/code-as-world

Figure

Figure 1 Code-as-World represents physical worlds as executable code for physical intelligence.

Contents

1 Introduction 3
2 In Search of Physical World Representations 4
3 Code as Worlds: Executable World Representations 5
3.1 Practical Implementation 5
4 Agentic Discovery of World Representations 6
4.1 Evidence Construction 6
4.2 Agentic Discovery Loop 7
4.3 Evaluation 7
4.3.1 Experimental Setup 7
4.3.2 Qualitative Analysis 8
4.3.3 Agentic Discovery Loop 9
4.4 Limitations 9
5 Application: Learning Quantitative Physical Reasoning 11
5.1 Problem Formulation 11
5.2 Image-Space Measurement Grounding 11
5.3 World-Space Physical Calibration from Verified Executable Worlds 11
5.4 Evaluation 12
5.4.1 Experimental Setup 12
5.4.2 Image-Space Measurement 14
5.4.3 Quantitative Physical Reasoning 14
5.5 Limitations 15
6 Related Work 15
7 Conclusion 16
7.1 Broader Physical Phenomena 16
7.2 Broader Physical Capabilities 16
Appendix 23
A Dataset Details 23
A.1 Image-Space Datasets 23
A.2 World-Space Executable-World Dataset 23
B Experiment Protocols 23
B.1 Executable-World Fidelity and Realism Evaluation 23
B.2 Executable Engine Configurations 25
B.3 Image-Space Measurement Evaluation 25
B.4 World-Space QuantiPhy Evaluation 25
B.5 Reasoning-Model Setting 26
C Additional Experiments 26
C.1 Text-Driven Sim-to-Real Evaluation 26
C.2 Additional Agentic Discovery Loop 27
C.3 Image-Space Measurement Results 27
C.4 Ablation of Data Sources 29

References (100)

Couldn't load all references. Reload the page to try again.