SimuScene
Training & Benchmarking Code Generation for Physics-Inspired Animations
Given a natural-language physical scenario, models generate executable Python code that renders a physics-inspired animation. Correctness is judged by whether the rendered qualitative dynamics are visually aligned with the description — verified by a vision-language model over verification questions.
Animation gallery
What SimuScene brings
SimuScene is a novel task, dataset, and benchmark for physical-scenario understanding, qualitative dynamics, and animation-oriented code generation — spanning 52 concepts across five physics domains, with a rigorously human-verified 334-scenario test set and quality-controlled training data.
We evaluate 10 contemporary LLMs and find the task challenging: even the strongest model reaches only ~21.5% Avg@8 accuracy, exposing the gap between generating video-producing code and producing animations that faithfully capture physical dynamics.
An automated pipeline executes generated code into videos and uses a vision-language model to answer verification questions. The resulting visual reward trains text-only models via RL, improving text-to-code-to-video consistency with no evidence of reward hacking.
Frontier LLMs on the SimuScene benchmark
| Rank | Model | Avg@8 (↑) | Pass@8 (↑) | Visualization |
|---|---|---|---|---|
| — | Qwen3-32B | 11.1% | 30.5% | |
| — | GPT-oss-20b | 10.5% | 32.0% | |
| — | GPT-oss-120b | 14.0% | 37.4% | |
| — | Gemini-2.5-pro | 12.7% | 37.4% | |
| — | DeepSeek-V3.1 | 14.5% | 40.7% | |
| — | Qwen3-235B-A22B | 15.1% | 41.0% | |
| — | GPT-o4-mini | 17.2% | 42.5% | |
| — | GPT-o3 | 15.9% | 45.2% | |
| — | DeepSeek-R1-0528 | 21.5% | 52.7% | |
| — | GPT-5-medium | 20.5% | 59.9% |
How evaluation works
SimuScene evaluates whether the generated animation is visually aligned with the intended physical dynamics.
Text → Code
The model writes executable Python code that renders the scenario from a natural-language description.
Code → Video
Run the program to render a short video of object trajectories and interactions.
Video → Judgement
A VLM answers verification questions to decide whether the dynamics match the description.
Downloads & links
Direct download for the benchmark dataset.
BibTeX
If you use SimuScene in your research, please cite:
@misc{simuscene2026,
title={Training and Benchmarking Code Generation for Physics-Inspired Animations},
author={Yanan Wang and Renxi Wang and Yongxin Wang and Xuezhi Liang and Fajri Koto and Timothy Baldwin and Xiaodan Liang and Haonan Li},
year={2026},
eprint={2602.10840},
archivePrefix={arXiv},
primaryClass={cs.LG},
url={https://arxiv.org/abs/2602.10840},
}