[Paper Review] Implicit differentiation of Lasso-type models for hyperparameter optimization
This paper proposes an efficient implicit forward differentiation algorithm for Lasso-type models that avoids matrix inversion by exploiting solution sparsity, enabling scalable hyperparameter optimization via gradient descent. The method outperforms grid search, random search, and existing hypergradient approaches in both accuracy and speed, especially for high-dimensional problems with many hyperparameters.
Setting regularization parameters for Lasso-type estimators is notoriously difficult, though crucial in practice. The most popular hyperparameter optimization approach is grid-search using held-out validation data. Grid-search however requires to choose a predefined grid for each parameter, which scales exponentially in the number of parameters. Another approach is to cast hyperparameter optimization as a bi-level optimization problem, one can solve by gradient descent. The key challenge for these methods is the estimation of the gradient with respect to the hyperparameters. Computing this gradient via forward or backward automatic differentiation is possible yet usually suffers from high memory consumption. Alternatively implicit differentiation typically involves solving a linear system which can be prohibitive and numerically unstable in high dimension. In addition, implicit differentiation usually assumes smooth loss functions, which is not the case for Lasso-type problems. This work introduces an efficient implicit differentiation algorithm, without matrix inversion, tailored for Lasso-type problems. Our approach scales to high-dimensional data by leveraging the sparsity of the solutions. Experiments demonstrate that the proposed method outperforms a large number of standard methods to optimize the error on held-out data, or the Stein Unbiased Risk Estimator (SURE).
Motivation & Objective
- To address the challenge of hyperparameter selection in Lasso-type models, which is critical yet difficult due to sensitivity to regularization parameters.
- To develop a scalable, memory-efficient method for computing gradients of the solution w.r.t. hyperparameters, avoiding the computational burden of matrix inversion.
- To enable effective hyperparameter optimization for models with many hyperparameters, such as the weighted Lasso, which are infeasible with grid search.
- To provide a robust and efficient alternative to automatic differentiation and implicit differentiation in non-smooth, sparse optimization problems.
Proposed method
- The method uses forward iterative differentiation of block coordinate descent (BCD) to compute the Jacobian of the Lasso solution w.r.t. hyperparameters.
- It decouples the computation of the regression coefficients from the Jacobian, allowing the use of state-of-the-art Lasso solvers independently.
- The algorithm leverages the sparsity of Lasso solutions to avoid explicit matrix inversion, which is computationally prohibitive and numerically unstable in high dimensions.
- It ensures linear convergence of the gradient estimate once the active set (support) of the solution is identified, independent of initialization.
- For the weighted Lasso with p hyperparameters, a regularized optimization problem is solved first to initialize the hyperparameters, reducing risk of local minima.
- The approach is implemented as Algorithm 2, enabling efficient gradient-based hyperparameter optimization without solving ill-conditioned linear systems.
Experimental results
Research questions
- RQ1Can forward iterative differentiation of block coordinate descent converge to the true gradient in Lasso-type problems, and does it do so independently of initialization?
- RQ2Can the Jacobian of the Lasso solution w.r.t. hyperparameters be computed efficiently without matrix inversion, especially in high-dimensional settings?
- RQ3Does the proposed method outperform standard hyperparameter optimization techniques like grid search, random search, and existing hypergradient methods in terms of estimation error and runtime?
- RQ4Can the method scale to models with a large number of hyperparameters, such as the weighted Lasso, where grid search is infeasible?
Key findings
- The proposed method achieves lower estimation error (MSE) than grid search, random search, and Bayesian optimization, demonstrating superior model performance.
- It is the fastest among all hypergradient-based methods, with running times comparable to grid search and significantly faster than forward/backward iterative differentiation.
- For the weighted Lasso with p hyperparameters, the method achieves estimation performance close to the optimal SURE-based selection, despite the non-convexity of the objective.
- The algorithm remains efficient and stable due to sparsity exploitation, avoiding the need for matrix inversion even in high-dimensional problems.
- The method outperforms implicit differentiation in both speed and numerical stability, especially when the solution support is small.
- The use of a regularized initialization for the weighted Lasso reduces convergence to local minima, improving robustness of the hyperparameter selection process.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.