From Decision Trees to Boolean Logic: A Fast and Unified SHAP Algorithm
- URL: http://arxiv.org/abs/2511.09376v1
- Date: Thu, 13 Nov 2025 01:50:30 GMT
- Title: From Decision Trees to Boolean Logic: A Fast and Unified SHAP Algorithm
- Abstract summary: We introduce WOODELF, a SHAP algorithm that integrates decision trees, game theory, and Boolean logic into a unified framework.<n>WoodELF is designed to run efficiently on CPU and GPU hardware alike.
- Score: 45.88028371034407
- License: http://arxiv.org/licenses/nonexclusive-distrib/1.0/
- Abstract: SHapley Additive exPlanations (SHAP) is a key tool for interpreting decision tree ensembles by assigning contribution values to features. It is widely used in finance, advertising, medicine, and other domains. Two main approaches to SHAP calculation exist: Path-Dependent SHAP, which leverages the tree structure for efficiency, and Background SHAP, which uses a background dataset to estimate feature distributions. We introduce WOODELF, a SHAP algorithm that integrates decision trees, game theory, and Boolean logic into a unified framework. For each consumer, WOODELF constructs a pseudo-Boolean formula that captures their feature values, the structure of the decision tree ensemble, and the entire background dataset. It then leverages this representation to compute Background SHAP in linear time. WOODELF can also compute Path-Dependent SHAP, Shapley interaction values, Banzhaf values, and Banzhaf interaction values. WOODELF is designed to run efficiently on CPU and GPU hardware alike. Available via the WOODELF Python package, it is implemented using NumPy, SciPy, and CuPy without relying on custom C++ or CUDA code. This design enables fast performance and seamless integration into existing frameworks, supporting large-scale computation of SHAP and other game-theoretic values in practice. For example, on a dataset with 3,000,000 rows, 5,000,000 background samples, and 127 features, WOODELF computed all Background Shapley values in 162 seconds on CPU and 16 seconds on GPU - compared to 44 minutes required by the best method on any hardware platform, representing 16x and 165x speedups, respectively.
Related papers
- Woodelf++: A Fast and Unified Partial Dependence Plot Algorithm for Decision Tree Ensembles [41.99844472131922]
Woodelf++ builds on Woodelf, an algorithm for efficient SHAP computation.<n> PDPs visualize how changes in a single feature affect the average model prediction.<n>Joint- PDPs extend this idea to pairs of features, revealing their combined effect.<n>PDIVs compute these interactions for every feature subset across all rows of the dataset.
arXiv Detail & Related papers (2026-05-14T08:49:19Z) - Quadrature-TreeSHAP: Depth-Independent TreeSHAP and Shapley Interactions [3.5265932047958]
Existing methods exhibit trade-offs between depth-dependent runtime, numerical stability, and support for higher-order interactions.<n>We introduce Quadrature-TreeSHAP, a quadrature-based reformulation of Path-Dependent TreeSHAP that is numerically stable and naturally extends to any-order Shapley interaction values.<n>Our implementation supports both CPU and GPU and is integrated into XGBoost.
arXiv Detail & Related papers (2026-05-06T05:02:10Z) - WOODELF-HD: Efficient Background SHAP for High-Depth Decision Trees [41.99844472131922]
WoodelfHD is a Woodelf extension that reduces the 3D factor to 2D.<n>WoodelfHD enables exact Background SHAP computation for trees with depths up to 21.<n>It achieves speedups of 33x and 162x, respectively, over the state-of-the-art.
arXiv Detail & Related papers (2026-04-12T10:32:48Z) - PolySHAP: Extending KernelSHAP with Interaction-Informed Polynomial Regression [26.711792479550954]
We show that KernelSHAP avoids the exponential cost of approximating Shapley values by approximating the game as a linear function.<n>We also prove that paired sampling produces exactly the same value approximations as second-order PolySHAP, without ever fitting a degree 2.
arXiv Detail & Related papers (2026-01-26T15:47:45Z) - TreePO: Bridging the Gap of Policy Optimization and Efficacy and Inference Efficiency with Heuristic Tree-based Modeling [65.46347858249295]
TreePO is a self-guided rollout algorithm that views sequence generation as a tree-structured searching process.<n>TreePO essentially reduces the per-update compute burden while preserving or enhancing exploration diversity.
arXiv Detail & Related papers (2025-08-24T16:52:37Z) - Fast unsupervised ground metric learning with tree-Wasserstein distance [14.235762519615175]
unsupervised ground metric learning approaches have been introduced.<n>One promising option employs Wasserstein singular vectors (WSVs), which emerge when computing optimal transport distances between features and samples simultaneously.<n>We propose to augment the WSV method by embedding samples and features on trees, on which we compute the tree-Wasserstein distance (TWD)
arXiv Detail & Related papers (2024-11-11T23:21:01Z) - Scaling LLM Inference with Optimized Sample Compute Allocation [56.524278187351925]
We propose OSCA, an algorithm to find an optimal mix of different inference configurations.
Our experiments show that with our learned mixed allocation, we can achieve accuracy better than the best single configuration.
OSCA is also shown to be effective in agentic beyond single-turn tasks, achieving a better accuracy on SWE-Bench with 3x less compute than the default configuration.
arXiv Detail & Related papers (2024-10-29T19:17:55Z) - SHAP values via sparse Fourier representation [31.824587432702057]
SHAP (SHapley Additive exPlanations) values are a widely used method for local feature attribution in interpretable and explainable AI.<n>We propose an efficient two-stage algorithm for computing SHAP values in both black-box setting and tree-based models.
arXiv Detail & Related papers (2024-10-08T19:05:50Z) - Improving the Weighting Strategy in KernelSHAP [0.8057006406834466]
In Explainable AI (XAI) Shapley values are a popular framework for explaining predictions made by complex machine learning models.<n>We propose a novel modification of KernelSHAP which replaces the deterministic weights with ones to reduce the variance of the resulting Shapley value approximations.<n>Our methods can reduce the required number of contribution function evaluations by $5%$ to $50%$ while preserving the same accuracy of the approximated Shapley values.
arXiv Detail & Related papers (2024-10-07T10:02:31Z) - Simulation-based inference with the Python Package sbijax [0.7499722271664147]
sbijax is a Python package that implements a wide variety of state-of-the-art methods in neural simulation-based inference.
The package provides functionality for approximate Bayesian computation, to compute model diagnostics, and to automatically estimate summary statistics.
arXiv Detail & Related papers (2024-09-28T18:47:13Z) - Shapley-NAS: Discovering Operation Contribution for Neural Architecture
Search [96.20505710087392]
We propose a Shapley value based method to evaluate operation contribution (Shapley-NAS) for neural architecture search.
We show that our method outperforms the state-of-the-art methods by a considerable margin with light search cost.
arXiv Detail & Related papers (2022-06-20T14:41:49Z) - AdaPool: Exponential Adaptive Pooling for Information-Retaining
Downsampling [82.08631594071656]
Pooling layers are essential building blocks of Convolutional Neural Networks (CNNs)
We propose an adaptive and exponentially weighted pooling method named adaPool.
We demonstrate how adaPool improves the preservation of detail through a range of tasks including image and video classification and object detection.
arXiv Detail & Related papers (2021-11-01T08:50:37Z) - Fast TreeSHAP: Accelerating SHAP Value Computation for Trees [0.0]
We present Fast TreeSHAP v1 and v2, designed to improve the computational efficiency of TreeShap for large datasets.
Fast TreeShap v1 is 1.5x faster than TreeShap while keeping the memory cost unchanged.
Fast TreeShap v2 is 2.5x faster than TreeShap, at the cost of a slightly higher memory usage.
arXiv Detail & Related papers (2021-09-20T21:13:23Z) - Efficient semidefinite-programming-based inference for binary and
multi-class MRFs [83.09715052229782]
We propose an efficient method for computing the partition function or MAP estimate in a pairwise MRF.
We extend semidefinite relaxations from the typical binary MRF to the full multi-class setting, and develop a compact semidefinite relaxation that can again be solved efficiently using the solver.
arXiv Detail & Related papers (2020-12-04T15:36:29Z) - GPUTreeShap: Massively Parallel Exact Calculation of SHAP Scores for
Tree Ensembles [0.8057006406834467]
We present a reformulated TreeShap algorithm suitable for massively parallel computation on graphics processing units.
We achieve speedups of up to 19x for SHAP values, and speedups of up to 340x for SHAP values, over a state-of-the-art multi-core CPU implementation.
arXiv Detail & Related papers (2020-10-27T00:55:07Z)
This list is automatically generated from the titles and abstracts of the papers in this site.
This site does not guarantee the quality of this site (including all information) and is not responsible for any consequences.