PDE-Agent: A toolchain-augmented multi-agent framework for PDE solving

Jianming Liu, Ren Zhu, Jian Xu, Kun Ding, Xu-Yao Zhang, Gaofeng Meng, Cheng-Lin LiuarXiv 2025 · DOI

Abstract

Solving Partial Differential Equations (PDEs) is fundamental to scientific computing but traditionally requires significant domain expertise. While Large Language Models (LLMs) offer potential for democratization, they struggle with mathematical precision and tool coordination. We present PDE-Agent, a multi-agent framework that transforms natural language descriptions into executable PDE solutions. Utilizing a "Prog-Act" dual-loop reasoning mechanism and a centralized "Resource-Pool," PDE-Agent achieves a 90% success rate across diverse physics problems, significantly outperforming existing autonomous agents.

Introduction

The solution of Partial Differential Equations (PDEs) is a cornerstone of modern science and engineering. However, the high barrier to entry—requiring both mathematical depth and programming proficiency—limits accessibility. LLMs have shown promise in code generation but often fail in scientific contexts due to "hallucinations" of physical laws and difficulties managing complex, non-textual data artifacts. PDE-Agent bridges this gap by combining LLM reasoning with the precision of specialized numerical tools.

Problem Statement: The Scientific Bottleneck

Traditional numerical methods are manual and cumbersome, while newer Physics-Informed Neural Networks (PINNs) still demand high-level coding expertise. LLMs face three primary hurdles in this domain:

  1. Domain Knowledge Gaps: Difficulty with specialized notation.
  2. Computational Fragility: Propensity for errors during multi-step deductions.
  3. Tool Coordination: Inability to pass complex "runtime artifacts" (e.g., mesh objects or trained models) between tools.

Methodology: The PDE-Agent Framework

PDE-Agent employs a collaborative ecosystem of four specialized agents: the Planner, Parser/Solver, Executor, and Orchestrator.

The PDE-Agent architecture featuring multi-agent collaboration, the Prog-Act mechanism, and the Resource-Pool.

Key Innovations

  • Prog-Act (Progressive Acting): A dual-loop mechanism designed for robust error correction. An Inner Loop performs localized fixes at specific checkpoints, while an Outer Loop triggers global plan revisions only when necessary. This is supported by Graph Memory, which maps task dependencies to trace errors.
  • Resource-Pool: A centralized management system for "runtime artifacts"—complex objects like function instances or data tensors that cannot be easily serialized into text. This ensures seamless communication between specialized tools.

Evaluation and Benchmarking

The authors introduced PDE-Bench, a manually curated benchmark of 100 test cases covering the Heat Equation, Wave Equation, Burgers’ Equation, and Fluid Dynamics. Evaluation utilizes multi-level metrics, including global success rates, local tool invocation accuracy (via Semantic Textual Similarity and BERTScore), and logical rationality of the generated toolchains.

Key Results

PDE-Agent demonstrates superior performance compared to state-of-the-art baselines like OctoTools and OpenAlita.

Success rates of PDE-Agent compared to baselines across various PDE types.
  • Overall Performance: PDE-Agent achieved a 90% success rate, compared to 62% for OctoTools and 59% for OpenAlita.
  • Ablation Studies: Removing the Prog-Act mechanism resulted in a 14% drop in success, highlighting the importance of the dual-loop verification.
  • Model Agnostic: The framework maintains high effectiveness across various underlying LLMs, including DeepSeek-v3, GPT-4o-mini, and Gemini.

Conclusion and Future Work

PDE-Agent represents a significant advancement in autonomous scientific computing. By separating high-level logic from low-level tool configuration and managing complex data dependencies, it provides a robust path for natural language-driven physics solving. Future work will focus on expanding domain coverage to more exotic physics and optimizing computational overhead for multi-physics systems.

Summary updated

BibTeX
@misc{liu2025pde,
  author = {Jianming Liu and Ren Zhu and Jian Xu and Kun Ding and Xu-Yao Zhang and Gaofeng Meng and Cheng-Lin Liu},
  title = {{PDE-Agent: A toolchain-augmented multi-agent framework for PDE solving}},
  year = {2025},
  eprint = {2512.16214},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2512.16214},
}
Figure