Abstract
Algorithmic reductions are one of the cornerstones of theoretical computer science. Surprisingly, to-date, they have only played a limited role in machine learning. In this paper we introduce a formal and practical reduction between two of the most widely used machine learning algorithms: from the Elastic Net (and the Lasso as a special case) to the Support Vector Machine. First, we derive the reduction and summarize it in only 11 lines of MATLAB™. Then, we demonstrate its high impact potential by translating recent advances in parallelizing SVM solvers directly to the Elastic Net. The resulting algorithm is a parallel solver for the Elastic Net (and Lasso) that naturally utilizes GPU and multi-core CPUs. We evaluate it on twelve real world data sets, and show that it yields identical results as the popular (and highly optimized) glmnet implementation but is up-to two orders of magnitude faster.
Introduction
Sparse regression techniques like Lasso and the Elastic Net are essential for high-dimensional data analysis. However, they are notoriously difficult to parallelize. The current state-of-the-art solver, glmnet, relies on coordinate descent—an inherently sequential process that does not scale well with modern multi-core CPUs or GPUs.
While theoretical computer science frequently uses algorithmic reductions to establish complexity classes, this approach is rarely used in machine learning to improve practical performance. This paper introduces a formal reduction that transforms the Elastic Net problem into a Support Vector Machine (SVM) classification problem. This bridge allows the Elastic Net to leverage highly optimized, parallelized SVM solvers, resulting in a new algorithm (SVEN) that is significantly faster than existing industry standards.
The SVEN Reduction
The core of our contribution is a rigorous mathematical reduction showing that any Elastic Net problem can be reformulated as a binary SVM classification problem with squared hinge loss.
The reduction involves a "feature-sample swap": a regression problem with $n$ samples and $p$ dimensions is transformed into an SVM problem with $2p$ samples and $n$ dimensions. In this transformed space, the SVM's "Support Vectors" correspond exactly to the selected features in the original regression problem. This allows for the selection of primal or dual SVM solvers based on the data's shape ($n \gg p$ or $p \gg n$) to maximize efficiency.
As shown in Algorithm 1, the resulting SVEN (Support Vector Elastic Net) algorithm is remarkably simple, requiring only 11 lines of MATLAB code. By utilizing gpuArray, the implementation offloads heavy matrix computations to NVIDIA GPUs.
Experimental Results
We evaluated SVEN on twelve real-world datasets across two common scenarios: high-dimensional ($p \gg n$) and large-scale ($n \gg p$). Our results confirm that SVEN produces regularization paths identical to glmnet up to machine precision, proving the reduction is exact.
In terms of performance, SVEN (GPU) consistently outperformed all baselines. As shown in the $p \gg n$ benchmarks, SVEN is often two orders of magnitude faster than glmnet. Furthermore, SVEN demonstrates superior robustness; for example, it successfully processed the "FD" dataset, which caused glmnet to fail due to memory constraints.
Conclusion
The SVEN reduction demonstrates that theoretical reductions can have massive practical engineering payoffs. By mapping the Elastic Net to SVMs, we "borrow" decades of optimization work from the SVM community. While the current derivation is specific to SVMs with squared hinge loss, it opens the door for other reductions that could link sparse coding to various kernelized methods or discover new parallel algorithms for computational biology.
Summary updated