Abstract
In this paper, we formulate the sparse classification problem of $n$ samples with $p$ features as a binary convex optimization problem and propose a cutting-plane algorithm to solve it exactly. For sparse logistic regression and sparse SVM our algorithm finds optimal solutions for $n$ and $p$ in the $10,000$s within minutes. On synthetic data our algorithm exhibits a phase transition phenomenon: there exists a $n_0$ for which for $n > n_0$ the algorithm finds the true features and is very fast, while for $n < n_0$ it fails to find the true features and is slow. We provide a theoretical bound for $n_0$ of the form $n_0 > 6 \pi^2 \left(2 + \sigma^2\right) k \log(p-k)$. In contrast, while Lasso accurately detects all the true features, it persistently returns incorrect features, even as the number of observations increases. Finally, we apply our method on classifying the type of cancer using gene expression data from the Cancer Genome Atlas Research Network with $n=1,145$ lung cancer patients and $p=14,858$ genes. Sparse classification using logistic regression returns a classifier based on $50$ genes versus $171$ for Lasso and using SVM $30$ genes versus $172$ for Lasso with similar predictive accuracy.
Introduction
In high-dimensional machine learning, identifying a sparse set of features is critical for model interpretability and preventing overfitting. For instance, in genomics, one might seek to identify the specific 30 genes responsible for a cancer subtype out of 14,000 candidates. Traditionally, the industry standard has been the Lasso ($\ell_1$-regularization), a convex proxy for the mathematically "pure" but NP-hard $\ell_0$-norm constraint. While computationally efficient, Lasso is often "greedy," frequently including irrelevant "false discovery" features alongside true predictors.
This work addresses the challenge of solving the exact $\ell_0$ sparse classification problem directly for large-scale tasks, such as Logistic Regression and Support Vector Machines (SVM), using discrete optimization techniques.
Methodology: A Dual Framework
The proposed approach bridges statistics and discrete optimization by reformulating sparse classification into a binary convex optimization task. Instead of searching for continuous weights directly, the algorithm optimizes a binary vector $s \in \{0, 1\}^p$, where $s_i=1$ indicates the inclusion of the $i$-th feature.
Binary Convex Optimization and Duality
The core of the method relies on a dual framework. By examining the Fenchel conjugate of the loss functions, the authors can efficiently evaluate the contribution of a feature set without full retraining. This is particularly effective for standard classification losses.
Cutting-Plane Algorithm
To solve the resulting optimization problem, the authors employ an "outer-approximation" or cutting-plane algorithm. This method iteratively refines the search space by adding linear constraints (cuts) based on the gradient of the loss function. This allows the algorithm to handle tens of thousands of features and samples to optimality within minutes on standard hardware.
Empirical Results and the Phase Transition
The algorithm was evaluated on synthetic data, standard UCI benchmarks, and high-dimensional genomic data from The Cancer Genome Atlas (TCGA).
The Phase Transition Phenomenon
A key discovery is the existence of a sharp "phase transition" threshold $n_0$. When the sample size $n$ is below $n_0$, the algorithm struggles to identify the true features and requires significant computation time. However, once $n$ exceeds $n_0$, the problem becomes computationally easier—the number of required "cuts" drops significantly—and the algorithm identifies the true features with near-perfect accuracy. The authors derive a theoretical bound for this threshold: $$n_0 > 6\pi^2 (2 + \sigma^2) k \log(p-k)$$ where $k$ is the number of true features and $p$ is the total number of features.
Real-World Performance: TCGA Lung Cancer Data
On the TCGA dataset ($n=1,145$, $p=14,858$), the exact $\ell_0$ approach demonstrated superior precision over Lasso. Sparse Logistic Regression achieved ~98% AUC using only 50 genes, compared to 171 genes for Lasso. Similarly, for SVM, the gap was 30 genes versus 172 genes, maintaining comparable predictive accuracy while offering significantly better interpretability.
Discussion and Limitations
While the algorithm provides a powerful tool for exact sparse classification, some limitations remain. The sparsity parameter $k$ must currently be determined via cross-validation, adding overhead. Furthermore, while the algorithm is general, the theoretical proof for the phase transition assumes binary weights ($w \in \{0, 1\}^p$), and extending this to general continuous weights is an area for future research. Finally, the framework is designed for convex loss functions; applying it to non-convex metrics like raw misclassification rate would require different techniques to maintain the efficiency provided by strong duality.
Summary updated