4DCodeBench
Agents reconstruct dynamic scenes from video as executable graphics programs, including physical simulations, so rendered output matches the observed motion.
200 GitHub stars at November 1st, 2026.
- Made by
- 4DCodeBench team
- Released
- October 2026
- Kind
- Physical prediction
- Level
- Expert
- Scored
- Checked automatically
- Answers
- Code
- Tasks
- All public
- Strongest model tested
- GPT-6 Astra #3 on the capability index
- Last model added
- September 2026
- Scores refreshed
- November 12th, 2026
In the authors’ words
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
GPT-6 Astra leads with 0.79 among models released by September 2026
Best score per model from the benchmark's own leaderboard, read on November 12th, 2026. Where a model ran with several settings or harnesses, we keep its best. Every run is in the next chart.
The newest model with a score here came out in September 2026, and nobody has tested a newer one. Among the 20 highest-ranked models on the capability index, these have no score yet:
- Claude Fable 5.2
-
Gemini 4 Carbon
- GPT-6.1 Sol
- GPT-6.1 Terra
- and 10 more
- 0.79 GPT-6 Astra
- 0.78 Claude Opus 5.5
- 0.74 Claude Fable 5.1
- 0.72 Claude Opus 5
- 0.67 GPT-5.6 Luna
- 0.65 GPT-5.6 Sol
- 0.64
Gemini 3.8 Flash
- 0.60
DeepSeek V4.1 Flash
- 0.56
Qwen3.8 Flash
- 0.55 GPT-5.6 Terra
- 0.47 GLM-5.3-Flash
- 0.44
Muse Glimmer
- 0.43 MiMo-V2.5
- 0.34
MiniMax-M3
- 0.32
Mistral Medium 3.5
- 0.19
Gemma 4 31B IT
- 1 GPT-6 Astra Max 0.79
- 2 Claude Opus 5.5 High 0.78
- 3 Claude Fable 5.1 High 0.74
- 4 Claude Opus 5 High 0.72
- 5 GPT-5.6 Luna Max 0.67
- 6 GPT-5.6 Sol High 0.65
- 7
Gemini 3.8 Flash High 0.64
- 8
DeepSeek V4.1 Flash High 0.60
- 9
Qwen3.8 Flash XHigh 0.56
- 10 GPT-5.6 Terra High 0.55
- 11 GLM-5.3-Flash Max 0.47
- 12
Muse Glimmer High 0.44
- 13 MiMo-V2.5 Default 0.43
- 14
MiniMax-M3 Default 0.34
- 15
Mistral Medium 3.5 0.32
- 16
Gemma 4 31B IT 0.19
Source: Official 4DCodeBench leaderboard
| # | Model | Score | Setting | Date | Source |
|---|---|---|---|---|---|
| 1 | GPT-6 Astra | 0.79 | Max, Codex | Sep 2026 | Official leaderboard |
| 2 | Claude Opus 5.5 | 0.78 | High, Claude Code | Sep 2026 | Official leaderboard |
| 3 | Claude Fable 5.1 | 0.74 | High, Claude Code | Sep 2026 | Official leaderboard |
| 4 | Claude Opus 5 | 0.72 | High, Claude Code | Jul 2026 | Official leaderboard |
| 5 | GPT-5.6 Luna | 0.67 | Max, Codex | Jul 2026 | Official leaderboard |
| 6 | GPT-5.6 Sol | 0.65 | High, Codex | Jul 2026 | Official leaderboard |
| 7 | | 0.64 | High, Antigravity | Sep 2026 | Official leaderboard |
| 8 | | 0.60 | High, Stirrup | Sep 2026 | Official leaderboard |
| 9 | | 0.56 | XHigh, Stirrup | Aug 2026 | Official leaderboard |
| 10 | GPT-5.6 Terra | 0.55 | High, Codex | Jul 2026 | Official leaderboard |
| 11 | GLM-5.3-Flash | 0.47 | Max, Stirrup | Aug 2026 | Official leaderboard |
| 12 | | 0.44 | High, Stirrup | Aug 2026 | Official leaderboard |
| 13 | MiMo-V2.5 | 0.43 | Default, Stirrup | Apr 2026 | Official leaderboard |
| 14 | | 0.34 | Default, Stirrup | Jun 2026 | Official leaderboard |
| 15 | | 0.32 | Stirrup | Apr 2026 | Official leaderboard |
| 16 | | 0.19 | Stirrup | Apr 2026 | Official leaderboard |
4DCodeBench score versus cost
The line joins the runs that no other run beats on both measures. We redrew this chart from the numbers on the official leaderboard.
| Model | Setting | Overall score | Mean cost per task |
|---|---|---|---|
| GPT-6 Astra | Max, Codex | 0.79 score | $11.32 |
| Claude Opus 5.5 | High, Claude Code | 0.78 score | $6.27 |
| GPT-6 Astra | High, Codex | 0.77 score | $6.28 |
| Claude Fable 5.1 | High, Claude Code | 0.74 score | $15.07 |
| GPT-6 Astra | Low, Codex | 0.73 score | $3.5 |
| Claude Opus 5 | High, Claude Code | 0.72 score | $17.52 |
| GPT-5.6 Luna | Max, Codex | 0.67 score | $0.67 |
| GPT-5.6 Sol | High, Codex | 0.65 score | $2.47 |
| | High, Antigravity | 0.64 score | $2.72 |
| | High, Stirrup | 0.6 score | $0.44 |
| | XHigh, Stirrup | 0.56 score | $2.77 |
| GPT-5.6 Terra | High, Codex | 0.55 score | $0.62 |
| GLM-5.3-Flash | Max, Stirrup | 0.47 score | $6.28 |
| | High, Stirrup | 0.44 score | $0.29 |
| MiMo-V2.5 | Default, Stirrup | 0.43 score | $0.16 |
| | Default, Stirrup | 0.34 score | $2.47 |
| | Stirrup | 0.32 score | $3.57 |
| | Stirrup | 0.19 score | $0.08 |
The best score, 0.79, costs $11 a task
Runs on the cost frontier score higher than any run that's cheaper. The costs are the leaderboard's own estimates, so compare them only within this benchmark.
Source: Official 4DCodeBench leaderboard
| Model | Effort | Harness | Score | Cost per task | Output tokens |
|---|---|---|---|---|---|
| GPT-6 Astra | Max | Codex | 0.79 | $11 | 67,475 |
| Claude Opus 5.5 | High | Claude Code | 0.78 | $6.27 | 113,408 |
| GPT-6 Astra | High | Codex | 0.77 | $6.28 | 29,279 |
| Claude Fable 5.1 | High | Claude Code | 0.74 | $15 | 140,433 |
| GPT-6 Astra | Low | Codex | 0.73 | $3.50 | 13,439 |
| Claude Opus 5 | High | Claude Code | 0.72 | $18 | 253,626 |
| GPT-5.6 Luna | Max | Codex | 0.67 | $0.67 | 106,404 |
| GPT-5.6 Sol | High | Codex | 0.65 | $2.47 | 26,032 |
| | High | Antigravity | 0.64 | $2.72 | 206,201 |
| | High | Stirrup | 0.60 | $0.44 | 134,310 |
| | XHigh | Stirrup | 0.56 | $2.77 | 1,505,896 |
| GPT-5.6 Terra | High | Codex | 0.55 | $0.62 | 17,283 |
| GLM-5.3-Flash | Max | Stirrup | 0.47 | $6.28 | 451,636 |
| | High | Stirrup | 0.44 | $0.29 | 45,242 |
| MiMo-V2.5 | Default | Stirrup | 0.43 | $0.16 | 153,926 |
| | Default | Stirrup | 0.34 | $2.47 | 144,665 |
| | Stirrup | 0.32 | $3.57 | 36,589 | |
| | Stirrup | 0.19 | $0.08 | 19,330 |
Number one over time
Lab claims count from the day the card came out, independent runs from the model’s release.
Source: Official 4DCodeBench leaderboard
Scores over time
All the scores we have, one dot each, so a model tested at several settings appears more than once.
Source: Official 4DCodeBench leaderboard
No lab model card reports it yet
We read the headline results of 522 launch posts from 52 labs, and none of them list this benchmark.
More in World models
- AgentWorldBench In use Language world models predict the next environment observation after an agent action, in 7 domains from MCP and search to Android and desktop OS. A judge model scores each prediction against the real observation on five dimensions. GPT-5.4 58.3
- IntPhys 2 In use Models watch simulated videos and judge whether each event is physically possible, testing object permanence, immutability, continuity and solidity. Scored by accuracy.
Muse Spark Open 68.3%
- QwenWorldBench Fading Models act as world models that simulate agent environments in 7 domains, such as terminal, web, and Android. A rubric judge scores five dimensions.
Qwen3.7-Plus 62.1%
- VPCT Fading Models view an image of a ball, ramps, and three buckets and predict which bucket the ball falls into. Scored by accuracy on 100 problems.
Gemini 3 Pro 91%
- ContPhy Fading Models infer physical properties such as mass and density of fluids and soft bodies from videos and predict their dynamics.
Seed2.0 Pro 67.4%
- RBench Only in system cards 650 image+text prompts for robot video generation (tasks and embodiments). MLLM judge scores task completion, physical plausibility, stability.
Wan 2.6 60.7%