Fast TreeSHAP: Accelerating SHAP Value Computation for Trees
Jilei Yang

TL;DR
This paper introduces Fast TreeSHAP algorithms that significantly accelerate the computation of SHAP values for tree-based models, enabling faster model interpretation on large datasets with minimal accuracy loss.
Contribution
The paper presents two novel algorithms, Fast TreeSHAP v1 and v2, which improve the speed of SHAP value computation for trees, especially on large-scale data.
Findings
Fast TreeSHAP v1 is 1.5x faster than TreeSHAP.
Fast TreeSHAP v2 is 2.5x faster than TreeSHAP.
Fast TreeSHAP v2 enables up to 3x faster explanations for new samples.
Abstract
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…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsExplainable Artificial Intelligence (XAI) · Machine Learning and Data Classification · Adversarial Robustness in Machine Learning
Methodstravel james · Shapley Additive Explanations
