Safe Feature Elimination in Sparse Supervised Learning

Laurent El Ghaoui, Vivian Viallon, Tarek RabbaniarXiv 2010

Introduction

In the era of "Big Data," high-dimensional datasets where the number of features ($n$) significantly exceeds the number of observations ($m$) are commonplace. Sparse supervised learning, particularly the LASSO ($\ell_1$-regularized least squares), has become a standard tool for such problems due to its ability to perform automatic feature selection by inducing sparsity in the coefficient vector. However, as datasets scale to millions of features, even state-of-the-art solvers encounter significant computational and memory bottlenecks.

Problem Statement

The primary challenge in large-scale sparse learning is the overhead of processing irrelevant features. While heuristic screening methods can prune features early, they offer no guarantee that important variables won't be discarded. This paper addresses the need for a safe screening method: one that is computationally inexpensive yet mathematically guaranteed to never remove a feature that would have a non-zero coefficient in the final optimal solution.

Methodology: SAFE (SAfe Feature Elimination)

The authors introduce SAFE, a pre-processing framework rooted in convex duality. SAFE identifies irrelevant features before optimization begins by leveraging the relationship between the primal and dual problems.

Dual Bounding and Optimality

The core of SAFE lies in two principles:

  1. Optimality Conditions: There exists a specific dual inequality that, if satisfied by a feature, necessitates that its corresponding primal coefficient is exactly zero.
  2. Safe Regions: While the optimal dual solution $\theta^*$ is unknown, a "safe" region $\Theta$ can be constructed that is guaranteed to contain it.
The geometry of the dual problem. The optimal dual solution $\theta^*$ lies on the boundary of a polytope defined by the features.

Geometric Interpretation

Geometrically, the SAFE test checks if the safe set $\Theta$ lies entirely within a "slab" defined by the feature matrix. The authors refine this by constructing $\Theta$ as the intersection of a ball and a half-space, creating a tighter bound for $\theta^*$.

Construction of the safe set $\Theta$. By intersecting a ball ($\Theta_1$) and a half-space ($\Theta_2$), a tight region is created that must contain the dual optimal point.

The resulting tests have closed-form solutions, making the computational cost negligible—roughly equivalent to a single gradient step. The framework extends beyond LASSO to other $\ell_1$-regularized problems, including Sparse Support Vector Machines (SVM) and Sparse Logistic Regression.

Experimental Results

The authors evaluated SAFE on massive, sparse text datasets, including PubMed (1M abstracts, 127k features) and the New York Times (3.2M headlines, 160k features).

  • Dimensionality Reduction: SAFE frequently reduced the feature space by one to two orders of magnitude, particularly under high regularization.
  • Computational Speedups: The method achieved up to 60% reduction in total solve time across various standard solvers (e.g., FISTA, GLMNET).
  • Memory Efficiency: By identifying relevant features upfront, SAFE enabled the solution of problems that were previously impossible to fit into RAM on standard hardware.

Conclusion

SAFE provides a rigorous, "safety-first" approach to feature selection in sparse learning. By providing zero false negatives, it ensures that the final model is identical to one trained on the full dataset, but with significantly reduced resource requirements. While its effectiveness is most pronounced at higher regularization levels, its scalability and parallelizable nature make it a powerful tool for modern high-dimensional data analysis.

Summary updated

BibTeX
@misc{ghaoui2010safe,
  author = {Laurent El Ghaoui and Vivian Viallon and Tarek Rabbani},
  title = {{Safe Feature Elimination in Sparse Supervised Learning}},
  year = {2010},
  eprint = {1009.4219},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1009.4219},
}
Figure