AutoNumerics: An Autonomous, PDE-Agnostic Multi-Agent Pipeline for Scientific Computing
Authors: Jianda Du, Youran Sun, Haizhao Yang
Organizations: Department of Mathematics, University of Maryland, College Park, MD, USA · Department of Computer Science, University of Maryland, College Park, MD, USA
PDEs are central to scientific and engineering modeling, yet designing accurate numerical solvers typically requires substantial mathematical expertise and manual tuning. Recent neural network-based approaches improve flexibility but often demand high computational cost and suffer from limited interpretability. We introduce AutoNumerics, a multi-agent framework that autonomously designs, implements, debugs, and verifies numerical solvers for general PDEs directly from natural language descriptions. Unlike black-box neural solvers, our framework generates transparent solvers grounded in classical numerical analysis. We introduce a coarse-to-fine execution strategy and a residual-based self-verification mechanism. Experiments on 24 canonical and real-world PDE problems demonstrate that AutoNumerics achieves competitive or superior accuracy compared to existing neural and LLM-based baselines, and correctly selects numerical schemes based on PDE structural properties, suggesting its viability as an accessible paradigm for automated PDE solving.
Figures & tables
Figure 1: The AutoNumerics pipeline. Steps 1–4 handle problem formulation and plan selection. Step 5 implements the coarse-to-fine execution strategy with Fresh Restart logic. Steps 6–7 perform verification and theoretical analysis.
nRMSE ( ↓ )
Advection
Burgers
React-Diff
CNS
Darcy
Geom. Mean
U-Net
5.00×10−2
2.20×10−1
6.00×10−3
3.60×10−1
−
−
FNO
7.70×10−3
7.80×10−3
1.40×10−3
9.50×10−2
9.80×10−3
9.52×10−3
PINN
7.80×10−3
8.50×10−1
8.00×10−2
−
−
−
ORCA
9.80×10−3
1.20×10−2
3.00×10−3
6.20×10−2
−
−
PDEformer
4.30×10−3
1.46×10−2
−
−
−
−
UPS
2.20×10−3
3.73×10−2
5.57×10−2
4.50×10−3
−
−
Table 1: nRMSE (normalized root mean square error) comparison with neural network baselines and CodePDE. All LLM-based methods (CodePDE and Ours) use GPT-4.1. CodePDE results are obtained under the Reasoning + Debugging + Refinement setting (best of 12).
Appendix figures & tables4 assets
Supplementary material from the paper’s appendix.
Appendix
PDE
Dim
Error
Runtime (s)
Explicit analytic solution available (Relative L2 error)
Advection
2
1.13×10−13
29.8
Allen-Cahn
1
2.23×10−4
19.8
Biharmonic
2
6.14×10−1
89.3
Convection Diffusion
2
8.57×10−3
34.6
Euler
1
5.21×10−14
26.0
Appendix
Table 2: Evaluation of proposed framework across 24 benchmark PDEs. The upper block reports relative L2 error for problems with known analytic solutions; the lower block reports relative residual error.
Plan
Score
Method
Rationale (summary)
Spectral (RK4, high-res)
90
Spectral Fourier
Optimal for smooth periodic advection
FD (WENO3+RK3, high-res)
85
Finite Difference
High-order upwind, conservative
Spectral (ETDRK4, med-res)
80
Spectral Fourier
Good accuracy-cost balance
FV (MUSCL+RK2, med-res)
75
Finite Volume
Limiter controls oscillations
FD (semi-Lagrangian, med-res)
70
Finite Difference
Large time steps, second-order
FEM (IMEX, med-res)
60
Finite Element
Stable but diffusion treatment irrelevant
Appendix
Table 3: Candidate schemes generated by the Planner Agent and scored by the Selector Agent for the 2D Advection problem.
Plan
Residual L2
Runtime (s)
Attempts
Restarts
Spectral (RK4, high-res)
1.75×10−3
23.8
2
0
FD (WENO3+RK3, high-res)
3.18×104
57.5
4
0
Spectral (ETDRK4, med-res)
8.02×10−15
35.3
4
0
FV (MUSCL+RK2, med-res)
1.94×10−1
33.2
2
0
FD (semi-Lagrangian, med-res)
2.27×10−2
15.8
2
0
Appendix
Table 4: Execution results for the top-5 candidate schemes on the 2D Advection problem.
PDE
Dim.
BC
PDE Type
Selected Scheme
Periodic boundary conditions
Advection
2
Periodic
Hyperbolic
Spectral Fourier (RK4)
Convection Diffusion
2
Periodic
Parabolic
Spectral Fourier (IMEX)
Schrödinger
1
Periodic
Dispersive
Spectral Fourier (Split-Step)
Navier–Stokes
2
Periodic
Parabolic
FEM (IMEX)
Shallow Water
1
Periodic
Hyperbolic
FD (explicit)
Appendix
Table 5: Numerical schemes selected by the Planner Agent for each benchmark PDE.