On Computing Probabilistic Explanations for Decision Trees

Marcelo Arenas, Pablo Barcelo, Miguel Romero Orth, Bernardo Subercaseaux

While decision trees are often hailed as the "gold standard" for interpretable machine learning, extracting the best probabilistic explanations for their decisions presents a surprising computational hurdle. Recent research reveals that finding these explanations is NP-hard, exposing a significant complexity gap between deterministic and probabilistic interpretability. However, by identifying specific structural properties that make the problem tractable, researchers offer a practical SAT-based approach for real-world applications.

The Shift to Probabilistic Explanations

In the field of Formal Explainable AI (XAI), researchers seek "sufficient reasons"—subsets of input features that are enough to guarantee a model's decision. For example, if a loan is denied, a sufficient reason might be "low income and high debt," regardless of the applicant's age or location.

However, deterministic sufficient reasons are often too rigid. They require that every possible completion of the partial input leads to the exact same result. To make explanations more flexible and useful for real-world data, the community has moved toward $\delta$-sufficient reasons. In this probabilistic counterpart, we only require that the decision remains the same with a probability of at least $\delta$ (e.g., 95%).

A decision tree alongside the probabilities of different feature subsets yielding a specific outcome.

The central question is: How hard is it to actually compute these probabilistic explanations for decision trees? While it was known that finding the smallest explanation for complex models (like Boolean circuits) is hard, decision trees were widely assumed to be "easy." This paper settles the debate, proving that finding both the smallest (minimum) and the non-reducible (minimal) probabilistic explanations is computationally demanding.

The "Probabilistic Penalty" and Complexity

The most striking insight from this research is the jump in complexity—a "probabilistic penalty." For decision trees, finding an inclusion-wise minimal deterministic explanation ($\delta = 1$) is solvable in polynomial time. But as soon as a probability threshold $\delta < 1$ is introduced, the problem becomes NP-hard. This highlights that "relaxing" a problem doesn't always make it computationally easier; in fact, interpretability does not guarantee efficiency.

The authors prove this NP-hardness through rigorous complexity reductions. They map known difficult problems, such as Set Cover and a newly defined problem called Minimal-Expected-Clauses, to the task of finding $\delta$-sufficient reasons.

Formal definition of the k-Minimal-Expected-Clauses problem used in the authors' NP-hardness reduction.

Finding Tractability: Structure and SAT Solvers

Despite the theoretical hardness, the authors provide a silver lining by identifying conditions under which the problem becomes solvable in polynomial time:

  1. Bounded Split Number: This is a structural constraint that measures the "entanglement" of how features interact across different branches of the tree. By limiting this entanglement, the authors use a bottom-up dynamic programming approach to solve the problem efficiently.
  2. Monotonicity: If the model is monotone (i.e., changing a feature from 0 to 1 can only change the output from 0 to 1, never the reverse), a greedy algorithm can successfully find minimal explanations.

For cases that remain NP-hard, the authors developed a method to encode the probabilistic requirements into a Boolean formula. This allows them to leverage powerful off-the-shelf SAT solvers. Validated on both synthetic datasets and the classic MNIST handwritten digit dataset, this SAT encoding successfully bridges the gap between theoretical hardness and practical utility, demonstrating that we can still extract these complex explanations for high-dimensional data.

Looking Ahead

By formalizing these computational challenges, this work moves the XAI field away from purely "intuitive" explanations toward ones backed by rigorous mathematical guarantees. While the complexity landscape is now clearer, several questions remain open for future work. For instance, the parameterized complexity of finding very small explanations is still under investigation, as is the question of whether specific "sweet spot" values of $\delta$ might yield easier computations. Finally, extending these positive results to more general models, like Free Binary Decision Diagrams (FBDDs), represents an exciting frontier for formal explainability.

Summary updated

BibTeX
@inproceedings{arenas2022computing,
  author = {Marcelo Arenas and Pablo Barcelo and Miguel Romero Orth and Bernardo Subercaseaux},
  title = {{On Computing Probabilistic Explanations for Decision Trees}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2022},
  url = {https://openreview.net/forum?id=zD65Zdh6ZhI},
}
Figure