Efficient gradient-based methods for bilevel learning via recycling Krylov subspaces
Matthias J. Ehrhardt, Silvia Gazzola, Sebastian J. Scott
TL;DR
This work tackles the high cost of computing hypergradients in bilevel learning by introducing recycling Krylov subspaces that reuse information across successive Hessian solves. It advances a bilevel-aware recycling strategy based on the generalized singular value decomposition (GSVD), using Ritz generalized singular vectors to build recycle spaces that account for the premultiplication by the Jacobian in hypergradients. A new stopping criterion that directly approximates hypergradient error is proposed, enabling early termination without sacrificing gradient quality. Numerical experiments on imaging inverse problems (e.g., MNIST inpainting and BSDS300 deconvolution) demonstrate substantial reductions in Hessian-solve iterations and overall computation while preserving hypergradient accuracy, highlighting the method’s practical impact for scalable bilevel learning in large-scale inverse problems.
Abstract
Many optimization problems require hyperparameters, i.e., parameters that must be pre-specified in advance, such as regularization parameters and parametric regularizers in variational regularization methods for inverse problems, and dictionaries in compressed sensing. A data-driven approach to determine appropriate hyperparameter values is via a nested optimization framework known as bilevel learning. Even when it is possible to employ a gradient-based solver to the bilevel optimization problem, construction of the gradients, known as hypergradients, is computationally challenging, each one requiring both a solution of a minimization problem and a linear system solve. These systems do not change much during the iterations, which motivates us to apply recycling Krylov subspace methods, wherein information from one linear system solve is re-used to solve the next linear system. Existing recycling strategies often employ eigenvector approximations called Ritz vectors. In this work we propose a novel recycling strategy based on a new concept, Ritz generalized singular vectors, which acknowledge the bilevel setting. Additionally, while existing iterative methods primarily terminate according to the residual norm, this new concept allows us to define a new stopping criterion that directly approximates the error of the associated hypergradient. The proposed approach is validated through extensive numerical testing in the context of inverse problems in imaging.
