Multi-agent System for Automatic Discovery of Pareto-optimal Meta-solvers for PDEs
Organizations: Division of Applied Mathematics, Brown University, Providence, RI 02912, USA · Department of Mathematics, Kyung Hee University, Seoul 02447, Republic of Korea
Abstract
Designing linear solvers for discretized partial differential equations requires problem-specific expertise. We present a multi-agent framework, in which language-model agents propose, critique, implement, and evaluate solver configurations assembled from Krylov methods, preconditioners, block factorizations, and neural operators. Inside the proposing agent, a non-dominated sorting genetic evolutionary algorithm evolves the population of meta-solvers toward the Pareto front of six measured quantities, so that one run returns a front of trade-offs rather than a single tuned solver. The system runs on small open-weight language models served on a single laptop, and we compare it with a single agent on four problems. For three-dimensional acoustic scattering and elasticity, it delivers 47 and 48 convergent hybrid solvers out of 60 candidates. Relative to the Jacobi-preconditioned Krylov baselines, the best of the discovered solvers reduce the iteration counts by factors of 4.7 and 60 and the online solve time by factors of 2.3 and 3.0, whereas the single agent produces no executable plan. For coupled dynamic thermoelasticity in two and three dimensions, where the baselines fail, it completes 98 of 100 transient candidates and, compared with the single agent, reaches a given accuracy 15 times faster in two dimensions and a displacement error 20 times lower in three dimensions.
Figures & tables
| ID | Meta-solver | Iterations | Online (s) | Offline (s) | MAC | Rel. error |
| Acoustic scattering, Helmholtz equation at (274,492 complex unknowns) | ||||||
| 0_000 | GMRES(100) with Jacobi, baseline | 1,025 | 21.2 | 1.7 | ||
| 1_001 | FGMRES(50), GAMG with trunk basis , SOR, post-smoothing | rejected by the acceptance test | ||||
| 1_009 | FGMRES(100), balancing TB deflation , ILU | 231 | 10.6 | 6.8 | ||
| 1_012 | FGMRES(100), balancing TB deflation , SOR | 341 | 19.4 | 7.5 | ||
| 1_015 | FGMRES(100), additive TB deflation , ILU | 432 | 16.2 | 7.7 | ||
| ID | Meta-solver | Iterations | Online (s) | MAC | Error in | Error in |
| Two-dimensional dynamic thermoelasticity (4,131 unknowns per step, 4,000 steps) | ||||||
| 0_000 | BiCGStab, Schur FieldSplit with Jacobi on both fields, baseline | diverged | ||||
| MA 1_005 | FGMRES(50), full Schur, Jacobi, balancing deflation of , | 1,387,224 | 237.7 | |||
| MA 1_003 | FGMRES(50), full Schur, ILU, balancing deflation of , | 1,638,060 | 343.2 | |||
| MA 1_011 | FGMRES(50), full Schur, ILU, balancing deflation of , , 4 clusters | 117,370 | 23.1 | |||
| MA 1_007 | FGMRES(50), full Schur, GAMG, balancing deflation of , | 40,453 | 16.8 | |||
| Multi-agent system | Single agent | |
| Acoustic scattering, Helmholtz equation | ||
| Executed candidates, generations 1, 2, 3 | 20, 20, 20 | rejected, rejected, rejected |
| Converged candidates, generations 1, 2, 3 | 11, 16, 20 | 0, 0, 0 |
| Shortest online time (s) | 9.15 ( 2_003 ) | — |
| Candidates faster than the baseline online | 35 of 47 | — |
| Plan repairs requested by the validator | 3 | 6 |
| Planning | Engineering | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Class | System | Input | Output | Min | Input | Output | Min | Repairs | Completed |
| Helmholtz, | multi-agent | 775,289 | 141,241 | 60.6 | 11,667,818 | 49,107 | 30.2 | 3 | 47 of 60 |
| single agent | 331,382 | 32,982 | 14.9 | 0 | 0 | 0.0 | 6 | 0 of 0 | |
| Linear elasticity | multi-agent | 806,120 | 137,992 | 60.3 | 7,371,286 | 36,094 | 16.2 | 4 | 48 of 60 |
| single agent | 343,256 | 54,039 | 27.2 | 0 | 0 | 0.0 | 6 | 0 of 0 | |
| Thermoelasticity 2D | multi-agent | 1,019,346 | 172,095 | 88.6 | 7,308,997 | 29,239 | 21.2 | 6 | 40 of 40 |
| ID | Configuration | Iterations | Online (s) | Offline (s) | MAC | Rel. error | Target |
|---|---|---|---|---|---|---|---|
| 1_001 | FGMRES(50), GAMG with trunk basis , SOR, post-smoothing | rejected by the acceptance test | no | ||||
| 1_002 | FGMRES(50), GAMG with trunk basis , SOR, post-smoothing | rejected by the acceptance test | no | ||||
| 1_003 | FGMRES(50), GAMG with trunk basis , SOR, post-smoothing | rejected by the acceptance test | no | ||||
| 1_004 | FGMRES(50), GAMG with trunk basis , Jacobi, post-smoothing | rejected by the acceptance test | no | ||||
| 1_005 | FGMRES(50), GAMG with trunk basis , SOR, no post-smoothing | rejected by the acceptance test | no | ||||
| 1_006 | FGMRES(20), GAMG with trunk basis , SOR, post-smoothing | rejected by the acceptance test | no | ||||
| ID | Configuration | Iterations | Online (s) | Offline (s) | MAC | Rel. error | Target |
|---|---|---|---|---|---|---|---|
| 1_001 | FGMRES(100), balancing TB deflation , ILU | diverged | no | ||||
| 1_002 | FGMRES(100), balancing TB deflation , ILU | 5,498 | 207.64 | 10.3 | yes | ||
| 1_003 | FGMRES(100), balancing TB deflation , ILU | 5,002 | 246.40 | 12.7 | yes | ||
| 1_004 | FGMRES(100), balancing TB deflation , ILU | 5,002 | 246.89 | 12.6 | yes | ||
| 1_005 | FGMRES(50), GAMG with trunk basis , SOR, no post-smoothing | 46 | 2.93 | 11.8 | yes | ||
| 1_006 | FGMRES(50), GAMG with trunk basis , SOR, no post-smoothing | 46 | 3.00 | 12.0 | yes | ||
| ID | Configuration | Iterations | Online (s) | MAC | Error in | Error in |
|---|---|---|---|---|---|---|
| 1_001 | FGMRES(50), full Schur, ILU, balancing deflation of , | 194,593 | 41.6 | |||
| 1_002 | FGMRES(50), full Schur, ILU, balancing deflation of , | 194,312 | 47.0 | |||
| 1_003 | FGMRES(50), full Schur, ILU, balancing deflation of , | 1,638,060 | 343.2 | |||
| 1_004 | FGMRES(50), full Schur, ILU, balancing deflation of , | 1,620,714 | 404.8 | |||
| 1_005 | FGMRES(50), full Schur, Jacobi, balancing deflation of , | 1,387,224 | 237.7 | |||
| 1_006 | FGMRES(50), full Schur, Jacobi, balancing deflation of , | 1,354,614 | 286.9 ∗ |
| ID | Configuration | Iterations | Online (s) | MAC | Error in | Error in |
|---|---|---|---|---|---|---|
| 2_001 | FGMRES, full Schur, Jacobi, balancing deflation of , | 1,628,396 | 290.1 | |||
| 2_002 | FGMRES, full Schur, Jacobi, additive deflation of , | 1,848,704 | 246.7 | |||
| 2_003 | FGMRES, full Schur, Jacobi, balancing deflation of , | 1,637,076 | 321.6 | |||
| 2_004 | FGMRES, full Schur, Jacobi, balancing deflation of , | 1,628,396 | 291.6 | |||
| 2_005 | FGMRES, full Schur, Jacobi, balancing deflation of , | 1,628,396 | 291.8 | |||
| 2_006 | FGMRES, full Schur, Jacobi, additive deflation of , | 1,801,198 | 223.2 |
| ID | Configuration | Iterations | Online (s) | MAC | Error in | Error in |
|---|---|---|---|---|---|---|
| 1_001 | GMRES, full Schur, ILU, balancing deflation of , | 154,587 | 653.5 | 3.00 | ||
| 1_002 | GMRES, full Schur, ILU, balancing deflation of , | 155,932 | 715.2 | 5.40 | ||
| 1_003 | GMRES, full Schur, ILU, balancing deflation of , | 138,867 | 724.2 | 70.2 | ||
| 1_004 | GMRES, full Schur, ILU, additive deflation of , | 158,984 | 542.2 | 4.26 | ||
| 1_005 | GMRES, full Schur, ICC, balancing deflation of , | 155,932 | 753.9 | 5.40 | ||
| 1_006 | GMRES, full Schur, ILU, balancing deflation of , | 337,601 | 1,254.2 | 25.1 |
| ID | Configuration | Iterations | Online (s) | MAC | Error in | Error in |
|---|---|---|---|---|---|---|
| 2_001 | FGMRES, full Schur, Jacobi, balancing deflation of , | no convergence in the first time step | ||||
| 2_002 | FGMRES, full Schur, Jacobi, balancing deflation of , , 4 clusters | 666,454 | 2,366.1 ∗ | 1.74 | ||
| 2_003 | FGMRES, full Schur, Jacobi, additive deflation of , , 2 clusters | no convergence in the first time step | ||||
| 2_004 | FGMRES, full Schur, Jacobi, additive deflation of , , 8 clusters | stopped at the two-hour limit | ||||
| 2_005 | FGMRES, full Schur, Jacobi, balancing deflation of , , 4 clusters | no convergence in the first time step | ||||
| 2_006 | FGMRES, full Schur, Jacobi, balancing deflation of , | no convergence in the first time step | ||||
| ID | Meta-solver | Iterations | Online (s) | MAC | Rel. error |
| Run 1 (baseline regenerated, 3,743 iterations) | |||||
| 0_000 | CG with Jacobi, baseline | 3,743 | 56.0 | ||
| 1_017 | FGMRES, additive ASM with ILU(0) and trunk-basis coarse space | 594 | 43.7 | ||
| 2_014 | BiCGStab, additive ASM with ILU(0) and trunk-basis coarse space | 198 | 30.9 | ||
| 3_002 | BiCGStab, additive ASM with ILU(0) and trunk-basis coarse space | 167 | 32.8 | ||
| 3_016 | BiCGStab, additive ASM with ILU(2) and trunk-basis coarse space | 103 | 16.7 | ||
PDE Solving
PDE solving develops numerical and learned methods to approximate solutions of partial differential equations across scientific applications.
See all 275 papers