Elastic net regularization

Source: Wikipedia, the free encyclopedia.

In

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

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 () to the penalty, which when used alone is

Tikhonov regularization
). The estimates from the elastic net method are defined by

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 or . Meanwhile, the naive version of elastic net method finds an estimator in a two-stage procedure : first for each fixed 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]

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

  • Support vector machine[2]
  • Metric learning[3]
  • Portfolio optimization[4]
  • Cancer prognosis[5]

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 (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

into new artificial data instances and a regularization constant that specify a binary classification problem and the SVM regularization constant

Here, consists of binary labels . When 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

  • "Glmnet: Lasso and elastic-net regularized generalized linear models" is a software which is implemented as an R source package and as a MATLAB toolbox.[9][10] This includes fast algorithms for estimation of generalized linear models with ℓ1 (the lasso), ℓ2 (ridge regression) and mixtures of the two penalties (the elastic net) using cyclical coordinate descent, computed along a regularization path.
  • JMP Pro 11 includes elastic net regularization, using the Generalized Regression personality with Fit Model.
  • "pensim: Simulation of high-dimensional data and parallelized repeated penalized regression" implements an alternate, parallelised "2D" tuning method of the ℓ parameters, a method claimed to result in improved prediction accuracy.[11][12]
  • scikit-learn includes linear regression and logistic regression with elastic net regularization.
  • SVEN, a
    Matlab implementation of Support Vector Elastic Net. This solver reduces the Elastic Net problem to an instance of SVM binary classification and uses a Matlab SVM solver to find the solution. Because SVM is easily parallelizable, the code can be faster than Glmnet on modern hardware.[13]
  • SpaSM, a Matlab implementation of sparse regression, classification and principal component analysis, including elastic net regularized regression.[14]
  • Apache Spark provides support for Elastic Net Regression in its MLlib machine learning library. The method is available as a parameter of the more general LinearRegression class.[15]
  • SAS (software) The SAS procedure Glmselect[16] and SAS Viya procedure Regselect [17] support the use of elastic net regularization for model selection.

References

  1. ^
    S2CID 122419596
    .
  2. ^ Wang, Li; Zhu, Ji; Zou, Hui (2006). "The doubly regularized support vector machine" (PDF). Statistica Sinica. 16: 589–615.
  3. PMID 24013160
    .
  4. .
  5. .
  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. arXiv:1303.1152
    .
  8. ^ "GTSVM". uchicago.edu.
  9. PMID 20808728
    .
  10. ^ "CRAN - Package glmnet". r-project.org.
  11. PMID 22156367
    .
  12. ^ "CRAN - Package pensim". r-project.org.
  13. ^ "mlcircus / SVEN — Bitbucket". bitbucket.org.
  14. ^ Sjöstrand, Karl; Clemmensen, Line; Einarsson, Gudmundur; Larsen, Rasmus; Ersbøll, Bjarne (2 February 2016). "SpaSM: A Matlab Toolbox for Sparse Statistical Modeling" (PDF). Journal of Statistical Software.
  15. ^ "pyspark.ml package — PySpark 1.6.1 documentation". spark.apache.org. Retrieved 2019-04-17.
  16. ^ "Proc Glmselect". Retrieved 2019-05-09.
  17. ^ "A Survey of Methods in Variable Selection and Penalized Regression" (PDF).

Further reading

External links