VisPhyWorld: Probing Physical Reasoning via Code-Driven Video Reconstruction

Jiarong Liang, Max Ku, Ka-Hei Hui, Ping Nie, Wenhu ChenarXiv 2026

TL;DR

VisPhyWorld introduces a novel execution-based framework that evaluates the physical reasoning of Multimodal Large Language Models (MLLMs) by requiring them to generate executable simulation code from visual inputs. By moving away from passive multiple-choice guessing to active code-driven video reconstruction, this benchmark reveals that while state-of-the-art MLLMs excel at semantic scene understanding, they struggle significantly to infer precise physical parameters and simulate accurate Newtonian dynamics.

What Problem Does This Paper Address?

Evaluating whether MLLMs truly understand the physical laws of our world is notoriously difficult. Existing benchmarks predominantly rely on recognition-style protocols like Visual Question Answering (VQA) or Violation of Expectation (VoE).

Unfortunately, these setups allow models to exploit surface-level visual correlations and dataset biases to guess correct answers without committing to an actual, coherent physical hypothesis. Furthermore, because MLLMs output text rather than predictive pixel distributions, traditional generative world-model metrics don't apply. VisPhyWorld addresses this opacity by forcing models to generate runnable code, turning their internal physical assumptions into an explicit, inspectable, and falsifiable artifact.

Traditional VQA vs VisPhyWorld Paradigm

Methods

The VisPhyWorld pipeline operates via a visual-to-code reconstruction paradigm:

  1. Input Context: The model receives two key video frames ($I_{start}$ and $I_{later}$) along with an optional, structured JSON object detection context to reduce the localization burden.
  2. Code Generation: The MLLM acts as an agent to perform motion analysis and generate a complete HTML/JavaScript document containing simulation code.
  3. Deterministic Execution: The generated code is sanitized, validated, and executed using a rigid-body physics engine backend (such as Three.js or P5.js) under a fixed configuration to render a reconstructed video.
  4. Robustness Handling: If the initial code fails to run, the framework captures the console error logs and feeds them back to the model for a single automatic repair attempt before resorting to a minimal fallback scene.
VisPhyWorld Framework

Datasets

The authors introduce VisPhyBench, a standardized evaluation suite comprising 209 evaluation scenes derived from 108 distinct physical templates.

  • 2D Subset: Built using the PHYRE engine, focusing on 2D planar physics constraints.
  • 3D Subset: Curated using Three.js and simulated with Cannon.js to evaluate depth-aware contacts, perspective camera projections, and complex occlusions.

The scenes cover diverse physical interactions (bounces, slides, topples, and collisions) and are stratified into easy, medium, and hard categories based on difficulty ratings provided by STEM graduate students.

Key Insights and Ideas

  • The Dissociation of Seeing and Reasoning: A striking finding is that strong visual reconstruction does not imply strong physical reasoning. Models can frequently identify objects and layouts perfectly, yet completely fail to parameterize the underlying Newtonian mechanics required to make them move realistically.
  • Physics Engines as Cognitive Offloading: Models perform drastically better when paired with backends that support native rigid-body physics solvers (Three.js/P5.js) compared to purely animation-based backends (SVG/Manim). Physics engines allow the model to offload gravity and collision constraints, whereas animation backends force the model to script trajectories manually, often leading to physical absurdities like objects passing through one another.
Comparison of physics vs non-physics backends
  • The Latent Parameter Blindspot: MLLMs are reasonably competent at adopting stable defaults (like setting gravity to 9.81 m/s²), but they are largely blind to latent contact parameters like friction, restitution (bounciness), dynamic mass, and initial velocity purely from visual observation.

Key Results

  • High Executability: The framework successfully generates valid, runnable simulation videos in 97.7% of benchmark runs before requiring any fallback templates.
  • Leaderboard Performance: In the comprehensive evaluation, Gemini-3-Pro paired with a Three.js backend achieved the best perceptual reconstruction scores (lowest LPIPS of 0.14 and highest CLIP-Img of 0.90). However, GPT-4.1 demonstrated superior language-mediated reasoning, securing the highest BERTScore-F1 (0.85).
  • Parameter Estimation Errors: Quantitative analysis of the generated code revealed massive errors in parameter recovery. For instance, against a ground-truth mean initial speed of 2.59, GPT-5 exhibited a Mean Absolute Error (MAE) of 2.07±2.69, highlighting the severe difficulty MLLMs face when translating visual motion into exact numerical forces.

Limitations and Future Work

VisPhyWorld is currently limited to synthetic, simulator-driven environments with clean, white backgrounds and simple rigid-body primitives. As a result, its performance on complex, high-resolution, "in-the-wild" real-world videos remains untested. Additionally, current MLLMs cannot autonomously generate or repair code for highly complex engines (like Unreal Engine) within a few iterations, and they struggle with long-horizon interactions or heavily cluttered scenes.

The authors suggest that future iterations should integrate stronger 3D perceptual priors for scene initialization and explore domain-specific fine-tuning via advanced agentic workflows.

Summary updated

BibTeX
@misc{liang2026visphyworld,
  author = {Jiarong Liang and Max Ku and Ka-Hei Hui and Ping Nie and Wenhu Chen},
  title = {{VisPhyWorld: Probing Physical Reasoning via Code-Driven Video Reconstruction}},
  year = {2026},
  eprint = {2602.13294},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2602.13294},
}
Figure