arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2610.15722cs.CV
收藏

PhySimCode:面向物理视频转代码生成的基准与评估方法

PhySimCode: A Benchmark and Evaluation Method for Physics Video to Code Generation

Carnegie Mellon University(卡内基梅隆大学);Amazon AGI(亚马逊AGI)

Souraja Kundu, Aditya Gupta, Joel Julin, Yizhou Zhao, Liuyue Xie, Laszlo A. Jeni

AI总结:

该研究推出PhySimCode基准,评估10种MLLMs的物理视频转代码能力,发现模型陈述物理规律表现较好,但从视频推断规律、恢复参数及生成可运行代码的能力存在显著差距。

摘要:

多模态大语言模型(MLLMs)擅长视频理解与代码生成,但目前尚不清楚它们是否能恢复视频背后的物理规律,这一能力对于将视频转换为可执行模拟以及为机器人学提供结构化物理监督至关重要。对运动视频进行字幕标注并不意味着模型已推断出其支配动力学、估计出定量参数,或能从代码中再生出观测到的场景。现有的视频-物理基准评估合理性、属性估计或未来状态预测,但难以洞察模型是否能将视觉动力学转换为可运行的模拟代码。我们推出PhySimCode,一个面向物理视频转代码生成的基准:仅给定原始视频,模型必须推断相关物理规律、恢复参数值并生成可运行的Python代码以复现输入视频。该数据集包含16.06万个程序生成的样本,涵盖162种物理现象,涉及解析SciPy模拟及PyBullet渲染的刚体、关节体、流体和接触丰富的场景;每个样本包含模拟代码、物理参数、渲染视频,以及涵盖观测结果、规律、常微分方程(ODEs)、数值方法和验证检查的结构化思维链。我们从物理规律正确性、模拟等价性、代码可执行性和参数恢复四个维度评估了10种最先进的闭源和开源MLLMs。模型能可靠地陈述物理规律(得分4.27-4.93/5),但从视频中推断物理规律的得分仅为1.51-2.47/5,最佳系统Claude Sonnet 4.6仅在±20%范围内恢复了7.7%的真实参数,暴露出显著的视频到模拟的差距。2430个视频组成的评估集可在该https URL获取,评估代码可在该https URL获取。

英文摘要:

Multimodal large language models (MLLMs) are good at video understanding and code generation, but it remains unclear whether they can recover the physical laws underlying videos, a capability essential for converting videos into executable simulations and for providing structured physical supervision in robotics. Captioning motion video does not imply that a model has inferred its governing dynamics, estimated quantitative parameters, or can regenerate the observed scene from code. Existing video-physics benchmarks evaluate plausibility, property estimation, or future-state prediction, but offer limited insight into whether models can translate visual dynamics into runnable simulation code. We introduce PhySimCode, a benchmark for physics video-to-code generation: given only a raw video, a model must infer the relevant physics, recover parameter values, and generate runnable Python that reproduces the input video. The dataset contains 160.6K procedurally generated samples spanning 162 physics phenomena across analytic SciPy simulations and PyBullet-rendered rigid-body, articulated, fluid, and contact-rich scenes; each sample bundles the simulation code, physical parameters, rendered video, and a structured chain-of-thought covering observations, laws, ODEs, numerical methods, and validation checks. We evaluate ten state-of-the-art closed- and open-source MLLMs along physical-law correctness, simulation equivalence, code executability, and parameter recovery. Models reliably state physics laws (4.27-4.93/5) yet score only 1.51-2.47/5 on inferring them from video, and the best system (Claude Sonnet 4.6) recovers just 7.7% of ground-truth parameters within $\pm 20\%$, exposing a substantial video-to-simulation gap. The 2,430-video evaluation set is available at https://huggingface.co/datasets/SourajaKundu123/PhySimCode and the evaluation code at https://github.com/SourajaKundu/PhySimCode

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑