Self-Correcting Multi-Agent LLM for Physics Simulation

This paper introduces a self-correcting multi-agent LLM framework for language-based physics simulation and explanation. The system enables natural language queries to generate physics simulations while providing explanations of the underlying physical phenomena. - **Multi-agent architecture:** The framework employs multiple specialized LLM agents that collaborate to translate natural language descriptions into accurate physics simulations, with each agent handling distinct aspects of the simulation pipeline. - **Self-correction mechanism:** Built-in self-correction capabilities allow the system to identify and fix errors in generated simulations, improving accuracy without requiring human intervention or additional training. - **Language-based interface:** Users can describe physics scenarios in natural language, making complex simulation tools accessible to non-experts while maintaining scientific accuracy in the outputs. - **Explanation generation:** Beyond simulation, the system generates natural language explanations of the physics principles at work, serving both educational and research applications. - **Validation across domains:** The framework demonstrates effectiveness across multiple physics domains, showing generalization capability beyond narrow task-specific applications.
Ask this paper
Multi-agent architecture: The framework employs multiple specialized LLM agents that collaborate to translate natural language descriptions into accurate physics simulations, with each agent handling distinct aspects of the simulation pipeline.
Self-correction mechanism: Built-in self-correction capabilities allow the system to identify and fix errors in generated simulations, improving accuracy without requiring human intervention or additional training.
Language-based interface: Users can describe physics scenarios in natural language, making complex simulation tools accessible to non-experts while maintaining scientific accuracy in the outputs.
Explanation generation: Beyond simulation, the system generates natural language explanations of the physics principles at work, serving both educational and research applications.
Validation across domains: The framework demonstrates effectiveness across multiple physics domains, showing generalization capability beyond narrow task-specific applications.
Abstract
Physics-based simulations are essential in science and engineering, yet creating them typically requires expert knowledge of numerical solvers and governing equations. Large language models (LLMs) offer new possibilities for natural language-based simulation, but they often fail when prompts are vague, incomplete, or multilingual. We present MCP-SIM ( M emory- C oordinated P hysics-Aware Sim ulation), a self-correcting multi-agent framework that transforms underspecified prompts into validated simulations and explanatory reports. The system integrates input clarification, code generation, error diagnosis, and multilingual explanation through structured agent collaboration and persistent memory. Rather than relying on one-shot code generation, MCP-SIM emulates expert-like reasoning via iterative plan–act–reflect–revise cycles. Across twelve tasks of increasing complexity, the framework solved all benchmark cases and improved convergence efficiency relative to GPT-based and human-in-the-loop baselines, under the specific metrics defined in this study. In addition to numerical accuracy, the system produces interpretable, language-localized reports that explain each simulation’s physical logic. MCP-SIM represents a step toward general-purpose autonomous scientific assistants that simulate, adapt, and teach through natural language. While these results indicate strong robustness on the tested suite, performance in specialized domains and under distributions beyond our benchmark remains an area for future validation. Similar content being viewed by others Large language models empowered agent-based modeling and simulation: a survey and perspectives Article Open access 27 September 2024 TEM Agent : enhancing transmission electron microscopy with modern AI tools Article Open access 10 June 2026 A hierarchical multi-agent reinforcement learning framework with high-level guidance from large language models Article Open access 25 May 2026 Subjects Engineering Mathematics and computing