Sparse classification: a scalable discrete optimization perspective

Dimitris Bertsimas, Jean Pauphilet, Bart P. G. Van Parys

Introduction

In machine learning, the quest for "sparse" models—those utilizing only a small subset of available features—is driven by the need for interpretability, deployment efficiency, and reduced overfitting. However, identifying the optimal subset of $k$ features, known as the $L_0$ problem, is computationally NP-hard. For decades, researchers have relied on the Lasso ($L_1$ regularization) as a convex proxy. While efficient, Lasso is a "dirty" selector, often retaining numerous false features even as sample sizes increase.

This paper presents a paradigm shift, moving sparse classification from heuristic approximations to exact solutions. The authors formulate feature selection as a binary convex optimization problem, providing an algorithm capable of solving $L_0$-constrained problems to provable optimality for datasets with tens of thousands of features in mere minutes.

Methodology: Binary Convex Optimization

The core of the proposed framework is treating sparse classification as a binary convex optimization problem. This approach is built upon two pillars:

  1. Outer-Approximation (OA) Algorithm: Instead of an exhaustive search, the algorithm iteratively constructs a linear lower bound of the objective function. It solves a sequence of mixed-integer linear problems, adding "cuts" (constraints) until the global optimum is reached.
  2. Stochastic Constraint Generation: To scale with large sample sizes ($n$), a stochastic variant uses random subsamples to generate candidate solutions quickly, only utilizing the full dataset to certify optimality.

This framework is versatile, supporting various loss functions such as Logistic Regression and Support Vector Machines (SVM). The specific loss functions and their Fenchel conjugates used in the optimization are detailed below:

Table of loss functions and their Fenchel conjugates supported by the framework.

Theoretical Insights and Phase Transitions

A significant contribution of this work is the analysis of "phase transitions" in classification. Unlike linear regression, where recovery often follows a sharp "all-or-nothing" threshold, the authors found that classification exhibits a smoother transition based on the sample size $n$.

Phase transition diagram showing the probability of error as a function of sample size n.

Furthermore, the authors identify a "More Data is Easier" paradox: as the sample size increases, the signal becomes clearer, allowing the optimization solver to prune the search tree more effectively and certify the optimal solution faster. This challenges the traditional view that larger datasets necessarily increase computational difficulty for exact solvers.

Experimental Results

The authors validated their approach using synthetic data, classic UCI datasets, and high-dimensional Lung Cancer gene expression data ($n=1,145$, $p=14,858$).

  • Scalability: The algorithm solved problems with $p=50,000$ features to provable optimality in under a minute for low-sparsity regimes ($k=5$).
  • Sparsity vs. Accuracy: On the Lung Cancer dataset, the discrete optimization approach achieved a near-identical AUC (0.977) to Lasso but used only 38 features, compared to Lasso’s 378—a 10x improvement in model interpretability.
  • Support Recovery: On synthetic data, once the sample size passed a critical threshold, the algorithm achieved 100% support recovery, whereas Lasso continued to include incorrect features regardless of data volume.

Conclusion

While the method excels at finding "very sparse" models (e.g., $k < 50$), it still faces challenges as $k$ increases due to the exponential growth of combinatorial complexity. The authors suggest that Lasso remains an excellent tool for initial screening to narrow down thousands of features, while their discrete optimization method provides the "surgical" precision needed for final selection. Future work will focus on improving warm-starting strategies to further bridge the speed gap with convex heuristics.

Summary updated

BibTeX
@inproceedings{bertsimas2021sparse,
  author = {Dimitris Bertsimas and Jean Pauphilet and Bart P. G. Van Parys},
  title = {{Sparse classification: a scalable discrete optimization perspective}},
  booktitle = {Machine},
  year = {2021},
  doi = {10.1007/s10994-021-06085-5},
}
Figure