Provably Accurate Shapley Value Estimation via Leverage Score Sampling
Organizations: New York University
Abstract
Originally introduced in game theory, Shapley values have emerged as a central tool in explainable machine learning, where they are used to attribute model predictions to specific input features. However, computing Shapley values exactly is expensive: for a general model with features, model evaluations are necessary. To address this issue, approximation algorithms are widely used. One of the most popular is the Kernel SHAP algorithm, which is model agnostic and remarkably effective in practice. At the time of our original submission, no strong non-asymptotic complexity guarantees were known for Kernel SHAP. We address this issue by introducing Leverage SHAP, a lightweight modification of Kernel SHAP that provides provably accurate Shapley value estimates with just model evaluations. Our approach takes advantage of a connection between Shapley value estimation and agnostic active learning by employing leverage score sampling, a powerful regression tool. Beyond theoretical guarantees, we find that Leverage SHAP achieves an approximately reduction in error compared to the highly optimized implementation of Kernel SHAP in the widely used SHAP library [Lundberg & Lee, 2017].
Figures & tables
| IRIS | California | Diabetes | Adult | Correlated | Independent | NHANES | Communities | |
|---|---|---|---|---|---|---|---|---|
| Kernel SHAP | ||||||||
| Mean | 0.0326 | 0.03 | 0.0592 | 0.0596 | 0.0471 | 0.0269 | 0.0542 | 0.118 |
| 1st Quartile | 1.03e-05 | 0.00689 | 0.0123 | 0.0196 | 0.0264 | 0.0142 | 0.0175 | 0.0578 |
| 2nd Quartile | 0.000259 | 0.0177 | 0.0237 | 0.0412 | 0.0405 | 0.0207 | 0.038 | 0.0876 |
| 3rd Quartile | 0.034 | 0.0417 | 0.0545 | 0.0844 | 0.0556 | 0.0315 | 0.0789 | 0.139 |
| Optimized Kernel SHAP |
Appendix figures & tables11 assets
Supplementary material from the paper’s appendix.
Appendix
| Dataset | ||||||
|---|---|---|---|---|---|---|
| IRIS | 1.00 | 1.00 | 1.00 | 1.00 | 1.00 | 1.00 |
| California | 0.0894 | 0.0824 | 0.0471 | 1.00 | 1.00 | 1.00 |
| Diabetes | 0.184 | 0.287 | 0.261 | 0.181 | 0.151 | 1.00 |
| Adult | 0.527 | 0.400 | 0.328 | 0.439 | 0.345 | 0.211 |
| Correlated | 0.588 | 0.568 | 0.660 | 0.657 | 0.727 | 0.674 |
| Independent | 0.492 | 0.507 | 0.625 | 0.654 | 0.618 | 0.651 |
| Dataset | 1st Quartile | 2nd Quartile | 3rd Quartile | |
|---|---|---|---|---|
| IRIS | 4 | 0.000234 | 0.142 | 0.991 |
| California | 8 | 0.161 | 0.297 | 0.44 |
| Diabetes | 10 | 0.182 | 0.321 | 0.528 |
| Adult | 12 | 0.171 | 0.4 | 0.729 |
| IRIS | California | Diabetes | Adult | Correlated | Independent | NHANES | Communities | |
|---|---|---|---|---|---|---|---|---|
| Kernel SHAP | ||||||||
| Mean | 0.0326 | 0.03 | 0.0592 | 0.0596 | 0.0471 | 0.0269 | 0.0542 | 0.118 |
| 1st Quartile | 1.03e-05 | 0.00689 | 0.0123 | 0.0196 | 0.0264 | 0.0142 | 0.0175 | 0.0578 |
| 2nd Quartile | 0.000259 | 0.0177 | 0.0237 | 0.0412 | 0.0405 | 0.0207 | 0.038 | 0.0876 |
| 3rd Quartile | 0.034 | 0.0417 | 0.0545 | 0.0844 | 0.0556 | 0.0315 | 0.0789 | 0.139 |
| Kernel SHAP Paired |
SHAP Feature Attribution
SHAP (SHapley Additive exPlanations) feature attribution assigns model predictions to input features using Shapley values from cooperative game theory.
See all 36 papers