Accelerating Legacy Numerical Solvers by Non-intrusive Gradient-based Meta-solving
Sohei Arisaka, Qianxiao Li
TL;DR
This work tackles the challenge of accelerating legacy, non-differentiable numerical solvers by introducing NI-GBMS, a non-intrusive gradient-based meta-solving framework that jointly trains neural meta-solvers with legacy solvers using a forward-gradient estimator. A surrogate model and a control variate are employed to produce unbiased, low-variance gradient estimates, enabling end-to-end training without modifying existing code. Theoretical convergence analysis and numerical experiments demonstrate faster training and substantial reductions in solver iterations, including applications to Poisson, biharmonic, and linear elasticity problems in PETSc and FEniCS. The approach broadens the applicability of neural-guided solver optimization to real-world, non-differentiable software, offering practical speedups for large-scale scientific computing tasks.
Abstract
Scientific computing is an essential tool for scientific discovery and engineering design, and its computational cost is always a main concern in practice. To accelerate scientific computing, it is a promising approach to use machine learning (especially meta-learning) techniques for selecting hyperparameters of traditional numerical methods. There have been numerous proposals to this direction, but many of them require automatic-differentiable numerical methods. However, in reality, many practical applications still depend on well-established but non-automatic-differentiable legacy codes, which prevents practitioners from applying the state-of-the-art research to their own problems. To resolve this problem, we propose a non-intrusive methodology with a novel gradient estimation technique to combine machine learning and legacy numerical codes without any modification. We theoretically and numerically show the advantage of the proposed method over other baselines and present applications of accelerating established non-automatic-differentiable numerical solvers implemented in PETSc, a widely used open-source numerical software library.
