[Paper Review] BeSS: An R Package for Best Subset Selection in Linear, Logistic and CoxPH Models
This paper introduces BeSS, an R package implementing a primal-dual active set algorithm for best subset selection in linear, logistic, and Cox proportional hazards models. It leverages efficient C++/Rcpp integration and supports sequential and golden section search strategies, enabling fast and stable selection on high-dimensional data with up to 10,000 predictors in seconds on a single machine.
We introduce a new R package, BeSS, for solving the best subset selection problem in linear, logistic and Cox's proportional hazard (CoxPH) models. It utilizes a highly efficient active set algorithm based on primal and dual variables, and supports sequential and golden search strategies for best subset selection. We provide a C++ implementation of the algorithm using Rcpp interface. We demonstrate through numerical experiments based on enormous simulation and real datasets that the new BeSS package has competitive performance compared to other R packages for best subset selection purpose.
Motivation & Objective
- To address the computational infeasibility of exhaustive best subset selection in high-dimensional settings with large p.
- To develop a computationally efficient and stable algorithm for best subset selection across linear, generalized linear, and Cox proportional hazards models.
- To implement a primal-dual active set method that efficiently handles the non-convex L0 constraint in subset selection problems.
- To provide a user-friendly R package with C++-accelerated core algorithms and support for model selection criteria like AIC, BIC, and EBIC.
- To demonstrate the package's performance on both simulated and real-world datasets, showing scalability to n in 1000s and p in 10000s.
Proposed method
- The method employs a primal-dual active set (PDAS) algorithm that iteratively updates active sets of predictors using complementary primal and dual variables.
- The algorithm generalizes to convex loss functions with L0 norm constraints, enabling application to linear, logistic, and CoxPH models.
- It supports two search strategies: sequential search over k (subset size) and golden section search for optimal k determination.
- The core algorithm is implemented in C++ via Rcpp for high performance, with memory optimization for sparse matrix operations.
- Model selection criteria (AIC, BIC, EBIC) are used to identify the optimal model from the sequence of best subsets for each k.
- The method avoids exhaustive search by using active set updating and duality-based convergence checks, significantly reducing computation time.
Experimental results
Research questions
- RQ1Can a primal-dual active set algorithm achieve competitive computational efficiency and accuracy in best subset selection across linear, logistic, and CoxPH models?
- RQ2How does the performance of BeSS compare to existing R packages like leaps, bestglm, and glmuti in terms of speed and stability on high-dimensional data?
- RQ3To what extent can the sequential and golden section search strategies effectively identify the optimal model size k with minimal computational overhead?
- RQ4Can the C++-accelerated implementation in BeSS scale to datasets with p > 10,000 predictors and n in the thousands while maintaining numerical stability?
- RQ5How well do information criteria (AIC, BIC, EBIC) perform in selecting the best model when used in conjunction with the BeSS algorithm?
Key findings
- BeSS achieves competitive performance compared to other R packages, solving best subset problems with n in 1000s and p in 10000s in just seconds on a single personal computer.
- The package successfully identifies the optimal model using EBIC criterion on the trim32 dataset, selecting a 2-predictor model with EBIC = -561.2689.
- For the trim32 dataset, the best model selected by AIC included 25 predictors with AIC = -890.9282, indicating strong fit and model complexity trade-off.
- The primal-dual active set algorithm converges stably and efficiently, enabling the solution of NP-hard best subset problems that are infeasible for exhaustive search.
- The C++ implementation via Rcpp significantly accelerates computation, making best subset selection practical for high-dimensional data.
- The solution paths and loss function plots generated by BeSS provide clear visual guidance for model selection, with vertical lines indicating the optimal k selected by EBIC.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.