Gradient-based bilevel optimization for multi-penalty Ridge regression through matrix differential calculus

Gabriele Maroni, Loris Cannelli, Dario Piga
11/23/2023
cs.LGstat.ML

Official code: gabribg88/Multiridge (0 stars, last commit 2024-09-10).

Abstract

Common regularization algorithms for linear regression, such as LASSO and Ridge regression, rely on a regularization hyperparameter that balances the tradeoff between minimizing the fitting error and the norm of the learned model coefficients. As this hyperparameter is scalar, it can be easily selected via random or grid search optimizing a cross-validation criterion. However, using a scalar hyperparameter limits the algorithm's flexibility and potential for better generalization. In this paper, we address the problem of linear regression with l2-regularization, where a different regularization hyperparameter is associated with each input variable. We optimize these hyperparameters using a gradient-based approach, wherein the gradient of a cross-validation criterion with respect to the regularization hyperparameters is computed analytically through matrix differential calculus. Additionally, we introduce two strategies tailored for sparse model learning problems aiming at reducing the risk of overfitting to the validation data. Numerical examples demonstrate that our multi-hyperparameter regularization approach outperforms LASSO, Ridge, and Elastic Net regression. Moreover, the analytical computation of the gradient proves to be more efficient in terms of computational time compared to automatic differentiation, especially when handling a large number of input variables. Application to the identification of over-parameterized Linear Parameter-Varying models is also presented.

View on arXivView PDF

Code Implementations(1)

01Python, Jupyter NotebookSep 7, 20232 years ago

Similar Papers

Cite this paper

@article{maroni2023gradientbased,
  title  = {Gradient-based bilevel optimization for multi-penalty Ridge regression through matrix differential calculus},
  author = {Gabriele Maroni and Loris Cannelli and Dario Piga},
  year   = {2023},
  eprint = {2311.14182},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2311.14182v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2311.14182.svg)](https://codeofpaper.com/paper/2311.14182)

Discussion