[Paper Review] The Tractability of SHAP-scores over Deterministic and Decomposable Boolean Circuits.
This paper proves that SHAP-scores can be computed in polynomial time over deterministic and decomposable Boolean circuits—such as decision trees and OBDDs—by leveraging their tractable structure. It further establishes that computing SHAP-scores is as hard as model counting for any Boolean circuit class, implying #P-hardness for DNF formulas, thus showing determinism is essential for tractability.
Scores based on Shapley values are currently widely used for providing explanations to classification results over machine learning models. A prime example of this corresponds to the influential SHAP-score, a version of the Shapley value in which the contribution of a set $S$ of features from a given entity $\mathbf{e}$ over a model $M$ is defined as the expected value in $M$ of the set of entities $\mathbf{e}'$ that coincide with $\mathbf{e}$ over all features in $S$. While in general computing Shapley values is a computationally intractable problem, it has recently been claimed that the SHAP-score can be computed in polynomial time over the class of decision trees. In this paper, we provide a proof of a stronger result over Boolean models: the SHAP-score can be computed in polynomial time over deterministic and decomposable Boolean circuits, also known as tractable probabilistic circuits. Such circuits encompass a wide range of Boolean circuits and binary decision diagrams classes, including binary decision trees and Ordered Binary Decision Diagrams (OBDDs). Moreover, we establish the computational limits of the notion of SHAP-score by showing that computing it over a class of Boolean models is always (polynomially) as hard as the model counting problem for this class (under some mild condition). This implies, for instance, that computing the SHAP-score for DNF propositional formulae is a #P-hard problem, and, thus, that determinism is essential for the circuits that we consider.
Motivation & Objective
- To establish the computational tractability of SHAP-scores over a broad class of Boolean circuits used in explainable AI.
- To investigate the fundamental computational complexity of SHAP-score computation across different Boolean circuit classes.
- To determine whether the tractability of SHAP-scores in decision trees extends to more general circuit classes.
- To identify the minimal structural conditions—specifically determinism and decomposability—under which SHAP-scores remain computable in polynomial time.
- To clarify the relationship between SHAP-score computation and the model counting problem in Boolean logic.
Proposed method
- Leverages the structural properties of deterministic and decomposable Boolean circuits (d-DNNF) to enable efficient computation of SHAP-scores via dynamic programming.
- Uses the definition of SHAP-scores as expected model outputs over feature subsets, reformulated using conditional expectations within the circuit’s decomposition structure.
- Applies known tractable model counting techniques to compute the required expectations efficiently, exploiting the decomposability and determinism of the circuits.
- Reduces the problem of SHAP-score computation to model counting over subcircuits, using the circuit’s hierarchical structure to avoid brute-force enumeration.
- Employs a recursive algorithm that computes contributions by aggregating results from disjoint, non-overlapping subcircuits, ensuring polynomial time complexity.
- Establishes a formal reduction from SHAP-score computation to the model counting problem, proving equivalence in computational hardness under mild conditions.
Experimental results
Research questions
- RQ1Can SHAP-scores be computed in polynomial time over deterministic and decomposable Boolean circuits?
- RQ2Is the tractability of SHAP-scores in decision trees extendable to broader classes of Boolean circuits?
- RQ3What is the fundamental computational complexity of SHAP-score computation over arbitrary Boolean circuit classes?
- RQ4How does the complexity of SHAP-score computation relate to the model counting problem in propositional logic?
- RQ5Is determinism a necessary condition for polynomial-time SHAP-score computation in this context?
Key findings
- SHAP-scores can be computed in polynomial time over deterministic and decomposable Boolean circuits, including OBDDs and binary decision trees.
- The computational complexity of SHAP-score computation is equivalent to that of model counting for any given Boolean circuit class under mild conditions.
- Computing SHAP-scores for DNF formulae is #P-hard, indicating that tractability is not achievable without structural restrictions like determinism.
- The result demonstrates that determinism is a necessary condition for tractable SHAP-score computation in the context of Boolean circuits.
- The framework enables efficient explanation generation for a wide range of explainable AI models based on tractable probabilistic circuits.
- The reduction to model counting provides a unified complexity-theoretic understanding of SHAP-score computation across different circuit classes.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.