Abstract
For a Boolean function $\Phi\colon\{0,1\}^d\to\{0,1\}$ and an assignment to its variables $\mathbf{x}=(x_1, x_2, \dots, x_d)$ we consider the problem of finding the subsets of the variables that are sufficient to determine the function value with a given probability $\delta$. This is motivated by the task of interpreting predictions of binary classifiers described as Boolean circuits (which can be seen as special cases of neural networks). We show that the problem of deciding whether such subsets of relevant variables of limited size $k\leq d$ exist is complete for the complexity class $\mathsf{NP}^{\mathsf{PP}}$ and thus generally unfeasible to solve. We introduce a variant where it suffices to check whether a subset determines the function value with probability at least $\delta$ or at most $\delta-\gamma$ for $0<\gamma<\delta$. This reduces the complexity to the class $\mathsf{NP}^{\mathsf{BPP}}$. Finally, we show that finding the minimal set of relevant variables can not be reasonably approximated, i.e. with an approximation factor $d^{1-\alpha}$ for $\alpha > 0$, by a polynomial time algorithm unless $\mathsf{P} = \mathsf{NP}$ (this holds even with the probability gap).
Introduction
As neural networks are increasingly deployed in high-stakes domains like medicine and law, the "black box" nature of these models poses a significant liability. Trustworthy AI requires not just a prediction, but an explanation of why a specific decision was made. A common approach to local explanation is identifying a "relevant set" of input features—a minimal subset that, when held constant, ensures the model's output remains stable regardless of variations in other features. This paper investigates the fundamental computational limits of finding such explanations.
Formalizing Explanations as Boolean Circuits
The researchers model neural networks as Boolean circuits, a valid abstraction since networks utilizing Rectified Linear Units (ReLU) can represent any Boolean function. They define the Relevant-Input problem: given a function $\Phi$, an input $\mathbf{x}$, and a probability threshold $\delta$, does there exist a subset of variables of size $k$ that determines the output with probability at least $\delta$?
To determine the difficulty, the authors use complexity reductions, specifically reducing the problem from E-Maj-Sat, a known hard problem involving finding assignments such that a majority of remaining assignments satisfy a formula. This theoretical framework allows for a rigorous evaluation of explainability without relying on specific empirical datasets like ImageNet, focusing instead on the inherent logic of the models.
The Complexity Hierarchy of Relevant Inputs
The paper's primary contribution is placing the explainability problem within the $\text{NP}^{\text{PP}}$ complexity class. To put this in perspective, NP problems are considered hard, and PP (probabilistic polynomial time) problems are even harder; $\text{NP}^{\text{PP}}$ represents an NP search that requires a PP "oracle" to verify its work. This reflects the extreme difficulty of reasoning under probabilistic uncertainty.
However, the authors identify that much of this hardness stems from edge cases where the probability is exactly $\delta$. By introducing a "probability gap" $\gamma$—where the algorithm must distinguish between a probability $\geq \delta$ and one $\leq \delta - \gamma$—the complexity reduces to $\text{NP}^{\text{BPP}}$. This is a significant insight because $\text{BPP}$ problems can be solved efficiently via sampling (Monte Carlo methods), making the probabilistic component of the problem tractable for modern computing.
The Inapproximability Barrier
Despite the potential for sampling-based approaches to handle the probability threshold, the paper establishes a severe "negative result" for optimization. Finding the minimum number of relevant features cannot be approximated within a factor of $d^{1-\alpha}$ (where $d$ is the number of inputs) unless $P=NP$. In practical terms, this suggests that any efficient general-purpose algorithm might produce an "explanation" that is nearly as large as the original input, rendering it functionally useless for human interpretation.
Conclusion
While these results provide a sobering worst-case analysis, the authors note that the specific compositional structure of real-world neural networks may offer a path forward. The proof applies to arbitrary Boolean circuits, but the layered nature of deep learning models might make them easier to explain than the general case. Future research should focus on identifying specific architectural classes where the relevant set problem becomes more manageable, or developing heuristics that leverage the specific properties of neural network layers.
Summary updated