Additive Models Explained: A Computational Complexity Approach

Shahaf Bassan, Michal Moshkovitz, Guy Katz

Introduction

Generalized Additive Models (GAMs), including modern variants like Neural Additive Models (NAMs) and Explainable Boosting Machines (EBMs), are frequently championed in high-stakes domains such as healthcare and finance. Their appeal lies in their "inherent interpretability"—the idea that because the model's output is a sum of independent univariate functions, a human can easily inspect and understand the contribution of each feature.

However, a critical question remains: is the process of generating formal explanations for these models actually efficient? This research investigates the computational complexity of explaining GAMs, revealing that the transition from a "transparent" model structure to a "tractable" explanation algorithm is fraught with theoretical hurdles. The authors demonstrate that "interpretable" is not synonymous with "computationally tractable."

The Complexity of Explanation

The study moves beyond the intuitive notion of interpretability to provide a rigorous mathematical treatment of explanation queries. The authors analyze several common explanation types:

  • Minimum Sufficient Reasons (MSR): The smallest set of feature values that guarantee a specific prediction.
  • Minimum Contrastive Explanations (MCR): The minimal change required to an input to alter the model's prediction.
  • Shapley Values (SHAP): A game-theoretic approach to distributing the prediction value among features.
  • Feature Redundancy (FR): Identifying whether a feature has any impact on the model's output.

The researchers categorize the difficulty of these tasks using standard complexity classes, such as PTIME (solvable in polynomial time), NP-complete (hard to solve, easy to verify), and #P-hard (counting problems that are significantly more difficult than NP).

Three Dimensions of Difficulty

The paper identifies three primary factors that dictate the complexity of an explanation task:

1. The Input Domain

One of the most surprising findings is the sensitivity of GAMs to their input domain. In most machine learning models, the nature of the input (discrete vs. continuous) does not fundamentally shift the complexity class of the explanation. For GAMs, however, the domain is a primary driver of difficulty. Explaining a GAM over a continuous domain is often exponentially harder than over a simple enumerable discrete domain.

2. Regression vs. Classification

The research highlights a massive complexity gap between regression and classification tasks, particularly regarding Shapley values. For regression-based GAMs, computing SHAP values is efficient (PTIME). However, for classification GAMs, the problem jumps to #P-hard. This is due to the non-linear "step" function (like a sigmoid or threshold) used in classification, which breaks the additive linearity that makes regression SHAP easy to calculate.

3. Component Model Type

The underlying architecture of the additive components also matters. Smooth GAMs based on splines are generally easier to explain in continuous domains than NAMs (which use neural networks) or EBMs (which use trees). Interestingly, this advantage disappears in simple discrete settings, where the complexity levels out across all model types.

The "Complexity Map" and Practical Strategies

The paper culminates in a comprehensive "Complexity Map" that serves as a guide for practitioners. Key takeaways from their formal proofs include:

  • Enumerable Discrete Domains: Almost all explanation types (MSR, MCR, SHAP) are solvable in PTIME.
  • Continuous/General Discrete Domains: For NAMs and EBMs, finding MSRs is coNP-hard, and finding MCRs is NP-complete.
  • SHAP for Classification: This remains #P-complete across nearly all settings.

A vital practical insight from this theoretical work is the role of quantization. The authors demonstrate that discretizing or quantizing model weights and inputs is not merely a technique for reducing memory usage; it is a powerful algorithmic strategy. By restricting the domain, practitioners can transform an NP-hard explanation problem into a tractable one, enabling the use of exact explanation methods that would otherwise be computationally prohibitive.

Limitations and Future Directions

While this work provides a foundational map of GAM complexity, it focuses on models where features act independently. Future research is needed to explore:

  • High-Order Interactions: How do results change for $GA^2Ms$, which include pairwise feature interactions?
  • Concurvity: What is the impact of correlation between additive components (the GAM equivalent of multicollinearity)?
  • Approximation Complexity: If exact explanations are #P-hard, can we formally bound the complexity of finding approximate explanations?

Conclusion

This research serves as a cautionary tale for the machine learning community: "interpretable" does not mean "computationally free." By mapping the complexity landscape of GAMs, the authors provide the theoretical tools necessary to understand when explanations can be trusted as exact and when they must rely on heuristics or approximations.

Summary updated

BibTeX
@inproceedings{bassan2025additive,
  author = {Shahaf Bassan and Michal Moshkovitz and Guy Katz},
  title = {{Additive Models Explained: A Computational Complexity Approach}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=2YAGKZVXQC},
}
Figure