Perceptual Self-Reflection in Agentic Physics Simulation Code Generation
Prashant Shende, Bradley Camburn

TL;DR
This paper introduces a multi-agent system with perceptual self-reflection for generating accurate physics simulation code from natural language, significantly improving over traditional methods by analyzing rendered animations with vision-language models.
Contribution
The novel perceptual self-reflection mechanism enables iterative validation and correction of physics simulations using visual analysis, addressing the oracle gap in code correctness.
Findings
Substantial improvement in physics accuracy across seven domains.
Robust code self-correction and pipeline stability.
Cost-effective simulation generation at approximately $0.20 per animation.
Abstract
We present a multi-agent framework for generating physics simulation code from natural language descriptions, featuring a novel perceptual self-reflection mechanism for validation. The system employs four specialized agents: a natural language interpreter that converts user requests into physics-based descriptions; a technical requirements generator that produces scaled simulation parameters; a physics code generator with automated self-correction; and a physics validator that implements perceptual self-reflection. The key innovation is perceptual validation, which analyzes rendered animation frames using a vision-capable language model rather than inspecting code structure directly. This approach addresses the ``oracle gap'' where syntactically correct code produces physically incorrect behavior--a limitation that conventional testing cannot detect. We evaluate the system across seven…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsModel Reduction and Neural Networks · Generative Adversarial Networks and Image Synthesis · Artificial Intelligence in Games
