Fast TreeSHAP: Accelerating SHAP Value Computation for Trees
Not on the map. Why?
Abstract (arXiv)
SHAP (SHapley Additive exPlanation) values are one of the leading tools for interpreting machine learning models, with strong theoretical guarantees (consistency, local accuracy) and a wide availability of implementations and use cases. Even though computing SHAP values takes exponential time in general, TreeSHAP takes polynomial time on tree-based models. While the speedup is significant, TreeSHAP can still dominate the computation time of industry-level machine learning solutions on datasets with millions or more entries, causing delays in post-hoc model diagnosis and interpretation service. In this paper we present two new algorithms, Fast TreeSHAP v1 and v2, designed to improve the computational efficiency of TreeSHAP for large datasets. We empirically find that Fast TreeSHAP v1 is 1.5x faster than TreeSHAP while keeping the memory cost unchanged. Similarly, Fast TreeSHAP v2 is 2.5x faster than TreeSHAP, at the cost of a slightly higher memory usage, thanks to the pre-computation of expensive TreeSHAP steps. We also show that Fast TreeSHAP v2 is well-suited for multi-time model interpretations, resulting in as high as 3x faster explanation of newly incoming samples.
Key facts. Cited by 28 papers in the map (data through 7 Oct 2026). Builds on 14 of its 33 references that are in the map. First posted on arXiv 20 Sep 2021.
Builds on
14 of 33 references.
References · 14
- 2017A Unified Approach to Interpreting Model Predictionscited by 6,488
- 2016XGBoost: A Scalable Tree Boosting Systemcited by 5,120
- 2016"Why Should I Trust You?": Explaining the Predictions of Any Classifiercited by 5,040
- 2017Axiomatic Attribution for Deep Networkscited by 3,350
- 2019The many Shapley values for model explanationcited by 341
- 2019Interpretable machine learning: definitions, methods, and applicationscited by 303
- 2018Consistent Individualized Feature Attribution for Tree Ensemblescited by 279
- 2019Explaining individual predictions when features are dependent: More accurate approximations to Shapley valuescited by 205
- 2020Problems with Shapley-value-based explanations as feature importance measurescited by 198
- 2019Feature relevance quantification in explainable AI: A causal problemcited by 164
- 2020True to the Model or True to the Data?cited by 123
- 2020Shapley explainability on the data manifoldcited by 88
Built on by
Citing papers per year: 2022: 2; 2023: 6; 2024: 9; 2025: 2; 2026: 9.
28 papers.
Sort:
- 2022Algorithms to estimate Shapley value feature attributionscited by 114
- 2024Beyond TreeSHAP: Efficient Computation of Any-Order Shapley Interactions for Tree Ensemblescited by 30
- 2023Efficient XAI Techniques: A Taxonomic Surveycited by 14
- 2022Linear TreeShapcited by 12
- 2024On the Tractability of SHAP Explanations under Markovian Distributionscited by 10
- 2024SHAP values via sparse Fourier representationcited by 8
- 2025SHAP Meets Tensor Networks: Provably Tractable Explanations with Parallelismcited by 8
- 2023EMBERSim: A Large-Scale Databank for Boosting Similarity Search in Malware Analysiscited by 6
- 2024Improving the Weighting Strategy in KernelSHAPcited by 5
- 2023The Thousand Faces of Explainable AI Along the Machine Learning Life Cycle: Industrial Reality and Current State of Researchcited by 4
- 2024Fast Estimation of Partial Dependence Functions using Treescited by 4
- 2026TreeGrad-Ranker: Feature Ranking via O(L)-Time Gradients for Decision Treescited by 4
16 more
- 2023On marginal feature attributions of tree-based modelscited by 3
- 2024Fast Calculation of Feature Contributions in Boosting Treescited by 3
- 2025From Decision Trees to Boolean Logic: A Fast and Unified SHAP Algorithmcited by 3
- 2023An Efficient Shapley Value Computation for the Naive Bayes Classifiercited by 2
- 2024A Comprehensive Study of Shapley Value in Data Analyticscited by 2
- 2024Applications of Explainable artificial intelligence in Earth system sciencecited by 1
- 2026Quadrature-TreeSHAP: Depth-Independent TreeSHAP and Shapley Interactionscited by 1
- 2023Unlocking Sales Growth: Account Prioritization Engine with Explainable AIcited by 0
- 2024XAI and Android Malware Modelscited by 0
- 2026WOODELF-HD: Efficient Background SHAP for High-Depth Decision Treescited by 0
- 2026Rethinking XAI Evaluation: A Human-Centered Audit of Shapley Benchmarks in High-Stakes Settingscited by 0
- 2026Budget-Efficient Automatic Algorithm Design via Code Graphcited by 0
- 2026Verified SHAP: Provable Bounds for Exact Shapley Values of Neural Networkscited by 0
- 2026Enhancing AI Interpretability with Localised Architecturescited by 0
- 2026What Makes a Peer? Valuation-Anchored Similarity in Private Marketscited by 0
- 2026qshap: Fast Shapley Decomposition of R2 for Gradient-Boosted Treescited by 0
- 2026qshap: Fast Shapley Decomposition of R2 for Gradient-Boosted Trees25 Aug 2026
- 2026What Makes a Peer? Valuation-Anchored Similarity in Private Markets12 Aug 2026
- 2026Enhancing AI Interpretability with Localised Architectures6 Jun 2026
- 2026Verified SHAP: Provable Bounds for Exact Shapley Values of Neural Networks22 May 2026
- 2026Budget-Efficient Automatic Algorithm Design via Code Graph11 May 2026
- 2026Quadrature-TreeSHAP: Depth-Independent TreeSHAP and Shapley Interactions6 May 2026
- 2026Rethinking XAI Evaluation: A Human-Centered Audit of Shapley Benchmarks in High-Stakes Settings24 Apr 2026
- 2026WOODELF-HD: Efficient Background SHAP for High-Depth Decision Trees12 Apr 2026
- 2026TreeGrad-Ranker: Feature Ranking via O(L)-Time Gradients for Decision Trees12 Feb 2026
- 2025From Decision Trees to Boolean Logic: A Fast and Unified SHAP Algorithm12 Nov 2025
- 2025SHAP Meets Tensor Networks: Provably Tractable Explanations with Parallelism24 Oct 2025
- 2024A Comprehensive Study of Shapley Value in Data Analytics2 Dec 2024
16 more
- 2024XAI and Android Malware Models25 Nov 2024
- 2024Fast Estimation of Partial Dependence Functions using Trees17 Oct 2024
- 2024SHAP values via sparse Fourier representation8 Oct 2024
- 2024Improving the Weighting Strategy in KernelSHAP7 Oct 2024
- 2024Fast Calculation of Feature Contributions in Boosting Trees3 Jul 2024
- 2024Applications of Explainable artificial intelligence in Earth system science12 Jun 2024
- 2024On the Tractability of SHAP Explanations under Markovian Distributions5 May 2024
- 2024Beyond TreeSHAP: Efficient Computation of Any-Order Shapley Interactions for Tree Ensembles22 Jan 2024
- 2023The Thousand Faces of Explainable AI Along the Machine Learning Life Cycle: Industrial Reality and Current State of Research11 Oct 2023
- 2023EMBERSim: A Large-Scale Databank for Boosting Similarity Search in Malware Analysis3 Oct 2023
- 2023An Efficient Shapley Value Computation for the Naive Bayes Classifier31 Jul 2023
- 2023Unlocking Sales Growth: Account Prioritization Engine with Explainable AI12 Jun 2023
- 2023On marginal feature attributions of tree-based models16 Feb 2023
- 2023Efficient XAI Techniques: A Taxonomic Survey7 Feb 2023
- 2022Linear TreeShap16 Sep 2022
- 2022Algorithms to estimate Shapley value feature attributions15 Jul 2022
- 2022Algorithms to estimate Shapley value feature attributionscited by 114
- 2024Beyond TreeSHAP: Efficient Computation of Any-Order Shapley Interactions for Tree Ensemblescited by 30
- 2023Efficient XAI Techniques: A Taxonomic Surveycited by 14
- 2022Linear TreeShapcited by 12
- 2024On the Tractability of SHAP Explanations under Markovian Distributionscited by 10
- 2024SHAP values via sparse Fourier representationcited by 8
- 2025SHAP Meets Tensor Networks: Provably Tractable Explanations with Parallelismcited by 8
- 2023EMBERSim: A Large-Scale Databank for Boosting Similarity Search in Malware Analysiscited by 6
- 2024Improving the Weighting Strategy in KernelSHAPcited by 5
- 2023The Thousand Faces of Explainable AI Along the Machine Learning Life Cycle: Industrial Reality and Current State of Researchcited by 4
- 2024Fast Estimation of Partial Dependence Functions using Treescited by 4
- 2026TreeGrad-Ranker: Feature Ranking via O(L)-Time Gradients for Decision Treescited by 4
12 most cited of 28 All 28 (JSON)
- 2026qshap: Fast Shapley Decomposition of R2 for Gradient-Boosted Trees25 Aug 2026
- 2026What Makes a Peer? Valuation-Anchored Similarity in Private Markets12 Aug 2026
- 2026Enhancing AI Interpretability with Localised Architectures6 Jun 2026
- 2026Verified SHAP: Provable Bounds for Exact Shapley Values of Neural Networks22 May 2026
- 2026Budget-Efficient Automatic Algorithm Design via Code Graph11 May 2026
- 2026Quadrature-TreeSHAP: Depth-Independent TreeSHAP and Shapley Interactions6 May 2026
- 2026Rethinking XAI Evaluation: A Human-Centered Audit of Shapley Benchmarks in High-Stakes Settings24 Apr 2026
- 2026WOODELF-HD: Efficient Background SHAP for High-Depth Decision Trees12 Apr 2026
- 2026TreeGrad-Ranker: Feature Ranking via O(L)-Time Gradients for Decision Trees12 Feb 2026
- 2025From Decision Trees to Boolean Logic: A Fast and Unified SHAP Algorithm12 Nov 2025
- 2025SHAP Meets Tensor Networks: Provably Tractable Explanations with Parallelism24 Oct 2025
- 2024A Comprehensive Study of Shapley Value in Data Analytics2 Dec 2024
12 newest of 28 All 28 (JSON)