A Safe Screening Rule for Sparse Logistic Regression

Jie Wang, Jiayu Zhou, Jun Liu, Peter Wonka, Jieping Ye

In the world of high-dimensional data, $\ell_1$-regularized logistic regression (sparse LR) is a workhorse for simultaneous classification and feature selection. However, when you have millions of features and thousands of samples, the optimization process becomes a computational bottleneck.

This paper introduces Slores (Sparse Logistic Regression Screening rule), a mathematically "safe" way to discard irrelevant features before the heavy lifting of optimization even begins.

TL;DR

Slores is a novel screening rule that identifies and removes "inactive" features (those with zero coefficients in the final solution) from sparse logistic regression problems. Unlike heuristic methods, it is "safe"—guaranteed never to discard a relevant feature—and can speed up existing solvers by up to an order of magnitude.

What Problem Does This Paper Address?

When training a sparse logistic regression model, we expect most feature coefficients to end up as zero. Standard solvers spend a significant amount of time processing these "useless" features.

"Screening" is the process of identifying these zero-coefficient features early. Existing methods like SAFE are safe but often too conservative (they don't discard enough), while "strong rules" are aggressive but risky—they can mistakenly discard features that actually belong in the model. The authors sought a method that is both highly aggressive in discarding features and mathematically guaranteed to be safe.

Methods

The authors leverage the Karush-Kuhn-Tucker (KKT) conditions of the logistic regression problem. The KKT conditions state that a feature $j$ is inactive if the inner product of that feature vector and the dual optimal solution is less than a specific threshold.

The challenge is that the dual optimal solution is unknown until after the problem is solved. To get around this, the authors:

  1. Exploit Strong Convexity: They prove that the dual function of logistic regression is strongly convex.
  2. Construct a "Safe" Region: Using a known solution from a different parameter (like the $\lambda_{max}$ where all coefficients are zero), they define a geometric "ball" in the dual space that is guaranteed to contain the unknown optimal solution.
  3. Solve a Mini-Optimization: They formulate the screening test as a constrained convex optimization problem to find the maximum possible inner product within that safe region.
  4. Closed-Form Solution: Crucially, they show this mini-optimization has a closed-form solution, meaning the screening test itself is computationally "negligible" and only requires scanning the data once.

Datasets

The researchers evaluated Slores on several high-dimensional datasets:

  • Prostate Cancer: A biological dataset with 132 samples and 15,154 features.
  • Newsgroups: A text classification dataset (61,188 features).
  • Yahoo Web Pages: 11 top-level categories, further divided into subcategories (approx. 20,000–25,000 features per set).

Key Insights and Ideas

  • The "Aha" Moment: The realization that the dual of the logistic loss is strongly convex allows for a much tighter "safe" region than previous methods used for Lasso.
  • Solver Independence: Slores is a pre-processing step. You can plug it into any existing solver (like coordinate descent or interior-point methods) to make it faster.
  • Efficiency vs. Safety: While "strong rules" are popular because they are fast, they lack the mathematical guarantee of Slores. Slores provides the best of both worlds: the speed of an aggressive rule with the mathematical rigor of a safe one.

Key Results

  • Massive Feature Reduction: On the Newsgroup dataset, Slores discarded approximately 99% of inactive features even when the regularization parameter $\lambda$ was relatively small (0.1 of $\lambda_{max}$).
  • Outperforming SAFE and Strong Rules: Slores consistently achieved a much higher "rejection ratio" (the percentage of zero-coefficient features correctly identified) compared to the older SAFE rule. Furthermore, while strong rules fail entirely to identify inactive features when $\lambda/\lambda_{max} \leq 0.5$, Slores remains highly effective across the entire range of parameters.
Rejection ratio comparison between Slores, Strong Rule, and SAFE
  • Speedup: By reducing the size of the feature matrix, Slores improved the efficiency of the underlying solvers by one order of magnitude (roughly 10x) on average. The running time is drastically reduced compared to standard solvers and even those using the Strong Rule at lower $\lambda$ values.
Running time comparison showing the computational speedup achieved by Slores

Limitations and Future Work

The current paper focuses specifically on the $\ell_1$-regularized logistic regression. While the framework is robust, the authors note that extending this to more complex formulations—such as Group Lasso, Fused Lasso, or Sparse SVMs—requires further derivation of the specific safe regions for those loss functions. They also suggest exploring non-convex penalties (like $\ell_p$ where $0 < p < 1$) in future research.

Summary updated

BibTeX
@inproceedings{wang2014safe,
  author = {Jie Wang and Jiayu Zhou and Jun Liu and Peter Wonka and Jieping Ye},
  title = {{A Safe Screening Rule for Sparse Logistic Regression}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2014},
  url = {https://openreview.net/forum?id=BkN5QwZd-r},
}
Figure