Evaluating Local Explanations using White-box Models

Amir Hossein Akhavan Rahnama, Judith Bütepage, Pierre Geurts, Henrik Boström · DOI

Abstract

Evaluating explanation techniques using human subjects is costly, time-consuming, and can lead to subjectivity. To evaluate the accuracy of local explanations, access to true feature importance scores is required. However, standard prediction functions rarely decompose into linear additive terms. This work proposes focusing on the log odds ratio (LOR) of white-box models (Logistic Regression and Naive Bayes), which naturally decomposes into additive terms. We benchmark prominent local explanation techniques (LIME, SHAP, LPI) against these ground-truth LOR scores. Experiments across 20 datasets show that performance depends on the model, dataset, normalization, and similarity metrics used.

Introduction

As machine learning models grow in complexity, "local explanations" are increasingly used to justify individual decisions. However, evaluating these explanations remains a challenge. Current methods are either human-grounded (subjective and expensive) or functionally-grounded (using proxies like ablation, which can be unreliable due to out-of-distribution issues). The core problem is the lack of a mathematical ground truth for feature importance in complex models.

Methodology

The proposed framework leverages "white-box" models where true importance is mathematically derivable. While raw prediction functions for Logistic Regression and Naive Bayes are not perfectly linear, their Log Odds Ratio (LOR) is.

The evaluation follows a three-step process:

  1. Extract Ground Truth: Calculate the additive Log Odds Ratio (aLOR) for specific instances to serve as the gold standard (represented as $\Lambda$).
  2. Generate Explanations: Use model-agnostic explainers (LIME, SHAP, LPI) to explain the LOR of the white-box model, producing an explanation ($\Phi$).
  3. Compare: Measure the similarity between the true aLOR and the explainer's output using Spearman’s Rank Correlation, Euclidean distance, and Cosine similarity.
Overview of the evaluation framework using white-box models.

Experimental Setup

The framework was tested on 20 tabular datasets, including Adult, Pima Indians, Titanic, and Breast Cancer. This variety allowed for assessing how data distribution and preprocessing (like standardization vs. MinMax scaling) impact explanation accuracy.

Key Results and Insights

The experiments revealed several critical findings regarding the reliability of local explainers:

  • Accuracy vs. Robustness: A method can be robust (consistent) but inaccurate. SHAP, while often robust, was not always the most accurate compared to the ground truth. These properties are orthogonal.
  • Metric Dependency: The "best" explainer varies by metric. LPI often performed best for feature ranking (Spearman), while LIME was often superior for magnitude accuracy (Euclidean) in Logistic Regression.
  • Preprocessing Impact: For Logistic Regression, standardizing features significantly improved explanation accuracy compared to MinMax scaling.
  • Performance Variance: Accuracy can vary wildly between different data points within the same dataset, suggesting a need for reliability indicators.
Comparison of true importance scores with LIME, SHAP, and LPI explanations for a Logistic Regression model.

Notably, Local Permutation Importance (LPI) frequently achieved the highest Spearman correlation, despite not being an additive method. Additionally, explainers generally performed better on Naive Bayes models than on Logistic Regression.

Limitations and Future Work

While the ground truth is currently limited to simple white-box models, this serves as a necessary sanity check: an explainer that fails on a linear model is unlikely to succeed on a deep neural network. Future research aims to derive ground-truth scores for tree-based models and investigate why non-additive methods like LPI perform so well on additive ground truths.

Summary updated

BibTeX
@misc{rahnama2021evaluating,
  author = {Amir Hossein Akhavan Rahnama and Judith Bütepage and Pierre Geurts and Henrik Boström},
  title = {{Evaluating Local Explanations using White-box Models}},
  year = {2021},
  eprint = {2106.02488},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2106.02488},
}
Figure