Skip to main content
QUICK REVIEW

[Paper Review] abess: A Fast Best Subset Selection Library in Python and R

Jin Zhu, Xueqin Wang|arXiv (Cornell University)|Oct 19, 2021
Statistical Methods and InferenceMathematics16 references7 citations
TL;DR

abess is a high-performance, open-source library in Python and R that implements a unified framework for best-subset selection (BSS) across diverse machine learning tasks, including linear regression, classification, and PCA. Leveraging a splicing technique and C++-accelerated computation with optimizations like warm-start and OpenMP parallelism, abess achieves certified optimal solutions in polynomial time and runs up to 20x faster than competing tools like scikit-learn's Lasso.

ABSTRACT

We introduce a new library named abess that implements a unified framework of best-subset selection for solving diverse machine learning problems, e.g., linear regression, classification, and principal component analysis. Particularly, the abess certifiably gets the optimal solution within polynomial times with high probability under the linear model. Our efficient implementation allows abess to attain the solution of best-subset selection problems as fast as or even 20x faster than existing competing variable (model) selection toolboxes. Furthermore, it supports common variants like best group subset selection and $\ell_2$ regularized best-subset selection. The core of the library is programmed in C++. For ease of use, a Python library is designed for conveniently integrating with scikit-learn, and it can be installed from the Python library Index. In addition, a user-friendly R library is available at the Comprehensive R Archive Network. The source code is available at: https://github.com/abess-team/abess.

Motivation & Objective

  • To develop a unified, efficient, and scalable library for best-subset selection across diverse machine learning problems.
  • To provide certified optimal solutions for best-subset selection under the linear model with high probability in polynomial time.
  • To support advanced variants including group-wise selection, $β$-regularization, and nuisance variable selection.
  • To ensure seamless integration with popular data science ecosystems like scikit-learn and R's tidyverse.
  • To deliver high performance through low-level optimizations such as sparse matrix support, warm-start initialization, and OpenMP parallelism.

Proposed method

  • The core algorithm uses a splicing technique to efficiently explore the subset space and find the optimal model in polynomial time with high probability under the linear model.
  • The library is implemented in C++ for performance, with high-level Python and R interfaces for usability and integration.
  • It supports multiple solvers for different learning tasks, including linear, logistic, Poisson, Gamma, multinomial, ordinal, Cox PH, multitask, and sparse PCA regression.
  • The framework includes built-in support for group-structured predictors, $β$-regularization, and nuisance variable selection via algorithmic extensions.
  • Performance is enhanced via warm-start initialization, sparse matrix handling, and OpenMP-based parallelism across CPU cores.
  • The library integrates with scikit-learn in Python and follows tidyverse standards in R, enabling compatibility with standard ML pipelines.

Experimental results

Research questions

  • RQ1Can best-subset selection be solved efficiently with theoretical guarantees in polynomial time under the linear model?
  • RQ2How does the performance of abess compare to established libraries like scikit-learn and celer in terms of speed and solution quality?
  • RQ3To what extent can abess scale to high-dimensional datasets while maintaining sparsity and accuracy?
  • RQ4Can abess efficiently handle diverse learning tasks such as classification, survival analysis, and PCA using a unified framework?
  • RQ5How does the integration of abess with scikit-learn and R ecosystems impact usability and workflow compatibility?

Key findings

  • abess achieves certified optimal solutions for best-subset selection under the linear model in polynomial time with high probability, as proven by Zhu et al. (2020).
  • On the cancer dataset, abess runs over 20x faster than scikit-learn’s LassoCV (1.00s vs. 62.16s) while achieving comparable AUC performance (0.97).
  • For sparse PCA, abess explains 3.88% of variance with 20 non-zero loadings, outperforming elasticnet (2.00%) under the same sparsity, and runs 80x faster (1.05s vs. 85.54s).
  • The Python and R packages achieve 97% and 96% code coverage, respectively, with strict adherence to PEP8 and tidyverse style guides.
  • abess supports a wide range of models, including logistic, Poisson, Gamma, multinomial, ordinal, Cox PH, multitask, and sparse PCA, via a modular algorithmic framework.
  • The library is available on PyPI and CRAN, with full documentation and continuous integration via GitHub Actions.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.