Abstract
Solving partial differential equations (PDEs) using Gaussian processes (GPs) offers a mesh-free approach with inherent uncertainty quantification. However, the performance of these methods is highly sensitive to hyperparameter selection, such as kernel lengthscales. Traditional bilevel optimization for hyperparameter tuning is computationally expensive, especially for nonlinear PDEs. This paper introduces a novel bilevel optimization strategy that employs a single Gauss-Newton (GN) linearization step to bypass full inner-loop PDE solves. This method facilitates fast, scalable hyperparameter learning, even for high-dimensional parameter spaces defined by neural networks, resulting in significant accuracy improvements for both forward and inverse problems.
Introduction
Machine learning and kernel-based methods are increasingly utilized for solving PDEs and inverse problems. While these methods provide flexibility, their success depends on carefully tuned hyperparameters. A poor choice of lengthscale, for instance, can lead to over-smoothing or numerical instability. The standard approach—bilevel optimization—requires solving the PDE (the inner problem) for every update of the hyperparameters (the outer problem). For nonlinear PDEs, this inner loop is a costly optimization task, making the overall process computationally prohibitive.
Methodology
The proposed method avoids the computational burden of fully solving the inner PDE problem at each iteration. Instead, the authors replace the inner problem with a single Gauss-Newton linearization around the current state.
Gauss-Newton Linearization
By linearizing the PDE constraints, the inner problem is transformed into a linearly constrained quadratic program. According to the representer theorem, this transformed problem has a closed-form solution. This explicit formula allows the outer loop to compute gradients (hypergradients) with respect to the hyperparameters using standard automatic differentiation, avoiding memory-intensive unrolling or high-accuracy implicit differentiation.
The authors describe two implementations:
- Optimize-Then-Discretize (OTD): The PDE is linearized in continuous function space before discretizing the outer loss using validation points.
- Discretize-Then-Optimize (DTO): A discrete set of validation points is fixed upfront, and residuals are linearized at those specific points for optimization.
Experimental Evaluation
The method was evaluated on several canonical PDEs to demonstrate its versatility:
- 1D and 2D nonlinear elliptic equations.
- The complex-valued nonlinear Schrödinger equation.
- The Gray-Scott reaction-diffusion system.
- Eikonal and Burgers' equations.
- Inverse problems, such as Darcy flow, where the goal is to reconstruct a hidden permeability field from noisy pressure observations.
Key Results
The bilevel optimization approach demonstrates significant improvements in accuracy and robustness across all tested scenarios:
- Accuracy Gains: In solving the Burgers' equation, the learned kernel reduced the $L^2$ error from $1.5 \times 10^{-1}$ (unlearned) to $9.5 \times 10^{-6}$.
- Robustness to Initialization: The optimization reliably converges to optimal hyperparameter values regardless of where they are initialized. In elliptic equation tests, initial lengthscales ranging from 0.05 to 3.0 converged to the same optimal value (~0.2).
- Scalability: The framework successfully optimized over 2,800 hyperparameters for a neural network-parameterized kernel, effectively capturing sharp features in the Eikonal and Burgers' equations.
Discussion and Future Work
A key insight of this work is that a perfectly converged inner solve is unnecessary for obtaining useful gradients for hyperparameter updates; a single GN step serves as an effective surrogate. Furthermore, hyperparameters learned on specific initial conditions generalize well to different setups, suggesting the model learns the underlying physics and regularity of the PDE rather than just overfitting a single instance.
Despite its success, the method's reliance on dense Gram matrices poses a scalability challenge for extremely large-scale or high-dimensional problems. Future research will explore accelerating linear solves via randomized sketching or sparse Cholesky factorizations and extending the framework to operator learning architectures like DeepONets and Fourier Neural Operators.
Summary updated