Bilevel optimization for learning hyperparameters: Application to solving PDEs and inverse problems with Gaussian processes
Nicholas H. Nelsen, Houman Owhadi, Andrew M. Stuart, Xianjin Yang, Zongren Zou
TL;DR
This work develops a bilevel framework for learning kernel and model hyperparameters in GP-based PDE and inverse problem solvers. By replacing full inner solves with a single Gauss--Newton linearization, it reduces each outer iteration to a linear state solve plus explicit hyperparameter updates, enabling scalable hypergradient computation. The authors demonstrate substantial gains in accuracy and robustness across nonlinear elliptic PDEs, Schrödinger equations, reaction-diffusion systems, Eikonal and Burgers’ equations, and Darcy inverse problems, including high-dimensional hyperparameters and deep kernels. The approach supports both Optimize-Then-Discretize and Discretize-Then-Optimize variants and highlights the practical impact of learned hyperparameters on generalization and stability in physics-informed learning.
Abstract
Methods for solving scientific computing and inference problems, such as kernel- and neural network-based approaches for partial differential equations (PDEs), inverse problems, and supervised learning tasks, depend crucially on the choice of hyperparameters. Specifically, the efficacy of such methods, and in particular their accuracy, stability, and generalization properties, strongly depends on the choice of hyperparameters. While bilevel optimization offers a principled framework for hyperparameter tuning, its nested optimization structure can be computationally demanding, especially in PDE-constrained contexts. In this paper, we propose an efficient strategy for hyperparameter optimization within the bilevel framework by employing a Gauss-Newton linearization of the inner optimization step. Our approach provides closed-form updates, eliminating the need for repeated costly PDE solves. As a result, each iteration of the outer loop reduces to a single linearized PDE solve, followed by explicit gradient-based hyperparameter updates. We demonstrate the effectiveness of the proposed method through Gaussian process models applied to nonlinear PDEs and to PDE inverse problems. Extensive numerical experiments highlight substantial improvements in accuracy and robustness compared to conventional random hyperparameter initialization. In particular, experiments with additive kernels and neural network-parameterized deep kernels demonstrate the method's scalability and effectiveness for high-dimensional hyperparameter optimization.
