Skip to main content
QUICK REVIEW

[Paper Review] On the Complexity of SHAP-Score-Based Explanations: Tractability via Knowledge Compilation and Non-Approximability Results

Marcelo Arenas, Pablo Barceló|arXiv (Cornell University)|Apr 16, 2021
Explainable Artificial Intelligence (XAI)Computer Science14 citations
TL;DR

This paper establishes that SHAP-scores can be computed in polynomial time for deterministic and decomposable Boolean circuits under product distributions, leveraging knowledge compilation techniques. It further proves that computing SHAP-scores is #P-hard even for monotone DNF formulas and that no fully-polynomial randomized approximation scheme (FPRAS) exists under standard complexity assumptions, highlighting fundamental computational limits.

ABSTRACT

In Machine Learning, the $\\mathsf{SHAP}$-score is a version of the Shapley value that is used to explain the result of a learned model on a specific entity by assigning a score to every feature. While in general computing Shapley values is an intractable problem, we prove a strong positive result stating that the $\\mathsf{SHAP}$-score can be computed in polynomial time over deterministic and decomposable Boolean circuits. Such circuits are studied in the field of Knowledge Compilation and generalize a wide range of Boolean circuits and binary decision diagrams classes, including binary decision trees and Ordered Binary Decision Diagrams (OBDDs). We also establish the computational limits of the SHAP-score by observing that computing it over a class of Boolean models is always polynomially as hard as the model counting problem for that class. This implies that both determinism and decomposability are essential properties for the circuits that we consider. It also implies that computing $\\mathsf{SHAP}$-scores is intractable as well over the class of propositional formulas in DNF. Based on this negative result, we look for the existence of fully-polynomial randomized approximation schemes (FPRAS) for computing $\\mathsf{SHAP}$-scores over such class. In contrast to the model counting problem for DNF formulas, which admits an FPRAS, we prove that no such FPRAS exists for the computation of $\\mathsf{SHAP}$-scores. Surprisingly, this negative result holds even for the class of monotone formulas in DNF. These techniques can be further extended to prove another strong negative result: Under widely believed complexity assumptions, there is no polynomial-time algorithm that checks, given a monotone DNF formula $\\varphi$ and features $x,y$, whether the $\\mathsf{SHAP}$-score of $x$ in $\\varphi$ is smaller than the $\\mathsf{SHAP}$-score of $y$ in $\\varphi$.

Motivation & Objective

  • To investigate the computational complexity of SHAP-score-based explanations in machine learning.
  • To identify conditions under which SHAP-scores can be computed efficiently, particularly in the context of knowledge compilation.
  • To determine whether efficient approximation schemes (e.g., FPRAS) exist for SHAP-score computation over classes like DNF formulas.
  • To establish the necessity of determinism and decomposability for tractable SHAP-score computation.
  • To explore the limits of approximation and comparison of SHAP-scores in Boolean models.

Proposed method

  • The authors formalize SHAP-scores using cooperative game theory, modeling features as players contributing to a classification outcome.
  • They prove that SHAP-scores are computable in polynomial time over deterministic and decomposable Boolean circuits under product distributions.
  • They employ knowledge compilation techniques to compile complex models into tractable circuit representations that support efficient SHAP-score evaluation.
  • The paper establishes a reduction from SHAP-score computation to model counting, showing that both problems are computationally equivalent in complexity.
  • Using complexity-theoretic assumptions, they prove that no FPRAS exists for SHAP-score computation over monotone DNF formulas.
  • They further show that even deciding whether one feature’s SHAP-score is smaller than another’s is intractable in polynomial time under standard assumptions.

Experimental results

Research questions

  • RQ1Under what conditions can SHAP-scores be computed in polynomial time?
  • RQ2Is there a fully-polynomial randomized approximation scheme (FPRAS) for computing SHAP-scores over DNF formulas?
  • RQ3What is the relationship between SHAP-score computation and model counting in Boolean circuits?
  • RQ4Can SHAP-scores be efficiently compared across features in monotone DNF formulas?
  • RQ5Are determinism and decomposability necessary for tractable SHAP-score computation?

Key findings

  • SHAP-scores can be computed in polynomial time over deterministic and decomposable Boolean circuits under product distributions.
  • The tractability result extends to features with finite domains, not just binary features.
  • Computing SHAP-scores is #P-hard over the class of propositional formulas in DNF, even for monotone DNF formulas.
  • No fully-polynomial randomized approximation scheme (FPRAS) exists for SHAP-score computation over DNF formulas under widely accepted complexity assumptions.
  • It is computationally infeasible to decide whether the SHAP-score of one feature is smaller than that of another in monotone DNF formulas.
  • Determinism and decomposability are essential: removing either property renders SHAP-score computation #P-hard.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.