Skip to content

TL;DR 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...

Authors: Youngkyu Lee, Shanqing Liu, Jerome Darbon et al.

Published: 2026-11-25

Categories: cs.AI

arXiv: 2611.31611

License: nonexclusive-distrib-1.0

PDF: download · download markdown

:material-format-quote: Cite this paper

@misc{arxiv_2611_31611,
  title        = {Multi-agent System for Automatic Discovery of Pareto-optimal Meta-solvers for PDEs},
  author       = {Youngkyu Lee and Shanqing Liu and Jerome Darbon and George EM Karniadakis},
  year         = {2026},
  eprint       = {2611.31611},
  archivePrefix = {arXiv},
  url          = {https://arxiv.org/abs/2611.31611}
}

Multi-agent System for Automatic Discovery of Pareto-optimal Meta-solvers for PDEs

Youngkyu Lee1,2,†, Shanqing Liu1,†, Jérôme Darbon1 , and George Em Karniadakis1,*

1Division of Applied Mathematics, Brown University, Providence, RI 02912, USA 2Department of Mathematics, Kyung Hee University, Seoul 02447, Republic of Korea †These authors contributed equally to this work. *Corresponding author: [email protected]

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.

Introduction

The numerical solution of partial differential equations (PDEs) requires the solution of large linear systems, and in many simulation pipelines this step dominates the computational cost. Krylov subspace methods such as conjugate gradients, GMRES, and BiCGStab1–4 are standard tools, and their performance depends on the choice of preconditioner. Multigrid5–7 , domain decomposition8,9 , and incomplete factorizations10 provide classical building blocks, but assembling them into an efficient solver for a given operator remains a task that requires expert knowledge. For example, the indefinite Helmholtz operator at high wave numbers defeats many standard preconditioners unless a complex shift is introduced11–13. Algebraic multigrid can coarsen elasticity operators poorly unless their rigid-body modes are explicitly supplied to the hierarchy7 . Coupled multiphysics operators, in turn, often require block factorizations together with suitable approximations of the Schur complement14–16. Although each of these design choices is well documented, constructing an effective solver for a new operator is still largely a process of trial and error, repeated from one problem to another. This gap between the availability of solver components and their effective composition was also studied17 .

Neural operators18–20 provide an additional class of components for iterative solvers. Due to spectral bias21, a trained operator typically captures the low frequency components of the error more accurately than the high frequency ones, making it complementary to relaxation methods and incomplete factorizations, which tend to have the opposite behavior. Hybrid solvers based on this observation have used neural operators as smoothers, coarse-space approximations, or initial guesses22–30. In previous work17,31,32, the authors referred to such combinations as meta-solvers, parameterized their construction, evaluated the resulting solver configurations, and selected among the Pareto-optimal candidates using a preference function. This approach, however, still requires the design space to be specified manually for each equation and relies on an exhaustive evaluation in which many candidate solvers are ultimately dominated. Earlier work on automatic solver selection instead trained classifiers on matrix features to select a method from a fixed set 33,34 , but did not address the composition of new solver configurations. The automatic composition of solvers by evolution was introduced by EvoStencils 35, which builds geometric multigrid methods from a formal grammar, generates their implementations, measures their performance, and selects them by non-dominated sorting within grammar-guided genetic programming.

Large language models (LLMs) have recently been incorporated into systems for writing and evaluating scientific code, including program search36,37, agent-based systems for chemistry38,39 and research workflows40, and numerical problem solving41–43. Multi-agent debate has also been reported to improve the factual accuracy of model reasoning44. Among the works most closely related to ours, AgenticSciML45 organizes proposer, critic, engineer, and analyst agents around structured debate, a knowledge base, a memory of previous attempts, and evolutionary parent selection. It applies this framework to the design of physicsinformed neural networks and neural operators, and evaluates the contributions of the multi-agent structure and knowledge base through single-agent and knowledge-base ablations. AutoNumerics 46 uses a team of agents to construct and verify complete numerical solvers for PDEs from plain-language descriptions. Neither, however, focuses on the design of preconditioned linear solvers under measured multi-objective criteria, where each proposed solver is implemented in a production library, evaluated on the target discretization, and compared using measured computational cost and accuracy.

In this paper, we introduce a multi-agent system that carries out this solver-design process autonomously (see, Fig. 1). Four agents, a Proposer, a Critic, an Engineer, and an Analyst, cooperate over several generations. The Proposer maintains a population of solver genomes and evolves it using a non-dominated sorting genetic algorithm (NSGA)47, with variation operators generated through reasoning rather than random perturbation. The search is multi-objective from the outset. The population is organized into non-domination fronts according to six measured quantities, with crowding distance used to maintain diversity along each front. As a result, a single run produces a family of trade-off solutions rather than a solver optimized for a single scalar objective, which would recover only one point on the Pareto front and may fail to capture its nonconvex regions 48,49 .

This formulation replaces the exhaustive enumeration used in our earlier meta-solver work17,25,31 with an open-ended search and distinguishes the system from evolutionary agent frameworks driven by a single objective. Each candidate solver is implemented using PETSc50, FEniCSx51, and PyTorch52, executed on the target discretization, and evaluated using a common set of measured metrics. A second question addressed in this paper is what the team of agents contributes beyond a single agent, and at which cost. To answer it under the least favorable conditions for the agents, we run the whole system on small open-weight language models 53,54 served locally on one laptop, so that a discovery has no inference cost and can be repeated by anyone, and we repeat every discovery with a single agent in place of the team. We applied both systems to time-harmonic acoustic scattering at high wave number, three-dimensional linear elasticity on an unstructured mesh, and two-way coupled dynamic thermoelasticity in two and three dimensions. The agent roles, the debate protocol, the genome grammar, the six metrics, the NSGA selection, and the structure of the knowledge base were identical in all four runs. For the two single-physics problems, the multi-agent system produced families of convergent hybrid solvers that improved substantially over the baselines, with different neural roles selected for the two operators, while the single agent did not produce a plan that could

Figure 1. Multi-agent discovery of meta-solvers. a, Overview. The inputs are a scientific problem specified by a plain-language description and a mesh, a baseline solver given by a Krylov method with a Jacobi preconditioner, a knowledge base of numerical methods including pretrained neural operators, and a fixed suite of performance metrics. The multi-agent system returns a meta-solver selected from the Pareto front of the evaluated candidates. The thumbnails illustrate the three problem classes considered in this paper, and the cards give the gains measured with open-weight language models. b, Workflow of one generation. In the debate system, the Proposer generates N proposals and the Critic provides feedback over m rounds. The Engineer implements the resulting plans and runs every candidate on the target problem, while the Analyst measures the metrics for all N candidates. The measured Pareto front is then passed to the Proposer in the next generation, and after G generations, one solver is selected from the final front. Within the Proposer, a non-dominated sorting genetic algorithm (NSGA) evolves the population using the baseline solver, the knowledge base, and the current Pareto front, which is hypothetical in the first generation. The resulting mutated solvers form the proposals for the next generation. c, Genome of a meta-solver, defined in equation (1), together with the alleles available at each locus.

be executed. For the coupled problems, whose baselines fail, the multi-agent system produced solvers that complete the transient, with multigrid block preconditioners that the single agent did not find. Its candidates reach the same accuracy level 15 times faster in two dimensions, meet the temperature target 3.8 times faster in three dimensions, and are more accurate in the displacement, which remains the field that neither system resolves to the prescribed target. The price of the debate is 2.4 to 2.7 times the planning tokens of the single agent.

Results

A multi-agent system that evolves a population of meta-solvers

In this section, we concern meta-solvers for solving the following linear system induced by discretized scientific problems:

\[Au = f\]

where A is a discretized differential operator, u is a discretized solution, and f belongs to the range of A. A preconditioner M−1 , an inexpensive approximation of the action of A −1 , enters in the right-preconditioned form used throughout this paper,

\[AM^{-1}y = f, \qquad u = M^{-1}y,\]

so the Krylov method builds its search directions from residuals of the preconditioned operator AM−1 , whose spectrum governs the iteration count (see Methods for the flexible variants in which M−1 changes between iterations). The system receives four inputs (Fig. 1a). The problem is specified by a plain-language description of the governing equations, boundary conditions, and discretization, together with a mesh file. A baseline solver provides a functional but simple starting point. In our experiments, this is a Krylov method with a Jacobi or block-Jacobi preconditioner. A knowledge base of text documents describes relaxation, Krylov, multigrid, block and Schur-complement, and hybrid neural–classical methods, and makes pretrained neural operators available through interface specifications and saved weights. The output is a set of mutually nondominated candidates, which we call α-solvers, forming a Pareto front from which a solver can be selected according to the user's preferences.

A candidate meta-solver is encoded as a genome (Fig. 1c),

$\(\mathcal{M} = (\mathcal{K}, \mathcal{P}, \mathcal{S}, \mathcal{G}, \theta), \tag{1}\)$

whose loci specify the Krylov accelerator K , the preconditioner topology P, the smoother or field solver S , the role of the neural operator G , and the numerical hyperparameters θ. The preconditioner topology may range from a single-level method to a two-level cycle and, for coupled problems, to Schur-complement FieldSplit factorizations. The neural operator may supply a deflation space, enrich the hierarchy of an algebraic multigrid method, or deflate the field blocks of a coupled system. In the additive setting, a twolevel cycle takes the form

$\(M^{-1} = \mathcal{S} + QA_c^{-1}Q^{\top}, \qquad A_c = Q^{\top}AQ, \tag{2}\)$

where the columns of Q span a coarse space that may, for example, be supplied by the trunk basis of a DeepONet23. Because the loci are symbolic, the genome space consists of compositions of these primitives rather than a fixed set of configurations that can be enumerated in advance. In the runs reported here every candidate is required to contain a neural component, so the search is over hybrid solvers only.

Each candidate is evaluated by the objective vector

$\(\mathcal{J}(\mathcal{M}) = \big( \text{Iterations}(\mathcal{M}), \, \text{MAC}(\mathcal{M}), \, \text{Online time}(\mathcal{M}), \, \text{Error}(\mathcal{M}), \, \text{Residual}(\mathcal{M}), \, \text{Offline time}(\mathcal{M}) \big),\)$ (3)

whose components are the iteration count, the measured multiply-accumulate (MAC), defined in Methods, the wall-clock solve time, the relative L 2 error with respect to a reference solution, the final residual, and the setup time. The search minimizes J in the Pareto sense 48,55 over all six components. We report the first four together with the setup time, which contains the construction of the neural basis, while the final residual is used by the agents primarily as a consistency check during the debate.

The discovery process proceeds in generations (Fig. 1b). In each generation, the Proposer produces N = 20 genomes. The Critic examines every proposal over m = 2 rounds and requests corrections when a combination is inconsistent, for example when a symmetric solver is paired with a nonsymmetric operator or a restarted accelerator is given no restart length. The Proposer then produces an implementation plan. A deterministic validator checks the plan against the interface of the solver library and returns it to the Proposer for repair, at most twice, when a configuration is not admissible. A generation whose plan is still rejected after the repairs has no candidates. The Engineer turns each admissible plan into self-contained PETSc and FEniCSx scripts, executes all candidates, and repairs runtime failures using execution traces. The Analyst extracts the resulting metrics and appends every outcome, including failed runs, to a methodological memory.

Before the next generation, the archive is sorted into non-domination fronts over all six objectives, and each candidate is assigned a crowding distance. The Proposer reads the resulting ranked table and selects parents front by front, breaking ties in favor of larger crowding distance, so that the best candidate for any individual objective is retained. It then generates offspring by crossing and mutating the loci of the selected parents. Each modification is justified using properties of the operator and information from previously recorded failures rather than by random perturbation. Each offspring is also assigned to a niche in the objective space, fewest iterations, lowest arithmetic cost, lowest error, or lowest setup cost, and the Critic checks whether the proposed design is consistent with that niche. We run three generations for each problem, so that the budget of every run is sixty candidates. The Proposer is Qwen3-30B53, the Critic is gpt-oss-20b54 , and the Engineer is Qwen3-Coder-30B56, all served locally. In the single-agent comparison, the Critic and its debate rounds are removed and one Qwen3-Coder model plans and engineers every generation, with the same problem statement, knowledge base, neural operators, validator, repair attempts, baseline, and metrics. The agents, their prompts, and the knowledge base are described in Methods.

Acoustic scattering at high wave number

The first problem is the time-harmonic scattering of a Gaussian beam by a sound-soft obstacle inside the unit cube, governed by the Helmholtz equation with wave number k = 10π and absorbing boundary conditions on the outer faces 57,58 (Fig. 2a). First-order hexahedral elements on a mesh with h = 1/64 yield a complex indefinite system with 274,492 unknowns. The baseline, GMRES(100), GMRES restarting at each 100 iterations, with a Jacobi preconditioner, converges in 1,025 iterations and 21.2 s, with a relative L 2 error of 2.3×10−8 against a MUMPS direct solution59,60. The main difficulty comes from the indefiniteness of the operator. Positive-definite preconditioners and standard multigrid methods can fail or diverge, while the iteration count of diagonally preconditioned Krylov methods increases with k 12 .

Table 1 lists representative candidates, and Fig. 2b shows the converged candidates in the plane of iteration count versus arithmetic complexity. Two neural roles are available for this problem, both built from the trunk basis of a DeepONet23, the enrichment of an algebraic multigrid hierarchy and the deflation of the Krylov method (Methods). In the first generation, the Proposer assigned nine candidates to the first role and eleven to the second. A one-application acceptance test rejected the nine multigrid candidates with residual ratios between 102 and 1036, while all eleven deflation candidates converged. The Proposer of the second generation recorded this outcome and placed every candidate in the deflation family (Supplementary Note 2), and the Critic asked for restart lengths and cluster counts that had not been tried. Sixteen candidates

Figure 2. Acoustic scattering for the Helmholtz equation at k = 10π. a, Magnitude of the total acoustic field for a Gaussian beam scattered by a sound-soft obstacle inside the unit cube, computed using the MUMPS direct reference solution. b, Converged candidates of the multi-agent system from the three generations shown in the plane of iteration count versus measured arithmetic complexity. The black star denotes the GMRES(100), GMRES restarting at every 100 iterations, baseline with Jacobi preconditioning. The orange diamonds denote the candidate with the lowest arithmetic complexity and online time, 2_003, the candidate with the fewest iterations, 3_006, and the candidate with the lowest error, 3_017. c, Online time of the converged candidates against the rank k of the trunk basis used for deflation, for the three families of the population. The dashed line is the online time of the baseline. The single agent executed no candidate for this problem.

of the second generation and all twenty of the third converged.

The arithmetic and time champion, 2_003, uses FGMRES(20) with a balancing deflation of rank 16 around an incomplete LU factorization. It requires 262 iterations, 1.11 × 1011 MAC, and 9.1 s, factors of 3.9, 2.6, and 2.3 below the baseline. The construction of the neural basis adds 6.9 s of offline time, and with it the solver still finishes in 16.0 s against 22.9 s for the baseline. The iteration champion, 3_006, raises the rank to 128 and requires 216 iterations, a factor of 4.7 below the baseline. The accuracy champion, 3_017, uses the additive variant with two clusters and reaches an error of 8.5 × 10−9 , 2.7 times below that of the baseline. Figure 2c explains the shape of the front. A larger basis removes few iterations, 238 at rank 16 against 216 at rank 128 with restart 50, but every application becomes more expensive, so the online time grows from about 9 s to 30 s. The agents found this trade-off within three generations and kept both of its ends. In total 47 of the 60 candidates converged, each with an error at most seven percent above that of the baseline, 45 of them need fewer iterations than the baseline, and 35 are faster in online time.

The single agent did not reach the execution stage on this problem. In the first two generations its planner declared that no executable hybrid configuration existed, and in the third its plan omitted a required field that two repair requests did not restore, so no candidate was run (Table 3).

Linear elasticity on an unstructured mesh

The second problem is the three-dimensional linear elasticity for a mechanical component discretized using first-order vector elements on an unstructured hexahedral mesh with 134,172 nodes (Fig. 3a). The material parameters are E = 210 and ν = 0.3. The resulting symmetric positive-definite system has 402,516 unknowns and 29.5 million nonzero entries. The baseline solver, conjugate gradients with a Jacobi preconditioner, requires 1,920 iterations and 8.9 s.

The agents followed a different route for this problem (Table 1, Fig. 3b). The deflation that was effective for the Helmholtz problem gave no improvement here. Three of the four deflation candidates of the first

Figure 3. Linear elasticity on an unstructured hexahedral mesh. a, Displacement magnitude of the loaded component on the deformed configuration, with the undeformed mesh shown in white, computed using the MUMPS direct reference solution. b, Converged candidates of the multi-agent system from the three generations shown in the plane of iteration count versus measured arithmetic complexity. The black star denotes the conjugate gradient (CG) baseline with Jacobi preconditioning. The orange diamonds denote 1_005, which has the lowest arithmetic complexity and online time, and 1_011, which has the fewest iterations. The two points at the upper right are deflation candidates of the first generation. c, Online time of the converged multigrid candidates against the rank k of the trunk basis that enriches the hierarchy. The dashed line is the online time of the baseline. The single agent executed no candidate for this problem.

generation converged, but they needed more than 5,000 iterations and more than 200 s, and the fourth diverged. By contrast, smoothed-aggregation algebraic multigrid7,61 enriched with the basis induced by Transolver62 converged in 32 to 46 iterations for five of the six candidates whose levels were smoothed by SOR, while the ten candidates that smoothed with Jacobi were rejected by the acceptance test. Candidate 1_005, with eight basis vectors and no post-smoothing, converges in 46 iterations, 2.9 s, and 2.52 × 1010 MAC, and candidate 1_011, with 128 basis vectors, converges in 32 iterations. Relative to the baseline, these results correspond to reductions by factors of 60 in iteration count, 3.0 in online time, and 4.9 in arithmetic complexity.

In the second generation, the Proposer read this evidence from the archive, discarded both the deflation role and the Jacobi smoother, and varied the rank of the basis between 12 and 128 (Supplementary Note 2). All forty candidates of the second and third generations converged, in 32 to 39 iterations and 3.6 to 4.0 s (Fig. 3c). The lowest error of the run, 2.3×10−10, about half that of the baseline, belongs to 3_003. In total 48 of the 60 candidates converged and 45 of them are faster than the baseline in online time.

The gains refer to the online time. The construction of the neural basis and of the multigrid hierarchy takes 12 to 15 s of offline time, so the hybrid solver pays off when the operator is solved more than once, as in a sequence of load cases. Multigrid is the standard approach for elasticity7 , so this run also serves as a control showing that the system discards an unsuitable neural role and recovers the standard expert design from a Jacobi baseline within one generation. The single agent proposed plans in all three generations, but each was rejected for a configuration that the solver library does not admit, and none could be repaired within the allowed attempts (Table 3).

Coupled dynamic thermoelasticity in two dimensions

For given computational spatial domain Ω and the final time tf , the third and fourth problems consider transient, two-way coupled thermoelasticity, in which the temperature T and displacement u of a linear

Table 1. Representative meta-solvers discovered by the multi-agent system for the two single-physics classes. Candidates are labeled by generation and index. Iteration count, online time, offline time, and arithmetic complexity refer to one solve. Error is the relative L 2 error with respect to the MUMPS direct reference, and the selected candidates are shown in bold. TB denotes the trunk basis of the neural operator, of rank k, and GAMG denotes smoothed-aggregation algebraic multigrid. GMRES(m) denotes the GMRES restarting at each m iterations. Furthermore, FGMRES denotes the flexible variant of GMRES. The construction of the neural basis is charged to the offline time. All candidates use the baseline residual tolerance of 10−8 . Complete results for all sixty candidates in each class are provided in Supplementary Tables S2 and S3.

ID Meta-solver Iterations Online (s) Offline (s) MAC 2
Rel. L
error
Acoustic scattering, Helmholtz equation at k = 10π (274,492 complex unknowns)
0_000 GMRES(100) with Jacobi, baseline 1,025 21.2 1.7 2.88×1011 2.25×10−8
1_001 FGMRES(50), GAMG with trunk basis k = 16, SOR,
post-smoothing
rejected by the acceptance test
1_009 FGMRES(100), balancing TB deflation k = 16, ILU 231 10.6 6.8 1.33×1011 2.32×10−8
1_012 FGMRES(100), balancing TB deflation k = 32, SOR 341 19.4 7.5 2.47×1011 2.30×10−8
1_015 FGMRES(100), additive TB deflation k = 32, ILU 432 16.2 7.7 2.05×1011 1.37×10−8
3_005 GMRES(50), balancing TB deflation k = 16, ILU 238 9.5 6.7 1.17×1011 2.33×10−8
2_003 FGMRES(20), balancing TB deflation k = 16, ILU 262 9.1 6.9 1.11×1011 2.34×10−8
3_006 GMRES(50), balancing TB deflation k = 128, ILU 216 30.1 18.0 3.23×1011 2.34×10−8
3_017 FGMRES(50), additive TB deflation k = 64, 2 clusters, 1,377 57.0 10.3 7.09×1011 8.46×10−9
ILU
Linear elasticity on an unstructured hexahedral mesh (402,516 unknowns)
0_000 CG with Jacobi, baseline 1,920 8.9 2.8 1.23×1011 4.41×10−10
1_002 FGMRES(100), balancing TB deflation k = 32, ILU 5,498 207.6 10.3 2.33×1012 7.29×10−8
1_013 FGMRES(50), GAMG with trunk basis k = 16, Jacobi,
post-smoothing
rejected by the acceptance test
1_007 FGMRES(50), GAMG with trunk basis k = 32, SOR,
post-smoothing
38 4.0 12.6 3.18×1010 5.47×10−9
2_017 FGMRES(50), GAMG with trunk basis k = 12, SOR,
post-smoothing
38 3.9 12.0 3.10×1010 1.83×10−9
2_014 FGMRES(50), GAMG with trunk basis k = 120, SOR,
post-smoothing
32 3.6 14.6 2.78×1010 6.28×10−9
1_005 FGMRES(50), GAMG with trunk basis k = 8, SOR, no
post-smoothing
46 2.9 11.8 2.52×1010 1.00×10−9
1_011 FGMRES(50), GAMG with trunk basis k = 128, SOR,
post-smoothing
32 3.6 14.5 2.78×1010 1.65×10−9
3_003 FGMRES(50), GAMG with trunk basis k = 66, SOR,
post-smoothing
34 3.8 13.9 2.94×1010 2.26×10−10

thermoelastic body satisfy63,64

$\(\begin{cases} \rho c_{\varepsilon} \frac{\partial T}{\partial t} = \nabla \cdot (\kappa \nabla T) + Q - \beta T_{0} \operatorname{tr} \left( \frac{\partial \varepsilon(\mathbf{u})}{\partial t} \right), & \text{in } \Omega \times (0, t_{f}], \\ \nabla \cdot \sigma(\mathbf{u}) = \rho \frac{\partial^{2} \mathbf{u}}{\partial t^{2}}, & (4) \end{cases}\)$

where

\[\begin{cases} \boldsymbol{\varepsilon}(\mathbf{u}) = \frac{1}{2} \left( \nabla \mathbf{u} + (\nabla \mathbf{u})^T \right), \\ \boldsymbol{\varepsilon}^{\text{th}} = \boldsymbol{\alpha} \left( T - T_0 \right) \mathbf{I}, \\ \boldsymbol{\sigma}(\mathbf{u}) = \mathbf{C} : \left( \boldsymbol{\varepsilon} - \boldsymbol{\varepsilon}^{\text{th}} \right). \end{cases}\]

Figure 4. Two-way coupled dynamic thermoelasticity in two dimensions. a, The strip with its boundary conditions and the temperature after 4,000 time steps. The left edge is heated and clamped axially, the right edge is cooled, the origin is pinned, and the remaining boundary is insulated and traction-free. b, Completed candidates of the multiagent system and of the single agent in the plane of online time over the 4,000 steps versus final relative error of the displacement. The baseline diverged and is not shown. The black diamonds mark the fastest candidate of each system at the common accuracy level, \(1\_007\) of the multi-agent system and \(2\_002\) of the single agent. Several candidates of the single agent coincide. c, The same candidates in the plane of final temperature error versus final displacement error. The dashed lines are the target of \(10^{-4}\) in each field.

The coupling modulus is \(\beta = 3K\alpha\) , with K the bulk modulus and \(\alpha\) the thermal expansion coefficient. The last term in the energy balance represents the thermoelastic coupling through which the rate of dilatation feeds back into the temperature. The material is an aluminium-like benchmark whose parameters are given in Supplementary Note 1. One end of the body is held at \(T_h = 333.15\) K and clamped in the axial direction, while the opposite end is held at \(T_c = 293.15\) K. The remaining boundary is insulated and traction-free, and the body starts from rest at \(T_0 = 293.15\) K.

The Crank-Nicolson step65 for the temperature and the trapezoidal Newmark step66 for the momentum balance, with \(\Delta t = 1/400\) over 4,000 steps up to \(t_f = 10\) , yield at each step the block system

$\(\begin{bmatrix} K_{TT} & K_{Tu} \\ K_{uT} & K_{uu} \end{bmatrix} \begin{bmatrix} \mathbf{x}_T \\ \mathbf{x}_u \end{bmatrix} = \begin{bmatrix} \mathbf{b}_T \\ \mathbf{b}_u \end{bmatrix}. \tag{5}\)$

Here, \(K_{TT}\) is the parabolic temperature block, \(K_{uu}\) combines the mass and stiffness contributions of the displacement equation, and the off-diagonal blocks represent the two-way coupling. This coupling makes a block-diagonal preconditioner inadequate. The solver is called 4,000 times in each run, and all metrics are accumulated over the full transient.

The two-dimensional problem is a strip of length 0.1 and height 0.02, with 1,377 nodes and 4,131 unknowns at each time step (Fig. 4a). The baseline uses BiCGStab with a Schur-complement FieldSplit and Jacobi preconditioning on both fields, and it fails to converge. A reference trajectory, computed with the same block structure and MUMPS factorizations of both fields formed once and reused at every step, is used to define the accuracy target. We measure the final relative \(L^2\) error of the temperature and of the displacement separately, and we regard a candidate as accurate when both are at most \(10^{-4}\) . This is stricter than a criterion on the combined field, which is dominated by the temperature because the temperature is of order 300 K while the displacement is of order \(10^{-5}\) m (see Methods). One neural role is available for the coupled problems, the deflation of one or both field blocks with a basis built from a multi-field Transolver.

Starting from the failed baseline, all twenty candidates of the first generation of the multi-agent system completed the 4,000 steps (Table 2, Fig. 4b). During the debate the Critic had pointed out that the first

proposal applied conjugate gradients to the nonsymmetric block system, and the final plan used FGMRES around a full Schur factorization in every candidate (Supplementary Note 2). The Proposer spread the candidates over the block preconditioner, with incomplete LU, Jacobi, or algebraic multigrid on the two blocks, over the deflated field, and over the rank and the clustering of the basis. Nine candidates meet the temperature target, with errors down to 1.2×10−5 . The four candidates with multigrid on both blocks need the fewest iterations and are the most accurate in the displacement. Candidate 1_007 needs 40,453 cumulative iterations, about ten per step, and 16.8 s, against 1.4 million iterations and 238 s for the same deflation around Jacobi blocks in 1_005, and its displacement error is 9.9×10−3 . The lowest displacement error, 8.0×10−3 , belongs to 1_020. The second generation replaced FGMRES by GMRES. Its candidates are faster still, down to 13.2 s, but none of them meets the temperature target, and the archive keeps this as negative evidence. The plan of the third generation was rejected by the validator for incomplete block options.

The single agent had its first plan rejected and executed two generations. It kept Jacobi on both blocks in all forty candidates, and its two generations contain only six and five distinct results. The twenty candidates of its second generation meet the temperature target, and the best of them, 2_002, reaches a displacement error of 9.0 × 10−3 after 1.8 million iterations and 247 s. Its third generation made the same change to GMRES and lost the temperature accuracy in the same way.

The two systems therefore reach the same accuracy level, and they differ in the cost of reaching it. At a temperature error below 10−4 and a displacement error near 10−2 , the solver found by the multi-agent system needs 15 times less online time, 46 times fewer iterations, and 16 times less arithmetic than the solver found by the single agent (Fig. 4b). No candidate of either system meets the target in the displacement (Fig. 4c), which we discuss after the three-dimensional results.

Dynamic thermoelasticity in three dimensions

The three-dimensional problem is a slab of size 0.1 by 0.02 by 0.01 with the same material, boundary conditions, and time stepping, discretized on a hexahedral mesh with 12,393 nodes. Each time step therefore requires solving a coupled system with 49,572 unknowns (Fig. 5a). The baseline, FGMRES with a block-Jacobi Schur FieldSplit, does not finish within its time limit. A reference trajectory, computed with a full Schur FieldSplit and MUMPS factorizations of both blocks formed once and reused, defines the accuracy target as in two dimensions.

The multi-agent system executed all three generations, and 58 of its 60 candidates completed the transient (Table 2, Fig. 5b). In the first generation, the most accurate candidate, 1_016, FGMRES with a rank-10 deflation of the displacement block around incomplete LU factorizations, reaches a temperature error of 1.6×10−5 and a displacement error of 5.0×10−2 , at the price of 1.35 million iterations and 5,777 s. The fifteen candidates of this generation that used GMRES returned temperature errors near 10−2 , while the three completed candidates under FGMRES met the temperature target, and the Proposer of the second generation kept FGMRES in all twenty candidates. The second generation kept this parent and mutated the clustering of the basis. With 32 clusters and both blocks deflated, 2_017 reaches the lowest displacement error of the run, 4.2 × 10−2 , in 84,159 iterations and 459 s, that is, 16 times fewer iterations and 13 times less time than 1_016, with a temperature error of 1.2×10−4 . The number of candidates that meet the temperature target rose from three to twelve. The third generation crossed the clustered basis with multigrid on the displacement block. All twenty of its candidates completed in 409 to 881 s, and 3_016 reaches the lowest temperature error, 6.1×10−7 , in 48,000 iterations, twelve per step, and 435 s (Fig. 5c).

The single agent had its first plan rejected, and 19 of the 40 candidates of its two executed generations completed. Eleven did not converge in the first time step and ten exceeded the time limits. As in two dimensions, every candidate uses Jacobi on both blocks. Fifteen candidates meet the temperature target, the

Figure 5. Two-way coupled dynamic thermoelasticity in three dimensions. a, The slab with its hexahedral mesh. The face at x = 0 is heated and clamped axially, the face at x = 0.1 is cooled, and the remaining boundary is insulated and traction-free. b, Completed candidates of the multi-agent system and of the single agent in the plane of cumulative iterations versus measured arithmetic complexity over 4,000 steps. The baseline did not finish and is not shown. The black diamonds mark 2_017 of the multi-agent system, with the lowest displacement error, 3_016 of the multi-agent system, with the lowest temperature error, and 2_017 of the single agent, its most accurate candidate. c, The same candidates in the plane of online time versus final relative error of the displacement. d, The same candidates in the plane of final temperature error versus final displacement error. The dashed lines are the target of \(10^{-4}\) in each field.

fastest in 1,651 s, and the lowest displacement error is 0.83.

Among the candidates that meet the temperature target, the fastest solver of the multi-agent system is therefore 3.8 times faster than that of the single agent, and the lowest displacement error is 17 times smaller, or 20 times smaller among all completed candidates (Fig. 5c,d). The displacement remains the open part of the coupled problems. No candidate of either system reaches \(10^{-4}\) in this field in two or three dimensions, and tightening the residual tolerance to \(10^{-9}\) lowers the temperature error to \(3 \times 10^{-6}\) and leaves the displacement error above one (2_011, 2_013). We attribute this to the stopping test, which acts on the residual of the combined system, where the temperature rows dominate, so that a test on each field is the first change to make.

Multi-agent system versus single agent

Table 3 and Fig. 6 collect the comparison over the four problems. The first difference is whether a generation can be executed at all. The multi-agent system passed the validator in eleven of its twelve generations and

Table 2. Representative meta-solvers for the two coupled thermoelastic instances. MA and SA denote the multiagent system and the single agent. Iteration count, online time, and arithmetic complexity are accumulated over the 4,000 time steps. The errors are the final relative L 2 errors of the temperature T and of the displacement u with respect to the MUMPS Schur-FieldSplit reference, and the selected candidates are shown in bold. In each candidate description, the Schur factorization type is followed by the preconditioner of the temperature and displacement blocks, by the deflated field, and by the rank k of the neural basis. The residual tolerance is 10−8 unless stated. Complete results are given in Supplementary Tables S4 to S7.

ID Meta-solver Iterations Online (s) MAC Error in T Error in u
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
u, k = 20
1,387,224 237.7 1.92×1012 3.3×10−5 2.8×10−2
MA 1_003 FGMRES(50), full Schur, ILU, balancing deflation of
T, k = 20
1,638,060 343.2 2.34×1012 1.2×10−5 1.0×10−2
MA 1_011 FGMRES(50), full Schur, ILU, balancing deflation of
u, k = 20, 4 clusters
117,370 23.1 1.61×1011 1.1×10−4 2.2×10−2
MA 1_007 FGMRES(50), full Schur, GAMG, balancing
deflation of u, k = 20
40,453 16.8 1.19×1011 5.5×10−5 9.9×10−3
MA 1_020 FGMRES(50), full Schur, GAMG, balancing
deflation of T, k = 40
40,228 27.5 2.12×1011 4.2×10−5 8.0×10−3
MA 2_011 GMRES, full Schur, GAMG, balancing deflation of u,
k = 20, 4 clusters
32,000 13.2 1.04×1011 6.8×10−3 0.91
SA 2_006 FGMRES, full Schur, Jacobi, additive deflation of u,
k = 32
1,801,198 223.2 1.73×1012 4.9×10−5 3.0×10−2
SA 2_002 FGMRES, full Schur, Jacobi, additive deflation of u,
k = 64
1,848,704 246.7 1.94×1012 1.7×10−5 9.0×10−3
SA 3_012 GMRES, full Schur, Jacobi, additive deflation of u,
k = 32, tolerance 10−9
514,370 64.5 4.97×1011 1.0×10−2 2.63
Three-dimensional dynamic thermoelasticity (49,572 unknowns per step, 4,000 steps)
0_000 FGMRES, Schur FieldSplit with Jacobi on both fields,
baseline
not finished within the time limit
MA 1_014 GMRES, full Schur, ILU, additive deflation of T and u,
k = 20
139,970 515.8 4.00×1012 2.5×10−2 8.07
MA 1_016 FGMRES, full Schur, ILU, balancing deflation of u,
k = 10
1,354,075 5,777.1 4.97×1013 1.6×10−5 5.0×10−2
MA 2_005 FGMRES, full Schur, GAMG, balancing deflation of u,
k = 20
55,850 588.1 5.07×1012 9.0×10−5 0.32
MA 2_011 FGMRES, full Schur, ILU, balancing deflation of u,
k = 20, tolerance 10−9
702,214 3,292.6 2.78×1013 3.4×10−6 5.19
MA 2_016 FGMRES, full Schur, ILU, balancing deflation of u,
k = 20, 32 clusters
89,872 404.9 3.51×1012 1.6×10−4 1.27
MA 2_017 FGMRES, full Schur, ILU, balancing deflation of T
and u, k = 20, 32 clusters
84,159 458.7 3.88×1012 1.2×10−4 4.2×10−2
MA 3_016 FGMRES, full Schur, ILU and GAMG, balancing
deflation of u, k = 15, 64 clusters
48,000 434.9 3.66×1012 6.1×10−7 0.60
MA 3_018 FGMRES, full Schur, ICC, additive deflation of u,
k = 20, 32 clusters
137,756 516.7 3.58×1012 9.0×10−5 0.14
SA 3_008 FGMRES, full Schur, Jacobi, additive deflation of u,
k = 24, 4 clusters
637,471 1,650.6 1.29×1013 7.6×10−5 2.25
SA 2_017 FGMRES, upper Schur, Jacobi, additive deflation of
u, k = 16
2,487,948 5,559.0 4.32×1013 8.9×10−6 0.83

Table 3. Multi-agent system and single agent on the four problems. Both systems use the same problem statement, knowledge base, neural operators, solver library, validator, baseline, metrics, and budget of three generations of twenty candidates. A generation is marked as rejected when its plan did not pass the validator after two repairs, in which case no candidate was executed. For the thermoelastic problems, a candidate is completed when it ran the 4,000 steps and returned all metrics, and the temperature target is a final relative error at or below 10−4 . Planning covers the Proposer and, for the multi-agent system, the Critic, and engineering covers the implementation, the repairs, and the analysis of the results.

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 tokens, input and output (million) 0.78 and 0.14 0.33 and 0.03
Engineering tokens (million) 11.72 0
Model time, planning and engineering (min)
Linear elasticity
61 and 30 15 and 0
Executed candidates, generations 1, 2, 3 20, 20, 20 rejected, rejected, rejected
Converged candidates, generations 1, 2, 3 8, 20, 20 0, 0, 0
Shortest online time (s)
Candidates faster than the baseline online
2.93 (1_005)
45 of 48
—
—
Plan repairs requested by the validator 4 6
Planning tokens, input and output (million) 0.81 and 0.14 0.34 and 0.05
Engineering tokens (million) 7.41 0
Model time, planning and engineering (min) 60 and 16 27 and 0
Dynamic thermoelasticity in two dimensions
Executed candidates, generations 1, 2, 3 20, 20, rejected rejected, 20, 20
Completed candidates 40 of 40 40 of 40
Candidates meeting the target in both fields 0 0
Candidates meeting the temperature target 9 20
Distinct results among completed candidates 40 11
Lowest displacement error 8.0×10−3
(1_020)
9.0×10−3
(2_002)
Shortest online time at the temperature target (s) 16.8 (1_007) 223.2 (2_006)
Wall-clock time of the benchmark jobs (h) 0.8 2.2
Plan repairs requested by the validator 6 6
Planning tokens, input and output (million) 1.02 and 0.17 0.40 and 0.05
Engineering tokens (million) 7.34 6.47
Model time, planning and engineering (min) 89 and 21 29 and 17
Dynamic thermoelasticity in three dimensions
Executed candidates, generations 1, 2, 3 20, 20, 20 rejected, 20, 20
Completed candidates 58 of 60 19 of 40
Candidates meeting the target in both fields 0 0
Candidates meeting the temperature target 23 15
Distinct results among completed candidates 52 17
Lowest displacement error 4.2×10−2
(2_018)
0.83 (2_017)
Shortest online time at the temperature target (s) 434.9 (3_016) 1,650.6 (3_008)
Wall-clock time of the benchmark jobs (h) 24.2 28.6
Plan repairs requested by the validator 5 5
Planning tokens, input and output (million) 0.97 and 0.16 0.36 and 0.07
Engineering tokens (million) 11.08 4.61
Model time, planning and engineering (min) 87 and 31 40 and 12

Figure 6. Multi-agent system (MA) and single agent (SA) on the four problems. a, Outcome of the budget of sixty candidates of every run. A generation whose plan was rejected by the validator contributes twenty candidates that were not executed. b, Planning tokens, input and output, summed over the three generations. c, Lowest final displacement error among the completed candidates of the thermoelastic problems. The dashed line is the target. d, Shortest online time among the thermoelastic candidates that meet the temperature target.

the single agent in four of twelve, although both received the same feedback and the same number of repair attempts. Of the 240 candidates of its budget, the multi-agent system executed 220 and completed 193, while the single agent executed 80 and completed 59 (Fig. 6a). The plans of the single agent failed on the interface of the solver library, with a missing field, a Krylov method that a module does not admit, or options in the wrong form, or its planner stopped with the statement that no executable configuration existed. In the multi-agent system such defects are met twice before the validator sees the plan, since the Critic reviews two drafts, and the same Critic removed the error of applying conjugate gradients to a nonsymmetric system.

The second difference is the quality of what is executed. For the two single-physics problems, only the multi-agent system returns solvers, 95 in total, with the gains over the baselines given above. For the two coupled problems, where both systems return candidates, those of the multi-agent system are more diverse, 40 and 52 distinct results against 11 and 17, they reach the common accuracy level 15 times faster in two dimensions, and they are 3.8 times faster and 20 times more accurate in the displacement in three dimensions (Fig. 6c,d). The origin of this difference is visible in the archive. The single agent never left the Jacobi block preconditioner of the baseline, while the Proposer and the Critic explored incomplete factorizations and multigrid on the blocks.

The third difference is the cost. The debate consumes 0.92 to 1.19 million planning tokens per problem, 2.4 to 2.7 times those of the single agent, and 60 to 89 minutes of model time against 15 to 40 minutes (Fig. 6b). For transient problems, however, the cost of a discovery is dominated by the execution of the

candidates, not by the language models. In three dimensions the benchmark jobs of the multi-agent system ran for 24.2 hours and returned 58 completed candidates, and those of the single agent ran for 28.6 hours and returned 19, that is, 25 minutes against 90 minutes of computation per completed candidate. In two dimensions the corresponding figures are 1.2 and 3.3 minutes. The additional planning tokens are therefore repaid by a better use of the computing time, and with locally served models they have no monetary cost.

Reliability, transparency, and cost of the discovery

Two properties of the discovery process matter beyond the best solver. The first is reliability, defined as the fraction of proposed candidates that run to completion (Fig. 7a). For the multi-agent system this fraction increases across generations, from 11, 8, and 18 completed candidates out of 20 in the first generation to 20, 20, and 20 in the third for the Helmholtz, elasticity, and three-dimensional thermoelastic problems. We attribute the increase in reliability to the archive of measured results read by the Proposer before each generation. The gain over the baseline is established early, in the first or second generation (Fig. 7b), and the later generations extend the front, since the iteration and accuracy champions of the Helmholtz problem and the accuracy champion of the elasticity problem belong to the third generation. For the three-dimensional thermoelastic problem, the lowest displacement error and the tenfold reduction in time appear in the second generation (Fig. 7c).

The second property is transparency. Every candidate is a script that can be re-executed, every metric is measured through library instrumentation, and the debate transcripts record the reasoning behind each design decision. Supplementary Note 2 gives examples, including the Proposer's decision to abandon the multigrid role for the Helmholtz operator after the acceptance test, and the Critic's objection to conjugate gradients for the coupled system.

The cost of discovery contains no fee for language-model inference, because all models are served on the laptop that also runs the candidates. The token counts and model times are listed in Supplementary Note 3. The remaining cost comes from executing the candidates and depends on the problem size, from half an hour for the single-physics problems to one day for the three-dimensional transient.

Discussion

The central result is that one agent protocol, with its roles, genome grammar, metrics, and selection rule held fixed and driven by small open-weight language models on a laptop, produced solver families that a numerical analyst would recognize as appropriate for their respective operators. These are Krylov methods with an incomplete factorization and a deflation by the learned basis for the indefinite Helmholtz problem, where multigrid was tried and rejected, smoothed-aggregation multigrid enriched with the learned basis for elasticity, where deflation was tried and rejected, and Schur-complement block preconditioners with multigrid on the blocks and a deflation by the learned basis for the coupled problems. None of these choices was specified in the problem statements. The agents made them from measurements, by assigning the first generation to competing roles and reading the outcome from the archive.

The multi-objective evolution shaped this outcome and is the part of the design we consider new. By maintaining a non-dominated population spread by crowding distance, a single run produced an arithmetic and time champion (2_003) alongside an iteration champion (3_006) and an accuracy champion (3_017) for Helmholtz, a time champion alongside an iteration champion and an accuracy champion for elasticity, and a displacement-accuracy champion (2_017) alongside a temperature-accuracy champion (3_016) for the three-dimensional thermoelastic problem. A single-objective evolution would retain only one member of each group. The niches assigned by the Proposer play a similar role by directing its reasoning toward

Figure 7. Progress of the discovery across generations for the four problem classes. a, Number of candidates of the multi-agent system that ran to completion among the 20 proposed in each generation. For the Helmholtz and elasticity problems completion means convergence to the prescribed tolerance. The plan of the third generation of the two-dimensional thermoelastic problem was rejected by the validator. b, Gain in online time over the Jacobi-preconditioned Krylov baseline of the fastest converged candidate in each generation of the multi-agent system, for the single-physics problems. The dashed line indicates parity with the baseline. c, Lowest final displacement error among the completed candidates in each generation for the thermoelastic problems, for the multi-agent system (solid lines) and the single agent (dashed lines). The dashed horizontal line is the target.

less explored parts of the front. The final choice remains with the user, through a preference function 31, the differential-game exploration developed in related work 67, or continuation along the front, which can reach disconnected parts from a single member 49. The selected solvers are non-dominated among the evaluated candidates, but the search does not certify that better compositions do not exist outside the candidates visited in each run.

The comparison with the single agent shows what the team contributes when the language models are small. A single small model that must plan and satisfy the interface of the solver library at once fails at the interface in two thirds of its generations, and when it succeeds it stays close to the baseline. Separating the roles gives each proposal two reviews before it is validated, and the review is where both the formal defects and the numerical ones, such as a symmetric method for a nonsymmetric system, are removed. The team therefore turns models that cannot complete the task alone into a system that completes it, at 2.4 to 2.7 times the planning tokens and with a more economical use of the computing time spent on the candidates. In our earlier experiments with large proprietary models, a single agent was able to reach solvers comparable to those of the team, so we expect the benefit of the team to be largest in the regime studied here, where the models are small, local, and free of charge.

The closest relatives of this work are automatic meta-solver discovery 17,31 and AgenticSciML 45. The former frameworks use the same Pareto view of solver design but enumerate a manually specified design space. AgenticSciML 45 uses a similar agent team for physics-informed networks and neural operators, with evolutionary selection driven by a single objective and with single-agent and knowledge-base controls. The present work applies agents to preconditioned Krylov solvers, where each candidate is an executable composition of library primitives tested on the target discretization. It replaces both enumeration and a single objective with non-dominated sorting over six measured quantities, includes the block structure of coupled problems, and reports the single-agent control for every problem with models that can be run without a provider.

However, several limitations remain. For the coupled problems, no candidate meets the accuracy target in the displacement, and the comparison between the two systems rests there on the completed candidates,

their errors, and their cost. A stopping test on each field and a scaling of the displacement block are the next steps for these problems. The gains of the single-physics solvers are gains in online time, and with the offline construction of the neural basis included the best elasticity solver is slower than the baseline for a single solve. Every candidate was required to contain a neural component, so the runs do not isolate what the neural operator contributes beyond the classical part of each solver. The single agent plans with the model of the Engineer, so the comparison removes the Critic and changes the planning model together. The runs are stochastic because the LLMs sample their proposals, and we report one run per system and problem, so the variability between runs is not quantified. The discretizations are fixed and linear. Extending the approach to nonlinear or adaptively refined problems, where a Newton iteration surrounds the linear solve30,68, is left for future work. Finally, the knowledge base and the solver library are written by people and limit what the agents can compose. The system automates the search over these compositions, where much of solver design effort is spent, and records each step so that the resulting solver can be checked and ported by a person.

Methods

Problem classes and discretizations

All four problems were discretized with first-order Lagrange finite elements in FEniCSx51 and assembled into PETSc matrices50,61. The Helmholtz problem is posed on Ω = (0,1) 3 minus a sound-soft scatterer Ωs ⊂ Ω, with

\[\begin{cases} -\Delta u - k^2 u = 0, & \text{in } \Omega \setminus \bar{\Omega}_s, \\\nu = 0, & \text{on } \partial \Omega_s, \\ \frac{\partial u}{\partial n} - iku = g, & \text{on } \Gamma_{inc}, \\ \frac{\partial u}{\partial n} - iku = 0, & \text{on } \Gamma_{abs}, \end{cases}\]

where ∂Ω = Γinc ∪Γabs, Γinc = {(x,y,z): z = 1}. The Gaussian beam g is given by

\[\begin{cases} R = 0.5kw_0^2, \\ r^2 = (x - 0.5)^2 + (y - 0.5)^2, \\ q = (z - 0.5) + iR, \\ u_{inc}(x, y, z) = \frac{iR}{q} e^{-ikz} e^{-ik\frac{z^2}{2q}}, \\ g(x, y, z) = \frac{\partial u_{inc}}{\partial n} - iku_{inc}. \end{cases}\]

Here, we set w0 = 0.15 and k = 10π. Hexahedral Gauss-Lobatto-Legendre elements with h = 1/64 and collocated quadrature yield a complex system with 274,492 unknowns.

For given wrench shaped domain Ω ⊂ (0,1) 3 , ∂Ω = ΓD ∪ΓT ∪ΓN, ΓD denotes the wrench hole and ΓT denotes the top of the left jaw of the wrench, the elasticity problem is given by

\[\begin{cases} -\nabla \cdot \boldsymbol{\sigma}(\mathbf{u}) = \mathbf{f}, & \text{in } \Omega, \\ \boldsymbol{\sigma}(\mathbf{u}) = \lambda \operatorname{tr}(\boldsymbol{\varepsilon}(\mathbf{u})) \mathbf{I} + 2\mu \boldsymbol{\varepsilon}(\mathbf{u}), \\ \boldsymbol{\varepsilon}(\mathbf{u}) = \frac{1}{2} (\nabla \mathbf{u} + (\nabla \mathbf{u})^T), & \\ \mathbf{u} = \mathbf{0}, & \text{on } \Gamma_D, \\ \boldsymbol{\sigma}(\mathbf{u}) \cdot \mathbf{n} = \mathbf{g}, & \text{on } \Gamma_T, \\ \boldsymbol{\sigma}(\mathbf{u}) \cdot \mathbf{n} = \mathbf{0}, & \text{on } \Gamma_N, \end{cases}\]

where \(\mathbf{f} = \mathbf{0}\) and \(\mathbf{g} = ((0,0,-0.2) \cdot \mathbf{n}) \mathbf{n}\) . With E = 210, v = 0.3, \(\lambda = \frac{vE}{(1+v)(1-2v)}\) , and \(\mu = \frac{E}{2(1+v)}\) , the system has 402,516 unknowns.

The thermoelastic problems are given by equation (4) on the strip \((0,0.1) \times (0,0.02)\) and the slab \((0,0.1) \times (0,0.02) \times (0,0.01)\) , with the material and boundary data stated in Results, mesh size h = 1/800, time step \(\Delta t = 2h = 1/400\) , and 4,000 steps. The temperature equation is advanced by Crank-Nicolson and the momentum balance by the trapezoidal rule. The thermal stress uses the same trapezoidal weights, yielding the block system in equation (5), with entries given in Supplementary Note 1. Both problems retain the inertial term and the two-way coupling.

Baseline solvers and reference solutions

For each problem, the baseline is a functional but simple Krylov solver, prepared before the discovery together with the problem definition, shared by the multi-agent system and the single agent, and executed with the same instrumentation as all later candidates. The baselines are right-preconditioned GMRES with restart 100 and Jacobi preconditioning for Helmholtz, conjugate gradients with Jacobi preconditioning for elasticity, and a global BiCGStab or FGMRES iteration around a PETSc Schur-complement FieldSplit with Jacobi-preconditioned field solves for thermoelasticity. The two thermoelastic baselines fail, the first by divergence and the second by not finishing within its time limit of 1,800 s, so both systems start from a failed baseline for these problems and no gain over the baseline is defined. The stopping criterion is a relative residual tolerance of 10-8 for the single-physics problems and for most transient candidates, with a tolerance of 10-7 or 10-9 in a few transient candidates. The reference solutions for the single-physics problems are MUMPS direct solves 59,60 of the same assembled systems. For thermoelasticity, the reference trajectory is computed using the same Schur-FieldSplit topology with MUMPS factorizations of both field blocks, formed once and reused for all 4,000 steps, under FGMRES with a relative tolerance of 10-11. This trajectory serves only as the accuracy target of the transient classes. Candidates whose outer preconditioner is a complete LU or Cholesky factorization are direct solves and are excluded from the search.

Performance metrics

Six quantities are recorded for every candidate using definitions fixed in a shared document read by the agents. The error and arithmetic count are

$\(e(\mathcal{M}) = \frac{\|u_{\mathcal{M}} - u_{\text{ref}}\|_{L^{2}(\Omega)}}{\|u_{\text{ref}}\|_{L^{2}(\Omega)}}, \quad \text{MAC}(\mathcal{M}) = \sum_{k=1}^{N_{t}} \left(F_{k}^{\text{PETSc}} + n_{k}^{\text{NO}}C_{\text{NO}}\right),\)$ (6)

where \(u_{\mathcal{M}}\) and \(u_{\text{ref}}\) are the finite-element solutions of the candidate and reference, \(N_t\) is the number of solves, one for the single-physics problems and 4,000 for the transient problems, \(F_k^{\text{PETSc}}\) is the number

of floating-point operations recorded by the PETSc counters during solve k and summed over all ranks, \(n_k^{\rm NO}\) is the number of neural forward passes during that solve, and \(C_{\rm NO}\) is the multiply-accumulate count of one forward pass measured by THOP69. The error is the \(L^2(\Omega)\) norm of the fields, evaluated at the final time for the transient problems. For thermoelasticity, it is computed for the temperature and for the displacement separately, and the error of a candidate is the larger of the two. The norm of the combined field, \(\|(T,\mathbf{u})\|^2 = \|T\|^2 + \|\mathbf{u}\|^2\) , is also recorded. Since the temperature is near 300 K while the displacement is near \(10^{-5}\) m, the temperature dominates the combined norm by about seven orders of magnitude, so that a criterion on the combined field does not resolve the displacement accuracy, and we use the criterion on each field. Only the final state is compared, so no trajectory error is available.

The arithmetic count is measured rather than estimated. PETSc counts each floating-point operation once, while the neural part counts one unit per multiply-accumulate, so a neural contribution is undercounted by a factor of two relative to the classical part. We retain the name MAC used in the metric document, although the quantity is the sum defined in equation (6). In the runs reported here the neural operators are evaluated to build the bases, and this work is charged to the offline time. The residual is \(\|\mathbf{b} - A\mathbf{x}\|_2\) , recomputed from the converged solution after the final iteration. Offline time includes mesh generation, assembly, solver setup, loading of the neural operator, and construction of the neural basis. Online time covers the solve and excludes warm-up. The iteration count refers to the outer Krylov method. For the transient problems, iteration count, online time, and arithmetic are accumulated over all 4,000 steps.

A candidate of the single-physics problems is successful when it converges to the tolerance and returns the six metrics, and we report in addition whether its error is within ten times that of the baseline. A candidate of the transient problems is completed when it runs the 4,000 steps and returns the metrics, and it is successful when the final error is at most \(10^{-4}\) in each field. All timings were taken with one job at a time, on one MPI rank and one thread. The time limits are 1,800 s per job for the single-physics problems and two hours for the transient problems. In three dimensions a job is also stopped when a time step exceeds 120 s or when, after 100 steps, the projected time exceeds 1.5 times the limit.

Genome and discovery space

The Krylov locus \(\mathcal{K}\) ranges over CG, restarted GMRES, BiCGStab, and the flexible variants FGMRES and FBCGS, which admit variable or nonlinear preconditioners \(^{70}\) . The topology locus \(\mathscr{P}\) includes single-level preconditioners, two-level cycles of the form equation (2) and their deflation variants, multigrid hierarchies, and, for block systems, Schur-complement FieldSplit preconditioners with diagonal, upper, lower, or full factorization. The smoother locus \(\mathcal S\) includes Jacobi, SOR, ILU and ICC, and smoothed-aggregation algebraic multigrid with PETSc GAMG7,61. The neural locus \(\mathscr{G}\) includes a deflation space of rank k obtained from the trunk basis of a DeepONet or the internal representation of a Transolver, the enrichment of a multigrid hierarchy with the same basis, and the deflation of one or both field blocks of a coupled system. The hyperparameter locus \(\theta\) contains the restart length, the rank k, the number of clusters of the basis, the deflation mode, the use of post-smoothing, and the stopping tolerances. For the coupled problems, the smoother locus splits into a temperature-block solver \(\mathscr{S}_T\) and a displacement-block solver \(\mathscr{S}_u\) , each drawn from the same menu, giving \(\mathcal{M} = (\mathcal{K}, \mathcal{P}, \mathcal{S}_T, \mathcal{S}_u, \mathcal{G}, \theta)\) . The block preconditioners and neural roles are defined in the next two subsections. In the runs reported here, the genome is realized through a solver library with one module for each neural role. A candidate is a configuration of one module, written by the Proposer in a structured form, and the validator checks it against the fields and the values that the module admits before it is executed.

Two-level cycles and block preconditioners

With right preconditioning, the Krylov method is applied to \(AM^{-1}y = f\) , and the solution is recovered as \(u = M^{-1}y\) . Flexible accelerators allow \(M^{-1}\) to vary between iterations. For the single-physics problems, the two-level cycles take the additive form in equation (2) or the multiplicative form

\[M^{-1}r = \mathcal{S}r + QA_c^{-1}Q^{\top}(r - A\mathcal{S}r), \tag{7}\]

where the coarse correction acts on the residual left after one application of the smoother. For the block systems in equation (5), write

\[\mathbf{K} = \begin{bmatrix} A & B \\ C & D \end{bmatrix}, \qquad A = K_{TT}, \quad B = K_{Tu}, \quad C = K_{uT}, \quad D = K_{uu}, \qquad S = D - CA^{-1}B, \tag{8}\]

where S is the Schur complement of the temperature block, giving

\[\mathbf{K} = \begin{bmatrix} I & 0 \\ CA^{-1} & I \end{bmatrix} \begin{bmatrix} A & 0 \\ 0 & S \end{bmatrix} \begin{bmatrix} I & A^{-1}B \\ 0 & I \end{bmatrix}. \tag{9}\]

The inverse of this factorization would be an ideal preconditioner, but \(A^{-1}\) and \(S^{-1}\) are dense. A Schurcomplement FieldSplit preconditioner replaces the action of \(A^{-1}\) by the temperature-block solver \(\mathscr{S}_T\) and that of \(S^{-1}\) by the displacement-block solver \(\mathscr{S}_u\) applied to an approximation \(\widehat{S}\) . The topology locus determines which factors are retained. The diagonal type keeps only the middle factor, the lower and upper types retain one triangular factor, and the full type retains all three. The upper type, for example, is

$\(M^{-1} = \begin{bmatrix} \widehat{A}^{-1} & -\widehat{A}^{-1}B\widehat{S}^{-1} \\ 0 & \widehat{S}^{-1} \end{bmatrix}.\)$ (10)

In all the transient candidates reported here, the Schur complement is approximated by the displacement block, \(\widehat{S} = D\) . The multi-agent system used the full type throughout, and the single agent used the full, upper, and lower types. A block-Jacobi choice of \(\widehat{A}^{-1}\) and \(\widehat{S}^{-1}\) takes no account of the spectrum of the stiff displacement block, which is consistent with the failure of the thermoelastic baselines and with the cost of the candidates that keep Jacobi on both blocks.

Role of the neural operator

A DeepONet represents its output as

\[\mathscr{G}(r)(\mathbf{x}) = \sum_{j=1}^{k} \beta_j(r) \tau_j(\mathbf{x}), \tag{11}\]

where the branch coefficients \(\beta_j\) depend on the input and the trunk functions \(\tau_j\) form a fixed learned basis. Sampling the trunk functions at the mesh nodes, zeroing the Dirichlet rows, and orthonormalizing the columns gives the matrix \(Q \in \mathbb{R}^{n \times k}\) in equation (2), which we call the trunk basis (TB). The coarse operator \(A_c = Q^{\top}AQ\) is formed once and factored. For Transolver, the internal node representation before the output head is used in the same way, and for the transient problems the basis is built from the multi-field Transolver for the temperature block, the displacement block, or both. The basis may also be split over c clusters of the mesh nodes, which localizes its columns. The basis is built before the solve, and its construction is charged to the offline time.

The solver library exposes three roles for this basis. In the deflation role, used for the Helmholtz problem, the coarse correction \(QA_c^{-1}Q^{\top}\) is combined with a single-level preconditioner \(\mathscr{S}\) , either additively as in equation (2) or in the balancing form 71

$\(M^{-1} = (I - QA_c^{-1}Q^{\top}A) \mathcal{S}(I - AQA_c^{-1}Q^{\top}) + QA_c^{-1}Q^{\top},\)$ (12)

which removes the span of Q from the part of the residual seen by \(\mathscr{S}\) . In the multigrid role, used for the elasticity problem, the columns of Q enrich a smoothed-aggregation hierarchy, whose levels are smoothed by Jacobi or SOR, with or without post-smoothing, under a flexible outer method. In the block-deflation role, used for the coupled problems, the deflation is applied inside the Schur-complement FieldSplit to the solver of one or both field blocks. Before a candidate of the first two roles is run, an acceptance test applies its preconditioner once and rejects the candidate when the residual grows by more than a factor of ten. Such a rejection is recorded in the archive as an experimental outcome and is not repaired.

Agents and protocol

All language models are open-weight models served locally by Ollama72 with a context window of 131,072 tokens, one request at a time. In the multi-agent system, the Proposer uses Qwen3-30B53, the Critic uses gpt-oss-20b54, and the Engineer and the Analyst use Owen3-Coder-30B56. Each generation begins with two rounds in which the Proposer presents N=20 candidates with their parents, crossovers, mutations, and expected niches. The Critic returns a verdict on each candidate, after which the Proposer issues a final plan. The Proposer receives the problem statement, metric definitions, neural-operator interfaces, the current Pareto state of the archive with front indices and crowding distances, and the full results history. A deterministic validator then checks the final plan against the interface of the solver library. When it finds an inadmissible configuration, it returns the list of defects to the Proposer, which may submit a corrected plan up to two times. If the plan is still rejected, or if the Proposer reports that it cannot produce an executable plan, the generation has no candidates. The Engineer instantiates each candidate of an admissible plan as a self-contained script, runs the twenty candidates one at a time, records their outputs, and repairs candidates that fail at runtime from their traces. Candidates that still fail are recorded together with the evidence. The Analyst combines deterministic parsing of the execution logs with a model-written observation for each candidate, while the orchestrator computes the non-dominated sorting and crowding distances of the archive before each generation. Every prompt, response, plan, script, and metric file is retained. In the single-agent comparison, one Qwen3-Coder-30B model writes the final plan of each generation directly, with no Critic and no debate rounds, and the same model engineers and analyses the candidates. It reads the same problem statement, knowledge base, neural-operator interfaces, and archive of measured results, and it is subject to the same validator, the same two repair attempts, the same baseline, and the same limits. The single agent therefore differs from the multi-agent system in two respects, the absence of the Critic and the model that plans. Token counts and model times of both systems are reported in Supplementary Note 3, with planning and engineering counted separately.

NSGA-driven proposal

The selection follows the non-dominated sorting genetic algorithm47. A candidate \(\mathcal{M}_a\) dominates \(\mathcal{M}_b\) , written \(\mathcal{M}_a \prec \mathcal{M}_b\) , when

$\(\mathcal{J}_i(\mathcal{M}_a) \le \mathcal{J}_i(\mathcal{M}_b)\)$ for all \(i = 1, ..., 6\) and \(\mathcal{J}_j(\mathcal{M}_a) < \mathcal{J}_j(\mathcal{M}_b)\) for some \(j\) , (13)

and the archive A of all evaluated candidates is partitioned into fronts

\[\mathcal{F}_1 = \{ \mathcal{M} \in \mathcal{A} : \text{ no } \mathcal{M}' \in \mathcal{A} \text{ satisfies } \mathcal{M}' \prec \mathcal{M} \},\]
\[\mathcal{F}_{k+1} = \{ \mathcal{M} \in \mathcal{A}_k : \text{ no } \mathcal{M}' \in \mathcal{A}_k \text{ satisfies } \mathcal{M}' \prec \mathcal{M} \},\]
\[\mathcal{A}_k = \mathcal{A} \setminus (\mathcal{F}_1 \cup \dots \cup \mathcal{F}_k).\]
\[(14)\]

The sorting uses all six components of equation 3, so the first front can be broad, and candidates within it are ordered by crowding distance. For each objective, the candidates are sorted and the crowding distance of M is

$\(d(\mathcal{M}) = \sum_{i=1}^{6} \frac{\mathcal{J}_i(\mathcal{M}_i^+) - \mathcal{J}_i(\mathcal{M}_i^-)}{\max_{\mathcal{A}} \mathcal{J}_i - \min_{\mathcal{A}} \mathcal{J}_i},\)$ (15)

where M+ i and M− i are the neighbours of M in the ordering by objective i. The two extreme candidates for each objective receive infinite distance. Parents are selected front by front, with ties broken in favor of larger crowding distance, so that the best candidate for each individual objective is retained and the population remains spread along the front rather than collapsing to one region. Failed candidates remain in the archive with the values they reached, or with penalty values when none are available, so the sorting also records unsuccessful designs. In the first generation, the archive contains only the baseline, and the Proposer combines it with archetypes from the knowledge base, such as a deflation by the trunk basis or a multigrid hierarchy enriched with it. In later generations, crossover recombines loci from two parents, while mutations replace an allele at one locus, such as the smoother, the accelerator, the rank or the clustering of the basis, or the block preconditioner. The Proposer is asked to distribute offspring across niches of the objective space, including fewest iterations, lowest complexity, lowest error, and cheapest setup, and to state the expected niche of each candidate for the Critic to check.

Knowledge base and neural operators

The knowledge base consists of Markdown documents on classical relaxation and Krylov methods, domain decomposition, and multigrid4,73, hybrid neural-classical solvers including HINTS22, trunk-basis coarse spaces 23, and deflation71,74, meta-solver construction and multi-objective selection17,31, the complex shifted-Laplacian preconditioner11, block and Schur-complement preconditioning14,16, and the NSPOD construction75. In the runs reported here, the knowledge base also contains a capability document of the solver library, which states for each module the admissible fields and values. The pretrained operators are provided through interface specifications, implementation files, and saved weights. For Helmholtz, the operator is a DeepONet18 with 128 basis functions whose branch network takes the boundary data and wave number and whose trunk network takes the coordinates, together with three variants using Kolmogorov-Arnold trunk networks with Legendre, Chebyshev, or Jacobi bases. For elasticity, the operator is a Transolver62,76 with hidden dimension 128, 32 physics slices, 8 attention heads, and depth 5, mapping the load and coordinates to the displacement. For thermoelasticity, the operator is a multi-field Transolver with two subnetworks of the same size that map the current temperature and displacement, time, and coordinates to the fields at the next step. All operators were trained offline on trajectories from the corresponding problem families and then frozen, so discovery incurs inference cost only. In the runs reported here, each operator enters through the roles of the solver library described above, the deflation and the multigrid enrichment for the single-physics problems and the block deflation for the coupled problems.

Selection on the Pareto front

The discovery returns the front F1 of the final archive. A single solver is selected from this front by applying a preference function p to the rescaled objectives, following our previous work31,32. Any increasing p selects a Pareto-optimal candidate. In this paper, we report candidates selected by simple preferences including the fewest iterations, lowest arithmetic complexity, lowest online time, and lowest error. A finer exploration of the front, including its nonconvex parts, is possible through the differential-game representation developed in our related work67 or by continuation in the hyperparameters θ, which traces the front as a curve and crosses scalarization singularities rather than restarting beyond them49. The user may also impose constraints such as a memory ceiling or an accuracy floor through the preference function.

Software and hardware

The candidates were implemented in Python using petsc4py50, FEniCSx51, MUMPS59, PyTorch52, and THOP69. The language models and all candidates were run on one Apple M5 Max laptop with 18 cores and 64 GB of memory. The timings of the thermoelastic candidates include a load of about two cores from the orchestration process, which is the same for both systems, and seventeen timings affected by system sleep, battery operation, or external load were measured again in isolation, with identical iteration counts, residuals, and errors (Supplementary Note 4).

Use of large language models

Large language models (LLM) are components of the method reported here and were used as described above in the Proposer, Critic, Engineer, and Analyst roles. All numerical results were produced by the generated scripts and were measured by library instrumentation, and all model outputs are archived. The text of this manuscript was drafted by the authors with the assistance of a LLM (Claude, Anthropic). The authors assume full responsibility for all mathematical content, statements, computational results, and the final manuscript.

Statistics and reproducibility

One discovery run of three generations with a budget of twenty candidates per generation is reported for each of the four problems and each of the two systems, eight runs in total. The numbers of completed and successful candidates, iteration counts, arithmetic complexities, and errors are exact measurements from these runs and have no sampling variability, and the timings are single measurements. Language-model sampling of the proposals is the only source of randomness between runs, and its effect was not measured by repeating the runs. Every candidate can be re-executed from its archived script, and complete results for all 300 executed candidates are provided in Supplementary Tables S2 to S7. Two runs on a heterogeneous Poisson problem, made with an earlier configuration of the system, are compared in Supplementary Note 5.

Data availability

The problem statements, meshes, reference solutions, generated solver scripts, execution logs, metric files, and debate transcripts of the eight discovery runs, four with the multi-agent system and four with the single agent, and of the two Poisson runs are available from the corresponding author upon reasonable request and will be deposited in a public repository upon publication.

Code availability

The orchestration code of the multi-agent system, the knowledge base, and the pretrained neural operators will be made available in a public repository upon publication.

Acknowledgements

This work was supported by the DARPA DIAL grant HR00112490484. The computations were carried out on the Oscar cluster of the Center for Computation and Visualization at Brown University.

Author contributions

Y.L. and S.L. designed the multi-agent system, carried out the discovery runs, and analyzed the results. J.D. and G.E.K. supervised the research. GEK proposed the original idea. All authors wrote the manuscript.

Competing interests

The authors declare no competing interests.

References

  • [1] Magnus R. Hestenes and Eduard Stiefel. Methods of conjugate gradients for solving linear systems. Journal of Research of the National Bureau of Standards, 49(6):409–436, 1952.
  • [2] Youcef Saad and Martin H. Schultz. GMRES: A generalized minimal residual algorithm for solving nonsymmetric linear systems. SIAM Journal on Scientific and Statistical Computing, 7(3):856–869, 1986.
  • [3] Henk A. van der Vorst. Bi-CGSTAB: A fast and smoothly converging variant of Bi-CG for the solution of nonsymmetric linear systems. SIAM Journal on Scientific and Statistical Computing, 13(2):631–644, 1992.
  • [4] Yousef Saad. Iterative Methods for Sparse Linear Systems. SIAM, Philadelphia, 2 edition, 2003.
  • [5] Ulrich Trottenberg, Cornelis W. Oosterlee, and Anton Schüller. Multigrid. Academic Press, San Diego, 2001.
  • [6] John W. Ruge and Klaus Stüben. Algebraic multigrid. In Stephen F. McCormick, editor, Multigrid Methods, pages 73–130. SIAM, Philadelphia, 1987.
  • [7] Petr Vanek, Jan Mandel, and Marian Brezina. Algebraic multigrid by smoothed aggregation for second ˇ and fourth order elliptic problems. Computing, 56(3):179–196, 1996.
  • [8] Andrea Toselli and Olof Widlund. Domain Decomposition Methods: Algorithms and Theory. Springer, Berlin, 2005.
  • [9] Jinchao Xu. Iterative methods by space decomposition and subspace correction. SIAM Review, 34(4): 581–613, 1992.

  • [10] Michele Benzi. Preconditioning techniques for large linear systems: A survey. Journal of Computational Physics, 182(2):418–477, 2002.

  • [11] Yogi A. Erlangga, Cornelis Vuik, and Cornelis W. Oosterlee. On a class of preconditioners for solving the Helmholtz equation. Applied Numerical Mathematics, 50(3–4):409–425, 2004.
  • [12] Oliver G. Ernst and Martin J. Gander. Why it is difficult to solve Helmholtz problems with classical iterative methods. In Ivan G. Graham, Thomas Y. Hou, Omar Lakkis, and Robert Scheichl, editors, Numerical Analysis of Multiscale Problems, pages 325–363. Springer, Berlin, 2012.
  • [13] Martin J. Gander and Hui Zhang. A class of iterative solvers for the Helmholtz equation: Factorizations, sweeping preconditioners, source transfer, single layer potentials, polarized traces, and optimized Schwarz methods. SIAM Review, 61(1):3–76, 2019.
  • [14] Michele Benzi, Gene H. Golub, and Jörg Liesen. Numerical solution of saddle point problems. Acta Numerica, 14:1–137, 2005.
  • [15] Howard C. Elman, David J. Silvester, and Andrew J. Wathen. Finite Elements and Fast Iterative Solvers: With Applications in Incompressible Fluid Dynamics. Oxford University Press, Oxford, 2 edition, 2014.
  • [16] Jed Brown, Matthew G. Knepley, David A. May, Lois Curfman McInnes, and Barry Smith. Composable linear solvers for multiphysics. In 2012 11th International Symposium on Parallel and Distributed Computing, pages 55–62. IEEE, 2012.
  • [17] Youngkyu Lee, Shanqing Liu, Jérôme Darbon, and George Em Karniadakis. Automatic discovery of optimal meta-solvers for time-dependent nonlinear PDEs. arXiv preprint arXiv:2507.00278, 2025.
  • [18] Lu Lu, Pengzhan Jin, Guofei Pang, Zhongqiang Zhang, and George Em Karniadakis. Learning nonlinear operators via DeepONet based on the universal approximation theorem of operators. Nature Machine Intelligence, 3(3):218–229, 2021.
  • [19] Zongyi Li, Nikola B. Kovachki, Kamyar Azizzadenesheli, Burigede Liu, Kaushik Bhattacharya, Andrew Stuart, and Anima Anandkumar. Fourier neural operator for parametric partial differential equations. In International Conference on Learning Representations, 2021.
  • [20] Nikola Kovachki, Zongyi Li, Burigede Liu, Kamyar Azizzadenesheli, Kaushik Bhattacharya, Andrew Stuart, and Anima Anandkumar. Neural operator: Learning maps between function spaces with applications to PDEs. Journal of Machine Learning Research, 24(89):1–97, 2023.
  • [21] Nasim Rahaman, Aristide Baratin, Devansh Arpit, Felix Draxler, Min Lin, Fred Hamprecht, Yoshua Bengio, and Aaron Courville. On the spectral bias of neural networks. In Proceedings of the 36th International Conference on Machine Learning, pages 5301–5310, 2019.
  • [22] Enrui Zhang, Adar Kahana, Alena Kopanicáková, Eli Turkel, Rishikesh Ranade, Jay Pathak, and ˇ George Em Karniadakis. Blending neural operators and relaxation methods in PDE numerical solvers. Nature Machine Intelligence, 6(11):1303–1313, 2024.
  • [23] Alena Kopanicáková and George Em Karniadakis. DeepONet based preconditioning strategies for ˇ solving parametric linear systems of equations. SIAM Journal on Scientific Computing, 47(1):C151– C181, 2025.

  • [24] Adar Kahana, Enrui Zhang, Somdatta Goswami, George Karniadakis, Rishikesh Ranade, and Jay Pathak. On the geometry transferability of the hybrid iterative numerical solver for differential equations. Computational Mechanics, 72(3):471–484, 2023.

  • [25] Youngkyu Lee, Shanqing Liu, Zongren Zou, Adar Kahana, Eli Turkel, Rishikesh Ranade, Jay Pathak, and George Em Karniadakis. Fast meta-solvers for 3D complex-shape scatterers using neural operators trained on a non-scattering problem. arXiv preprint arXiv:2405.12380, 2024.
  • [26] Yael Azulay and Eran Treister. Multigrid-augmented deep learning preconditioners for the Helmholtz equation. SIAM Journal on Scientific Computing, 45(3):S127–S151, 2023.
  • [27] Markus Götz and Hartwig Anzt. Machine learning-aided numerical linear algebra: Convolutional neural networks for the efficient preconditioner generation. In 2018 IEEE/ACM 9th Workshop on Latest Advances in Scalable Algorithms for Large-Scale Systems (scalA), pages 49–56. IEEE, 2018.
  • [28] Daniel Greenfeld, Meirav Galun, Ronen Basri, Irad Yavneh, and Ron Kimmel. Learning to optimize multigrid PDE solvers. In Proceedings of the 36th International Conference on Machine Learning, pages 2415–2423, 2019.
  • [29] Ilay Luz, Meirav Galun, Haggai Maron, Ronen Basri, and Irad Yavneh. Learning algebraic multigrid using graph neural networks. In Proceedings of the 37th International Conference on Machine Learning, pages 6489–6499, 2020.
  • [30] Jaemin Oh, Youngkyu Lee, Jérôme Darbon, and George Em Karniadakis. Spectrally safe neural operator warm-starts for large-scale Newton solvers. arXiv preprint arXiv:2606.21828, 2026.
  • [31] Youngkyu Lee, Shanqing Liu, Jérôme Darbon, and George Em Karniadakis. Automatic discovery of optimal meta-solvers via multi-objective optimization. Journal of Computational Physics, 2026. In press, arXiv:2412.00063.
  • [32] Qianying Cao, Shanqing Liu, Alan John Varghese, Jérôme Darbon, Michael S. Triantafyllou, and George Em Karniadakis. Automatic selection of the best neural architecture for time series forecasting. Nature Communications, 2026. doi: 10.1038/s41467-026-73687-9.
  • [33] Sanjukta Bhowmick, Victor Eijkhout, Yoav Freund, Erika Fuentes, and David Keyes. Application of machine learning to the selection of sparse linear solvers. Technical report, Columbia University, 2006. Technical report.
  • [34] Paul R. Eller, Jing-Ru C. Cheng, and Robert S. Maier. Dynamic linear solver selection for transient simulations using machine learning on distributed systems. In 2012 IEEE 26th International Parallel and Distributed Processing Symposium Workshops & PhD Forum, pages 1523–1532. IEEE, 2012.
  • [35] Jonas Schmitt, Sebastian Kuckuk, and Harald Köstler. EvoStencils: a grammar-based genetic programming approach for constructing efficient geometric multigrid methods. Genetic Programming and Evolvable Machines, 22(4):511–537, 2021. doi: 10.1007/s10710-021-09412-w.
  • [36] Bernardino Romera-Paredes, Mohammadamin Barekatain, Alexander Novikov, Matej Balog, M. Pawan Kumar, Emilien Dupont, Francisco J. R. Ruiz, Jordan S. Ellenberg, Pengming Wang, Omar Fawzi, Pushmeet Kohli, and Alhussein Fawzi. Mathematical discoveries from program search with large language models. Nature, 625(7995):468–475, 2024.

  • [37] Alexander Novikov, Ngân Vu, Marvin Eisenberger, Emilien Dupont, Po-Sen Huang, Adam Zsolt Wag- ˜ ner, Sergey Shirobokov, Borislav Kozlovskii, Francisco J. R. Ruiz, Abbas Mehrabian, et al. AlphaEvolve: A coding agent for scientific and algorithmic discovery. arXiv preprint arXiv:2506.13131, 2025.

  • [38] Daniil A. Boiko, Robert MacKnight, Ben Kline, and Gabe Gomes. Autonomous chemical research with large language models. Nature, 624(7992):570–578, 2023.
  • [39] Andres M. Bran, Sam Cox, Oliver Schilter, Carlo Baldassari, Andrew D. White, and Philippe Schwaller. Augmenting large language models with chemistry tools. Nature Machine Intelligence, 6(5):525–535, 2024.
  • [40] Chris Lu, Cong Lu, Robert Tjarko Lange, Jakob Foerster, Jeff Clune, and David Ha. The AI Scientist: Towards fully automated open-ended scientific discovery. arXiv preprint arXiv:2408.06292, 2024.
  • [41] Juan Diego Toscano, Daniel T. Chen, and George Em Karniadakis. ATHENA: Agentic team for hierarchical evolutionary numerical algorithms. arXiv preprint arXiv:2512.03476, 2025.
  • [42] Juan Diego Toscano, Zhaojie Chai, and George Em Karniadakis. GRAFT-ATHENA: Self-improving agentic teams for autonomous discovery and evolutionary numerical algorithms. arXiv preprint arXiv:2605.11117, 2026.
  • [43] Shanda Li, Tanya Marwah, Junhong Shen, Weiwei Sun, Andrej Risteski, Yiming Yang, and Ameet Talwalkar. CodePDE: An inference framework for LLM-driven PDE solver generation. arXiv preprint arXiv:2505.08783, 2025.
  • [44] Yilun Du, Shuang Li, Antonio Torralba, Joshua B. Tenenbaum, and Igor Mordatch. Improving factuality and reasoning in language models through multiagent debate. arXiv preprint arXiv:2305.14325, 2023.
  • [45] Qile Jiang and George Em Karniadakis. AgenticSciML: collaborative multi-agent systems for emergent discovery in scientific machine learning. npj Artificial Intelligence, 2:57, 2026. doi: 10.1038/s44387-026-00102-5.
  • [46] Jianda Du, Youran Sun, and Haizhao Yang. AutoNumerics: an autonomous, PDE-agnostic multi-agent pipeline for scientific computing. arXiv preprint arXiv:2602.17607, 2026.
  • [47] Kalyanmoy Deb, Amrit Pratap, Sameer Agarwal, and T. Meyarivan. A fast and elitist multiobjective genetic algorithm: NSGA-II. IEEE Transactions on Evolutionary Computation, 6(2):182–197, 2002.
  • [48] Kaisa Miettinen. Nonlinear Multiobjective Optimization. Kluwer Academic Publishers, Boston, 1999.
  • [49] Arjun Manoj, Michail E. Kavousanakis, Shanqing Liu, and Ioannis G. Kevrekidis. Singularities in multi-objective optimization and their crossing during continuation. arXiv preprint arXiv:2607.02803, 2026.
  • [50] Lisandro D. Dalcin, Rodrigo R. Paz, Pablo A. Kler, and Alejandro Cosimo. Parallel distributed computing using Python. Advances in Water Resources, 34(9):1124–1139, 2011.
  • [51] Igor A. Baratta, Joseph P. Dean, Jørgen S. Dokken, Michal Habera, Jack S. Hale, Chris N. Richardson, Marie E. Rognes, Matthew W. Scroggs, Nathan Sime, and Garth N. Wells. DOLFINx: the next generation FEniCS problem solving environment. preprint, 2023.

  • [52] Adam Paszke, Sam Gross, Francisco Massa, Adam Lerer, James Bradbury, Gregory Chanan, Trevor Killeen, Zeming Lin, Natalia Gimelshein, Luca Antiga, et al. PyTorch: An imperative style, highperformance deep learning library. Advances in Neural Information Processing Systems, 32:8024– 8035, 2019.

  • [53] An Yang, Anfeng Li, Baosong Yang, Beichen Zhang, Binyuan Hui, et al. Qwen3 technical report. arXiv preprint arXiv:2505.09388, 2025.
  • [54] OpenAI. gpt-oss-120b & gpt-oss-20b model card. arXiv preprint arXiv:2508.10925, 2025.
  • [55] Yair Censor. Pareto optimality in multiobjective problems. Applied Mathematics and Optimization, 4 (1):41–59, 1977.
  • [56] Qwen Team. Qwen3-Coder. Open-weight language model for code, https://github.com/QwenLM/ Qwen3-Coder, 2025.
  • [57] Frank Ihlenburg. Finite Element Analysis of Acoustic Scattering. Springer, New York, 1998.
  • [58] David Colton and Rainer Kress. Inverse Acoustic and Electromagnetic Scattering Theory. Springer, New York, 3 edition, 2013.
  • [59] Patrick R. Amestoy, Iain S. Duff, Jean-Yves L'Excellent, and Jacko Koster. A fully asynchronous multifrontal solver using distributed dynamic scheduling. SIAM Journal on Matrix Analysis and Applications, 23(1):15–41, 2001.
  • [60] Patrick R. Amestoy, Alfredo Buttari, Jean-Yves L'Excellent, and Theo Mary. Performance and scalability of the block low-rank multifrontal factorization on multicore architectures. ACM Transactions on Mathematical Software, 45(1):2:1–2:26, 2019.
  • [61] Satish Balay, Shrirang Abhyankar, Mark F. Adams, Jed Brown, Peter Brune, Kris Buschelman, Lisandro Dalcin, Alp Dener, Victor Eijkhout, William Gropp, et al. PETSc users manual. Technical Report ANL-95/11 - Revision 3.12, Argonne National Laboratory, 2019.
  • [62] Haixu Wu, Huakun Luo, Haowen Wang, Jianmin Wang, and Mingsheng Long. Transolver: A fast transformer solver for PDEs on general geometries. In Proceedings of the 41st International Conference on Machine Learning, 2024.
  • [63] Witold Nowacki. Thermoelasticity. Pergamon Press, Oxford, 2 edition, 1986.
  • [64] Bruno A. Boley and Jerome H. Weiner. Theory of Thermal Stresses. Wiley, New York, 1960.
  • [65] John Crank and Phyllis Nicolson. A practical method for numerical evaluation of solutions of partial differential equations of the heat-conduction type. Mathematical Proceedings of the Cambridge Philosophical Society, 43(1):50–67, 1947.
  • [66] Nathan M. Newmark. A method of computation for structural dynamics. Journal of the Engineering Mechanics Division, 85(3):67–94, 1959.
  • [67] Shanqing Liu, Paula Chen, Youngkyu Lee, and Jérôme Darbon. Algorithms and differential game representations for exploring nonconvex Pareto fronts in high dimensions. arXiv preprint arXiv:2602.11515, 2026.
  • [68] Youngkyu Lee, Shanqing Liu, Jérôme Darbon, and George Em Karniadakis. A neural-operator preconditioned Newton method for accelerated nonlinear solvers. arXiv preprint arXiv:2511.08811, 2025.

  • [69] Ligeng Zhu. THOP: PyTorch-OpCounter. Software, https://github.com/ultralytics/thop, 2019.

  • [70] Youcef Saad. A flexible inner-outer preconditioned GMRES algorithm. SIAM Journal on Scientific Computing, 14(2):461–469, 1993.
  • [71] Jok M. Tang, Reinhard Nabben, Cornelis Vuik, and Yogi A. Erlangga. Comparison of two-level preconditioners derived from deflation, domain decomposition and multigrid methods. Journal of Scientific Computing, 39(3):340–370, 2009.
  • [72] Ollama. Ollama. Software for serving language models locally, version 0.40.16, https://ollama. com, 2026.
  • [73] Susanne C. Brenner and L. Ridgway Scott. The Mathematical Theory of Finite Element Methods. Springer, New York, 3 edition, 2008.
  • [74] Jason Frank and Cornelis Vuik. On the construction of deflation-based preconditioners. SIAM Journal on Scientific Computing, 23(2):442–462, 2001.
  • [75] Francesc Levrero-Florencio, Youngkyu Lee, Jay Pathak, and George Em Karniadakis. NSPOD: accelerating the convergence of Krylov-based iterative linear solvers via approximated PODs. arXiv preprint arXiv:2605.07828, 2026.
  • [76] Huakun Luo, Haixu Wu, Hang Zhou, Lanxiang Xing, Yichen Di, Jianmin Wang, and Mingsheng Long. Transolver++: An accurate neural solver for PDEs on million-scale geometries. In Proceedings of the 42nd International Conference on Machine Learning, 2025.

Supplementary Information

Multi-agent system for automatic discovery of Pareto-optimal meta-solvers for PDE

Supplementary Note 1. Governing equations and discretizations

Helmholtz scattering

On the unit cube \(\Omega = (0,1)^3\) with a sound-soft scatterer \(\Omega_s\) , the complex field u satisfies

$\(\begin{cases} \Delta u + k^2 u = 0 & \text{in } \Omega \setminus \bar{\Omega}_s, \\ u = 0 & \text{on } \partial \Omega_s, \\ \partial_n u - iku = g & \text{on } \Gamma_{inc} = \{z = 1\}, \\ \partial_n u - iku = 0 & \text{on } \Gamma_{abs}, \end{cases}\)$ (S1)

where \(k=10\pi\) and \(\Gamma_{abs}\) consists of the remaining outer faces. The incident field is the Gaussian beam \(u_{inc}(x,y,z)=\frac{iR}{q}e^{-ikz}e^{-ikr^2/(2q)}\) , with \(R=\frac{1}{2}kw_0^2\) , \(w_0=0.15\) , \(r^2=(x-0.5)^2+(y-0.5)^2\) , and q=(z-0.5)+iR. The boundary datum is \(g=\partial_n u_{inc}-iku_{inc}\) . The weak form is

\[\int_{\Omega} \left( \nabla u \cdot \nabla \bar{v} - k^2 u \bar{v} \right) d\mathbf{x} - ik \int_{\Gamma_{inc} \cup \Gamma_{abs}} u \bar{v} ds = \int_{\Gamma_{inc}} g \bar{v} ds, \tag{S2}\]

and first-order Lagrange elements on hexahedra with Gauss-Lobatto-Legendre nodes and quadrature yield a complex indefinite system with 274,492 unknowns.

Linear elasticity

The displacement u of the component satisfies

\[\begin{cases} -\nabla \cdot \sigma(\mathbf{u}) = \mathbf{0} & \text{in } \Omega, \\ \mathbf{u} = \mathbf{0} & \text{on } \Gamma_D, \\ \sigma(\mathbf{u})\mathbf{n} = \mathbf{g} & \text{on } \Gamma_T, \\ \sigma(\mathbf{u})\mathbf{n} = \mathbf{0} & \text{on } \Gamma_N, \end{cases} \qquad \sigma(\mathbf{u}) = \lambda \operatorname{tr} \varepsilon(\mathbf{u}) \mathbf{I} + 2\mu \varepsilon(\mathbf{u}), \quad \varepsilon(\mathbf{u}) = \frac{1}{2} \left( \nabla \mathbf{u} + (\nabla \mathbf{u})^{\top} \right), \qquad (S3)\]

with traction \(\mathbf{g} = ((0,0,-0.2) \cdot \mathbf{n})\mathbf{n}\) on the remaining boundary \(\Gamma_N\) and Lamé parameters \(\lambda = E \nu/((1+\nu)(1-2\nu)) \approx 121.15\) and \(\mu = E/(2(1+\nu)) \approx 80.77\) , obtained from E = 210 and \(\nu = 0.3\) . The weak form is

\[\int_{\Omega} \sigma(\mathbf{u}) \cdot \varepsilon(\mathbf{v}) d\mathbf{x} = \int_{\Gamma_T} \mathbf{g} \cdot \mathbf{v} ds \tag{S4}\]

for all test functions \(\mathbf{v}\) vanishing on \(\Gamma_D\) , where the dot denotes full contraction of the two tensors. First-order vector Lagrange elements on the hexahedral mesh with 134,172 nodes give a symmetric positive-definite system with 402,516 unknowns.

Coupled thermoelasticity

The strain, the thermal strain, and the stress of the linear thermoelastic body are

\[\boldsymbol{\varepsilon}(\mathbf{u}) = \frac{1}{2} \left( \nabla \mathbf{u} + (\nabla \mathbf{u})^{\top} \right), \qquad \boldsymbol{\varepsilon}^{\text{th}} = \alpha \left( T - T_0 \right) \mathbf{I}, \qquad \boldsymbol{\sigma}(\mathbf{u}, T) = \lambda \operatorname{tr} \left( \boldsymbol{\varepsilon}(\mathbf{u}) - \boldsymbol{\varepsilon}^{\text{th}} \right) \mathbf{I} + 2\mu \left( \boldsymbol{\varepsilon}(\mathbf{u}) - \boldsymbol{\varepsilon}^{\text{th}} \right), \tag{S5}\]

with the Lamé parameters, the bulk modulus, and the coupling modulus

$\(\lambda = \frac{Ev}{(1+v)(1-2v)}, \qquad \mu = \frac{E}{2(1+v)}, \qquad K = \lambda + \frac{2}{3}\mu, \qquad \beta = 3K\alpha,\)$ (S6)

so that in three dimensions the thermal part of the stress is \(-\beta(T-T_0)\mathbf{I}\) , as written in equation (4). The archived two-dimensional task takes the thermal strain in the plane, \(\varepsilon^{\text{th}} = \alpha(T-T_0)\mathbf{I}_2\) , so that the thermal-stress coefficient of its momentum balance is \(2(\lambda + \mu)\alpha\) while the dissipation term of its energy balance keeps \(\beta = 3K\alpha\) . The material data, in SI units, are

$\(E = 70 \times 10^9\)$ , \(v = 0.33\) , \(\alpha = 23 \times 10^{-6}\) , \(\kappa = 205\) , \(\rho = 2700\) , \(c_{\varepsilon} = 900\) , \(T_h = 333.15\) , \(T_c = 293.15\) , \(T_0 = 293.15\) , (S7)

with no volumetric heat source and the final time \(t_f = 10\) . With \(\Gamma_L\) the end at x = 0, \(\Gamma_R\) the end at x = L, and \(\Gamma_N\) the remaining boundary of the strip \((0,L) \times (0,H)\) or of the slab \((0,L) \times (0,H) \times (0,W)\) , where L = 0.1, H = 0.02, and W = 0.01, the boundary and initial data are

\[\begin{cases} T = T_h \text{ on } \Gamma_L, & T = T_c \text{ on } \Gamma_R, & \kappa \nabla T \cdot \mathbf{n} = 0 \text{ on } \Gamma_N, \\\nu_x = 0 \text{ on } \Gamma_L, & \sigma(\mathbf{u}, T) \mathbf{n} = \mathbf{0} \text{ on } \partial \Omega \setminus \Gamma_L, & T(\cdot, 0) = T_0, & \mathbf{u}(\cdot, 0) = \mathbf{0}, & \partial_t \mathbf{u}(\cdot, 0) = \mathbf{0}, \end{cases} (S8)\]

and the origin is pinned in the directions transverse to x. The displacement block is nonsingular because of the inertial term and these constraints.

Time discretization

The temperature equation is advanced by the Crank-Nicolson rule and the momentum balance by the trapezoidal rule, which is the Newmark scheme with \(\beta_N = \frac{1}{4}\) and \(\gamma_N = \frac{1}{2}\) once the velocity and the acceleration are eliminated. With \(\Delta t\) the step and the superscript the time level, the semi-discrete equations are

\[\frac{\rho c_{\varepsilon}}{\Delta t} \left( T^{k+1} - T^{k} \right) = \frac{1}{2} \nabla \cdot \left( \kappa \nabla T^{k+1} \right) + \frac{1}{2} \nabla \cdot \left( \kappa \nabla T^{k} \right) - \frac{\beta T_{0}}{\Delta t} \operatorname{tr} \left( \varepsilon (\mathbf{u}^{k+1}) - \varepsilon (\mathbf{u}^{k}) \right), \tag{S9}\]
\[\rho \frac{\mathbf{u}^{k+1} - 2\mathbf{u}^k + \mathbf{u}^{k-1}}{\Delta t^2} = \frac{1}{4} \nabla \cdot \boldsymbol{\sigma}^{k+1} + \frac{1}{2} \nabla \cdot \boldsymbol{\sigma}^k + \frac{1}{4} \nabla \cdot \boldsymbol{\sigma}^{k-1}, \qquad \boldsymbol{\sigma}^j = \boldsymbol{\sigma}(\mathbf{u}^j, T^j), \tag{S10}\]

which are second order in time and unconditionally stable for the linear problem. Both instances use h = 1/800, \(\Delta t = 2h = 1/400\) , and 4,000 steps up to \(t_f = 10\) .

Weak form and block system

With \(\{\phi_i\}\) the scalar basis of the temperature space and \(\{\psi_i\}\) the vector basis of the displacement space, testing the two semi-discrete equations against the basis functions gives the block system equation (5) with the entries

\[(K_{TT})_{ij} = \frac{\rho c_{\varepsilon}}{\Delta t} \int_{\Omega} \phi_j \phi_i d\mathbf{x} + \frac{1}{2} \int_{\Omega} \kappa \nabla \phi_j \cdot \nabla \phi_i d\mathbf{x}, \tag{S11}\]
\[(K_{Tu})_{ij} = \frac{\beta T_0}{\Delta t} \int_{\Omega} \operatorname{tr} \varepsilon(\psi_j) \, \phi_i \, d\mathbf{x}, \tag{S12}\]
\[(K_{uT})_{ij} = -\frac{1}{4} \int_{\Omega} \beta \,\phi_j \operatorname{tr} \varepsilon(\psi_i) \, d\mathbf{x}, \tag{S13}\]
\[(K_{uu})_{ij} = \frac{\rho}{\Delta t^2} \int_{\Omega} \psi_j \cdot \psi_i d\mathbf{x} + \frac{1}{4} \int_{\Omega} \sigma_{el}(\psi_j) \cdot \varepsilon(\psi_i) d\mathbf{x}, \tag{S14}\]

where σel(ψj) = λ tr ε(ψj)I + 2µε(ψj) is the elastic stress of the j-th displacement mode and the factors 4 are the trapezoidal weights of the stress at the level k + 1. The right-hand side gathers the previous temperature, the coupling term at level k, and the inertial and stress history of the displacement at the levels k and k −1,

\[(\mathbf{b}_{T})_{i} = \frac{\rho c_{\varepsilon}}{\Delta t} \int_{\Omega} T^{k} \phi_{i} d\mathbf{x} - \frac{1}{2} \int_{\Omega} \kappa \nabla T^{k} \cdot \nabla \phi_{i} d\mathbf{x} + \frac{\beta T_{0}}{\Delta t} \int_{\Omega} \operatorname{tr} \varepsilon(\mathbf{u}^{k}) \phi_{i} d\mathbf{x},\]
\[(\mathbf{b}_{u})_{i} = \frac{\rho}{\Delta t^{2}} \int_{\Omega} \left( 2\mathbf{u}^{k} - \mathbf{u}^{k-1} \right) \cdot \psi_{i} d\mathbf{x} - \frac{1}{2} \int_{\Omega} \sigma^{k} \cdot \varepsilon(\psi_{i}) d\mathbf{x}\]

$\(- \frac{1}{4} \int_{\Omega} \sigma^{k-1} \cdot \varepsilon(\psi_{i}) d\mathbf{x} - \frac{1}{4} \int_{\Omega} \beta T_{0} \operatorname{tr} \varepsilon(\psi_{i}) d\mathbf{x},\)$ (S15)

where the last term of bu is the part of the thermal stress at level k + 1 that does not depend on the unknowns. In the two-dimensional task the coefficient β of KuT , of σ j , and of the last term of bu is replaced by 2(λ + µ)α, as stated above. Both off-diagonal blocks are present because the coupling is two-way. The quadrilateral mesh of the strip has 1,377 nodes and 1,280 cells and the hexahedral mesh of the slab has 12,393 nodes and 10,240 cells, both with h = 1/800, which gives 4,131 and 49,572 unknowns per step.

Supplementary Note 2. Excerpts from the debate transcripts

The following passages summarize exchanges recorded in the archived transcripts of the runs with openweight models, using indirect speech and staying as close as possible to the original wording.

Helmholtz, generation 2, Proposer. Under the heading of validation checks, the Proposer recorded that no candidate of the new generation used the multigrid role with the trunk basis, which had failed in 1_001 to 1_008, that all candidates used the one validated DeepONet checkpoint, and that all used the balancing mode of the deflation, the only mode that had been successful, except for 2_009, which it described as a known risky mutation kept for comparison. It added that the candidates were variations of the successful deflation approach rather than explorations of the failed methods, and that the key parameters, the rank, the Krylov method, the base preconditioner, and the restart, were explored within the validated ranges.

Helmholtz, generation 2, Critic. The Critic replied that the generation stayed within the deflation module and preserved the successful parameter families, but that nine candidates set a restart length of zero for GMRES, which the module does not admit, and that the plan contained many near-duplicate configurations concentrated in a small region of the parameter space. It asked for a positive restart in these candidates, proposed a restart of 50 to test a different Krylov subspace size, and asked whether two or more clusters of the basis could be explored. The restart of 50 entered the final plan of the same generation, and the two-cluster variants appeared in the third generation, where one of them, 3_017, gave the lowest error of the run.

Elasticity, generation 2, Proposer. In its execution notes, the Proposer wrote that the base preconditioner of the multigrid levels was always SOR, because Jacobi had failed in all attempts with high residual ratios while SOR had been successful in all working candidates, that post-smoothing was always enabled, because the best performing candidates had used it, and that no candidate exceeded the residual-ratio limit of the acceptance test, since all were based on configurations that had passed it. The parents were the four candidates of the first front, 1_007, 1_010, 1_011, and 1_005, together with 1_006 from the second front to cover a different region of the trade-off.

Thermoelasticity in two dimensions, generation 1, Critic. In its first verdict, the Critic wrote that the proposal was a solid first pass that used the only admissible neural module and covered a wide range of the rank, the clustering, the mode, and the block preconditioner, but that it contained a critical mathematical mismatch that would almost certainly prevent any candidate from converging. The global Krylov method was set to conjugate gradients on a nonsymmetric coupled block system, whereas conjugate gradients requires a symmetric positive-definite matrix and the thermoelastic block matrix has off-diagonal coupling blocks that are not transposes of each other. The final plan of the generation used FGMRES in all twenty candidates.

Thermoelasticity in three dimensions, generation 2, Proposer. In its decision trace, the Proposer noted that 1_016, with a rank-10 deflation of the displacement block, had the best error of the first generation, and that the mutations of the new generation were limited to the rank, the deflation mode, and the block preconditioners, from incomplete LU to incomplete Cholesky and to multigrid. It kept FGMRES as the Krylov method, which it described as the only reliable choice for the deflation, and kept the full Schur factorization.

Helmholtz, generation 1, single agent. The single agent returned, in place of a plan, a status block stating that the plan was blocked because no executable capability set existed for the requested hybrid generation. The validator returned this to the planner with the request for a complete corrected plan, and the two repair attempts returned the same status.

Supplementary Note 3. Discovery cost

Table S1 lists the measured token consumption and the wall-clock time of the language models for each problem and each system, summed over the three generations. Planning covers the Proposer, the Critic of the multi-agent system, and the repairs requested by the validator. Engineering covers the implementation of the candidates, the runtime repairs, and the analysis of the results, and it is zero when no generation was executed. Periods of system sleep were subtracted from the model times. All models were served locally, so no cost in currency is associated with these tokens.

Table S1. Measured token consumption and model time of the planning and of the engineering, summed over the three generations, together with the number of repairs requested by the validator and the number of completed candidates among those executed.

Planning Engineering
Class System Input Output Min Input Output Min Repairs Completed
Helmholtz, k = 10π 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
single agent 395,613 52,552 28.7 6,448,916 20,969 16.7 6 40 of 40
Thermoelasticity 3D multi-agent 971,948 157,157 86.8 11,031,942 50,419 31.1 5 58 of 60
single agent 357,142 69,278 40.0 4,586,634 21,708 12.4 5 19 of 40

Supplementary Note 4. Complete listings of the evaluated candidates

The following tables list all executed candidates of the eight runs. Each candidate is described by the configuration that was executed, read from its script, and not by the name given by the planner. For the Helmholtz and elasticity problems, the target is convergence to the prescribed tolerance, and no candidate was executed by the single agent. For the thermoelastic problems, the target is a final relative error at or below \(10^{-4}\) in the temperature and in the displacement, which no candidate meets, so the two errors are listed. Timings marked with an asterisk were measured again in isolation after system sleep, battery operation, or external processor load had affected the original measurement. Iterations, residuals, and errors were identical in every repeated measurement. A few candidates coincide with earlier ones, namely 1_016 and 2_019 and 3_012 of the multi-agent system in three dimensions, and several candidates of the single agent in both dimensions.

Figure S1 shows the offline time of the converged single-physics candidates against their online time. The offline time contains the assembly, the setup of the preconditioner, and the construction of the neural basis. For the Helmholtz problem, fifteen candidates remain below the baseline when the two times are added. For the elasticity problem, the online time of the multigrid candidates is less than half that of the baseline, and their offline time of 12 to 15 s makes the total larger than that of the baseline for a single solve.

Figure S1. Offline time against online time of the converged candidates of the multi-agent system. a, Helmholtz problem. b, Elasticity problem. The stars denote the baselines, and the dashed curves are the points with the same total time as the baseline. The orange diamonds mark the fastest candidates in online time, 2_003 and 1_005.

Table S2. All candidates of the multi-agent system for the Helmholtz problem. Iterations, online time, offline time, and MAC refer to one solve. TB denotes the trunk basis.

ID Configuration Iterations Online (s) Offline (s) MAC Rel. \(L^2\) error Target
1_001 FGMRES(50), GAMG with trunk basis \(k = 16\) , SOR, post-smoothing rejecte d by the accep ptance test no
1_002 FGMRES(50), GAMG with trunk basis \(k = 32\) , SOR, post-smoothing rejecte d by the accep ptance test no
1_003 FGMRES(50), GAMG with trunk basis \(k = 64\) , SOR, post-smoothing rejecte d by the accep ptance test no
1_004 FGMRES(50), GAMG with trunk basis \(k = 32\) , Jacobi, post-smoothing rejecte d by the accep ptance test no
1_005 FGMRES(50), GAMG with trunk basis \(k = 32\) , SOR, no post-smoothing rejecte d by the accep otance test no
ID Configuration Iterations Online (s) Offline (s) MAC 2
Rel. L
error Target
1_006 FGMRES(20), GAMG with trunk basis k = 32,
SOR, post-smoothing
rejected by the acceptance test no
1_007 FGMRES(50), GAMG with trunk basis k = 16,
Jacobi, no post-smoothing
rejected by the acceptance test
1_008 FGMRES(50), GAMG with trunk basis k = 16, rejected by the acceptance test no
SOR, post-smoothing
1_009 FGMRES(100), balancing TB deflation k = 16,
231 10.64 6.8 1.33×1011 2.32×10−8 yes
ILU
1_010 FGMRES(100), balancing TB deflation k = 32,
229 12.72 7.5 1.65×1011 1.81×10−8 yes
ILU
1_011 FGMRES(100), balancing TB deflation k = 64,
220 17.13 9.9 2.21×1011 2.18×10−8 yes
ILU
1_012 FGMRES(100), balancing TB deflation k = 32,
341 19.41 7.5 2.47×1011 2.30×10−8 yes
SOR
1_013 FGMRES(20), balancing TB deflation k = 32,
263 11.86 7.6 1.49×1011 2.10×10−8 yes
ILU
1_014 GMRES(100), balancing TB deflation k = 32,
229 12.99 7.5 1.66×1011 1.81×10−8 yes
ILU
1_015 FGMRES(100), additive TB deflation k = 32,
432 16.20 7.7 2.05×1011 1.37×10−8 yes
ILU
1_016 FGMRES(100), balancing TB deflation k = 64,
220 17.61 10.1 2.21×1011 2.18×10−8 yes
ILU
1_017 GMRES(20), balancing TB deflation k = 32,
263 12.46 7.6 1.55×1011 2.10×10−8 yes
ILU
1_018 GMRES(100), balancing TB deflation k = 64,
220 17.76 10.0 2.23×1011 2.18×10−8 yes
ILU
1_019 FGMRES(100), balancing TB deflation k = 32,
229 13.11 7.5 1.65×1011 1.81×10−8 yes
ILU
1_020 FGMRES(50), GAMG with trunk basis k = 64,
rejected by the acceptance test no
Jacobi, post-smoothing
2_001 GMRES(20), balancing TB deflation k = 16,
262 9.83 6.9 1.16×1011 2.34×10−8 yes
ILU
2_002 GMRES(20), balancing TB deflation k = 16,
378 14.00 6.7 1.67×1011 2.25×10−8 yes
SOR
2_003 FGMRES(20), balancing TB deflation k = 16,
262 9.15 6.9 1.11×1011 2.34×10−8 yes
ILU
2_004 FGMRES(20), balancing TB deflation k = 16,
378 13.43 6.8 1.61×1011 2.25×10−8 yes
SOR
2_005 GMRES(20), balancing TB deflation k = 32,
rejected by the acceptance test no
ILU
2_006 GMRES(50), balancing TB deflation k = 32,
rejected by the acceptance test no
ILU
2_007 GMRES(20), balancing TB deflation k = 32,
385 17.85 7.4 2.27×1011 2.30×10−8 yes
SOR
2_008 GMRES(50), balancing TB deflation k = 32,
355 17.85 7.5 2.27×1011 2.40×10−8 yes
SOR
2_009 FGMRES(20), balancing TB deflation k = 32,
rejected by the acceptance test no
ILU
2_010 FGMRES(50), balancing TB deflation k = 32,
rejected by the acceptance test no
ILU
2_011 FGMRES(20), balancing TB deflation k = 32,
385 17.62 7.4 2.18×1011 2.30×10−8 yes
SOR
2_012 FGMRES(50), balancing TB deflation k = 32,
355 17.80 7.6 2.23×1011 2.40×10−8 yes
SOR
2_013 GMRES(20), balancing TB deflation k = 64,
251 17.75 9.9 2.22×1011 2.28×10−8 yes
ILU
ID Configuration Iterations Online (s) Offline (s) MAC 2
Rel. L
error Target
2_014 GMRES(50), balancing TB deflation k = 64,
ILU
230 16.92 10.1 2.12×1011 2.18×10−8 yes
2_015 GMRES(20), balancing TB deflation k = 64,
SOR
385 27.53 10.0 3.41×1011 2.28×10−8 yes
2_016 GMRES(50), balancing TB deflation k = 64, 344 25.50 10.1 3.18×1011 2.31×10−8 yes
SOR
2_017 FGMRES(20), balancing TB deflation k = 64,
251 17.17 10.0 2.12×1011 2.28×10−8 yes
ILU
2_018 FGMRES(50), balancing TB deflation k = 64,
230 16.60 10.1 2.08×1011 2.18×10−8 yes
ILU
2_019 FGMRES(20), balancing TB deflation k = 64,
385 26.32 10.0 3.26×1011 2.28×10−8 yes
SOR
2_020 FGMRES(50), balancing TB deflation k = 64,
344 25.11 10.1 3.13×1011 2.31×10−8 yes
SOR
3_001 GMRES(50), balancing TB deflation k = 32,
239 12.44 7.8 1.52×1011 2.00×10−8 yes
ILU
3_002 GMRES(50), balancing TB deflation k = 64,
230 16.38 9.9 2.12×1011 2.18×10−8 yes
ILU
3_003 GMRES(25), balancing TB deflation k = 32,
257 11.88 7.5 1.53×1011 2.03×10−8 yes
ILU
3_004 GMRES(100), balancing TB deflation k = 64,
220 17.02 9.9 2.23×1011 2.18×10−8 yes
ILU
3_005 GMRES(50), balancing TB deflation k = 16,
238 9.46 6.7 1.17×1011 2.33×10−8 yes
ILU
3_006 GMRES(50), balancing TB deflation k = 128,
216 30.11 18.0 3.23×1011 2.34×10−8 yes
ILU
3_007 GMRES(50), additive TB deflation k = 64,
638 26.34 9.9 3.33×1011 9.51×10−9 yes
ILU
3_008 GMRES(50), balancing TB deflation k = 64, 2
341 24.96 10.2 3.15×1011 2.18×10−8 yes
clusters, ILU
3_009 GMRES(50), additive TB deflation k = 64, 2
1,377 57.67 10.2 7.19×1011 8.46×10−9 yes
clusters, ILU
3_010 FGMRES(50), balancing TB deflation k = 32,
239 11.52 7.5 1.50×1011 2.00×10−8 yes
ILU
3_011 FGMRES(50), balancing TB deflation k = 64,
230 16.62 10.0 2.08×1011 2.18×10−8 yes
ILU
3_012 FGMRES(100), balancing TB deflation k = 64,
220 17.51 10.0 2.21×1011 2.18×10−8 yes
ILU
3_013 FGMRES(50), balancing TB deflation k = 16,
238 9.67 6.9 1.15×1011 2.33×10−8 yes
ILU
3_014 FGMRES(50), balancing TB deflation k = 128,
216 29.71 18.3 3.17×1011 2.34×10−8 yes
ILU
3_015 FGMRES(50), additive TB deflation k = 64,
638 26.43 9.9 3.28×1011 9.51×10−9 yes
ILU
3_016 FGMRES(50), balancing TB deflation k = 64,
341 24.76 10.3 3.10×1011 2.18×10−8 yes
2 clusters, ILU
3_017 FGMRES(50), additive TB deflation k = 64, 2
1,377 56.96 10.3 7.09×1011 8.46×10−9 yes
clusters, ILU 10.2 2.16×1011 2.23×10−8
3_018 GMRES(25), balancing TB deflation k = 64,
ILU
244 17.45 yes
3_019 FGMRES(25), balancing TB deflation k = 64,
ILU
244 16.73 10.0 2.09×1011 2.23×10−8 yes
3_020 GMRES(50), balancing TB deflation k = 64,
ILU
230 17.06 10.0 2.12×1011 2.18×10−8 yes

Table S3. All candidates of the multi-agent system for the elasticity problem. Iterations, online time, offline time, and MAC refer to one solve.

ID Configuration Iterations Online (s) Offline (s) MAC 2
Rel. L
error
Target
1_001 FGMRES(100), balancing TB deflation k = 16,
ILU
diverged no
1_002 FGMRES(100), balancing TB deflation k = 32,
ILU
5,498 207.64 10.3 2.33×1012 7.29×10−8 yes
1_003 FGMRES(100), balancing TB deflation k = 64,
ILU
5,002 246.40 12.7 2.57×1012 7.88×10−8 yes
1_004 FGMRES(100), balancing TB deflation k =
128, ILU
5,002 246.89 12.6 2.57×1012 7.88×10−8 yes
1_005 FGMRES(50), GAMG with trunk basis k = 8,
SOR, no post-smoothing
46 2.93 11.8 2.52×1010 1.00×10−9 yes
1_006 FGMRES(50), GAMG with trunk basis k = 16,
SOR, no post-smoothing
46 3.00 12.0 2.56×1010 1.44×10−9 yes
1_007 FGMRES(50), GAMG with trunk basis k = 32,
SOR, post-smoothing
38 4.03 12.6 3.18×1010 5.47×10−9 yes
1_008 FGMRES(50), GAMG with trunk basis k = 32,
Jacobi, post-smoothing
rejected by the acceptance test no
1_009 FGMRES(50), GAMG with trunk basis k = 32,
Jacobi, post-smoothing
rejected by the acceptance test no
1_010 FGMRES(50), GAMG with trunk basis k = 64,
SOR, post-smoothing
34 3.81 13.8 2.94×1010 8.93×10−10 yes
1_011 FGMRES(50), GAMG with trunk basis k =
128, SOR, post-smoothing
32 3.56 14.5 2.78×1010 1.65×10−9 yes
1_012 FGMRES(50), GAMG with trunk basis k = 32,
SOR, no post-smoothing
rejected by the acceptance test
1_013 FGMRES(50), GAMG with trunk basis k = 16,
Jacobi, post-smoothing
rejected by the acceptance test no
1_014 FGMRES(50), GAMG with trunk basis k = 64,
Jacobi, post-smoothing
rejected by the acceptance test
1_015 FGMRES(50), GAMG with trunk basis k = 64,
Jacobi, post-smoothing
rejected by the acceptance test
1_016 FGMRES(50), GAMG with trunk basis k = 16,
Jacobi, post-smoothing
rejected by the acceptance test no
1_017 FGMRES(50), GAMG with trunk basis k = 8,
Jacobi, post-smoothing
rejected by the acceptance test no
1_018 FGMRES(50), GAMG with trunk basis k = 8,
Jacobi, post-smoothing
rejected by the acceptance test no
1_019 FGMRES(50), GAMG with trunk basis k =
128, Jacobi, post-smoothing
rejected by the acceptance test no
1_020 FGMRES(50), GAMG with trunk basis k =
128, Jacobi, post-smoothing
rejected by the acceptance test no
2_001 FGMRES(50), GAMG with trunk basis k = 48,
SOR, post-smoothing
36 3.93 13.5 3.07×1010 3.58×10−9 yes
2_002 FGMRES(50), GAMG with trunk basis k = 56, 33 3.63 13.7 2.84×1010 1.49×10−9 yes
SOR, post-smoothing
2_003 FGMRES(50), GAMG with trunk basis k = 60,
33 3.65 13.9 2.85×1010 4.69×10−10 yes
SOR, post-smoothing
2_004 FGMRES(50), GAMG with trunk basis k = 62,
34 3.79 13.9 2.94×1010 8.22×10−10 yes
SOR, post-smoothing
2_005 FGMRES(50), GAMG with trunk basis k = 68,
34 3.76 13.9 2.95×1010 1.31×10−9 yes
SOR, post-smoothing
2_006 FGMRES(50), GAMG with trunk basis k = 70,
34 3.76 13.9 2.95×1010 1.30×10−9 yes
SOR, post-smoothing
ID Configuration Iterations Online (s) Offline (s) MAC 2
Rel. L
error
Target
2_007 FGMRES(50), GAMG with trunk basis k = 72,
SOR, post-smoothing
33 3.67 13.9 2.86×1010 4.19×10−9 yes
2_008 FGMRES(50), GAMG with trunk basis k = 80,
SOR, post-smoothing
33 3.67 14.1 2.86×1010 4.44×10−9 yes
2_009 FGMRES(50), GAMG with trunk basis k = 85,
SOR, post-smoothing
33 3.65 14.1 2.86×1010 3.82×10−9 yes
2_010 FGMRES(50), GAMG with trunk basis k = 90,
SOR, post-smoothing
33 3.69 14.2 2.86×1010 2.45×10−9 yes
2_011 FGMRES(50), GAMG with trunk basis k = 96,
SOR, post-smoothing
33 3.67 14.2 2.86×1010 2.08×10−9 yes
2_012 FGMRES(50), GAMG with trunk basis k =
104, SOR, post-smoothing
33 3.69 14.3 2.87×1010 8.90×10−10 yes
2_013 FGMRES(50), GAMG with trunk basis k =
112, SOR, post-smoothing
32 3.60 14.6 2.78×1010 6.24×10−10 yes
2_014 FGMRES(50), GAMG with trunk basis k =
120, SOR, post-smoothing
32 3.56 14.6 2.78×1010 6.28×10−9 yes
2_015 FGMRES(50), GAMG with trunk basis k =
128, SOR, post-smoothing
32 3.58 14.6 2.78×1010 1.65×10−9 yes
2_016 FGMRES(50), GAMG with trunk basis k = 76,
SOR, post-smoothing
33 3.72 14.0 2.86×1010 4.57×10−9 yes
2_017 FGMRES(50), GAMG with trunk basis k = 12,
SOR, post-smoothing
38 3.88 12.0 3.10×1010 1.83×10−9 yes
2_018 FGMRES(50), GAMG with trunk basis k = 14,
SOR, post-smoothing
39 3.99 12.1 3.19×1010 1.55×10−9 yes
2_019 FGMRES(50), GAMG with trunk basis k = 16,
SOR, post-smoothing
39 4.01 12.1 3.20×1010 1.23×10−9 yes
2_020 FGMRES(50), GAMG with trunk basis k = 18,
SOR, post-smoothing
38 4.03 12.2 3.12×1010 3.31×10−9 yes
3_001 FGMRES(50), GAMG with trunk basis k = 50,
SOR, post-smoothing
35 3.81 13.4 2.99×1010 1.77×10−9 yes
3_002 FGMRES(50), GAMG with trunk basis k = 58,
SOR, post-smoothing
33 3.67 13.7 2.85×1010 5.24×10−10 yes
3_003 FGMRES(50), GAMG with trunk basis k = 66,
SOR, post-smoothing
34 3.77 13.9 2.94×1010 2.26×10−10 yes
3_004 FGMRES(50), GAMG with trunk basis k = 72,
SOR, post-smoothing
33 3.65 13.9 2.86×1010 4.19×10−9 yes
3_005 FGMRES(50), GAMG with trunk basis k = 84,
SOR, post-smoothing
33 3.69 14.0 2.86×1010 3.82×10−9 yes
3_006 FGMRES(50), GAMG with trunk basis k = 90,
SOR, post-smoothing
33 3.66 14.1 2.86×1010 2.45×10−9 yes
3_007 FGMRES(50), GAMG with trunk basis k = 98,
SOR, post-smoothing
33 3.67 14.2 2.86×1010 3.55×10−9 yes
3_008 FGMRES(50), GAMG with trunk basis k =
106, SOR, post-smoothing
33 3.68 14.3 2.87×1010 1.25×10−9 yes
3_009 FGMRES(50), GAMG with trunk basis k =
114, SOR, post-smoothing
32 3.58 14.4 2.78×1010 2.13×10−9 yes
3_010 FGMRES(50), GAMG with trunk basis k = 32 3.58 14.5 2.78×1010 6.28×10−9 yes
122, SOR, post-smoothing
3_011 FGMRES(50), GAMG with trunk basis k = 48,
36 3.90 13.2 3.07×1010 3.58×10−9 yes
SOR, post-smoothing
3_012 FGMRES(50), GAMG with trunk basis k = 64,
34 3.76 13.8 2.94×1010 8.93×10−10 yes
SOR, post-smoothing
3_013 FGMRES(50), GAMG with trunk basis k = 76,
33 3.66 13.9 2.86×1010 4.57×10−9 yes
SOR, post-smoothing
3_014 FGMRES(50), GAMG with trunk basis k = 88,
SOR, post-smoothing
33 3.67 14.1 2.86×1010 3.70×10−9 yes
ID Configuration Iterations Online (s) Offline (s) MAC 2
Rel. L
error
Target
3_015 FGMRES(50), GAMG with trunk basis k = 33 3.69 14.3 2.87×1010 2.89×10−10 yes
100, SOR, post-smoothing
3_016 FGMRES(50), GAMG with trunk basis k = 32 3.58 14.4 2.78×1010 6.24×10−10 yes
112, SOR, post-smoothing
3_017 FGMRES(50), GAMG with trunk basis k = 32 3.57 14.5 2.78×1010 6.28×10−9 yes
120, SOR, post-smoothing
3_018 FGMRES(50), GAMG with trunk basis k = 60, 33 3.67 13.8 2.85×1010 4.69×10−10 yes
SOR, post-smoothing
3_019 FGMRES(50), GAMG with trunk basis k = 70, 34 3.81 13.9 2.95×1010 1.30×10−9 yes
SOR, post-smoothing
3_020 FGMRES(50), GAMG with trunk basis k = 33 3.67 14.3 2.87×1010 8.90×10−10 yes
104, SOR, post-smoothing

Table S4. All candidates of the multi-agent system for the two-dimensional thermoelastic problem. The plan of the third generation was rejected by the validator. Iterations, online time, and MAC are totals over the 4,000 steps, and the errors are the final relative L 2 errors of the temperature and of the displacement.

ID Configuration Iterations Online (s) MAC Error in T Error in u
1_001 FGMRES(50), full Schur, ILU, balancing deflation
of u, k = 20
194,593 41.6 2.94×1011 1.5×10−4 3.0×10−2
1_002 FGMRES(50), full Schur, ILU, balancing deflation
of u, k = 40
194,312 47.0 3.80×1011 1.0×10−4 2.4×10−2
1_003 FGMRES(50), full Schur, ILU, balancing deflation
of T, k = 20
1,638,060 343.2 2.34×1012 1.2×10−5 1.0×10−2
1_004 FGMRES(50), full Schur, ILU, balancing deflation
of T, k = 40
1,620,714 404.8 3.04×1012 2.1×10−5 4.7×10−2
1_005 FGMRES(50), full Schur, Jacobi, balancing defla
tion of u, k = 20
1,387,224 237.7 1.92×1012 3.3×10−5 2.8×10−2
1_006 FGMRES(50), full Schur, Jacobi, balancing defla
tion of u, k = 40
1,354,614 286.9∗ 2.48×1012 1.8×10−5 1.7×10−2
1_007 FGMRES(50), full Schur, GAMG, balancing defla
tion of u, k = 20
40,453 16.8 1.19×1011 5.5×10−5 9.9×10−3
1_008 FGMRES(50), full Schur, GAMG, balancing defla
tion of u, k = 40
40,408 18.3 1.37×1011 4.4×10−5 8.3×10−3
1_009 FGMRES(50), full Schur, ILU, balancing deflation
of u, k = 20, 2 clusters
160,408 32.4 2.32×1011 1.1×10−4 2.2×10−2
1_010 FGMRES(50), full Schur, ILU, balancing deflation
of u, k = 40, 2 clusters
156,532 37.4 2.97×1011 1.4×10−4 3.7×10−2
1_011 FGMRES(50), full Schur, ILU, balancing deflation
of u, k = 20, 4 clusters
117,370 23.1 1.61×1011 1.1×10−4 2.2×10−2
1_012 FGMRES(50), full Schur, ILU, balancing deflation
of u, k = 40, 4 clusters
118,064 28.3 2.19×1011 1.5×10−4 2.2×10−2
1_013 FGMRES(50), full Schur, ILU, balancing deflation
of T and u, k = 20
195,288 54.9 4.02×1011 9.7×10−5 2.4×10−2
1_014 FGMRES(50), full Schur, ILU, balancing deflation
of T and u, k = 40
193,770 69.4 5.72×1011 2.1×10−4 3.3×10−2
1_015 FGMRES(50), full Schur, ILU, balancing deflation
of T and u, k = 20, 2 clusters
159,657 44.6 3.19×1011 1.4×10−4 3.0×10−2
1_016 FGMRES(50), full Schur, ILU, balancing deflation
of T and u, k = 40, 2 clusters
156,548 56.1 4.59×1011 1.3×10−4 2.7×10−2
1_017 FGMRES(50), full Schur, ILU, balancing deflation
of T and u, k = 20, 4 clusters
118,446 33.0 2.30×1011 1.5×10−4 2.7×10−2
1_018 FGMRES(50), full Schur, ILU, balancing deflation
of T and u, k = 40, 4 clusters
117,015 42.6 3.47×1011 1.2×10−4 2.3×10−2
ID Configuration Iterations Online (s) MAC Error in T Error in u
1_019 FGMRES(50), full Schur, GAMG, balancing defla
tion of T, k = 20
40,230 22.8 1.58×1011 4.2×10−5 8.0×10−3
1_020 FGMRES(50), full Schur, GAMG, balancing defla
tion of T, k = 40
40,228 27.5 2.12×1011 4.2×10−5 8.0×10−3
2_001 GMRES, full Schur, ILU, balancing deflation of T,
k = 20
350,928 69.9 4.51×1011 1.2×10−2 26.0
2_002 GMRES, full Schur, ILU, balancing deflation of T,
k = 20, 2 clusters
338,993 67.8 4.39×1011 2.0×10−2 18.3
2_003 GMRES, full Schur, ILU, balancing deflation of T,
k = 40
333,537 79.4 5.85×1011 2.0×10−2 41.7
2_004 GMRES, full Schur, ILU, balancing deflation of T,
k = 40, 2 clusters
330,070 80.5 5.91×1011 2.9×10−2 92.7
2_005 GMRES, full Schur, GAMG, balancing deflation of
T, k = 20, 4 clusters
30,506 17.3 1.37×1011 8.2×10−3 0.50
2_006 GMRES, full Schur, GAMG, balancing deflation of
T, k = 40, 2 clusters
30,550 21.1 1.85×1011 7.6×10−3 0.58
2_007 GMRES, full Schur, ILU, balancing deflation of u,
k = 20
210,275 41.4 2.89×1011 2.5×10−2 14.5
2_008 GMRES, full Schur, ILU, balancing deflation of u,
k = 20, 2 clusters
108,039 20.7 1.48×1011 1.2×10−2 3.37
2_009 GMRES, full Schur, ILU, balancing deflation of u,
k = 40
209,375 48.5 3.85×1011 1.6×10−2 12.4
2_010 GMRES, full Schur, ILU, balancing deflation of u,
k = 40, 2 clusters
101,194 23.0 1.87×1011 1.0×10−2 1.93
2_011 GMRES, full Schur, GAMG, balancing deflation of
u, k = 20, 4 clusters
32,000 13.2 1.04×1011 6.8×10−3 0.91
2_012 GMRES, full Schur, GAMG, balancing deflation of
u, k = 40, 2 clusters
33,582 15.1 1.26×1011 7.9×10−3 0.72
2_013 GMRES, full Schur, ILU, balancing deflation of T
and u, k = 20
182,478 50.0 3.53×1011 2.3×10−2 6.83
2_014 GMRES, full Schur, GAMG, balancing deflation of
T and u, k = 20, 4 clusters
29,805 19.3 1.56×1011 5.7×10−3 0.46
2_015 GMRES, full Schur, ILU, balancing deflation of T
and u, k = 40, 2 clusters
103,393 36.2 3.02×1011 9.0×10−3 2.26
2_016 GMRES, full Schur, ILU, balancing deflation of T
and u, k = 40, 4 clusters
79,522 28.4 2.40×1011 1.4×10−2 1.91
2_017 GMRES, full Schur, GAMG, balancing deflation of
T and u, k = 20
30,886 19.8 1.57×1011 8.3×10−3 0.93
2_018 GMRES, full Schur, GAMG, balancing deflation of
T and u, k = 40, 2 clusters
29,794 23.8 2.18×1011 5.2×10−3 0.40
2_019 GMRES, full Schur, ILU, balancing deflation of T,
k = 40, 4 clusters
348,864 86.1 6.53×1011 2.4×10−2 61.3
2_020 GMRES, full Schur, GAMG, balancing deflation of
T and u, k = 40, 4 clusters
29,832 24.6 2.27×1011 6.0×10−3 0.39

Table S5. All candidates of the single agent for the two-dimensional thermoelastic problem. The plan of the first generation was rejected by the validator. Iterations, online time, and MAC are totals over the 4,000 steps, and the errors are the final relative L 2 errors of the temperature and of the displacement.

ID Configuration Iterations Online (s) MAC Error in T Error in u
2_001 FGMRES, full Schur, Jacobi, balancing deflation of 1,628,396 290.1 2.44×1012 5.0×10−5 1.0×10−2
u, k = 32
2_002 FGMRES, full Schur, Jacobi, additive deflation of u,
k = 64
1,848,704 246.7 1.94×1012 1.7×10−5 9.0×10−3
ID Configuration Iterations Online (s) MAC Error in T Error in u
2_003 FGMRES, full Schur, Jacobi, balancing deflation of
u, k = 64
1,637,076 321.6 2.75×1012 4.8×10−5 1.0×10−2
2_004 FGMRES, full Schur, Jacobi, balancing deflation of 1,628,396 291.6 2.44×1012 5.0×10−5 1.0×10−2
u, k = 32
2_005 FGMRES, full Schur, Jacobi, balancing deflation of
1,628,396 291.8 2.44×1012 5.0×10−5 1.0×10−2
u, k = 32
2_006 FGMRES, full Schur, Jacobi, additive deflation of u,
1,801,198 223.2 1.73×1012 4.9×10−5 3.0×10−2
k = 32
2_007 FGMRES, full Schur, Jacobi, balancing deflation of
1,628,396 292.2 2.44×1012 5.0×10−5 1.0×10−2
u, k = 32
2_008 FGMRES, full Schur, Jacobi, balancing deflation of
1,637,076 322.9 2.75×1012 4.8×10−5 1.0×10−2
u, k = 64
2_009 FGMRES, full Schur, Jacobi, balancing deflation of
1,628,396 290.5 2.44×1012 5.0×10−5 1.0×10−2
u, k = 32
2_010 FGMRES, full Schur, Jacobi, balancing deflation of
1,637,076 322.0∗ 2.75×1012 4.8×10−5 1.0×10−2
u, k = 48
2_011 FGMRES, full Schur, Jacobi, balancing deflation of
1,637,076 323.1 2.75×1012 4.8×10−5 1.0×10−2
u, k = 64
2_012 FGMRES, full Schur, Jacobi, balancing deflation of
1,677,397 253.1 1.92×1012 4.6×10−5 2.0×10−2
u, k = 16
2_013 FGMRES, full Schur, Jacobi, balancing deflation of
1,628,396 293.2 2.44×1012 5.0×10−5 1.0×10−2
u, k = 32
2_014 FGMRES, full Schur, Jacobi, balancing deflation of
1,628,396 291.7 2.44×1012 5.0×10−5 1.0×10−2
u, k = 32
2_015 FGMRES, full Schur, Jacobi, balancing deflation of
1,677,397 256.3 1.92×1012 4.6×10−5 2.0×10−2
u, k = 16
2_016 FGMRES, full Schur, Jacobi, balancing deflation of
1,637,076 324.5 2.75×1012 4.8×10−5 1.0×10−2
u, k = 128
2_017 FGMRES, full Schur, Jacobi, balancing deflation of
1,628,396 291.7 2.44×1012 5.0×10−5 1.0×10−2
u, k = 32
2_018 FGMRES, full Schur, Jacobi, additive deflation of u,
1,801,198 223.5 1.73×1012 4.9×10−5 3.0×10−2
k = 32
2_019 FGMRES, full Schur, Jacobi, balancing deflation of
1,637,076 322.3 2.75×1012 4.8×10−5 1.0×10−2
u, k = 64
2_020 FGMRES, full Schur, Jacobi, balancing deflation of
1,724,158 227.6 1.67×1012 4.4×10−5 1.9×10−2
u, k = 8
3_001 GMRES, full Schur, Jacobi, balancing deflation of u,
483,173 81.1 6.50×1011 1.9×10−2 11.0
k = 24, tolerance 10−9
3_002 GMRES, full Schur, Jacobi, additive deflation of u,
525,240 70.7 5.57×1011 6.6×10−3 4.47
k = 64, tolerance 10−9
3_003 GMRES, full Schur, Jacobi, balancing deflation of u,
483,560 97.5 8.29×1011 4.3×10−2 14.0
k = 48, tolerance 10−9
3_004 GMRES, full Schur, Jacobi, additive deflation of u,
525,240 71.4 5.57×1011 6.6×10−3 4.47
k = 64, tolerance 10−9
3_005 GMRES, full Schur, Jacobi, balancing deflation of u,
483,560 98.5 8.29×1011 4.3×10−2 14.0
k = 48, tolerance 10−9
3_006 GMRES, full Schur, Jacobi, additive deflation of u,
514,370 65.4 4.97×1011 1.0×10−2 2.63
k = 32, tolerance 10−9
3_007 GMRES, full Schur, Jacobi, balancing deflation of u,
483,560 99.2 8.29×1011 4.3×10−2 14.0
k = 64, tolerance 10−9
3_008 GMRES, full Schur, Jacobi, additive deflation of u,
525,240 71.3 5.57×1011 6.6×10−3 4.47
k = 48, tolerance 10−9
3_009 GMRES, full Schur, Jacobi, balancing deflation of u,
509,730 93.2 7.78×1011 4.3×10−2 9.18
k = 32, tolerance 10−9
3_010 GMRES, full Schur, Jacobi, additive deflation of u,
525,240 73.0 5.57×1011 6.6×10−3 4.47
k = 48, tolerance 10−9
ID Configuration Iterations Online (s) MAC Error in T Error in u
3_011 GMRES, full Schur, Jacobi, balancing deflation of u,
k = 64, tolerance 10−9
483,560 95.8 8.29×1011 4.3×10−2 14.0
3_012 GMRES, full Schur, Jacobi, additive deflation of u,
k = 32, tolerance 10−9
514,370 64.5 4.97×1011 1.0×10−2 2.63
3_013 GMRES, full Schur, Jacobi, balancing deflation of u,
k = 48, tolerance 10−9
483,560 98.7 8.29×1011 4.3×10−2 14.0
3_014 GMRES, full Schur, Jacobi, additive deflation of u,
k = 64, tolerance 10−9
525,240 70.9 5.57×1011 6.6×10−3 4.47
3_015 GMRES, full Schur, Jacobi, balancing deflation of u,
k = 32, tolerance 10−9
509,730 94.0 7.78×1011 4.3×10−2 9.18
3_016 GMRES, full Schur, Jacobi, additive deflation of u,
k = 64, tolerance 10−9
525,240 71.4 5.57×1011 6.6×10−3 4.47
3_017 GMRES, full Schur, Jacobi, balancing deflation of u,
k = 48, tolerance 10−9
483,560 97.4 8.29×1011 4.3×10−2 14.0
3_018 GMRES, full Schur, Jacobi, additive deflation of u,
k = 32, tolerance 10−9
514,370 64.7 4.97×1011 1.0×10−2 2.63
3_019 GMRES, full Schur, Jacobi, balancing deflation of u,
k = 64, tolerance 10−9
483,560 96.9 8.29×1011 4.3×10−2 14.0
3_020 GMRES, full Schur, Jacobi, additive deflation of u,
k = 48, tolerance 10−9
525,240 70.8 5.57×1011 6.6×10−3 4.47

Table S6. All candidates of the multi-agent system for the three-dimensional thermoelastic problem. Iterations, online time, and MAC are totals over the 4,000 steps, and the errors are the final relative L 2 errors of the temperature and of the displacement.

ID Configuration Iterations Online (s) MAC Error in T Error in u
1_001 GMRES, full Schur, ILU, balancing deflation of u,
k = 10
154,587 653.5 5.77×1012 1.1×10−2 3.00
1_002 GMRES, full Schur, ILU, balancing deflation of u,
k = 20
155,932 715.2 6.30×1012 1.3×10−2 5.40
1_003 GMRES, full Schur, ILU, balancing deflation of u,
k = 40
138,867 724.2 6.51×1012 2.3×10−2 70.2
1_004 GMRES, full Schur, ILU, additive deflation of u, k =
20
158,984 542.2 4.18×1012 1.0×10−2 4.26
1_005 GMRES, full Schur, ICC, balancing deflation of u,
k = 20
155,932 753.9 6.30×1012 1.3×10−2 5.40
1_006 GMRES, full Schur, ILU, balancing deflation of T,
k = 10
337,601 1,254.2 9.38×1012 1.9×10−2 25.1
1_007 GMRES, full Schur, ILU, balancing deflation of T,
k = 20
323,878 1,271.3 9.66×1012 1.7×10−2 27.4
1_008 GMRES, full Schur, ILU, balancing deflation of T,
k = 40
334,965 1,437.6 1.14×1013 1.5×10−2 12.5
1_009 GMRES, full Schur, ILU, additive deflation of T,
k = 20
279,383 918.3 7.07×1012 3.9×10−2 21.1
1_010 GMRES, full Schur, ICC, balancing deflation of T,
k = 20
349,728 1,463.4 1.04×1013 2.6×10−2 36.1
1_011 GMRES, full Schur, ILU, balancing deflation of T
and u, k = 10
155,676 774.8 6.53×1012 1.5×10−2 3.45
1_012 GMRES, full Schur, ILU, balancing deflation of T
and u, k = 20
153,483 842.2 7.23×1012 9.3×10−3 2.95
1_013 GMRES, full Schur, ILU, balancing deflation of T
and u, k = 40
179,146 1,160.7 1.03×1013 2.0×10−2 65.5
1_014 GMRES, full Schur, ILU, additive deflation of T and
u, k = 20
139,970 515.8 4.00×1012 2.5×10−2 8.07
ID Configuration Iterations Online (s) MAC Error in T Error in u
1_015 GMRES, full Schur, ICC, balancing deflation of T
and u, k = 20
153,483 882.1 7.23×1012 9.3×10−3 2.95
1_016 FGMRES, full Schur, ILU, balancing deflation of u,
k = 10
1,354,075 5,777.1 4.97×1013 1.6×10−5 5.0×10−2
1_017 FGMRES, full Schur, ICC, balancing deflation of u,
k = 20
531,947 2,557.6 2.11×1013 3.8×10−5 2.00
1_018 FGMRES, full Schur, ILU, balancing deflation of T,
k = 10
stopped at step 100, projected time above the limit
1_019 FGMRES, full Schur, ICC, balancing deflation of T,
k = 20
stopped at step 100, projected time above the limit
1_020 FGMRES, full Schur, ILU, balancing deflation of T
and u, k = 20
532,740 2,914.0 2.45×1013 2.4×10−5 4.79
2_001 FGMRES, full Schur, ILU, balancing deflation of u,
k = 10
1,354,075 5,641.9∗ 4.97×1013 1.6×10−5 5.0×10−2
2_002 FGMRES, full Schur, ILU, balancing deflation of u,
k = 15
518,731 2,388.6 1.98×1013 3.6×10−5 0.46
2_003 FGMRES, full Schur, ILU, balancing deflation of u,
k = 20
542,692 2,457.9 2.15×1013 3.9×10−5 0.55
2_004 FGMRES, full Schur, ICC, balancing deflation of u, 531,947 2,548.9 2.11×1013 3.8×10−5 2.00
k = 20
2_005 FGMRES, full Schur, GAMG, balancing deflation of
55,850 588.1 5.07×1012 9.0×10−5 0.32
u, k = 20
2_006 FGMRES, full Schur, ILU, balancing deflation of T
514,552 2,684.1 2.24×1013 5.1×10−5 1.03
and u, k = 15
2_007 FGMRES, full Schur, ILU, balancing deflation of T
532,740 2,844.7 2.45×1013 2.4×10−5 4.79
and u, k = 20
2_008 FGMRES, full Schur, ICC, balancing deflation of T
526,973 2,976.2 2.42×1013 2.7×10−5 1.84
and u, k = 20
2_009 FGMRES, full Schur, GAMG, balancing deflation of
55,755 732.2 6.13×1012 1.0×10−4 0.13
T and u, k = 20
2_010 FGMRES, full Schur, ILU, additive deflation of T
661,999 2,419.6 1.86×1013 6.1×10−5 3.18
and u, k = 20
2_011 FGMRES, full Schur, ILU, balancing deflation of u,
702,214 3,292.6 2.78×1013 3.4×10−6 5.19
k = 20, tolerance 10−9
2_012 FGMRES, full Schur, ILU, balancing deflation of u,
407,314 1,835.4 1.61×1013 6.2×10−4 2.02
k = 20, tolerance 10−7
2_013 FGMRES, full Schur, ILU, balancing deflation of T
692,590 3,745.0 3.19×1013 3.3×10−6 3.76
and u, k = 20, tolerance 10−9
2_014 FGMRES, full Schur, ILU, balancing deflation of T
394,840 2,148.1 1.81×1013 3.9×10−4 1.44
and u, k = 20, tolerance 10−7
2_015 FGMRES, full Schur, ILU, additive deflation of T
661,999 2,386.5 1.86×1013 6.1×10−5 3.18
and u, k = 20
2_016 FGMRES, full Schur, ILU, balancing deflation of u,
89,872 404.9 3.51×1012 1.6×10−4 1.27
k = 20, 32 clusters
2_017 FGMRES, full Schur, ILU, balancing deflation of T
84,159 458.7 3.88×1012 1.2×10−4 4.2×10−2
and u, k = 20, 32 clusters
2_018 FGMRES, full Schur, ICC, balancing deflation of T
84,159 476.5 3.88×1012 1.2×10−4 4.2×10−2
and u, k = 20, 32 clusters
2_019 FGMRES, full Schur, GAMG, balancing deflation of
45,504 489.0∗ 4.14×1012 2.8×10−4 0.36
u, k = 20, 32 clusters
2_020 FGMRES, full Schur, GAMG, balancing deflation of
43,987 595.9∗ 4.95×1012 1.3×10−4 0.93
T and u, k = 20, 32 clusters
3_001 FGMRES, full Schur, ILU and GAMG, balancing
41,822 498.2∗ 4.13×1012 3.3×10−4 0.17
deflation of T and u, k = 20, 32 clusters
3_002 FGMRES, full Schur, ICC and GAMG, balancing
41,822 490.3 4.13×1012 3.3×10−4 0.17
deflation of T and u, k = 20, 32 clusters
ID Configuration Iterations Online (s) MAC Error in T Error in u
3_003 FGMRES, full Schur, ILU, balancing deflation of T
and u, k = 15, 32 clusters
94,825 518.0 4.11×1012 2.3×10−4 7.38
3_004 FGMRES, full Schur, ILU, balancing deflation of T
and u, k = 20, 64 clusters
78,637 458.3 3.85×1012 2.2×10−4 1.42
3_005 FGMRES, full Schur, ILU, balancing deflation of T
and u, k = 20, 32 clusters, tolerance 10−9
96,559 548.9 4.48×1012 2.0×10−5 1.23
3_006 FGMRES, full Schur, ILU and GAMG, balancing
deflation of u, k = 15, 32 clusters
48,000 438.0 3.64×1012 2.7×10−5 0.21
3_007 FGMRES, full Schur, ILU and GAMG, balancing
deflation of u, k = 20, 64 clusters
46,582 438.8 3.65×1012 1.5×10−4 1.08
3_008 FGMRES, full Schur, ILU and GAMG, balancing
deflation of u, k = 20, 32 clusters
48,000 443.1 3.72×1012 2.5×10−5 0.71
3_009 FGMRES, full Schur, ILU, balancing deflation of T
and u, k = 25, 32 clusters
83,735 487.1 4.13×1012 1.5×10−4 0.54
3_010 FGMRES, full Schur, ILU and GAMG, balancing
deflation of u, k = 20, 32 clusters
48,000 439.5 3.72×1012 2.5×10−5 0.71
3_011 FGMRES, full Schur, ILU and GAMG, additive de
flation of u, k = 20, 32 clusters
67,983 585.5 4.36×1012 4.9×10−5 1.82
3_012 FGMRES, full Schur, GAMG, balancing deflation of
u, k = 20, 32 clusters
45,504 487.7∗ 4.14×1012 2.8×10−4 0.36
3_013 FGMRES, full Schur, GAMG, balancing deflation of
T and u, k = 15, 32 clusters
44,345 573.8∗ 4.74×1012 1.3×10−4 1.25
3_014 FGMRES, full Schur, ICC, balancing deflation of u,
k = 20, 32 clusters
89,957 443.7 3.52×1012 1.5×10−4 0.62
3_015 FGMRES, full Schur, ICC, balancing deflation of u,
k = 15, 32 clusters
98,771 474.6 3.72×1012 1.5×10−4 2.56
3_016 FGMRES, full Schur, ILU and GAMG, balancing
deflation of u, k = 15, 64 clusters
48,000 434.9∗ 3.66×1012 6.1×10−7 0.60
3_017 FGMRES, full Schur, ICC, balancing deflation of u,
k = 20, 64 clusters
82,746 409.3∗ 3.30×1012 1.9×10−4 2.93
3_018 FGMRES, full Schur, ICC, additive deflation of u,
k = 20, 32 clusters
137,756 516.7 3.58×1012 9.0×10−5 0.14
3_019 FGMRES, full Schur, GAMG, additive deflation of
T and u, k = 20, 32 clusters
84,000 880.5∗ 7.19×1012 1.3×10−5 0.99
3_020 FGMRES, full Schur, GAMG, balancing deflation of
T and u, k = 25, 32 clusters
43,986 640.3 5.21×1012 1.3×10−4 0.91

Table S7. All candidates of the single agent for the three-dimensional thermoelastic problem. The plan of the first generation was rejected by the validator. Iterations, online time, and MAC are totals over the 4,000 steps, and the errors are the final relative L 2 errors of the temperature and of the displacement.

ID Configuration Iterations Online (s) MAC Error in T Error in u
2_001 FGMRES, full Schur, Jacobi, balancing deflation of
T, k = 32
no convergence in the first time step
2_002 FGMRES, full Schur, Jacobi, balancing deflation of
u, k = 16, 4 clusters
666,454 2,366.1∗ 2.14×1013 4.7×10−5 1.74
2_003 FGMRES, full Schur, Jacobi, additive deflation of T,
k = 64, 2 clusters
no convergence in the first time step
2_004 FGMRES, full Schur, Jacobi, additive deflation of u,
k = 8, 8 clusters
stopped at the two-hour limit
2_005 FGMRES, full Schur, Jacobi, balancing deflation of
T, k = 32, 4 clusters
no convergence in the first time step
2_006 FGMRES, full Schur, Jacobi, balancing deflation of
T, k = 16
no convergence in the first time step
ID Configuration Iterations Online (s) MAC Error in T Error in u
2_007 FGMRES, lower Schur, Jacobi, balancing deflation
of u, k = 64, 2 clusters
895,296 4,154.1 3.89×1013 4.1×10−5 4.03
2_008 FGMRES, upper Schur, Jacobi, additive deflation of
T, k = 8, 4 clusters
no convergence in the first time step
2_009 FGMRES, full Schur, Jacobi, balancing deflation of 456,339 1,757.0 1.57×1013 2.0×10−4 37.2
u, k = 24, 8 clusters
2_010 FGMRES, lower Schur, Jacobi, additive deflation of
no convergence in the first time step
T, k = 48
2_011 FGMRES, full Schur, Jacobi, balancing deflation of
937,492 3,767.7 3.46×1013 8.4×10−5 4.73
u, k = 32, 2 clusters
2_012 FGMRES, full Schur, Jacobi, additive deflation of T,
no convergence in the first time step
k = 16, 8 clusters
2_013 FGMRES, upper Schur, Jacobi, balancing deflation
597,306 2,663.2 2.38×1013 6.7×10−5 1.32
of u, k = 48, 4 clusters
2_014 FGMRES, lower Schur, Jacobi, balancing deflation
no convergence in the first time step
of T, k = 8, 2 clusters
2_015 FGMRES, full Schur, Jacobi, additive deflation of u,
633,518 1,700.9 1.36×1013 9.2×10−5 1.60
k = 32, 4 clusters
2_016 FGMRES, full Schur, Jacobi, balancing deflation of
no convergence in the first time step
T, k = 64, 8 clusters
2_017 FGMRES, upper Schur, Jacobi, additive deflation of
2,487,948 5,559.0∗ 4.32×1013 8.9×10−6 0.83
u, k = 16
2_018 FGMRES, full Schur, Jacobi, balancing deflation of
no convergence in the first time step
T, k = 24, 2 clusters
2_019 FGMRES, full Schur, Jacobi, additive deflation of u,
stopped at the two-hour limit
k = 8, 4 clusters
2_020 FGMRES, upper Schur, Jacobi, balancing deflation
no convergence in the first time step
of T, k = 48, 8 clusters
3_001 FGMRES, full Schur, Jacobi, balancing deflation of
922,838 4,527.5 4.17×1013 5.4×10−5 11.7
u, k = 64, 2 clusters
3_002 FGMRES, upper Schur, Jacobi, additive deflation of
stopped at the two-hour limit
u, k = 8, 4 clusters
3_003 FGMRES, full Schur, Jacobi, balancing deflation of
stopped at the two-hour limit
u, k = 16
3_004 FGMRES, full Schur, Jacobi, balancing deflation of
stopped at step 100, projected time above the limit
u, k = 8, 8 clusters
3_005 FGMRES, lower Schur, Jacobi, balancing deflation
606,777 2,172.9∗ 2.13×1013 9.2×10−5 9.64
of u, k = 32, 4 clusters
3_006 FGMRES, upper Schur, Jacobi, balancing deflation
stopped at the two-hour limit
of u, k = 24
3_007 FGMRES, full Schur, Jacobi, balancing deflation of
908,828 4,053.8∗ 3.78×1013 4.2×10−5 6.86
u, k = 48, 2 clusters
3_008 FGMRES, full Schur, Jacobi, additive deflation of u,
637,471 1,650.6 1.29×1013 7.6×10−5 2.25
k = 24, 4 clusters
3_009 FGMRES, full Schur, Jacobi, balancing deflation of
597,612 2,394.3 2.20×1013 6.7×10−5 7.42
u, k = 32, 4 clusters
3_010 FGMRES, upper Schur, Jacobi, balancing deflation
stopped at the two-hour limit
of u, k = 16
3_011 FGMRES, full Schur, Jacobi, balancing deflation of
597,612 2,380.5 2.20×1013 6.7×10−5 7.42
u, k = 32, 4 clusters
3_012 FGMRES, full Schur, Jacobi, balancing deflation of
456,829 2,068.4 1.91×1013 2.1×10−4 59.7
u, k = 48, 8 clusters
3_013 FGMRES, full Schur, Jacobi, balancing deflation of
stopped at step 100, projected time above the limit
u, k = 8, 2 clusters
3_014 FGMRES, upper Schur, Jacobi, balancing deflation
457,941 1,752.1 1.61×1013 2.1×10−4 51.6
of u, k = 32, 8 clusters
ID Configuration Iterations Online (s) MAC Error in T Error in u
3_015 FGMRES, full Schur, Jacobi, balancing deflation of 534,091 1,913.6 \(1.71\times10^{13}\) \(9.6 \times 10^{-5}\) 348.0
3 016 \(\mathbf{u}\) , \(k = 16\) , 8 clusters
FGMRES, full Schur, Jacobi, balancing deflation of
stopped at the two-ho our limit
3_010 \(\mathbf{u}, k = 8\) stopped at the two-ne our millt
3_017 FGMRES, lower Schur, Jacobi, balancing deflation 1,972,544 6,753.9 \(6.45\times10^{13}\) \(1.5\times10^{-5}\) 1.24
2 010 of \(\mathbf{u}, k = 24\) 594.676 26646* \(2.48 \times 10^{13}\) 7.2 × 10-5 5.78
3_016 FGMRES, full Schur, Jacobi, balancing deflation of \(\mathbf{u}\) , \(k = 48\) , 4 clusters 394,070 2,004.0 2.48 × 10 7.2 × 10 3.78
3_019 FGMRES, full Schur, Jacobi, balancing deflation of 456,339 1,733.9* \(1.57\times10^{13}\) \(2.0\times10^{-4}\) 37.2
2 020 \(\mathbf{u}, k = 24, 8 \text{ clusters}\) . 1 1: '4
3_020 FGMRES, full Schur, Jacobi, balancing deflation of \(\mathbf{u}\) , \(k = 48\) stopped at the two-ho our iimit

Supplementary Note 5. Two independent discovery runs on a heterogeneous Poisson problem

In addition to the four problem classes in the main text, the system was run twice with the same protocol on a two-dimensional Poisson problem with a heterogeneous coefficient. The two runs were initialized independently from the same problem statement. They were made with an earlier configuration of the system, before the open-weight language models and the plan validator of the main text were introduced, and they are kept here as a record of the variability between two runs. We report both to show what changes between runs due to LLM sampling and what remains consistent. For given \(\Omega = (0,1)^2\) , the problem is given by

\[\begin{cases} -\nabla \cdot (\kappa(x,y)\nabla u(x,y)) = f(x,y), & (x,y) \in \Omega, \\ u(x,y) = 0, & (x,y) \in \partial \Omega, \end{cases}\]

where

\[\begin{cases} f(x,y) = 10 \exp\left(-\frac{(x-0.5)^2 + (y-0.5)^2}{0.02}\right), \\ \kappa(x,y) \sim GRF(\sigma, \ell), k \ge 0.3. \end{cases}\]

First-order elements on a grid of \(1024 \times 1024\) cells give 1,050,625 unknowns. The pretrained operators are five DeepONets with 128 trunk functions that map the source to the solution and differ in architecture, using either a multilayer-perceptron trunk, a U-Net branch, or Legendre, Chebyshev, and Jacobi Kolmogorov-Arnold trunks. The baseline, conjugate gradients with a Jacobi preconditioner, is regenerated at the start of each run and required 3,743 iterations and 56.0 s in the first run and 3,812 iterations and 47.0 s in the second. Representative candidates from both runs are listed in Table S8, and the two populations are shown in Fig. S2.

In the first run, nine of the twenty candidates in the first generation failed at runtime in their Python preconditioners. All nine used HINTS-style schedules that applied the operator inside the iteration. A tenth candidate, using an initial guess from the U-DeepONet, diverged immediately. The ten successful candidates used the trunk basis as the coarse space of an additive or multiplicative two-level cycle with a Jacobi, SSOR, or block-Jacobi ILU(0) smoother, or used the operator as an initial guess. The best required 594 iterations. The second generation concentrated on this family, with 18 successful candidates and a best count of 185 iterations. All twenty candidates in the third generation converged. Most refined the same family by increasing the coarse-space rank or the fill level of the incomplete factorization, as in 3_016, which used ILU(2) and converged in 103 iterations and 16.7 s. One candidate, 3_011, replaced the incomplete factorization with a single BoomerAMG V-cycle as the smoother in the additive cycle and converged in 7

iterations and 3.2 s. Relative to the baseline, this reduced the iteration count by a factor of 535 and the online time by a factor of 18.

The second run found a different mechanism in its first generation. Among the archetypes from the knowledge base used to cross with the baseline, one attached the operator trunk basis, together with the constant vector, to the smoothed-aggregation hierarchy of PETSc-GAMG as its near-nullspace, allowing the multigrid prolongation operators to interpolate the learned modes exactly. Candidate 1_019, with k = 8 trunk vectors and FGMRES, converged in 9 iterations and 7.3 s in the first generation. Sixteen of the twenty first-generation candidates succeeded. The four failures were deflated conjugate-gradient variants that passed the residual test but returned incorrect solutions with relative errors between 0.03 and 0.9. The accuracy metric exposed this defect, and the Proposer excluded this family from the parent pool in later generations. The second and third generations, with 17 and 19 successes, reduced the rank of the attached basis from 8 to 2 and tuned the Chebyshev smoother of the hierarchy. The run ended with 3_016 at 5 iterations, 3_001 at 1.3 s, and 3_018 at the lowest arithmetic, all with relative errors near 10−10. Relative to the baseline of that run, the iteration count fell by a factor of 762 and the online time by a factor of 36.

The arithmetic counts of the two runs are not directly comparable. In the first run, the one-time inference used to build the trunk basis was not charged, and the count for 3_011 excludes arithmetic performed inside hypre, which is not recorded by the PETSc counters. In the second run, the setup inference was charged to every candidate, which is why the counts of the near-nullspace family exceed 1010 even though their solves take only a few seconds. Iteration counts and online times are therefore the quantities that can be compared, and these are the ones reported above.

The two runs agree on the outcome but differ in the path. Both ended with multigrid combined with the learned basis of the operator, once as an additive coarse space alongside an algebraic multigrid smoother and once as the near-nullspace of the multigrid hierarchy. Both reduced the iteration count from about 3,800 to twelve or fewer and the online time from about 50 s to a few seconds. The success count also increased across generations, from 10 to 18 to 20 in the first run and from 16 to 17 to 19 in the second. The paths differed because the first run discovered the value of algebraic multigrid only in the final generation and in a single candidate, whereas the second run received it from an archetype in the first generation and spent the remaining generations refining it. The identity of the champion and the generation in which the decisive mutation appears therefore depend on language-model sampling, while the family of solvers on the front is what repeated runs reproduce.

Supplementary Note 6. Runs of the single agent

The single agent of Results, Table 3, is one Qwen3-Coder-30B model that writes the plan of each generation without a Critic and then engineers and analyses the candidates, on the same problem statements, knowledge base, neural operators, solver library, validator, baselines, and metrics as the multi-agent system. This note records what happened in each of its twelve generations.

On the Helmholtz problem no generation was executed. In the first and second generations the planner returned a status stating that no executable configuration existed, and repeated it in both repair attempts (Supplementary Note 2). In the third generation it wrote a plan of twenty candidates in which the first candidate lacked the required field of solver parameters, and the two repairs did not restore it.

On the elasticity problem no generation was executed either, and the three plans were rejected for three different defects. The first assigned to the deflation module a Krylov method outside the three that the module admits, the second gave the options of the base preconditioner in a form that the module does not accept, and the third configured the multigrid module without the flexible outer method that it requires.

Figure S2. The two independent discovery runs on the heterogeneous Poisson problem in the plane of iteration count and online time. a, First run. The first two generations populate a family of additive two-level cycles with a trunk-basis coarse space, while the third produces 3_016 with an ILU(2) smoother and 3_011 with a BoomerAMG V-cycle as smoother. b, Second run. The family of GAMG hierarchies with the trunk basis attached as a near-nullspace appears in the first generation and is refined in the next two, ending with 3_016, 3_001, and 3_018. Only candidates that converged with relative error at or below 10−4 are shown, and the stars denote the baselines of the two runs.

Table S8. Representative candidates from the two discovery runs on the heterogeneous Poisson problem. The selected members of the final fronts are shown in bold. The arithmetic counts of the two runs use different accounting rules and are therefore not directly comparable, as explained in the text.

ID Meta-solver Iterations Online (s) MAC 2
Rel. L
error
Run 1 (baseline regenerated, 3,743 iterations)
0_000 CG with Jacobi, baseline 3,743 56.0 1.02×1011 5.94×10−11
1_017 FGMRES, additive ASM with ILU(0) and trunk-basis coarse
space k = 20
594 43.7 1.09×1011 1.15×10−9
2_014 BiCGStab, additive ASM with ILU(0) and trunk-basis coarse
space k = 32
198 30.9 6.96×1010 5.86×10−10
3_002 BiCGStab, additive ASM with ILU(0) and trunk-basis coarse
space k = 48
167 32.8 1.30×1010 5.24×10−10
3_016 BiCGStab, additive ASM with ILU(2) and trunk-basis
coarse space k = 32
103 16.7 1.07×1010 5.39×10−10
3_011 BiCGStab, additive BoomerAMG V-cycle and trunk-basis
coarse space k = 32
7 3.2 3.55×108† 4.50×10−12
Run 2 (baseline regenerated, 3,812 iterations)
0_000 CG with Jacobi, baseline 3,812 47.0 1.04×1011 1.08×10−10
1_019 FGMRES, GAMG with the trunk basis k = 8 as near-nullspace 9 7.3 1.27×1010 1.62×10−11
2_003 FGMRES, GAMG with the trunk basis k = 4 as near-nullspace 10 3.1 4.33×1010 9.24×10−12
3_018 FGMRES, GAMG with the trunk basis k = 4 as near
nullspace, Chebyshev smoothing
12 3.6 9.70×109 4.48×10−11
3_001 FGMRES, GAMG with the trunk basis k = 2 as near
nullspace, Chebyshev smoothing
11 1.3 4.10×1010 1.02×10−10
3_016 BiCGStab, GAMG with the trunk basis k = 4 as near
nullspace, Chebyshev smoothing
5 3.3 4.36×1010 2.02×10−10

On the two-dimensional thermoelastic problem the first generation was rejected, again with the statement that no executable configuration existed, and the second and third were executed (Table S5). All forty candidates use a full Schur factorization with Jacobi on both blocks and a deflation of the displacement block. Because the executed configurations differ only in the rank and the mode of the deflation, the twenty candidates of each generation give six and five distinct results. The second generation, under FGMRES, meets the temperature target in all twenty candidates, with displacement errors between 9.0 × 10−3 and 3.0×10−2 , in 223 to 325 s. The third generation, under GMRES with a tolerance of 10−9 , is three to four times faster, and its temperature errors are above 6×10−3 .

On the three-dimensional thermoelastic problem the first plan was rejected because six candidates named a global Krylov method outside the admissible set for the block system. In the second generation, the eleven candidates that deflate the temperature block did not converge in the first time step, and seven of the nine that deflate the displacement block completed. The third generation deflated the displacement block in all candidates, and twelve completed (Table S7). The fifteen candidates that meet the temperature target have displacement errors of 0.83 or more.