Skip to main content
QUICK REVIEW

[Paper Review] MeLIME: Meaningful Local Explanation for Machine Learning Models

Tiago Botari, Frederik Hvilshøj|arXiv (Cornell University)|Sep 12, 2020
Explainable Artificial Intelligence (XAI)Computer Science44 references7 citations
TL;DR

MeLIME introduces a model-agnostic, local explanation framework that enhances LIME by incorporating data distribution-aware perturbation sampling and robust local model training, producing more meaningful and reliable explanations for black-box ML models across tabular, image, and text data. It improves interpretability by generating counterfactual examples and outperforms LIME, GuidedBackprop, SmoothGrad, and LRP on MNIST and sentiment analysis tasks.

ABSTRACT

Most state-of-the-art machine learning algorithms induce black-box models, preventing their application in many sensitive domains. Hence, many methodologies for explaining machine learning models have been proposed to address this problem. In this work, we introduce strategies to improve local explanations taking into account the distribution of the data used to train the black-box models. We show that our approach, MeLIME, produces more meaningful explanations compared to other techniques over different ML models, operating on various types of data. MeLIME generalizes the LIME method, allowing more flexible perturbation sampling and the use of different local interpretable models. Additionally, we introduce modifications to standard training algorithms of local interpretable models fostering more robust explanations, even allowing the production of counterfactual examples. To show the strengths of the proposed approach, we include experiments on tabular data, images, and text; all showing improved explanations. In particular, MeLIME generated more meaningful explanations on the MNIST dataset than methods such as GuidedBackprop, SmoothGrad, and Layer-wise Relevance Propagation. MeLIME is available on https://github.com/tiagobotari/melime.

Motivation & Objective

  • To address the limitations of LIME in generating reliable local explanations for black-box models.
  • To improve explanation quality by incorporating the underlying data distribution during perturbation sampling.
  • To develop robust training strategies for local interpretable models that ensure convergence and stability in feature importance estimation.
  • To enable the generation of counterfactual examples as complementary explanations for model predictions.
  • To evaluate MeLIME across diverse data types—tabular, image, and text—demonstrating consistent improvement over existing methods.

Proposed method

  • MeLIME generalizes LIME by using data distribution-aware perturbation sampling, avoiding out-of-distribution samples through domain estimation.
  • It employs a generator (e.g., Word2VecGen for text) to sample perturbations that remain within the feature space domain of the training data.
  • The local interpretable model is trained with convergence criteria on both feature importance and model error to ensure robustness.
  • MeLIME integrates local statistical measures as the local model strategy to estimate feature contributions with improved stability.
  • Counterfactual examples are generated by perturbing input features to show how minimal changes affect predictions, enhancing interpretability.
  • The framework supports classification and regression tasks across tabular, image, and text data using a unified, modular architecture.

Experimental results

Research questions

  • RQ1How can local explanations for black-box ML models be made more meaningful by respecting the underlying data distribution?
  • RQ2What improvements can be achieved in explanation quality by modifying perturbation sampling and local model training in LIME?
  • RQ3Can MeLIME generate reliable counterfactual examples that enhance model interpretability?
  • RQ4How does MeLIME compare to LIME and other saliency-based methods in terms of explanation quality on diverse data types?
  • RQ5To what extent can MeLIME expose weaknesses in black-box models through artificial perturbations and counterfactual analysis?

Key findings

  • MeLIME produced more meaningful explanations than LIME, GuidedBackprop, SmoothGrad, and LRP on the MNIST dataset, particularly in highlighting relevant image regions.
  • On text data, MeLIME correctly identified 'refreshing' as a high-importance word with a negative signal, indicating that replacing it could shift sentiment prediction.
  • Artificial sentences generated during local model training confirmed that MeLIME’s explanation aligns with model behavior, increasing trust in the explanation.
  • The method successfully generated counterfactual examples that demonstrate how small input changes affect predictions, offering deeper model insight.
  • MeLIME outperformed LIME in explanation reliability and interpretability across tabular, image, and text data, with quantitative improvements in feature relevance accuracy.
  • The use of convergence criteria in local model training led to more stable and consistent feature importance estimates compared to standard LIME training.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.