Elastic net regularization explained

In statistics and, in particular, in the fitting of linear or logistic regression models, the elastic net is a regularized regression method that linearly combines the L1 and L2 penalties of the lasso and ridge methods.

Specification

The elastic net method overcomes the limitations of the LASSO (least absolute shrinkage and selection operator) method which uses a penalty function based on

\|\beta\|1=

p
style\sum
j=1

|\betaj|.

Use of this penalty function has several limitations.[1] For example, in the "large p, small n" case (high-dimensional data with few examples), the LASSO selects at most n variables before it saturates. Also if there is a group of highly correlated variables, then the LASSO tends to select one variable from a group and ignore the others. To overcome these limitations, the elastic net adds a quadratic part (

\|\beta\|2

) to the penalty, which when used alone is ridge regression (known also as Tikhonov regularization). The estimates from the elastic net method are defined by

\hat{\beta}\equiv\underset{\beta}{\operatorname{argmin}}(\|y-X\beta\|2+λ2\|\beta\|2+λ1\|\beta\|1).

The quadratic penalty term makes the loss function strongly convex, and it therefore has a unique minimum. The elastic net method includes the LASSO and ridge regression: in other words, each of them is a special case where

λ1=λ,λ2=0

or

λ1=0,λ2=λ

. Meanwhile, the naive version of elastic net method finds an estimator in a two-stage procedure : first for each fixed

λ2

it finds the ridge regression coefficients, and then does a LASSO type shrinkage. This kind of estimation incurs a double amount of shrinkage, which leads to increased bias and poor predictions. To improve the prediction performance, sometimes the coefficients of the naive version of elastic net is rescaled by multiplying the estimated coefficients by

(1+λ2)

.[1]

Examples of where the elastic net method has been applied are:

Reduction to support vector machine

In late 2014, it was proven that the elastic net can be reduced to the linear support vector machine.[6] A similar reduction was previously proven for the LASSO in 2014.[7] The authors showed that for every instance of the elastic net, an artificial binary classification problem can be constructed such that the hyper-plane solution of a linear support vector machine (SVM) is identical to the solution

\beta

(after re-scaling). The reduction immediately enables the use of highly optimized SVM solvers for elastic net problems. It also enables the use of GPU acceleration, which is often already used for large-scale SVM solvers.[8] The reduction is a simple transformation of the original data and regularization constants

X\in{R}n x ,y\in

n,λ
{R}
1\geq

0,λ2\geq0

into new artificial data instances and a regularization constant that specify a binary classification problem and the SVM regularization constant
2p x n
X
2\in{R}
2p
,y
2\in\{-1,1\}

,C\geq0.

Here,

y2

consists of binary labels

{-1,1}

. When

2p>n

it is typically faster to solve the linear SVM in the primal, whereas otherwise the dual formulation is faster. Some authors have referred to the transformation as Support Vector Elastic Net (SVEN), and provided the following MATLAB pseudo-code: function β=SVEN(X, y, t, λ2); [n,p] = size(X); X2 = [bsxfun(@minus, X, y./t); bsxfun(@plus, X, y./t)]’; Y2 = [ones(p,1);-ones(p,1)]; if 2p > n then w = SVMPrimal(X2, Y2, C = 1/(2*λ2)); α = C * max(1-Y2.*(X2*w), 0); else α = SVMDual(X2, Y2, C = 1/(2*λ2)); end if β = t * (α(1:p) - α(p+1:2p)) / sum(α);

Software

Further reading

External links

Notes and References

  1. Zou. Hui. Trevor. Hastie. 2005. Regularization and Variable Selection via the Elastic Net. Journal of the Royal Statistical Society, Series B. 67. 2. 301–320. 10.1111/j.1467-9868.2005.00503.x. 10.1.1.124.4696. 122419596 .
  2. Wang. Li. Zhu. Ji. Zou. Hui. 2006. The doubly regularized support vector machine. Statistica Sinica. 16. 589–615.
  3. Liu. Meizhu. Vemuri. Baba. A robust and efficient doubly regularized metric learning approach. Proceedings of the 12th European Conference on Computer Vision. Lecture Notes in Computer Science. 2012. Part IV. 646–659 . 10.1007/978-3-642-33765-9_46. 24013160. 3761969. 978-3-642-33764-2.
  4. Shen. Weiwei. Wang. Jun. Ma. Shiqian. 11017740. Doubly Regularized Portfolio with Risk Minimization. Proceedings of the Twenty-Eighth AAAI Conference on Artificial Intelligence. 2014. 28 . 1286–1292 . 10.1609/aaai.v28i1.8906 . free.
  5. Milanez-Almeida. Pedro. Martins. Andrew J.. Germain. Ronald N.. Tsang. John S.. 2020-02-10. Cancer prognosis with shallow tumor RNA sequencing. Nature Medicine. 26. 2. en. 188–192. 10.1038/s41591-019-0729-3. 32042193. 211074147. 1546-170X.
  6. Zhou . Quan . Chen . Wenlin . Song . Shiji . Gardner . Jacob . Weinberger . Kilian . Chen . Yixin . A Reduction of the Elastic Net to Support Vector Machines with an Application to GPU Computing . Association for the Advancement of Artificial Intelligence.
  7. Book: Jaggi, Martin . An Equivalence between the Lasso and Support Vector Machines. Suykens. Johan. Signoretto. Marco. Argyriou. Andreas. 2014. Chapman and Hall/CRC. 1303.1152.
  8. Web site: GTSVM. uchicago.edu.
  9. Friedman. Jerome . Trevor Hastie . Rob Tibshirani. 2010. Regularization Paths for Generalized Linear Models via Coordinate Descent. Journal of Statistical Software. 33 . 1 . 1–22. 10.18637/jss.v033.i01 . 20808728 . 2929880 .
  10. Web site: CRAN - Package glmnet. r-project.org.
  11. Waldron . L. . Pintilie . M. . Tsao . M. -S. . Shepherd . F. A. . Huttenhower . C. . Jurisica . I. . 10.1093/bioinformatics/btr591 . Optimized application of penalized regression methods to diverse genomic data . Bioinformatics . 27 . 24 . 3399–3406 . 2011 . 22156367 . 3232376 .
  12. Web site: CRAN - Package pensim. r-project.org.
  13. Web site: mlcircus / SVEN — Bitbucket. bitbucket.org.
  14. SpaSM: A Matlab Toolbox for Sparse Statistical Modeling. Sjöstrand. Karl. 2 February 2016. Journal of Statistical Software. Clemmensen. Line. Einarsson. Gudmundur. Larsen. Rasmus. Ersbøll. Bjarne.
  15. Web site: pyspark.ml package — PySpark 1.6.1 documentation. spark.apache.org. 2019-04-17.
  16. Web site: Proc Glmselect. 2019-05-09.
  17. Web site: A Survey of Methods in Variable Selection and Penalized Regression.