A Learning Theoretic Perspective on Local Explainability

Jeffrey Li, Vaishnavh Nagarajan, Gregory Plumb, Ameet Talwalkar

Introduction

Machine learning often grapples with a perceived trade-off between model complexity and interpretability. While learning theory has long connected complexity to generalization (how well a model performs on unseen data), the relationship between interpretability and generalization has remained largely anecdotal. "A Learning Theoretic Perspective on Local Explainability" bridges this gap. The authors demonstrate that a model's capacity to be locally explained is directly tied to its ability to generalize, addressing both traditional performance generalization and the novel problem of "explanation generalization"—whether the explanations themselves overfit to training data.

Theoretical Framework and Methods

The paper grounds its analysis in local approximation explanations, akin to methods like LIME or MAPLE, where a complex black-box model $f$ is approximated by a simpler function $g$ (e.g., a linear model) within a small local neighborhood.

To make this mathematically tractable for generalization bounds, the authors introduce two novel components:

  1. Mirrored Neighborhood Fidelity (MNF): Unlike standard Neighborhood Fidelity (NF), which evaluates explanations on synthetic perturbations near a sample, MNF evaluates them on actual points drawn from the underlying data distribution. This shift is crucial for deriving rigorous generalization bounds.
  2. Neighborhood Disjointedness Factor ($\rho_S$): This complexity measure quantifies the overlap of local neighborhoods around training points. If neighborhoods are tiny and disjoint, the explanation system effectively consists of a high number of independent pieces, significantly increasing the risk of overfitting.

To bound the complexity of the entire explanation system, the authors develop a novel proof technique utilizing Rademacher Complexity for Randomized Functions, treating the choice of a local neighborhood as a randomized function.

Key Insights: Interpretability as Regularization

A central takeaway from the paper is that interpretability can act as a regularizer. If a complex model can be accurately approximated by simple functions over wide neighborhoods, its effective complexity is lower, yielding better generalization guarantees on unseen data.

However, this introduces a fundamental neighborhood trade-off. Extremely small neighborhoods yield highly accurate local explanations (low MNF error), but cause the complexity term ($\rho_S$) to explode because the model can essentially memorize individual points. Conversely, large neighborhoods reduce complexity but may fail to capture the black-box model's intricate, non-linear behavior.

Furthermore, the paper formally proves that explanation overfitting is real. Local explainers trained on finite samples can degrade in quality when applied to unseen data, particularly if the defined neighborhoods are too narrow.

Theoretical Bounds and Empirical Results

The authors derive two primary theoretical theorems:

  • Theorem 1 (Performance Generalization): Bounds the test Mean Squared Error (MSE) of a model using its training error, its local explainability (MNF), and the complexity of the explanation system.
  • Theorem 2 (Explanation Generalization): Bounds the "test MNF" (explanation quality on new data) using the "train MNF."

These bounds were validated empirically on several UCI Machine Learning Repository regression datasets (Autompgs, Housing, Wine, Day, Music) using neural networks as black-box models and linear models as local explainers. The empirical results confirm that the complexity factor $\rho_S$ grows much slower than the theoretical worst-case of $\sqrt{m}$ (where $m$ is the sample size), proving the bounds are non-trivial and reflect real-world data behavior. Additionally, the observed generalization gap for explanations narrows as neighborhood widths increase, perfectly aligning with Theorem 2.

Limitations and Future Directions

The framework does face challenges with the "curse of dimensionality." In very high-dimensional spaces (like image data), neighborhoods rarely overlap. In such cases, the disjointedness factor $\rho_S$ becomes exceedingly large, potentially rendering the theoretical bounds practically vacuous, even if mathematically true. Additionally, computing the MNF metric requires access to unlabeled test data during the evaluation phase.

Despite these limitations, the paper provides a rigorous foundation for the theoretical benefits of explainability. The authors suggest that these insights could pave the way for new training algorithms that explicitly regularize for MNF, promising models that are simultaneously more accurate and more interpretable.

Summary updated

BibTeX
@inproceedings{li2021learning,
  author = {Jeffrey Li and Vaishnavh Nagarajan and Gregory Plumb and Ameet Talwalkar},
  title = {{A Learning Theoretic Perspective on Local Explainability}},
  booktitle = {International Conference on Learning Representations},
  year = {2021},
  url = {https://openreview.net/forum?id=7aL-OtQrBWD},
}
Figure