Skip to main content
QUICK REVIEW

[Paper Review] Shap-Select: Lightweight Feature Selection Using SHAP Values and Regression

Egor Kraev, Baran Koseoglu|arXiv (Cornell University)|Oct 9, 2024
Machine Learning and Data ClassificationComputer Science4 citations
TL;DR

This paper proposes shap-select, a lightweight, interpretable feature selection framework that uses SHAP values and statistical significance testing on a validation set to guide feature selection via linear or logistic regression. It achieves state-of-the-art performance with minimal computational cost, selecting only 6 features while maintaining high accuracy (0.9996) and F1 score (0.8701) on the credit card fraud dataset, outperforming Boruta, RFE, HISEL, and a baseline SHAP-based method in both efficiency and effectiveness.

ABSTRACT

Feature selection is an essential process in machine learning, especially when dealing with high-dimensional datasets. It helps reduce the complexity of machine learning models, improve performance, mitigate overfitting, and decrease computation time. This paper presents a novel feature selection framework, shap-select. The framework conducts a linear or logistic regression of the target on the Shapley values of the features, on the validation set, and uses the signs and significance levels of the regression coefficients to implement an efficient heuristic for feature selection in tabular regression and classification tasks. We evaluate shap-select on the Kaggle credit card fraud dataset, demonstrating its effectiveness compared to established methods such as Recursive Feature Elimination (RFE), HISEL (a mutual information-based feature selection method), Boruta and a simpler Shapley value-based method. Our findings show that shap-select combines interpretability, computational efficiency, and performance, offering a robust solution for feature selection.

Motivation & Objective

  • To address the challenge of high-dimensional data in machine learning, where irrelevant or redundant features degrade model performance and increase overfitting risk.
  • To develop a computationally efficient and interpretable feature selection method that maintains predictive performance while reducing model complexity.
  • To integrate SHAP values with statistical significance testing to create a robust, heuristic-based feature selection framework.
  • To evaluate the method on real-world tabular datasets, particularly in finance and healthcare, where interpretability and efficiency are critical.
  • To provide an open-source tool that enables practitioners to easily apply the method in production machine learning pipelines.

Proposed method

  • The framework computes SHAP values for all features on the validation set using a trained model.
  • It performs a linear or logistic regression of the target variable on the SHAP values of each feature.
  • Features are selected based on the sign and statistical significance (p-value) of their regression coefficients.
  • Features with non-significant coefficients (p > 0.05) are iteratively removed in a single pass.
  • The method avoids retraining the base model on different feature subsets, ensuring computational efficiency.
  • A confidence threshold (default 5%) controls feature selection, with sensitivity analysis performed to validate robustness.

Experimental results

Research questions

  • RQ1Can SHAP values combined with regression significance testing provide an effective and efficient heuristic for feature selection in high-dimensional tabular data?
  • RQ2How does shap-select compare to established methods like Boruta, RFE, HISEL, and simple SHAP-based selection in terms of accuracy, F1 score, and runtime?
  • RQ3Does iterative application of the method improve model performance, or does it degrade it?
  • RQ4What is the optimal confidence threshold for feature selection, and how sensitive is performance to this choice?
  • RQ5Can the framework maintain high performance while minimizing the number of selected features, especially in low-data regimes or noisy settings?

Key findings

  • shap-select achieved the highest F1 score (0.870056) and near-perfect accuracy (0.999596) while selecting only 6 features, outperforming Boruta and RFE in both metrics.
  • The method had a runtime of 21.8 seconds, significantly faster than Boruta (95.85 seconds) and HISEL (109.03 seconds), despite Boruta achieving slightly higher accuracy.
  • RFE and shap-selection performed worse than shap-select in F1 score and accuracy, despite faster runtimes.
  • HISEL selected all 30 features and had the slowest runtime (109.03 seconds), with the lowest F1 score (0.858757), indicating poor efficiency and performance trade-off.
  • Iterative application of shap-select degraded model performance, indicating that a single pass is optimal.
  • A 5% confidence threshold was found to be effective and robust, as shown by performance stability across different thresholds in sensitivity analysis.

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.