SHAP values via sparse Fourier representation

Ali Gorji, Andisheh Amrollahi, Andreas Krause
10/8/2024
cs.LG

No confident code implementation found for this paper.

Abstract

SHAP (SHapley Additive exPlanations) values are a widely used method for local feature attribution in interpretable and explainable AI. We propose an efficient two-stage algorithm for computing SHAP values in both black-box setting and tree-based models. Motivated by spectral bias in real-world predictors, we first approximate models using compact Fourier representations, exactly for trees and approximately for black-box models. In the second stage, we introduce a closed-form formula for {\em exactly} computing SHAP values using the Fourier representation, that ``linearizes'' the computation into a simple summation and is amenable to parallelization. As the Fourier approximation is computed only once, our method enables amortized SHAP value computation, achieving significant speedups over existing methods and a tunable trade-off between efficiency and precision.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{gorji2024shap,
  title  = {SHAP values via sparse Fourier representation},
  author = {Ali Gorji and Andisheh Amrollahi and Andreas Krause},
  year   = {2024},
  eprint = {2410.06300},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2410.06300v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2410.06300.svg)](https://codeofpaper.com/paper/2410.06300)

Discussion