Abstract
As machine learning models grow in complexity, model-agnostic local explanation techniques such as LIME and SHAP have become standard tools for interpreting individual predictions. However, the lack of ground-truth benchmarks for complex models makes it difficult to verify the accuracy of these explanations. This paper evaluates these tools by applying them to linear additive models—where internal logic is mathematically transparent—as a "sanity check." By introducing Model-Intrinsic Additive Scores (MIAS) as a ground-truth metric, the researchers demonstrate that while these tools are effective for linear regression, they frequently fail to accurately explain logistic regression and naive Bayes models. The study identifies significant discrepancies between explanation robustness and accuracy, particularly in the presence of categorical features and poor model generalization.
Introduction
The widespread adoption of "black-box" models in high-stakes domains has necessitated the development of Explainable AI (XAI) tools. Techniques like LIME (Local Interpretable Model-agnostic Explanations) and SHAP (SHapley Additive exPlanations) are popular because they treat models as black boxes, requiring no knowledge of internal architectures. However, a fundamental concern persists: if an XAI technique cannot reliably explain a simple, transparent model, its utility for explaining complex deep neural networks is questionable.
Current evaluations of XAI tools often prioritize "robustness"—the stability of an explanation under minor input perturbations—over "accuracy," which measures how well an explanation reflects the model's actual decision logic. This research addresses this gap by proposing a baseline verification framework using linear additive models to establish a definitive ground truth.
Methodology: Model-Intrinsic Additive Scores (MIAS)
To evaluate explanation accuracy, the authors developed Model-Intrinsic Additive Scores (MIAS). In a standard linear regression model, the contribution of a feature $j$ is explicitly defined as the product of its weight $w_j$ and its value $x_j$.
For non-linear but additive classifiers, such as Logistic Regression and Naive Bayes, the authors utilize a log-odds transformation to decompose predictions into a linear sum of feature contributions. This mathematical transformation provides the exact local importance of every feature, serving as the MIAS ground truth.
Evaluated Techniques and Metrics
The study compares three prominent local explanation methods:
- LIME: Approximates local model behavior using a simpler, interpretable surrogate model.
- SHAP: Utilizes cooperative game theory (Shapley values) to assign credit to features based on their contribution to the prediction.
- Local Permutation Importance (LPI): A non-additive technique that measures prediction changes when a feature's value is randomly shuffled.
The primary evaluation metric is Spearman’s Rank Correlation, used to compare the feature rankings provided by XAI tools against the MIAS ground truth.
Experimental Setup
The researchers conducted a comprehensive evaluation using 40 tabular datasets (20 for classification and 20 for regression) sourced from UCI, Kaggle, and KEEL. These include well-known benchmarks such as Adult, Breast Cancer, and Wine Quality. Additionally, synthetic datasets were employed to isolate the impact of specific variables, such as feature correlation and the density of categorical variables.
Key Results and Analysis
The findings reveal a significant performance gap between regression and classification tasks.
Success in Linear Regression
For linear regression models, both SHAP (0.92 average correlation) and LIME (0.885) performed exceptionally well. This confirms that these tools are capable of accurately capturing simple additive structures when the underlying model is purely linear.
Failure in Classification
Performance plummeted when evaluating classification models. For Logistic Regression, LIME’s average correlation with the ground truth was only 0.258, while SHAP averaged 0.212. This suggests that even a minor non-linear transformation, such as a sigmoid function, can severely degrade the accuracy of surrogate-based explainers.
Factors Degrading Explanation Accuracy
The study identified several factors that consistently hindered performance:
- Categorical Features: A high number of categorical variables complicates the local neighborhood sampling required by LIME and SHAP.
- Model Generalization: Models with poor predictive performance (low accuracy) yielded significantly less accurate explanations.
- The Sampling Paradox: Increasing the sample size for LIME and SHAP did not consistently improve accuracy. In some instances, larger samples caused surrogate models to capture global trends, sacrificing local fidelity.
- Similarity Metrics: The choice of distance metric matters; Euclidean distance often performs worse than rank-based metrics when defining local neighborhoods for tabular data.
Discussion and Limitations
A critical insight from this work is that robustness does not imply accuracy. An explanation can be highly stable across multiple runs yet remain fundamentally incorrect regarding the model's internal priorities. Furthermore, the high variance in accuracy across different instances within the same dataset suggests that XAI tools can be highly unreliable on a case-by-case basis.
The study is currently limited to three classes of interpretable models and focuses exclusively on tabular data. Future research is needed to extend the MIAS framework to other interpretable structures, such as decision trees, and to different data modalities like image and text.
Conclusion
The failure of popular XAI tools to pass a basic "sanity check" on linear additive models raises significant concerns about their reliability in complex systems. The authors suggest that XAI tools require internal uncertainty mechanisms to signal when an explanation may be unreliable. Until such improvements are integrated, practitioners should exercise caution when interpreting local explanations, particularly in classification tasks involving categorical data.
Summary updated