Fractional ridge regression: a fast, interpretable reparameterization of ridge regression

Ariel Rokem, Kendrick Kay
5/7/2020
78 citations
stat.MEcs.LGstat.ML

Official code: nrdg/fracridge (51 stars, Python, BSD-2-Clause, last commit 2026-02-10). Most starred: unslothai/hyperlearn, a community implementation (2,533 stars, Jupyter Notebook, Apache-2.0, PyTorch, last commit 2024-11-19, 50× the official stars). 1 more implementation below.

Abstract

Ridge regression (RR) is a regularization technique that penalizes the L2-norm of the coefficients in linear regression. One of the challenges of using RR is the need to set a hyperparameter ($α$) that controls the amount of regularization.

Show full abstract

Cross-validation is typically used to select the best $α$ from a set of candidates. However, efficient and appropriate selection of $α$ can be challenging, particularly where large amounts of data are analyzed. Because the selected $α$ depends on the scale of the data and predictors, it is not straightforwardly interpretable. Here, we propose to reparameterize RR in terms of the ratio $γ$ between the L2-norms of the regularized and unregularized coefficients. This approach, called fractional RR (FRR), has several benefits: the solutions obtained for different $γ$ are guaranteed to vary, guarding against wasted calculations, and automatically span the relevant range of regularization, avoiding the need for arduous manual exploration. We provide an algorithm to solve FRR, as well as open-source software implementations in Python and MATLAB (https://github.com/nrdg/fracridge). We show that the proposed method is fast and scalable for large-scale data problems, and delivers results that are straightforward to interpret and compare across models and datasets.

View on arXivView PDF

Code Implementations(2)

Code implementations of this paper
RepositoryTypeStarsLanguageLicenseLast commit
nrdg/fracridgeOfficial51PythonBSD-2-Clause2026-02-10
unslothai/hyperlearnCommunity2,533Jupyter NotebookApache-2.02024-11-19
nrdg/fracridgeOfficial100%
BSD-2-Clause

Fractional ridge regression

5116Python, MATLABMay 5, 20209 months agoBSD-2-Clause
PyTorchApache-2.0

2-2000x faster ML algos, 50% less memory usage, works on all hardware - new and old.

2,533169Jupyter Notebook, PythonAug 27, 20182 years agoApache-2.0
data-analysisdata-sciencedeep-learningeconometricsgpu+11 more

Similar Papers

Cite this paper

@article{rokem2020fractional,
  title  = {Fractional ridge regression: a fast, interpretable reparameterization of ridge regression},
  author = {Ariel Rokem and Kendrick Kay},
  year   = {2020},
  eprint = {2005.03220},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2005.03220}
}

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/2005.03220.svg)](https://codeofpaper.com/paper/2005.03220)

Discussion