Enhancing Hypergradients Estimation: A Study of Preconditioning and Reparameterization
Zhenzhang Ye, Gabriel Peyré, Daniel Cremers, Pierre Ablin
TL;DR
The paper tackles hypergradient estimation in bilevel optimization, where the outer gradient is computed via the Implicit Function Theorem and is sensitive to inner-solution error. It develops two consistent strategies to reduce this error: preconditioning the inner problem and reparameterizing the inner problem, and it derives how these strategies affect the hypergradient through the Jacobian $\tilde{\Omega}_1$ and the efficiency constant $C_y$. A key contribution is the notion of super-efficiency, where the hypergradient error decays quadratically with inner-resolution error, achievable under specific structures (e.g., Newton-like preconditioning with $P=F_1$ or certain affine outer objectives) and in localized/separable reformulations under favorable conditions. Theoretical analysis is complemented by numerical experiments on ridge and logistic regression that illustrate when preconditioning generally outperforms reparameterization and when carefully designed reparameterizations can compensate for poor Hessian approximations, providing practical guidance for scalable bilevel learning tasks.
Abstract
Bilevel optimization aims to optimize an outer objective function that depends on the solution to an inner optimization problem. It is routinely used in Machine Learning, notably for hyperparameter tuning. The conventional method to compute the so-called hypergradient of the outer problem is to use the Implicit Function Theorem (IFT). As a function of the error of the inner problem resolution, we study the error of the IFT method. We analyze two strategies to reduce this error: preconditioning the IFT formula and reparameterizing the inner problem. We give a detailed account of the impact of these two modifications on the error, highlighting the role played by higher-order derivatives of the functionals at stake. Our theoretical findings explain when super efficiency, namely reaching an error on the hypergradient that depends quadratically on the error on the inner problem, is achievable and compare the two approaches when this is impossible. Numerical evaluations on hyperparameter tuning for regression problems substantiate our theoretical findings.
