Fast Sparse Classification for Generalized Linear and Additive Models

Jiachang Liu, Chudi Zhong, Margo I. Seltzer, Cynthia Rudin

Abstract

We present fast classification techniques for sparse generalized linear and additive models. These techniques can handle thousands of features and thousands of observations in minutes, even in the presence of many highly correlated features. For fast sparse logistic regression, our computational speed-up over other best-subset search techniques owes to linear and quadratic surrogate cuts for the logistic loss that allow us to efficiently screen features for elimination, as well as use of a priority queue that favors a more uniform exploration of features. As an alternative to the logistic loss, we propose the exponential loss, which permits an analytical solution to the line search at each iteration. Our algorithms are generally 2 to 5 times faster than previous approaches. They produce interpretable models that have accuracy comparable to black box models on challenging datasets.

Introduction

In high-stakes domains like credit scoring or recidivism prediction, interpretability is paramount. Sparse models—those using only a handful of features—are the gold standard for interpretability. However, finding the "best subset" of features (the $\ell_0$ regularization problem) is NP-hard. Existing approaches generally fall into two camps: exact solvers like Mixed-Integer Programming (MIP), which find optimal solutions but struggle with large or highly correlated datasets, and heuristic search methods like coordinate descent (e.g., L0Learn), which are faster but often inefficient in their exploration of the feature space.

This work bridges the gap by providing a method fast enough to handle thousands of features and observations in under a minute while maintaining high accuracy. The core insight is that standard surrogate-based coordinate descent is often "conservative," staying on one side of the optimal value. By recognizing this, we can justify more aggressive steps combined with "cuts" to prune the search space.

Methodological Innovations

The paper introduces three primary innovations to accelerate the search for sparse models:

1. Surrogate Quadratic Cuts

Standard thresholding steps in previous coordinate descent algorithms often fail to move coefficients far enough toward the optimum in a single iteration. We utilize linear and quadratic cuts to create a lower bound on the loss function. If this lower bound exceeds the current best loss, the algorithm can eliminate a feature immediately without full optimization.

Comparison of Coordinate Descent with Linear and Quadratic Cuts.

2. Dynamic Feature Ordering

Instead of checking features in a fixed sequential order, we employ a priority queue. Features that have recently failed to produce successful swaps are deprioritized. This focuses computational effort on features more likely to improve the model, significantly reducing redundant evaluations.

3. Exponential Loss as an Alternative

While logistic loss is standard, we propose using exponential loss. Its mathematical structure allows for an analytical solution to the line search at each iteration, particularly for binary features. This removes the need for iterative optimization within the algorithm's inner loop, providing a significant speed advantage.

Experimental Evaluation

We evaluated our methods on synthetic datasets with high feature correlation and real-world datasets including FICO (credit risk), COMPAS, and Netherlands (recidivism).

Key Results

The proposed algorithms, LogRegQuad-L0 and Exp-L0, are generally 2 to 5 times faster than L0Learn. On the challenging FICO dataset (~10k observations, ~2k features), our algorithm produced a generalized additive model with only 19 variables in under 5 seconds, matching the accuracy of black-box models.

Performance comparison on the FICO dataset across different regularization parameters.

Our methods also demonstrate superior scalability and robustness to feature correlation, a scenario where traditional Lasso ($\ell_1$) often fails to select the correct features.

Conclusion and Future Work

We have demonstrated that integrating classical optimization tools like cutting planes into a heuristic local search framework can yield substantial performance gains for sparse classification. While the speed advantage of exponential loss is most pronounced for binary features, the overall framework remains highly effective for general GLMs and GAMs. Future work includes exploring higher-order swaps (e.g., 2-OPT) and incorporating domain-specific constraints like monotonicity.

Summary updated

BibTeX
@inproceedings{liu2022fast,
  author = {Jiachang Liu and Chudi Zhong and Margo I. Seltzer and Cynthia Rudin},
  title = {{Fast Sparse Classification for Generalized Linear and Additive Models}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2022},
  url = {https://openreview.net/forum?id=6lpUnM07UO},
}
Figure