PhysCodeGym: Benchmarking Coding Agents for Physically Verifiable 4D Reconstruction
Shuai Shao, Jinchen He, Cunxin Fan, Zihan Guo, Shijian Wang, Qihan Ren, Kangning Zhang, Zunnan Xu, Haoyuan Li, Hao Wang, Jianghao Lin, Weiwen Liu, Weinan Zhang
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 tasks covering rigid-body, liquid, deformable, and wind-driven motion. 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.
Create a lesson
Related papers
ESM-Bench: A Benchmark for Evaluating Whether AI Agents Understand Earth System Model Physics and Code
Shared title terminologycs.AIKoutian Wu, Yuxuan Cao, Gengchen Mai et al.
From Point Clouds to Engineering Models: Benchmarking Agentic 3D Reconstruction in the Built Environment
Shared title terminologycs.AIChangyu Du, Stavros Nousias, Syed Salman Ahmed et al.
Beyond the Verdict: Agentic Code Judging with Verifiable Feedback
Shared title terminologycs.AIZheye Deng, Sha Li, Changlong Yu et al.
EvoWeb: A Benchmark for Coding Agents on Evolving Web Applications
Shared title terminologycs.AIDavid Nukrai, Bar Alon, Nativ Levy et al.
StudioBench: Benchmarking Agentic Multimodal Large Language Models for Productive Audiovisual Creation
Shared title terminologycs.AIXinglong Xu, Yuxia Zhu, Siyuan Li et al.
VeriLadder: A Multi-Agent Specification Refinement System for Tool-Verified Verilog Datasets
Shared title terminologycs.AISaeid Rajabi, Chengmo Yang, Satwik Patnaik