VoxelCodeBench: Benchmarking 3D World Modeling Through Code Generation
Organizations: FAIR at Meta · The University of Texas at Austin
Abstract
Evaluating code generation models for 3D spatial reasoning requires executing generated code in realistic environments and assessing outputs beyond surface-level correctness. We introduce a platform VoxelCode, for analyzing code generation capabilities for 3D understanding and environment creation. Our platform integrates natural language task specification, API-driven code execution in Unreal Engine, and a unified evaluation pipeline supporting both automated metrics and human assessment. To demonstrate its utility, we construct VoxelCodeBench, a benchmark of voxel manipulation tasks spanning three reasoning dimensions: symbolic interpretation, geometric construction, and artistic composition. Evaluating leading code generation models, we find that producing executable code is far easier than producing spatially correct outputs, with geometric construction and multi-object composition proving particularly challenging. By open-sourcing our platform and benchmark, we provide the community with extensible infrastructure for developing new 3D code generation benchmarks and probing spatial reasoning in future models.
Figures & tables
| Model | HasObj | Pos | Mat | Shape | Look |
|---|---|---|---|---|---|
| GPT-5 | 88.6 | 88.6 | 87.9 | 87.9 | 5.71 |
| GPT-5 Mini | 85.8 | 85.8 | 82.4 | 80.4 | 4.86 |
| Claude Sonnet 4.5 | 86.7 | 86.7 | 84.6 | 80.4 | 5.01 |
| GPT-5 Chat | 77.9 | 77.9 | 75.9 | 69.7 | 3.66 |
| Claude Opus 4 | 74.1 | 72.8 | 72.1 | 69.4 | 4.13 |
| Claude 3.5 Sonnet | 71.0 | 70.3 | 70.3 | 66.9 | 3.30 |
| Symbolic | Geometric | Artistic | ||||
|---|---|---|---|---|---|---|
| Model | Shape | Look | Shape | Look | Shape | Look |
| GPT-5 | 87.5 | 6.81 | 66.7 | 6.56 | 97.5 | 4.90 |
| Claude Sonnet 4.5 | 90.3 | 6.77 | 52.8 | 5.28 | 89.5 | 4.16 |
| Claude Opus 4 | 75.0 | 6.25 | 40.0 | 3.83 | 80.0 | 3.41 |
| Gemini Pro | 15.2 | 1.55 | 23.7 | 2.08 | 19.2 | 0.92 |
| Model | Baseline | More Ex. | |
|---|---|---|---|
| GPT-5 | 97.5 | 96.2 | 1.4 |
| GPT-5 Mini | 92.5 | 96.2 | +3.7 |
| GPT-5 Chat | 94.9 | 61.5 | 33.4 |
| Claude Sonnet 4.5 | 89.5 | 72.0 | 17.5 |
| Claude 3.5 Sonnet | 84.8 | 50.0 | 34.8 |
| Gemini Pro | 19.2 | 44.0 | +24.8 |
| Error Type | GPT-5 | Claude Son. 4.5 | Gemini Pro | Total |
|---|---|---|---|---|
| Invalid API Attribute | 6 | 8 | 15 | 89 |
| Execution Timeout/Crash | 2 | 10 | 1 | 55 |
| Type Unpacking Error | 0 | 0 | 12 | 15 |
| Syntax Error | 0 | 0 | 14 | 15 |
| Error Rate | 0.8% | 1.6% | 5.6% | – |
Appendix figures & tables1 asset
Supplementary material from the paper’s appendix.
Appendix
Code Generation Benchmarks
Code generation benchmarks measure how well AI models produce code across programming tasks, languages, and real-world settings.
See all 148 papers