VisualPatchWorld: Code World Models as Latent Structured Representations for Planning

📅 2026-07-27
📈 Citations: 0
Influential: 0
📄 PDF
🤖 AI Summary
This work proposes a novel approach to constructing interpretable, editable, and efficiently plannable world models by representing environmental dynamics as executable program code. The method integrates an active probing mechanism to select qualitative dynamical structures and fits model parameters by minimizing multi-step prediction errors from state-action trajectories, while leveraging image-to-scene-graph generation to extract symbolic states. The resulting programmatic world model is not only simulatable and verifiable but also directly amenable to model-predictive control. Evaluated on navigation and object manipulation tasks, the approach achieves an average success rate of 69.0%, outperforming the strongest code-based baseline by 23.5 percentage points and approaching the performance of a ground-truth physics engine.
📝 Abstract
Different research lines use the term world model in different ways, yet they share a common aim: to capture how the world evolves under action in a form that supports perception, simulation, and planning. Two prominent realizations are neural predictors that learn dynamics in continuous vector spaces, and hand-built physics engines that expose explicit state and physical laws. Neural predictors scale from data but leave the form of the dynamics implicit; physics engines are inspectable and editable but difficult to construct at scale. We introduce VisualPatchWorld (VPW), which represents world dynamics as code. VPW first selects a qualitative dynamical form with short active probes, then fits that form's free parameters from recorded state-action traces by minimizing multi-step prediction error. The resulting programs can be rolled forward like a simulator, inspected in source form, and used inside model-predictive control; image-derived scene graphs can supply the live state at replan time. Across comparisons with prior code-based world models, VPW attains 69.0% mean planning success and exceeds the strongest code baseline by 23.5 points. The largest gains arise when choosing the correct qualitative dynamics is essential. Under the same planner, the induced models approach ground-truth engine success on navigation and grasp-rich control; a residual gap remains for contact-rich pushing, and checking a shortlist of promising plans in the engine closes most of that gap. These results establish a practical route toward automatically constructed code world models that are useful for planning. Code is available at https://github.com/HKBU-KnowComp/VisualPatchWorld/.
Problem

Research questions and friction points this paper is trying to address.

world model
planning
code representation
dynamics learning
structured representation
Innovation

Methods, ideas, or system contributions that make the work stand out.

code world models
structured representations
model-predictive control
qualitative dynamics
visual scene graphs
🔎 Similar Papers
No similar papers found.