NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

A Reduction of the Elastic Net to Support Vector Machines with an Application to GPU Computing

Quan Zhou, Wenlin Chen, Shiji Song, Jacob R. Gardner, Kilian Q. Weinberger, Yixin Chen

Abstract

The past years have witnessed many dedicated open-source projects that built and maintain implementations of Support Vector Machines (SVM), parallelized for GPU, multi-core CPUs and distributed systems. Up to this point, no comparable effort has been made to parallelize the Elastic Net, despite its popularity in many high impact applications, including genetics, neuroscience and systems biology. The first contribution in this paper is of theoretical nature. We establish a tight link between two seemingly different algorithms and prove that Elastic Net regression can be reduced to SVM with squared hinge loss classification. Our second contribution is to derive a practical algorithm based on this reduction. The reduction enables us to utilize prior efforts in speeding up and parallelizing SVMs to obtain a highly optimized and parallel solver for the Elastic Net and Lasso. With a simple wrapper, consisting of only 11 lines of MATLAB code, we obtain an Elastic Net implementation that naturally utilizes GPU and multi-core CPUs. We demonstrate on twelve real world data sets, that our algorithm yields identical results as the popular (and highly optimized) glmnet implementation but is one or several orders of magnitude faster.

Introduction

In fields like genetics and neuroscience, datasets often have millions of features ($p$) but relatively few samples ($n$). The Elastic Net and Lasso are the "go-to" algorithms for finding the most important features in these scenarios. However, the standard way to solve them—coordinate descent—is inherently sequential, making it notoriously difficult to parallelize for modern hardware like GPUs.

While the machine learning community has spent years perfecting lightning-fast, parallelized SVM implementations for GPUs and multi-core CPUs, the Elastic Net has largely been left behind. The authors tackle this gap not by writing a new, complex GPU kernel from scratch, but by proving that the Elastic Net problem can be "tricked" into looking like an SVM problem.

Methods

The core contribution is a theoretical reduction. The authors show that through a series of algebraic transformations, the Elastic Net objective function can be mapped exactly onto the dual formulation of a linear SVM with squared hinge loss (and no bias term). Key steps include:

  1. Rescaling: Absorbing the $L_1$ constraint into the objective function.
  2. Variable Splitting: Breaking the weight vector into positive and negative components to handle the $L_1$ norm.
  3. Data Augmentation: Constructing a new "SVM-ready" dataset where the original features are transformed based on the response vector $y$.

The resulting algorithm, SVEN (Support Vector Elastic Net), is essentially a wrapper. It transforms the data, calls an off-the-shelf SVM solver (like liblinear or Chapelle’s Newton-based solver), and then transforms the results back. Because the heavy lifting is done by the SVM solver—which relies on matrix operations—the algorithm naturally inherits GPU acceleration via standard libraries.

Experimental Evaluation

The authors evaluated SVEN on 12 real-world datasets representing two common scenarios:

  • High-dimensional ($p \gg n$): Including GLI-85 (glioma genetics), Arcene (mass spectrometry), SMK-CAN-187 (lung cancer), and E2006-tfidf (financial risk).
  • Large sample size ($n \gg p$): Including MITFaces (face recognition), Yahoo (learning to rank), and YearPredictionMSD (song release years).

Results and Discussion

SVEN demonstrates that complex performance gains can come from simple, elegant code. The reduction is mathematically exact, meaning SVEN produces the same results as traditional solvers, just much faster.

Figure 1: The regularization paths for SVEN and the industry-standard glmnet are identical, confirming the mathematical exactness of the reduction.

As shown in Figure 1, the regularization paths for SVEN and glmnet are identical, proving the reduction's correctness. By switching between the primal and dual formulations of the SVM based on whether $n > p$ or $p > n$, SVEN maintains peak efficiency regardless of the dataset's shape.

Figure 2: Runtime comparison on $p \gg n$ datasets. SVEN (GPU) is consistently one to several orders of magnitude faster than existing optimized implementations.

On GPUs, SVEN was consistently one to several orders of magnitude faster than glmnet, the industry-standard Fortran implementation (Figure 2). SVEN successfully processed the FD (face detection) dataset, which caused glmnet to fail due to memory constraints. Furthermore, because it relies on standard matrix operations, SVEN showed significant speedups on multi-core CPUs even without a GPU.

Conclusion and Future Work

This work highlights the power of algorithmic reduction: rather than reinventing the wheel for parallel Elastic Net, researchers can leverage existing, highly optimized SVM solvers. Future work includes addressing the assumption of no bias term in the SVM formulation and exploring the trade-offs between speed and precision when using sub-linear time SVM solvers. The authors hope this work inspires similar reductions for other computationally intensive algorithms.

Summary updated

BibTeX
@inproceedings{zhou2015reduction,
  author = {Quan Zhou and Wenlin Chen and Shiji Song and Jacob R. Gardner and Kilian Q. Weinberger and Yixin Chen},
  title = {{A Reduction of the Elastic Net to Support Vector Machines with an Application to GPU Computing}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2015},
  url = {https://openreview.net/forum?id=rk4uo6xObS},
}
Figure