Abstract
LIME (Local Interpretable Model-agnostic Explanations) is a cornerstone of Explainable AI, yet its theoretical foundations for tabular data have remained largely unexplored. This paper presents a rigorous mathematical analysis of Tabular LIME, deriving a closed-form expression for its coefficients in the large-sample limit. The study reveals critical insights into LIME's behavior, including its reliance on discretized bins and the emergence of "alignment artifacts" in non-linear models.
Introduction
LIME is one of the most popular tools in the Explainable AI (XAI) toolbox. It works by taking a complex "black-box" model, perturbing data around a specific prediction, and training a simple, interpretable surrogate model—usually linear regression—on those perturbations.
Despite its widespread use, LIME has long been treated as a heuristic. Practitioners lacked a rigorous mathematical understanding of what the resulting coefficients represented or how stable they were. This research addresses a fundamental question: Do these explanations make sense mathematically, especially when the black-box model itself is simple? If LIME cannot be trusted to explain a linear model or a shallow decision tree, its utility for deep neural networks is questionable.
Theoretical Framework and Methods
The authors focus on the default implementation of Tabular LIME, using statistical learning theory to analyze the algorithm's behavior as the number of perturbed samples ($n$) approaches infinity. They derive an explicit closed-form expression ($\beta^f$) that LIME’s coefficients converge to, allowing for a structural analysis of different black-box models, including additive, multiplicative, and partition-based models (like CART decision trees).
A central part of the LIME pipeline for tabular data is the discretization of continuous features. The algorithm typically divides feature values into bins based on the training data distribution to create an interpretable representation.
Key Insights
Bin-Constant Explanations
A primary finding is that LIME’s explanations are "bin-constant." This means the explanation depends solely on which discretized "bins" the input point falls into, rather than its exact coordinates. Moving a point slightly within the same grid cell results in an identical explanation, while crossing a boundary can cause the explanation to jump abruptly.
Linearity and the Dummy Axiom
On a positive note, the analysis proves that LIME is linear with respect to the function it explains. It also satisfies the "dummy axiom," correctly assigning a weight of zero to features that the black-box model does not use. For a perfectly linear black-box model, LIME’s coefficients are proven to be proportional to the original model’s coefficients—a vital sanity check.
The "Alignment" Artifact
The most critical discovery is the "alignment artifact." For models like decision trees or RBF kernels, LIME can assign high importance to a feature simply because the point is aligned with a "bump" in the model along that axis, even if the model is locally flat. This can lead to misleading explanations that suggest local influence where none exists.
Bandwidth Instability
The choice of the "bandwidth" parameter ($\nu$), which weights perturbed samples by distance, is perilous. Small bandwidths lead to unstable coefficients where signs can flip with minor parameter changes. The authors suggest that larger bandwidths are generally safer for stability.
Conclusion
This theoretical analysis transforms LIME from a heuristic to a mathematically grounded tool. While it passes basic sanity checks for linear models, the discovery of alignment artifacts and bin-dependency highlights the need for caution when interpreting LIME outputs for complex, non-linear models. Future work may leverage this framework to design more robust weighting and discretization schemes that avoid the identified artifacts.
Summary updated