GPUTreeShap: Massively Parallel Exact Calculation of SHAP Scores for Tree Ensembles
Not on the map. Why?
Abstract (arXiv)
SHAP (SHapley Additive exPlanation) values provide a game theoretic interpretation of the predictions of machine learning models based on Shapley values. While exact calculation of SHAP values is computationally intractable in general, a recursive polynomial-time algorithm called TreeShap is available for decision tree models. However, despite its polynomial time complexity, TreeShap can become a significant bottleneck in practical machine learning pipelines when applied to large decision tree ensembles. Unfortunately, the complicated TreeShap algorithm is difficult to map to hardware accelerators such as GPUs. In this work, we present GPUTreeShap, a reformulated TreeShap algorithm suitable for massively parallel computation on graphics processing units. Our approach first preprocesses each decision tree to isolate variable sized sub-problems from the original recursive algorithm, then solves a bin packing problem, and finally maps sub-problems to single-instruction, multiple-thread (SIMT) tasks for parallel execution with specialised hardware instructions. With a single NVIDIA Tesla V100-32 GPU, we achieve speedups of up to 19x for SHAP values, and speedups of up to 340x for SHAP interaction values, over a state-of-the-art multi-core CPU implementation executed on two 20-core Xeon E5-2698 v4 2.2 GHz CPUs. We also experiment with multi-GPU computing using eight V100 GPUs, demonstrating throughput of 1.2M rows per second -- equivalent CPU-based performance is estimated to require 6850 CPU cores.
Key facts. Cited by 14 papers in the map (data through 7 Oct 2026). First posted on arXiv 27 Oct 2020.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2023: 4; 2024: 2; 2025: 4; 2026: 4.
14 papers.
Sort:
By area:
- 2023Large Language Models Streamline Automated Machine Learning for Clinical Studiescited by 24
- 2024SHAP values via sparse Fourier representationcited by 8
- 2025SHAP Meets Tensor Networks: Provably Tractable Explanations with Parallelismcited by 8
- 2023The Thousand Faces of Explainable AI Along the Machine Learning Life Cycle: Industrial Reality and Current State of Researchcited by 4
- 2025From Decision Trees to Boolean Logic: A Fast and Unified SHAP Algorithmcited by 3
- 2026Quadrature-TreeSHAP: Depth-Independent TreeSHAP and Shapley Interactionscited by 1
- 2023Hardware Acceleration of Explainable Artificial Intelligencecited by 0
- 2023Asteroids co-orbital motion classification based on Machine Learningcited by 0
- 2024Different Algorithms (Might) Uncover Different Patterns: A Brain-Age Prediction Case Studycited by 0
- 2025ApproXAI: Energy-Efficient Hardware Acceleration of Explainable AI using Approximate Computingcited by 0
- 2025DistShap: Scalable GNN Explanations with Distributed Shapley Valuescited by 0
- 2026Quantifying Retriever-Generator Alignment in RAG with Local Explanationscited by 0
- 2026Verified SHAP: Provable Bounds for Exact Shapley Values of Neural Networks22 May 2026
- 2026Quadrature-TreeSHAP: Depth-Independent TreeSHAP and Shapley Interactions6 May 2026
- 2026WOODELF-HD: Efficient Background SHAP for High-Depth Decision Trees12 Apr 2026
- 2026Quantifying Retriever-Generator Alignment in RAG with Local Explanations29 Jan 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
- 2025DistShap: Scalable GNN Explanations with Distributed Shapley Values27 Jun 2025
- 2025ApproXAI: Energy-Efficient Hardware Acceleration of Explainable AI using Approximate Computing24 Apr 2025
- 2024SHAP values via sparse Fourier representation8 Oct 2024
- 2024Different Algorithms (Might) Uncover Different Patterns: A Brain-Age Prediction Case Study8 Feb 2024
- 2023The Thousand Faces of Explainable AI Along the Machine Learning Life Cycle: Industrial Reality and Current State of Research11 Oct 2023
- 2023Asteroids co-orbital motion classification based on Machine Learning19 Sep 2023
2 more
- 2023Large Language Models Streamline Automated Machine Learning for Clinical Studiescited by 24
- 2024SHAP values via sparse Fourier representationcited by 8
- 2025SHAP Meets Tensor Networks: Provably Tractable Explanations with Parallelismcited by 8
- 2023The Thousand Faces of Explainable AI Along the Machine Learning Life Cycle: Industrial Reality and Current State of Researchcited by 4
- 2025From Decision Trees to Boolean Logic: A Fast and Unified SHAP Algorithmcited by 3
- 2026Quadrature-TreeSHAP: Depth-Independent TreeSHAP and Shapley Interactionscited by 1
- 2023Hardware Acceleration of Explainable Artificial Intelligencecited by 0
- 2023Asteroids co-orbital motion classification based on Machine Learningcited by 0
- 2024Different Algorithms (Might) Uncover Different Patterns: A Brain-Age Prediction Case Studycited by 0
- 2025ApproXAI: Energy-Efficient Hardware Acceleration of Explainable AI using Approximate Computingcited by 0
- 2025DistShap: Scalable GNN Explanations with Distributed Shapley Valuescited by 0
- 2026WOODELF-HD: Efficient Background SHAP for High-Depth Decision Treescited by 0
12 most cited of 13 All 13 (JSON)
- 2026Verified SHAP: Provable Bounds for Exact Shapley Values of Neural Networks22 May 2026
- 2026Quadrature-TreeSHAP: Depth-Independent TreeSHAP and Shapley Interactions6 May 2026
- 2026WOODELF-HD: Efficient Background SHAP for High-Depth Decision Trees12 Apr 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
- 2025DistShap: Scalable GNN Explanations with Distributed Shapley Values27 Jun 2025
- 2025ApproXAI: Energy-Efficient Hardware Acceleration of Explainable AI using Approximate Computing24 Apr 2025
- 2024SHAP values via sparse Fourier representation8 Oct 2024
- 2024Different Algorithms (Might) Uncover Different Patterns: A Brain-Age Prediction Case Study8 Feb 2024
- 2023The Thousand Faces of Explainable AI Along the Machine Learning Life Cycle: Industrial Reality and Current State of Research11 Oct 2023
- 2023Asteroids co-orbital motion classification based on Machine Learning19 Sep 2023
- 2023Large Language Models Streamline Automated Machine Learning for Clinical Studies27 Aug 2023
12 newest of 13 All 13 (JSON)