Skip to main content
QUICK REVIEW

[Paper Review] OptiLIME: Optimized LIME Explanations for Diagnostic Computer Algorithms

Giorgio Visani, E. Bagli|arXiv (Cornell University)|Jun 10, 2020
Explainable Artificial Intelligence (XAI)Computer Science33 references18 citations
TL;DR

OptiLIME is a novel framework that enhances LIME's stability in explaining diagnostic machine learning models by optimizing the kernel width to balance adherence to the original model and explanation reliability. It uses Bayesian optimization to automatically select the best kernel width, ensuring stable, interpretable, and mathematically transparent explanations—particularly valuable in high-stakes medical applications.

ABSTRACT

Local Interpretable Model-Agnostic Explanations (LIME) is a popular method to perform interpretability of any kind of Machine Learning (ML) model. It explains one ML prediction at a time, by learning a simple linear model around the prediction. The model is trained on randomly generated data points, sampled from the training dataset distribution and weighted according to the distance from the reference point - the one being explained by LIME. Feature selection is applied to keep only the most important variables. LIME is widespread across different domains, although its instability - a single prediction may obtain different explanations - is one of the major shortcomings. This is due to the randomness in the sampling step, as well as to the flexibility in tuning the weights and determines a lack of reliability in the retrieved explanations, making LIME adoption problematic. In Medicine especially, clinical professionals trust is mandatory to determine the acceptance of an explainable algorithm, considering the importance of the decisions at stake and the related legal issues. In this paper, we highlight a trade-off between explanation's stability and adherence, namely how much it resembles the ML model. Exploiting our innovative discovery, we propose a framework to maximise stability, while retaining a predefined level of adherence. OptiLIME provides freedom to choose the best adherence-stability trade-off level and more importantly, it clearly highlights the mathematical properties of the retrieved explanation. As a result, the practitioner is provided with tools to decide whether the explanation is reliable, according to the problem at hand. We extensively test OptiLIME on a toy dataset - to present visually the geometrical findings - and a medical dataset. In the latter, we show how the method comes up with meaningful explanations both from a medical and mathematical standpoint.

Motivation & Objective

  • Address the instability of LIME in generating inconsistent explanations for the same prediction due to random sampling.
  • Improve trustworthiness of LIME explanations in healthcare by enhancing stability without sacrificing model adherence.
  • Provide practitioners with a principled way to choose the optimal trade-off between explanation stability and fidelity to the original ML model.
  • Enable transparent, mathematically grounded explanations that support clinical decision-making and accountability.
  • Develop a framework that automates kernel width selection based on user-defined adherence thresholds, improving usability and reliability.

Proposed method

  • Decompose LIME into core components: sampling, weighting, feature selection, and local linear model fitting.
  • Use Bayesian optimization to search for the optimal kernel width that maximizes stability while maintaining a predefined level of adherence (R² ≥ 0.9).
  • Replace Ridge penalty with standard Linear Regression, demonstrating it performs better and avoids unnecessary regularization.
  • Define stability using variance-based indices (VSI and CSI) to quantify explanation consistency across multiple runs.
  • Integrate a user-defined adherence threshold (e.g., R² ≥ 0.9) to constrain the optimization to explanations that closely resemble the original model’s local behavior.
  • Apply the framework on both a toy dataset for visualization and a real medical dataset (NHANES) to validate performance and clinical relevance.

Experimental results

Research questions

  • RQ1How does the choice of kernel width in LIME affect the stability and adherence of local explanations?
  • RQ2Can an automated framework optimize kernel width to achieve a desired trade-off between explanation stability and fidelity to the original model?
  • RQ3What is the impact of Ridge regularization on LIME’s performance, and is it necessary for stable and accurate explanations?
  • RQ4To what extent can OptiLIME produce stable, reliable, and clinically meaningful explanations in real-world medical datasets?
  • RQ5How do different individuals (e.g., older vs. younger patients) exhibit varying explanation sensitivity based on local model behavior?

Key findings

  • OptiLIME successfully achieves high stability (low VSI and CSI values) while maintaining adherence levels above R² = 0.9, as required by the user.
  • The optimal kernel width for a given instance depends on the local non-linearity of the original ML model, with more complex regions requiring narrower kernels.
  • For Unit 100 (age 65), the optimal kernel width was higher than for Unit 7207 (age 49), reflecting lower local non-linearity in the former.
  • Smaller kernel widths yield more adherent explanations but reduce stability, confirming the trade-off between fidelity and consistency.
  • The use of Ridge penalty in LIME is unnecessary and detrimental; simple Linear Regression outperforms it in both adherence and stability.
  • OptiLIME reduced explanation inconsistency across runs, with computation times of 123–147 seconds per instance on a 4-core laptop using p=10, m=30 Bayesian search parameters.

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.