Introduction
While single decision trees or linear models are often considered "interpretable," combining them into an ensemble (such as a Random Forest or Gradient Boosted Trees) triggers a massive jump in computational complexity. This transition often turns an "easy" explanation task into one that is NP-Hard. This research provides the first rigorous mathematical foundation for "computational interpretability," proving that while tree ensembles can remain tractable if the number of trees is small, even just two linear models are enough to make an ensemble mathematically "uninterpretable."
The Computational Interpretability Framework
The machine learning community has long considered ensembles to be "black boxes" by folklore. This paper formalizes this intuition by applying computational complexity theory to the field of interpretability. Under this framework, a model is defined as interpretable if an explanation for its decision can be generated in polynomial time (PTIME). Conversely, if generating an explanation is NP-Hard or worse, the model is considered effectively uninterpretable for practical applications.
The authors perform a formal complexity analysis across three base model types: Axis-aligned decision trees, Linear classifiers (Perceptrons), and Neural Networks (MLPs). They evaluate five common types of local explanations:
- Check Sufficient Reason (CSR): Verifying if a subset of features is enough to guarantee a prediction.
- Minimum Sufficient Reason (MSR): Finding the smallest subset of features that guarantees a prediction.
- Minimum Change Required (MCR): Finding the smallest change to input features to flip a prediction (counterfactuals).
- Count Completions (CC): Calculating the probability a prediction holds given a partial input.
- Shapley Additive Explanations (SHAP): Calculating feature importance based on game theory.
This is a purely theoretical work based on mathematical proofs and complexity reductions; no empirical experiments on specific datasets were conducted.
Key Insights: The Complexity Gap
The analysis reveals a significant "Complexity Gap" between single models and ensembles. For decision trees and linear models, explaining a single instance is typically efficient, but ensembling them leads to a jump to NP-Complete or even $\Sigma^P_2$-Complete complexity.
Several critical insights emerge from this structural analysis:
- Linear Models are Surprisingly Fragile: We often think of linear models as the gold standard of interpretability. However, the authors prove that an ensemble of just two linear models is already NP-Hard to interpret. The integration of even a tiny number of linear models leads to a rapid loss of traceability.
- Trees are More "Robust" to Ensembling: Unlike linear models, if you keep the number of trees ($k$) fixed and small, many explanation types remain "tractable" (specifically, XP-tractable). This suggests that a Random Forest with 5 deep trees might be easier to explain than one with 50 shallow trees.
- The Neural Network Exception: Interestingly, there is no complexity gap for neural networks. A single ReLU network is already computationally hard to explain, and an ensemble of neural networks can be mathematically reduced to one larger single network in polynomial time.
- Size Doesn't Save You: Reducing the size of base models to a constant (e.g., trees with only 3 nodes) does not make the ensemble easier to explain. The complexity arises from the aggregation process (the voting), not the complexity of the individual parts.
Mapping the Complexity of Explanations
The core contribution of the paper is a comprehensive "Complexity Map" of explanation tasks. As shown in the table below, most tasks that are PTIME for single models become intractable in ensemble settings.
The results for Decision Trees are particularly telling. While a single tree allows for PTIME verification of sufficient reasons (CSR), an ensemble jumps to coNP-C. Finding the Minimum Sufficient Reason (MSR) is even more taxing, reaching $\Sigma^P_2$-C complexity for tree ensembles. Furthermore, SHAP and Count Completions (CC) are proved to be #P-Hard for ensembles, meaning they are among the most computationally expensive problems in computer science.
Limitations and Future Work
This study focuses on local explanations (explaining a specific prediction) rather than global interpretability. Additionally, the paper deals with the complexity of finding exact or optimal explanations. In practice, engineers often use heuristic approximations (like KernelSHAP), which are faster but lack the formal guarantees discussed here. Future research could extend this framework to heterogeneous ensembles or explore the complexity of "simplifying" a complex model into a smaller, interpretable proxy.
Summary updated