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 (Memory-Coordinated Physics-Aware Simulation), 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
TEM Agent: enhancing transmission electron microscopy with modern AI tools
LLM-enabled cognitive metasurfaces
Explore related subjects
• Mathematics and computing
• Reinforcement Learning in Multi-Agent Systems
Introduction
Imagine describing a physical simulation in plain language, such as âsimulate how water flows around an obstacle shaped like a dolphin,â and receiving not only executable code and visualizations, but also a structured, multilingual explanation of the underlying physics. Such a capability would democratize access to computational modeling and open the door to simulation-driven discovery for students, engineers, and researchers without specialized programming or numerical expertise.
Despite recent advances in large language models (LLMs)1,2,3,4,5, existing systems fall short when tasked with generating reliable simulations from ambiguous or linguistically diverse prompts6,7,8. Real-world simulation problems often lack complete specifications, including governing equations, boundary conditions, or material properties. Existing approaches to language-based simulation have notable limitations. One-shot LLM code generation methods9,10,11 can produce code from text but often fail on underspecified problems due to a lack of iterative refinement. Recent multi-agent LLM frameworks have been explored in specialized contexts12,13 â for example, a two-agent system was shown to self-correct code for solving elasticity problems14â but these systems remain domain-specific and require agents to manually correct each other. Physics-informed neural networks15,16,17,18 provide another approach for solving PDEs, yet they demand fully specified equations and cannot interpret ambiguous natural language prompts.
We hypothesize that this gap stems from a fundamental misalignment between one-shot LLM-based generation and the iterative, multi-step reasoning that expert modelers use in practice. To address this, we introduce MCP-SIM, short for Memory-Coordinated Physics-Aware Simulation, a fully autonomous simulation framework that leverages a multi-agent architecture19,20,21 to emulate expert-level simulation workflows. Rather than translating prompts into code in a single step, MCP-SIM performs structured cycles of planning, acting, reflecting, and revising through a network of specialized agentsâeach responsible for tasks such as prompt clarification, code generation, error diagnosis, and multilingual explanation.
Central to MCP-SIM is a shared memory system that enables agents to collaborate coherently and track the evolution of the simulation process. This architecture allows the system to infer missing assumptions, self-correct failed simulations, and generate scientifically grounded explanationsâall without manual intervention. In benchmark evaluations across twelve increasingly complex tasks, MCP-SIM demonstrated success on all twelve benchmark tasks under the defined metrics and exhibited robust generalization across domains, including elasticity, heat transfer, multiphysics, and fracture mechanics.
Beyond its technical performance, MCP-SIM redefines how simulations can be approached and understood. It serves not only as a solver but also as an autonomous scientific assistant, capable of teaching users the rationale behind its modeling choices through multilingual, interpretable reports. By bridging natural language and computational modeling, MCP-SIM expands the frontier of accessible scientific computing and offers a blueprint for future AI systems that both simulate and explain.
A physics-aware multi-agent framework for simulation automation
We present MCP-SIM, a memory-coordinated multi-agent framework that collaboratively interprets, constructs, and executes finite element simulations directly from natural language prompts. Designed to support structured reasoning workflows typical of expert-level physics-based modeling, MCP-SIM integrates six specialized agentsâthe Input Clarifier Agent, Code Builder Agent, Simulation Executor Agent, Error Diagnosis Agent, Input Rewriter Agent, and Mechanical Insight Agentâall orchestrated by a central controller, the Memory-Centric Orchestrator, which governs information flow via a persistent shared memory (Fig. 1).
The system starts with a userâs natural language prompt (â ), which is clarified by the Input Clarifier Agent (âĄ) to identify missing details (geometry, PDE type, boundary conditions). The Input Clarifier turns the user prompt into a canonical paragraph and a structured JSON for code generation (parsing module within the Clarifier). The Code Builder Agent (âą) then generates solver-ready Python code, which is executed by the Simulation Executor Agent (âŁ) while monitoring for errors or physical anomalies. If an error occurs, the Error Diagnosis Agent (â€) identifies and corrects it; if the initial instructions are ambiguous, the Input Rewriter Agent (â€-i) refines the prompt and the cycle repeats. Finally, the Mechanical Insight Agent (â„) produces a multilingual report explaining the simulationâs physical principles and results, demonstrating how MCP-SIM yields accurate, executable, and educational outputs through coordinated agent interaction.
At the core of MCP-SIM lies a Plan â Act â Reflect â Revise control loop that enables self-correcting and interpretable simulation synthesis. Upon receiving a vague or incomplete user promptâsuch as âsimulate fluid flow in an L-shaped pipeâ (Fig. 1, â )âthe Input Clarifier Agent (Fig. 1, âĄ) infers essential simulation details like domain geometry, governing PDE (e.g., NavierâStokes), and boundary conditions using domain knowledge and language understanding. These inferred attributes are stored in global memory as the canonical problem specification.
Next, the Code Builder Agent (Fig. 1, âą) translates this clarified input into solver-ready Python code via prompt templates infused with physics-aware heuristics for mesh generation, solver configuration, and boundary condition specification, using FEniCS22 as the simulation backend. These templates embed domain-specific heuristics that guide modeling decisionsâsuch as mesh refinement, solver configuration, and stability controlâbased on the physical and numerical context of the problem. All assumptions, numerical strategies, and intermediate artifacts are persistently logged, ensuring reproducibility and traceability.
The resulting code is executed by the Simulation Executor Agent (Fig. 1, âąââŁ) within a sandboxed environment. In addition to standard execution, the agent monitors physically meaningful indicatorsâsuch as conservation violations, residual divergence, or spurious field oscillationsâthat may signal modeling or discretization issues. If runtime failures occurâsuch as solver divergence, syntax issues, or physical inconsistenciesâthe system enters the Reflect phase, where the Error Diagnosis Agent (Fig. 1, âŁ) is invoked. The Error Diagnosis Agent (Fig. 1, âŁ) interprets failures in physical terms, such as insufficient mesh resolution or solver-mismatch. It proposes targeted, physics-aware correctionsâsuch as adjusting mesh density, reducing the time step, or modifying solver parametersâbased on all execution logs and memory history. These corrections are communicated to other agents as structured hints (Fig. 1, âŁ-i) for subsequent revision. If the issue stems from high-level ambiguity in the user prompt, the Input Rewriter Agent (Fig. 1, â€-i) semantically revises the instruction (e.g., adding âmesh resolutionâ=â64â or ârelaxationâ=â0.7â), and the control loop restarts from clarification (Fig. 1, âĄ).
Upon successful simulation, the Mechanical Insight Agent (Fig. 1, â„) automatically generates an interpretive report. This includes symbolic PDE summaries, physical reasoning behind the model, and code-level annotationsâall rendered in accessible formats and multiple languages to support education and transparency (Fig. 1, â„-i). Critically, the Memory-Centric Orchestrator acts as the central coordination substrate, capturing the full trajectory of the simulation: from prompt history and problem clarifications to code iterations, diagnostic logs, and final results. This persistent trace enables context-aware decision making across agents and prevents redundant computations or regressions.
In contrast to reactive prompt-to-code systems, MCP-SIM embodies memory-centric simulation automation with interpretable physical reasoning, capable of resolving complex physics problems through modular reasoning, targeted revisions, and cumulative reflection. Prompt templates for each agentâsuch as PDE clarification, code generation, and diagnostic hintingâwere modularly designed based on domain heuristics. Their constructions are described in Supplementary Note 1 and Supplementary Figs. 1â5. For a demonstration of MCP-SIM in action, please refer to Supplementary Video 1.
Benchmark Performance: Accuracy and Efficiency
To assess the robustness of MCP-SIM, we evaluated the system on a twelve-task benchmark suite encompassing a range of physics domainsâincluding linear elasticity, heat conduction, fluid flow, thermo-mechanical coupling, piezoelectric deformation, and phase-field fracture mechanics. These tasks were intentionally designed to reflect real-world challenges faced by students and non-experts, such as vague boundary conditions, missing material properties, and ambiguous geometry descriptions (Fig. 2A; Table 1). The prompt design for our benchmark tasks follows a gradually increasing complexity (from fully specified to highly ambiguous problems), akin to a curriculum. This approach was inspired in part by conventional finite element tutorials22, ensuring that the system is challenged across a spectrum from basic to advanced scenarios. Based on prompt completeness and modeling complexity, we categorized the 12 tasks into:
• Simple (Levels 1â4): fully specified, single-physics problems.
Simple (Levels 1â4): fully specified, single-physics problems.
• Intermediate (Levels 5â9): incomplete inputs requiring inference (e.g., geometry, material, BCs).
Intermediate (Levels 5â9): incomplete inputs requiring inference (e.g., geometry, material, BCs).
• Challenging (Levels 10â12): multi-physics with missing assumptions, inspired by published problems without code.
Challenging (Levels 10â12): multi-physics with missing assumptions, inspired by published problems without code.
A Twelve benchmark tasks categorized by increasing difficultyâfrom well-posed, single-physics problems (Levels 1â4) to under-specified, multi-physics challenges (Levels 10â12). B Success rates across three benchmarks and MCP-SIM: B1. One-shot GPT, B2. GPT + Automated Clarifier, B3. GPT + Clarifier + Human Diagnosis (human-in-the-loop hybrid), and MCP-SIM. C Number of PlanâActâReflectâRevise cycles required for successful outcomes. MCP-SIM consistently solves all tasks within five iterations, significantly outperforming baseline models. The inset table in (C) summarises the automation scope of each benchmark, showing which stages (specification completion, execution/monitoring, diagnosis/fix, memory consistency, loop control) are automated (), human-mediated (), or partially manual (). MCP-SIM uniquely integrates all stages into a fully automated, memory-centric loop.
To quantify how each component of MCP-SIM contributes to final performance, we conducted an ablation study across the benchmark methodologiesâa standard approach for evaluating the impact of system componentsâacross the benchmark23,24. We compare three representative baselines in addition to our proposed MCP-SIM: (i) B1. One-shot GPT, which generates code once from a prompt while leaving specification completion, error inspection, and correction to the user; (ii) B2. GPT + Automated Clarifier, where the Input Clarifier Agent automatically infers missing specifications but execution monitoring and error handling remain manual; and (iii) B3. GPT + Clarifier + Human Diagnosis (human-in-the-loop hybrid), where specifications are auto-inferred and the Error Diagnosis Agent proposes fixes, but the user must review and decide whether to accept these suggestions before re-running. These baselines all rely on user mediation, process code and errors sequentially, and cannot exploit the history of past errorâfix attempts, which limits robustness under underspecified prompts.
In this study, we quantified performance using three metrics: (i) success rate, defined as the proportion of tasks solved out of 12; (ii) convergence efficiency, measured by the number of Plan â Act â Reflect â Revise cycles required until success; and (iii) numerical convergence, defined as achieving solver residuals below 10â4 while producing physically plausible field distributions. Specifically, once baselines and MCP-SIM successfully generated executable simulation code, we evaluated physical convergence by computing the residual as the total imbalance of each governing equation across all cells for the twelve tasks. This residual was normalized by the initial value at every iteration to yield a dimensionless residual, independent of physical units. Convergence was determined when this normalized residual dropped below the prescribed threshold (10â4). These metrics provide a consistent basis for comparing baselines (B1âB3) and our fully autonomous MCP-SIM (Fig. 2AâC).
As shown in Fig. 2B, B1 solved only 6/12 tasks, B2 improved to 8/12, and B3 reached 10/12. In contrast, MCP-SIM solved all 12/12 tasks. In addition, we evaluated convergence efficiency by measuring the number of PlanâActâReflectâRevise cycles required for each task. Unlike B1âB3, which only act on the current run, MCP-SIM leverages persistent memory that stores clarifications, code snapshots, execution traces, and error â fix mappings from previous iterations. Agents consult this record to avoid regressions and propose consolidated, multifaceted corrections in one step. This history-aware mechanism explains MCP-SIMâs ability to converge within â€5 iterations across most benchmark tasks (Fig. 2C).
Building on these performance metrics, Fig. 3 visualizes the final outputs for the 12 benchmark tasksâdemonstrating MCP-SIMâs ability to generate physically meaningful results, even in the presence of ambiguity or missing information. The prompts were deliberately designed to span a wide range of physical domainsâincluding elasticity, fluid dynamics, heat transfer, and coupled-field phenomenaâand to vary in geometric and numerical complexity. This progression ensures that MCP-SIM is evaluated not only on solvable cases but also on how it responds to the kinds of ambiguity common in real-world practice.
(Top-left to bottom-right): This presents the final simulation outputs from MCP-SIM for each of the 12 levels of complexity, ranging from basic linear elasticity (Level 1) to advanced multi-physics problems, such as phase-field crack growth (Level 12).
Despite variations in governing equations and modeling complexity, MCP-SIM consistently produced executable and physically plausible simulations without human intervention. Through shared memory, the Input Clarifier and Error Diagnosis agent dynamically inferred missing quantities, such as inlet velocities, thermal conductivities, and solver parameters. When failures occurred, the system recovered autonomously using physics-aware refinement strategies, guided by the Plan â Act â Reflect â Revise loop.
Each simulation met physical convergence criteria, with dimensionless residual below 10â»4. Importantly, the solutions were not only numerically stable but also physically interpretable. For instance, in Level 1 (linear elasticity), the stress and displacement fields reflect equilibrium under tension around a central hole. In Level 9 (3D heat diffusion), the temperature gradients follow expected patterns of thermal conduction in a coil-shaped bodyâmirroring practical thermal management setups.
These outcomes suggest that MCP-SIM is not narrowly tuned to templates but robustly generalizes across domains. Even when given vague or under-specified prompts, the system adapts and delivers physically meaningful results. This capability makes it a reliable tool not only for automated simulation but also for educational and engineering applications where interpretability, flexibility, and correctness are essential.
Expert-level reasoning from minimal prompts
To illustrate how MCP-SIM handles complex physical systems from minimal input, we examine its performance on Level 12âthe most challenging task in the benchmark suite. This case involves reproducing a nonlinear phase-field fracture simulation25 from a single promptââsimulate crack propagation in a square domain with a central circle.ââwithout numerical values, PDE specifications, or boundary conditions.
MCP-SIM successfully inferred that a phase-field fracture model was appropriate. The Input Clarifier proposed a 2D domain with a central void, applied Dirichlet conditions at the base, and assigned traction-free boundaries elsewhere. It also selected appropriate material constants and solver parameters. The Code Builder Agent generated corresponding FEniCS code, and upon encountering a syntax error, the Error Diagnosis Agent corrected the variational form and mesh resolution.
Figure 4B illustrates the problem setup, featuring a central circular void in a square domain subjected to quasi-static uniaxial tension, with the bottom boundary fixed and the top boundary displaced upward by 5%. After ten self-correcting cycles, the crack propagation patterns simulated by ABAQUS and the MCP framework show close agreement in crack initiation and growth direction, thereby validating the effectiveness of the autonomous solver (Fig. 4C). This case illustrates MCP-SIMâs capacity for domain-aware abstraction, autonomous decision-making, and model justification, starting from minimal human input. Full simulation codes automatically generated by MCP-SIM for all challenging promptsâLevel 10 (thermoelectric coupling), Level 11 (piezoelectric deformation), and Level 12 (phase-field fracture)âare provided in Supplementary Figs 6â8, demonstrating the systemâs ability to generalize across diverse and complex physics domains.
A Agent reasoning process for Level 12: From a single-sentence prompt, MCP-SIM infers geometry, governing equations, and solver setup through iterative agent collaboration. B Problem setup: a square domain with a central circular crack tip subjected to 5% upward displacement on the top boundary; bottom boundary is fixed, representing a quasi-static tension condition. C Comparison of crack propagation results obtained using ABAQUS (top row) and the MCP-SIM framework (bottom row). Both methods predict symmetric crack growth from the circular notch, validating the correctness and robustness of the autonomous simulation workflow.
Educational insight and multilingual explanation
Beyond execution, MCP-SIM enhances interpretability and promotes simulation literacy by automatically generating structured simulation reports. After each successful run, the Mechanical Insight Agent produces multilingual explanations that describe the simulationâs physical principles, governing equations, boundary conditions, and solver strategies.
These reports are available in English and Korean (Fig. 5), as well as Japanese and German (Supplementary Fig. 9), and follow a pedagogically consistent structure. They combine code-level annotations with high-level rationalesâfor example, explaining why Dirichlet rather than Neumann boundaries were applied, or why certain solvers were selected for stability.
This showcases simulation reports generated by the Mechanical Insight Agent in English (USA) and Korean. The reports provide comprehensive, student-friendly explanations of the simulation, including details on the simulation goal, physical concepts, PDE explanations, and critical factors. The multilingual capability ensures that students from different backgrounds can easily understand the process and results of their simulations.
Importantly, these reports go beyond explanationâthey scaffold student learning. They clearly define simulation goals, unpack physical models and assumptions, and guide users through critical implementation choices. By including localized language support and conceptual reasoning, MCP-SIM acts as a virtual teaching assistantâhelping learners not just run simulations, but understand them. This reduces barriers to simulation-based education and broadens access across languages, disciplines, and levels of expertise26.
Discussion
The results presented above highlight MCP-SIM as a step change in autonomous simulation, demonstrating how LLMs, when structured through multi-agent collaboration and persistent memory, can move beyond static code generation toward self-correcting, interpretable scientific computation. Unlike prior systems that rely on single-step prompt-to-code translation, MCP-SIM emulates the iterative reasoning loop of human expertsâplanning, acting, reflecting, and revisingâthrough modular agents that perform distinct tasks, such as input clarification, code repair, and physical explanation. This architecture allows the system to recover from incomplete or ambiguous inputs and deliver physically plausible outputs across diverse domains, including elasticity, heat conduction, and fracture mechanics.
Importantly, MCP-SIM is not a black-box tool. It generates multilingual educational reports that explain the governing equations, boundary conditions, solver strategies, and assumptions underlying each simulation. This interpretability distinguishes it from conventional LLM-based tools, positioning it as an autonomous scientific assistant that can both compute and teach. The ability to explain results in multiple languages also extends accessibility to a broader community of students, educators, and practitioners. The generalization observed across all twelve benchmark tasksâwhere all generated code for simulations satisfied the numerical convergence criterion (dimensionless residual
Despite promising results, several limitations remain. First, MCP-SIM is based on a general-purpose LLM (GPT-4o) without domain-specific fine-tuning; performance may degrade in specialized physical settings, such as rare material models or advanced multiphysics couplings. Second, the reflective loop introduces computational latency compared to one-shot generation, which may restrict applicability in real-time or resource-constrained scenarios. Third, our evaluation is limited to a curated twelve-task benchmark with synthetic prompts; extension to experimental or safety-critical contexts will require domain-specific validation and human oversight. Finally, while persistent memory reduces regressions in our setup, long-horizon stability under noisy or adversarial inputs remains an open research direction. Future work will focus on integrating domain-specific foundation agents, incorporating symbolic physics engines, and optimizing inference for high-performance computing environments. Expanding the benchmark suite to include real-world data, sensor input, and experimental validation will also be crucial for establishing trust in high-stakes applications. We also envision integrating MCP-SIM into collaborative platforms where human users and AI co-design models, exchange reasoning steps, and accelerate discovery.
At a broader level, MCP-SIM signals a shift in the role of LLMs in scientific computingâfrom passive generators of syntax to active participants in modeling, interpretation, and explanation. By embedding physical reasoning, structured iteration, and educational transparency into its core, it exemplifies a new paradigm for AI-driven scientific modeling that blends computational accuracy with accessibility. As autonomous agents become increasingly integrated into scientific workflows, systems like MCP-SIM will serve as foundational infrastructure for simulation-based discovery, design, and learning, making simulation not only more powerful but also more adaptive and scientifically grounded.
Agent framework design
Each specialized agent in MCP-SIM follows a well-defined algorithm encoded via a prompt template and executed using GPT-4o (OpenAI, 2024). Specifically: the Input Clarifier Agent refines vague user requests into a fully specified description and, as an internal parsing module, emits a structured JSON object for downstream code generation (see Supplementary Fig. 2). The Code Builder Agent generates solver-ready Python/FEniCS code from the JSON and natural language specification; the Simulation Executor Agent executes the code and captures logs or errors; the Error Diagnosis Agent analyses error messages and proposes corrected code via JSON-formatted outputs; the Input Rewriter Agent revises the original prompt if high-level ambiguities persist, using hints from the diagnosis and prior outputs; and the Mechanical Insight Agent produces multilingual, student-friendly reports explaining the physical and numerical aspects of the generated code. All agents are orchestrated by a memory-centric controller that stores clarifications, parsed data, code versions, execution logs, and applied fixes, thereby enabling reproducibility and the iterative Plan â Act â Reflect â Revise loop underpinning MCP-SIMâs self-correcting behavior. The detailed prompt templates defining each agentâs behaviour are provided in Supplementary Note 1 and Supplementary Figs 1â5 for full transparency.
In contrast to prior baselines (B1âB3), where users remain in the loop for either specification completion or reviewing error corrections, MCP-SIM eliminates manual mediation by embedding all tasksâclarification, code generation, execution, diagnosis, and rewritingâwithin a memory-centric loop. The orchestrator maintains a JSON-based log of specifications, code versions, error traces, and applied fixes, enabling history-aware corrections and preventing regressions.
Simulation backend and libraries
In MCP-SIM, the simulation agent is based on the open-source FEniCS computing platform, a widely used library for solving PDEs via finite element methods. Python 3.9 was used as the scripting environment, and all generated codes employed standard FEniCS constructs for mesh generation, function space definition, weak form assembly, and nonlinear solver execution. Simulations were run locally in sandboxed Python environments without manual modification unless otherwise noted.
Data availability
No experimental or observational data was utilized in this work.
Code availability
The codes used for this work are available at: https://doi.org/10.5281/zenodo.15645333 and https://github.com/KAIST-M4/MCP-SIM.
References
• Buehler, M. J. PRefLexOR: preference-based recursive language modeling for exploratory optimization of reasoning and agentic thinking. npj Artif. Intell. 1, 4 (2025).Article Google Scholar
Buehler, M. J. PRefLexOR: preference-based recursive language modeling for exploratory optimization of reasoning and agentic thinking. npj Artif. Intell. 1, 4 (2025).
• Xue, C. et al. Omniforce: on human-centered, large model empowered and cloud-edge collaborative AutoML system. npj Artif. Intell. 1, 3 (2025).Article Google Scholar
Xue, C. et al. Omniforce: on human-centered, large model empowered and cloud-edge collaborative AutoML system. npj Artif. Intell. 1, 3 (2025).
• Romera-Paredes, B. et al. Mathematical discoveries from program search with large language models. Nature 625, 468â475 (2024).Article Google Scholar
Romera-Paredes, B. et al. Mathematical discoveries from program search with large language models. Nature 625, 468â475 (2024).
• Zhang, X., Zheng, X. & Luo, J. The influence of stereotypes and visual features on donation intentions in online medical crowdfunding campaigns: A comparison of survey and large language model-based methods. npj Artif. Intell. 1, 16 (2025).Article Google Scholar
Zhang, X., Zheng, X. & Luo, J. The influence of stereotypes and visual features on donation intentions in online medical crowdfunding campaigns: A comparison of survey and large language model-based methods. npj Artif. Intell. 1, 16 (2025).
• Brown, T. B. et al. Language models are few-shot learners. Adv. Neural Inf. Process. Syst. 33, 1877â1901 (2020). Google Scholar
Brown, T. B. et al. Language models are few-shot learners. Adv. Neural Inf. Process. Syst. 33, 1877â1901 (2020).
• Steyvers, M. et al. What large language models know and what people think they know. Nat. Mach. Intell. 7, 221â231 (2025).Article Google Scholar
Steyvers, M. et al. What large language models know and what people think they know. Nat. Mach. Intell. 7, 221â231 (2025).
• Musslick, S. et al. Automating the practice of science: opportunities, challenges, and implications. Proc. Natl. Acad. Sci. 122, e2401238121 (2025).Article Google Scholar
Musslick, S. et al. Automating the practice of science: opportunities, challenges, and implications. Proc. Natl. Acad. Sci. 122, e2401238121 (2025).
• Krenn, M. et al. On scientific understanding with artificial intelligence. Nat. Rev. Phys. 4, 761â769 (2022).Article Google Scholar
Krenn, M. et al. On scientific understanding with artificial intelligence. Nat. Rev. Phys. 4, 761â769 (2022).
• Luo, X. et al. Large language models surpass human experts in predicting neuroscience results. Nat. Hum. Behav. 9, 305â315 (2025).Article Google Scholar
Luo, X. et al. Large language models surpass human experts in predicting neuroscience results. Nat. Hum. Behav. 9, 305â315 (2025).
• Chen, L., Rao, Z. & Singh, S. Self-planning code generation with large language models: plan-then-implement framework. ACM Trans. Softw. Eng. Methodol. 33, 21:1â21:25 (2024). Google Scholar
Chen, L., Rao, Z. & Singh, S. Self-planning code generation with large language models: plan-then-implement framework. ACM Trans. Softw. Eng. Methodol. 33, 21:1â21:25 (2024).
• Le, K. T. & Andrzejak, A. Rethinking AI code generation: a one-shot correction approach based on user feedback. Automated Softw. Eng. 31, 60 (2024).Article Google Scholar
Le, K. T. & Andrzejak, A. Rethinking AI code generation: a one-shot correction approach based on user feedback. Automated Softw. Eng. 31, 60 (2024).
• Dong, Z., Lu, Z. & Yang, Y. Fine-tuning a large language model for automating computational fluid dynamics simulations. Theor. Appl. Mech. Lett. 15, 100594 (2025).Article Google Scholar
Dong, Z., Lu, Z. & Yang, Y. Fine-tuning a large language model for automating computational fluid dynamics simulations. Theor. Appl. Mech. Lett. 15, 100594 (2025).
• Kim, S., Yu, Y. & Seo, H. Artificial intelligence orchestration for text-based ultrasonic simulation via self-review by multi-large language model agents. Sci. Rep. 15, 12474 (2025).Article Google Scholar
Kim, S., Yu, Y. & Seo, H. Artificial intelligence orchestration for text-based ultrasonic simulation via self-review by multi-large language model agents. Sci. Rep. 15, 12474 (2025).
• Ni, B. & Buehler, M. J. MechAgents: large language model multi-agent collaborations can solve mechanics problems, generate new data, and integrate knowledge. Extrem. Mech. Lett. 67, 102131 (2024).Article Google Scholar
Ni, B. & Buehler, M. J. MechAgents: large language model multi-agent collaborations can solve mechanics problems, generate new data, and integrate knowledge. Extrem. Mech. Lett. 67, 102131 (2024).
• Karniadakis, G. E. et al. Physics-informed machine learning. Nat. Rev. Phys. 3, 422â440 (2021).Article Google Scholar
Karniadakis, G. E. et al. Physics-informed machine learning. Nat. Rev. Phys. 3, 422â440 (2021).
• Raissi, M., Perdikaris, P. & Karniadakis, G. E. Physics-informed neural networks: a deep learning framework for solving forward and inverse problems involving nonlinear partial differential equations. J. Comput. Phys. 378, 686â707 (2019).Article MathSciNet Google Scholar
Raissi, M., Perdikaris, P. & Karniadakis, G. E. Physics-informed neural networks: a deep learning framework for solving forward and inverse problems involving nonlinear partial differential equations. J. Comput. Phys. 378, 686â707 (2019).
Article MathSciNet Google Scholar
• Lu, L., Meng, X., Mao, Z. & Karniadakis, G. E. Scientific machine learning through physics-informed neural networks: trends and frontiers. J. Sci. Comput. 92, 57 (2022). Google Scholar
Lu, L., Meng, X., Mao, Z. & Karniadakis, G. E. Scientific machine learning through physics-informed neural networks: trends and frontiers. J. Sci. Comput. 92, 57 (2022).
• Zhang, C. & de Lillo, F. A physics-informed neural framework for inversion and surrogate modeling in solid mechanics. Comp. Methods Appl. Mech. Eng. 379, 113741 (2022). Google Scholar
Zhang, C. & de Lillo, F. A physics-informed neural framework for inversion and surrogate modeling in solid mechanics. Comp. Methods Appl. Mech. Eng. 379, 113741 (2022).
• Vinyals, O. et al. Grandmaster level in StarCraft II using multi-agent reinforcement learning. Nature 575, 350â354 (2019).Article Google Scholar
Vinyals, O. et al. Grandmaster level in StarCraft II using multi-agent reinforcement learning. Nature 575, 350â354 (2019).
• Bae, H. J. & Koumoutsakos, P. Scientific multi-agent reinforcement learning for wall-models of turbulent flows. Nat. Commun. 13, 1443 (2022).Article Google Scholar
Bae, H. J. & Koumoutsakos, P. Scientific multi-agent reinforcement learning for wall-models of turbulent flows. Nat. Commun. 13, 1443 (2022).
• Ghafarollahi, A. & Buehler, M. J. SciAgents: automating scientific discovery through bioinspired multi-agent intelligent graph reasoning. Adv. Mater, 37, e2413523 (2025).
Ghafarollahi, A. & Buehler, M. J. SciAgents: automating scientific discovery through bioinspired multi-agent intelligent graph reasoning. Adv. Mater, 37, e2413523 (2025).
• AlnĂŠs, M. S. et al. The FEniCS Project Version 1.5. Arch. Numer. Softw. 3, 9â23 (2025). Google Scholar
AlnĂŠs, M. S. et al. The FEniCS Project Version 1.5. Arch. Numer. Softw. 3, 9â23 (2025).
• Meyes, R., Lu, M., De Puiseau, C. W. & Meisen, T. Ablation studies in artificial neural networks, (2019). arXiv preprint arXiv:1901.08644.
Meyes, R., Lu, M., De Puiseau, C. W. & Meisen, T. Ablation studies in artificial neural networks, (2019). arXiv preprint arXiv:1901.08644.
• Vishnusai, Y., Kulakarni, T. R. & Nag, K. S. Ablation of artificial neural networks. International Conference on Innovative Data Communication Technologies and Application, 453â460 (Springer, 2019).
Vishnusai, Y., Kulakarni, T. R. & Nag, K. S. Ablation of artificial neural networks. International Conference on Innovative Data Communication Technologies and Application, 453â460 (Springer, 2019).
• Storvik, E. et al. An accelerated staggered scheme for variational phase-field models of brittle fracture. Computer Methods Appl. Mech. Eng. 381, 113822 (2021).Article MathSciNet Google Scholar
Storvik, E. et al. An accelerated staggered scheme for variational phase-field models of brittle fracture. Computer Methods Appl. Mech. Eng. 381, 113822 (2021).
Article MathSciNet Google Scholar
• Qin, L. et al. A survey of multilingual large language models. Patterns 6, 101118 (2025).Article Google Scholar
Qin, L. et al. A survey of multilingual large language models. Patterns 6, 101118 (2025).
Acknowledgements
This work was supported by the National Research Foundation of Korea (NRF) grant (RS-2025-16070951) and by the InnoCORE program funded by Ministry of Science and ICT (N10250154). We also acknowledge the Yoon Young Kim AI Innovation Fund of The Korean Society of Mechanical Engineers (KSME).
Author information
• These authors contributed equally: Donggeun Park, Hyeonbin Moon.
These authors contributed equally: Donggeun Park, Hyeonbin Moon.
Authors and Affiliations
• Department of Mechanical Engineering, Korea Advanced Institute of Science and Technology (KAIST), Daejeon, Republic of KoreaDonggeun Park, Hyeonbin Moon & Seunghwa Ryu
Department of Mechanical Engineering, Korea Advanced Institute of Science and Technology (KAIST), Daejeon, Republic of Korea
Donggeun Park, Hyeonbin Moon & Seunghwa Ryu
• KAIST InnoCORE PRISM-AI Center, Korea Advanced Institute of Science and Technology (KAIST), Daejeon, Republic of KoreaDonggeun Park, Hyeonbin Moon & Seunghwa Ryu
KAIST InnoCORE PRISM-AI Center, Korea Advanced Institute of Science and Technology (KAIST), Daejeon, Republic of Korea
Donggeun Park, Hyeonbin Moon & Seunghwa Ryu
• Donggeun ParkView author publicationsSearch author on:PubMed Google Scholar
Search author on:PubMed Google Scholar
• Hyeonbin MoonView author publicationsSearch author on:PubMed Google Scholar
Search author on:PubMed Google Scholar
• Seunghwa RyuView author publicationsSearch author on:PubMed Google Scholar
Search author on:PubMed Google Scholar
Contributions
D.G.P. developed the Multi-agent LLM systems, prepared the figures, and wrote the initial draft. H.B.M. implemented the model and validated it through simulation. S.H.R. supervised the study, provided conceptual guidance, and reviewed the manuscript. All authors reviewed and approved the final version of the manuscript.
Corresponding author
Correspondence to Seunghwa Ryu.
Ethics declarations
Competing interests
The authors declare no competing interests.
Additional information
Publisherâs note Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Supplementary information
SupplementaryInformation (download PDF )
Supplementary Video 1 (download MP4 )
Rights and permissions
About this article
Cite this article
Park, D., Moon, H. & Ryu, S. A self-correcting multi-agent LLM framework for language-based physics simulation and explanation. npj Artif. Intell. 2, 10 (2026). https://doi.org/10.1038/s44387-025-00057-z
• Received: 07 August 2025
• Accepted: 22 November 2025
Accepted: 22 November 2025
• Published: 20 January 2026
Published: 20 January 2026
• Version of record: 20 January 2026
Version of record: 20 January 2026
• DOI: https://doi.org/10.1038/s44387-025-00057-z
DOI: https://doi.org/10.1038/s44387-025-00057-z
Anyone you share the following link with will be able to read this content:
Sorry, a shareable link is not currently available for this article.
Provided by the Springer Nature SharedIt content-sharing initiative