PhysCodeGym: Benchmarking Coding Agents for Physically Verifiable 4D Reconstruction

Shuai Shao, Jinchen He, Cunxin Fan, Zihan Guo, Shijian Wang +8 more
10/12/2026
1 citation
cs.AI
benchmark-dataset

Official code: ShaoShuai0605/PhysCodeGym (19 stars, Python, last commit 2026-10-13).

Abstract

Building physical simulations from video requires coding agents to translate observations into executable models and refine them through tool use. We introduce PhysCodeGym, a benchmark for physically verifiable 4D reconstruction with $156$ tasks covering rigid-body, liquid, deformable, and wind-driven motion.

Show full abstract

Agents autonomously inspect videos, write and run Blender programs, and revise their scenes using simulation feedback. Six metrics combine rule-based measurements with rubric-based judgments to assess visual and physical reconstruction quality. Program inspection, scene measurements, and counterfactual interventions test physical consistency under original and modified conditions. Experiments with frontier coding agents reveal a tradeoff between artifact quality and completion across reasoning-effort settings, while harness comparisons and agent traces link verification behavior with reconstruction performance. Case studies show that matching visible objects and events can coexist with physical defects. Counterfactual tests further expose latent contact and support failures in reconstructions that pass ordinary physical checks, highlighting the gap between reproducing observations and building reliable physical models. Code is available at https://github.com/ShaoShuai0605/PhysCodeGym.

View on arXivView PDF

Code Implementations(1)

Official Repository of PhysCodeGym

190Python, DockerfileOct 12, 20261 months agoNOASSERTION

Similar Papers

Cite this paper

@article{shao2026physcodegym,
  title  = {PhysCodeGym: Benchmarking Coding Agents for Physically Verifiable 4D Reconstruction},
  author = {Shuai Shao and Jinchen He and Cunxin Fan and Zihan Guo and Shijian Wang and Qihan Ren and Kangning Zhang and Zunnan Xu and Haoyuan Li and Hao Wang and Jianghao Lin and Weiwen Liu and Weinan Zhang},
  year   = {2026},
  eprint = {2610.17288},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2610.17288v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2610.17288.svg)](https://codeofpaper.com/paper/2610.17288)

Discussion