Neural Network Preconditioning: A Case Study for the Solution of the Parametric Helmholtz Equation
Listen
Radio episode about this paper
Transcript
Introduction to the show: ident: AI Radio. Generated commentary on the latest Artificial Intelligence papers.
Tom: I'm Tom.
Jane: And I'm Jane, here with Lu, Meng and our in-house large language model, Lalam.
Tom: Today's paper: "Neural Network Preconditioning".
Jane: The gist: A convolutional neural network based on the U-Net architecture is trained in a self-supervised manner to approximate the inverse of the discretized Helmholtz operator,
Tom: First, who's behind it and why it matters.
Title and authors: Tom: So we're focusing on how this paper tackles solving linear systems from the discretization of the two-dimensional parametric Helmholtz equation, using a convolutional neural network as a nonlinear preconditioner. It’s about making iterative methods converge way quicker than they could before.
Jane: I was just thinking about how complicated those equations are, and this paper suggests that instead of relying on traditional algebraic preconditioning, we can use this learned inverse operator to speed up the Flexible GMRES algorithm.
Lu: The main contribution is showing that this trained neural network can serve as an effective nonlinear preconditioner for FGMRES with attractive generalization properties across different parameter instances within the class considered.
Meng: Generalization properties sound important, but what does that actually mean when you're talking about solving a PDE system? Does it mean it works well even if the physical parameters shift slightly?
Lalam: It means that once you train this network, you can use it to solve a sequence of different linear systems with different left-hand sides or right-hand sides without having to retrain anything for each new problem instance.
The paper's summary: Tom: The summary explains that they are training the neural network using a loss function that looks at the backward error with respect to the solution, specifically minimizing something like Eb,c
L theta(b, c): .
Jane: That loss function is key because it forces the network N theta to approximate A inverse of c for any given parameter c. It’s essentially forcing the AI to learn how to undo what that mathematical operator does.
Lu: They trained this model using training and validation data generated where the entries of b are independent and normally distributed with zero mean and unit variance, while the ones of c are independent and uniformly distributed between one and two.
Meng: So they’re generating a specific set of test cases—random inputs for both the source field b and the parameter c—and using those to teach the network how to invert A. That sounds like a lot of data generation upfront, which I have some concerns about for deployment.
Lalam: It is necessary because they need enough varied examples to ensure this learned operator N theta(c) really works as an effective nonlinear preconditioner within FGMRES.
The paper's improvements: Tom: The paper points out two big things: first, that the neural network itself isn't accurate enough to be a standalone solver; it has a backward error that varies between zero point one and zero point eight, which means you can’t just feed it the problem and get an exact answer.
Jane: So it’s not a replacement for the main solver, but something that works inside FGMRES to significantly improve convergence speed instead of trying to solve the whole system at once.
Lu: The real strength, according to their numerical experiments, is that this neural preconditioner consistently outperforms all the algebraic preconditioners they tested, including one that performed quite well with epsilon equal to zero point zero zero five.
Meng: Outperforming the best algebraic ones is a strong claim because those classical methods are usually very well tuned for these kinds of problems. What’s the practical gain here beyond just being faster in terms of iterations?
Lalam: The main advantage they highlight is that this nonlinear NN preconditioner is trained once and for all, and then it can be reused to solve an arbitrarily large number of subsequent problems.
Conclusion: Tom: So to wrap up, the paper demonstrates the potential of using neural networks as nonlinear preconditioners in subspace methods like FGMRES to solve parametric Helmholtz equations. It’s a hybrid approach combining machine learning speed with numerical reliability.
Jane: The main implication is that we can use these learned approximate inverses to significantly accelerate convergence for solving these types of linear systems, especially when dealing with many different problem instances.
Lu: The robustness they show in the experiments is notable, because the neural preconditioner exhibits remarkable robustness when applied to larger problems in terms of domain size or number of degrees of freedom, or even to parameter values outside the original training scope.
Meng: That’s reassuring regarding deployment because it suggests we can use this tool on problems that are slightly different from what we initially trained it on, as long as they stay within reasonable bounds.
Lalam: The paper "Neural Network Preconditioning: A Case Study for the Solution of the Parametric Helmholtz Equation" shows how approximate learned inverses can be effectively integrated into established numerical schemes, which opens up avenues for using machine learning in scientific computing broadly.
Luc Giraud, Carola Kruse, Paul Mycek, *Maksym Shpakovych, Yanfei Xiang
inria · Cerfacs
math.NA, cs.LG, cs.NA
Submitted: 2026-10-12
Updated: 2026-10-12
Journal ref: L. Giraud, C. Kruse, P. Mycek, M. Shpakovych, and Y. Xiang, "Neural Network Preconditioning: A Case Study for the Solution of the Parametric Helmholtz Equation," Numerical Linear Algebra with Applications 33, no. 5 (2026): e70123
DOI: 10.1002/nla.70123
License: http://creativecommons.org/licenses/by/4.0/
The gist: The gist: A convolutional neural network based on the U-Net architecture is trained in a self-supervised manner to approximate the inverse of the discretized Helmholtz operator, and this trained
Key concepts
- U-Net Architecture
- A specific type of convolutional neural network designed for image processing, adapted here to treat discretized source and velocity fields as image-like tensors. It uses an encoder-decoder structure to learn complex mappings between input fields and the desired output, making it suitable for approximating the inverse operator.
- Nonlinear Preconditioner
- A technique used in iterative solvers like GMRES where a neural network is employed to estimate an approximate inverse of the linear system. This estimate helps guide the iterative solver toward the solution much faster than traditional algebraic methods, speeding up convergence significantly.
- Self-Supervised Training
- The neural network is trained without needing explicit target solutions. Instead, it learns by minimizing a loss function based on the residual of the linear system itself. The goal is for the network to learn how to approximate $A^{-1}$ directly from the input data, effectively learning the inverse operator's behavior.
- Flexible GMRES (FGMRES)
- An iterative method used to solve large linear systems that allows for flexible Krylov subspace generation. It is enhanced here by incorporating the trained neural network as a nonlinear preconditioner, which helps accelerate the convergence of this subspace iteration method.
Summary
The gist: A convolutional neural network based on the U-Net architecture is trained in a self-supervised manner to approximate the inverse of the discretized Helmholtz operator, and this trained network is used as a nonlinear preconditioner within the flexible GMRES (FGMRES) algorithm to significantly improve convergence for solving linear systems arising from the discretization of the two-dimensional parametric Helmholtz equation.
How it works
The core approach involves hybridizing machine learning techniques with classical numerical algebra methods, specifically using a trained neural network (NN) as a nonlinear preconditioner for the flexible GMRES (FGMRES) subspace iteration method to solve linear systems arising from the discretization of the two-dimensional parametric Helmholtz equation The approach is based on training an NN in a self-supervised manner using a loss function involving the residual norm of the linear system to approximate the inverse of the discretized Helmholtz operator This trained network is then employed as a nonlinear preconditioner within FGMRES to speed up convergence.
The neural network components are designed based on the input fields of the discretized source and velocity fields The NN is designed using a U-Net architecture that takes the discretized source and velocity fields as inputs, recasting them as image-like tensors to be suitable for the convolutional nature of the U-Net. The network's functional representation is a nonlinear operator Nθ: C n × R n → C n, defined by Nθ(b, c) = Nθ(c)(b).
Training and Loss Function
The training process aims at finding the parameters θ∗ ∈ Θ of the neural network that minimize a certain cost functional J: Θ → R The cost function takes the form J(θ) = Eb,c[Lθ(b, c)]. The loss function is defined by Lθ(b, c) = ∥b − A(c)Nθ(b, c)∥2 / 2∥b∥2 / 2. This loss function corresponds to the backward error with respect to b of x˜ as an approximate solution to the linear system A(c)x = b. The network is trained so that Nθ(c) ≈ A−1(c) for any c. The training process is summarized in Figure 3.
The network was trained using training and validation data generated with the following parameters involved in the discretization of the Helmholtz equation The distribution of (b, c) is defined component-wise and independently for b and c such that the entries of b are independent and normally distributed with zero mean and unit variance (we denote b iid∼ N (0, 1)), the ones of c are independent and uniformly distributed between 1 and 2 (i.e., c iid∼ U([1, 2])).
Numerical Experiments
Numerical experiments evaluate the quality and robustness of the neural network, first as a standalone solver as a surrogate model, then as a nonlinear preconditioner The quality of an approximate solution x˜ to the linear system A(c)x = b will be evaluated through the normwise backward error ηb(˜x):= ∥b − A(c)˜x∥2 / ∥b∥2.
The trained networks are tested for generalization capabilities with respect to the parameter c and with respect to the domain size For the set of trained parameters, the numerical quality of the predicted solutions by the surrogate model is extremely poor, with a backward error ηb(ˆxθ) that varies between 0.1 and 0.8. The results presented in the last two subsections indicate that the network cannot be used as a stand-alone solver, as it lacks the robustness needed for accurate solutions.
Preconditioning Effectiveness
The effectiveness of the neural preconditioner is reported by comparing its performance with respect to an algebraic preconditioner in Section 4.2.1. The NN consistently outperforms all the algebraic preconditioners, including the best-performing one obtained with ϵ = 0.005. The NN is the same for all linear systems—an important feature that makes Nθ particularly suitable as a preconditioner when one needs to solve a sequence of (possibly massively many) systems with different left- and/or right-hand sides.
In Figure 7, the convergence history of ηb for the solution of 100 linear systems derived from the discretization of the Helmholtz problem with a random velocity field c iid∼ U([1, 2]), using FGMRES without restart is displayed. All convergence histories using Nθ (in orange) are closely aligned and convergence to 10−10 is achieved in fewer than 20 iterations. The main advantage of the nonlinear NN preconditioner is that it is trained once and for all, and can subsequently be used to solve arbitrarily many problems.
Robustness and Generalization
The NN-FGMRES solver is highly robust to the PDE parameters c and b, not only in terms of ranges of values, but also in terms of structure. The convergence history for the pair (c0 = 1.25, c1 = 1.75), which fully lies in the training range [1, 2], shows fast convergence (ηb reaches 10−10 in fewer than 30 iterations for both trainings). Furthermore, the NN-FGMRES is still able to somewhat accelerate the convergence of the subspace solver. The results suggest that the NN-FGMRES is highly robust to the PDE parameters c and b, not only in terms of ranges of values, but also in terms of structure.
The methodology presented here builds on this growing body of work by demonstrating that approximate learned inverses can be effectively integrated into established numerical schemes. The intersection of numerical linear algebra and machine learning continues to pave the way for solving complex, high-dimensional scientific problems.
Conclusion
This study illustrates the potential of using neural networks as nonlinear preconditioners to solve parametric Helmholtz equations using subspace methods. This hybrid approach combines the generalisation capabilities and computational speed of neural networks with the numerical reliability of classical iterative methods. The generic framework can be extended to other classes of linear systems beyond the Helmholtz equation, offering a promising approach to machine learning in scientific computing. Several promising avenues for future research have emerged.
--- Page 1 ---
Neural network preconditioning: a case study for the solution of the parametric Helmholtz equation Luc Giraud Carola Kruse Paul Mycek Maksym Shpakovych and Yanfei Xiang Inria Concace joint team between Airbus CR&T Cerfacs and Inria Current affiliation Opticalp France Current affiliation IRMA Université de Strasbourg MACARON Inria France Corresponding author mycek@cerfacs.fr 1 arXiv:2610.16542v1 [math.
Improvements for AI systems
-
No generic, efficient preconditioner currently exists for linear systems arising from the discretization of parametric PDEs like Helmholtz equations; this work introduces a
hybrid numerical approach
where a trained neural network is used as a nonlinear preconditioner within the flexible GMRES (FGMRES) algorithm tosignificantly improve the convergence of FGMRES.
-
The improved AI system can solve large linear systems arising from 2D parametric Helmholtz equation discretization by using the trained neural network as a preconditioner, demonstrating
robust performance and generalization capabilities with respect to variations in the velocity field and the domain size.
-
The system can accelerate convergence of subspace methods like FGMRES by approximating the inverse of the discretized Helmholtz operator, as shown in Equation (4):
In this paper we use this equality with Mi = Nθ, which is the trained neural network.
-
The system exhibits robustness when applied to problems outside its training scope, as the learned NN preconditioner
exhibits remarkable robustness when applied to larger problems (in terms of domain size and number of degrees of freedom), or to problems with parameter values or structure outside the training scope.
Abstract
This work presents a hybrid numerical approach for solving linear systems arising from the discretization of the two-dimensional parametric Helmholtz equation. A convolutional neural network based on the U-Net architecture is trained in an self-supervised manner (i.e., without explicitly generating reference solutions) to approximate the inverse of the discretized Helmholtz operator, using a loss function involving the residual norm of the linear system. The trained network is used as a nonlinear preconditioner within the flexible GMRES (FGMRES) algorithm. Numerical experiments show that while the neural network is not accurate enough to act as a standalone solver, it significantly improves the convergence of FGMRES when employed as a preconditioner. The neural preconditioner demonstrates robust performance and generalization capabilities with respect to variations in the velocity field and the domain size. Comparisons with algebraic preconditioners, based on LU factorizations of approximations of the original system matrices, indicate the superior efficiency of the neural approach under equivalent conditions. We believe that the proposed method is not tied to a specific neural architecture and can be extended to other parametric PDEs.
Sources
- Adam: A Method for Stochastic Optimization
- Neural Preconditioning Operator for Efficient PDE Solves
- VRJP recurrence and fractional-moment decay for the \(H^{2|2}\) model's effective field on the hierarchical lattice
- U-Net: Convolutional Networks for Biomedical Image Segmentation
- Learning from Linear Algebra: A Graph Neural Network Approach to Preconditioner Design for Conjugate Gradient Solvers
Related papers
- Do physics-informed neural networks (PINNs) need to be deep? Shallow PINNs using the Levenberg-Marquardt algorithm
- A Neural-preconditioned Poisson Solver for Mixed Dirichlet and Neumann Boundary Conditions
- Operator learning meets inverse problems: A probabilistic perspective
- Second-order consistency for learning chaotic dynamics via randomized Jacobian matching
- Windowed thinning and query complexity for the bouncy particle and Zigzag samplers
- Data-efficient Kernel Methods for Learning Hamiltonian Systems