cs.CVOct 2, 2026

4DCodeBench: Benchmarking Agents on Inverse Graphics of Dynamic Scenes

Authors: Ruihong Shen, Žiga Kovačič, Peter Kulits, Xingrui Wang, Zizhang Li, Joshua B. Tenenbaum, Alan Yuille, Jieneng Chen, +1 more

Organizations: Johns Hopkins University · Stanford University · Max Planck Institute for Intelligent Systems · Massachusetts Institute of Technology

Abstract

We introduce 4DCodeBench, a benchmark for 4D inverse graphics through code generation, in which agents reconstruct dynamic scenes from video as executable graphics programs. To accomplish this, agents must translate visual observations into compact representations of scene structure and dynamics, by implementing abstractions such as physical simulations to reproduce complex behavior. To evaluate this capability, we curate a set of real-world videos and construct synthetic scenes spanning diverse physical phenomena, including deformation, fluid flow, and fracture. We perform extensive benchmarking of frontier models, finding that strong static reconstruction capabilities do not yet translate into reliable reconstruction of complex dynamics. 4DCodeBench provides a testbed for tracking progress toward agents that can interpret the dynamics of the world through code. Our benchmark is available at https://github.com/4DCodeBench/4DCodeBench

Explore similar work

CardsList
  1. CP4D: Compositional Physics-aware 4D Scene Generation

    Jun 8, 2026Hanxin Zhu, Cong Wang, Tianyu He +4Physical Consistency in Video Generation3D Scene Generation

  2. Code4Scene: Benchmarking Coding Agents for Constructing and Editing 3D Scenes

    Sep 29, 2026Xiaokang Ye, Siddhant Hitesh Mantri, Zimeng Chen +6AI Coding Agents3D Scene Editing

  3. Video2World: Benchmarking Coding Agents for Interactive World Modeling from Embodied Videos

    Oct 3, 2026Jinzhou Tang, Zijun Zhang, Jing Yang +10Interactive World ModelsCoding Agents