Local vs. Global Interpretability: A Computational Complexity Perspective

Shahaf Bassan, Guy Amir, Guy Katz

Abstract

Interpretability in machine learning is often categorized into local explanations (specific decisions) and global explanations (overall model logic). This paper provides a rigorous mathematical framework to compare these two paradigms using computational complexity theory. By analyzing Perceptrons, Free Binary Decision Diagrams (FBDDs), and Multi-Layer Perceptrons (MLPs), the authors uncover a surprising "complexity flip": while simple linear models are easier to interpret locally, complex models like decision trees and neural networks are computationally easier to explain globally than locally.

Introduction

In machine learning, "interpretability" is frequently discussed without formal definitions. We generally distinguish between local interpretability—explaining why a specific individual was denied a loan—and global interpretability—understanding the model's general decision-making logic.

This research moves beyond intuition by applying computational complexity to measure how difficult it is to extract these explanations. The central question is whether a model that is easy to explain locally is necessarily easy to understand globally, and vice versa.

Methodology

The authors evaluate three model classes representing different levels of complexity:

  1. Perceptrons: Simple linear models.
  2. FBDDs (Free Binary Decision Diagrams): A generalized form of decision trees.
  3. MLPs (Multi-Layer Perceptrons): Neural networks using ReLU activations.

These models are tested against several formal explanation queries:

  • Sufficient Reason Feature Selection: Identifying the minimal feature subset that guarantees a specific prediction.
  • Necessary and Redundant Features: Determining which features are essential versus irrelevant for a prediction.
  • Completion Count: Calculating the probability a prediction holds if certain features are missing.

The theoretical foundation relies on a duality between local and global explanations (rooted in hitting set theory) and a uniqueness theorem for global explanations. As a theoretical study, the "data" consists of the mathematical definitions of these model classes rather than empirical datasets.

The Complexity Flip

A major contribution of this work is the discovery of the "complexity flip." Intuition suggests that understanding an entire model (global) should be more difficult than understanding a single decision (local). While this holds true for linear models, the opposite occurs for decision trees and neural networks.

Visualizing the complexity relationship between local and global explanations across different model architectures.

The authors prove that for any model, there is exactly one unique subset-minimal global sufficient reason. In contrast, a single local decision can have an exponential number of different minimal explanations. This uniqueness significantly reduces the global search space compared to the local one for complex architectures.

Results and Analysis

The paper's findings, summarized in the complexity table below, highlight the stark differences in interpretability tasks across model types.

Computational complexity of local and global explanation tasks for various model classes.

Key takeaways from the analysis include:

  • Linear Models (Perceptrons): These are "locally interpretable." Finding a local sufficient reason is efficient (PTIME), but the global equivalent is hard (coNP-Complete).
  • Decision Trees (FBDDs): These are "globally interpretable." Finding a global minimal sufficient reason is in PTIME, whereas the local version is NP-Complete.
  • Neural Networks (MLPs): While generally difficult to explain, they follow the "flip" trend. Local feature selection is extremely hard ($\\Sigma^P_2$-Complete), while the global version drops to coNP-Complete.
  • Redundancy: Identifying redundant features is computationally easier to perform globally than locally for both neural networks and decision trees.

Conclusion and Future Work

This research provides a formal basis for comparing interpretability paradigms. It demonstrates that the global logic of complex models may be more accessible than the reasons behind their individual predictions.

However, the study has limitations. The proofs primarily focus on Boolean inputs and outputs, though extensions to continuous domains are discussed in the full paper. Additionally, the analysis is restricted to "formal" explanations like Sufficient Reasons, leaving popular heuristic methods like SHAP or LIME for future investigation. Future work may also explore "relaxed" definitions, such as probabilistic sufficiency, to see if these complexity gaps persist.

Summary updated

BibTeX
@inproceedings{bassan2024local,
  author = {Shahaf Bassan and Guy Amir and Guy Katz},
  title = {{Local vs. Global Interpretability: A Computational Complexity Perspective}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=veEjiN2w9F},
}
Figure