Skip to main content
QUICK REVIEW

[Paper Review] BayLIME: Bayesian Local Interpretable Model-Agnostic Explanations

Xingyu Zhao, Wei Huang|Warwick Research Archive Portal (University of Warwick)|Dec 5, 2020
Explainable Artificial Intelligence (XAI)Computer Science39 references27 citations
TL;DR

BayLIME proposes a Bayesian extension to the LIME framework that improves explanation consistency, robustness to kernel settings, and fidelity by integrating prior knowledge through principled Bayesian reasoning. By combining prior knowledge with data-driven estimates via a Bayesian linear model, BayLIME reduces variance in repeated explanations and enhances reliability across diverse XAI use cases.

ABSTRACT

Given the pressing need for assuring algorithmic transparency, Explainable AI (XAI) has emerged as one of the key areas of AI research. In this paper, we develop a novel Bayesian extension to the LIME framework, one of the most widely used approaches in XAI -- which we call BayLIME. Compared to LIME, BayLIME exploits prior knowledge and Bayesian reasoning to improve both the consistency in repeated explanations of a single prediction and the robustness to kernel settings. BayLIME also exhibits better explanation fidelity than the state-of-the-art (LIME, SHAP and GradCAM) by its ability to integrate prior knowledge from, e.g., a variety of other XAI techniques, as well as verification and validation (V&V) methods. We demonstrate the desirable properties of BayLIME through both theoretical analysis and extensive experiments.

Motivation & Objective

  • Address the inconsistency in repeated LIME explanations caused by stochastic sampling of perturbed instances.
  • Improve robustness of local explanations to kernel parameter settings, a known limitation in LIME.
  • Enhance explanation fidelity by incorporating diverse sources of prior knowledge, such as results from other XAI methods or verification and validation (V&V) techniques.
  • Develop a principled Bayesian framework that balances prior knowledge and empirical data in local surrogate modeling.
  • Provide generic, quantitative metrics for evaluating consistency and robustness across feature-ranking-based XAI methods.

Proposed method

  • Formulate a Bayesian linear model as the local surrogate, where posterior estimates are a weighted combination of prior knowledge and data-driven evidence.
  • Use conjugate priors to enable analytical posterior computation, ensuring computational efficiency and interpretability.
  • Incorporate prior parameters derived from three sources: explanations of similar instances, outputs from other XAI tools (e.g., SHAP, GradCAM), and V&V methods.
  • Apply Bayesian model selection to automatically tune hyperparameters, including the influence of prior vs. data evidence.
  • Define locality via a kernel-weighted likelihood, with kernel parameters treated as hyperparameters that can be tuned or elicited from domain knowledge.
  • Use posterior credible intervals to assess uncertainty and guide explanation reliability, enabling robustness to kernel choice.

Experimental results

Research questions

  • RQ1Can a Bayesian formulation of LIME reduce inconsistency in repeated explanations of the same prediction?
  • RQ2To what extent does BayLIME improve robustness to kernel parameter settings compared to standard LIME?
  • RQ3How does integrating prior knowledge from diverse sources affect explanation fidelity compared to state-of-the-art XAI methods?
  • RQ4Can generic metrics for consistency and robustness be effectively applied to feature-ranking-based XAI techniques?
  • RQ5What is the impact of prior quality on explanation reliability, and how can Bayesian reasoning mitigate risks from poor priors?

Key findings

  • BayLIME significantly improves explanation consistency across repeated runs, reducing variance in feature importance rankings compared to standard LIME.
  • BayLIME demonstrates greater robustness to kernel parameter settings, with explanations remaining stable even when kernel bandwidths are varied.
  • By integrating prior knowledge from V&V tools and other XAI methods, BayLIME achieves higher explanation fidelity than LIME, SHAP, and GradCAM in empirical evaluations.
  • The method maintains computational efficiency, with linear time complexity in the number of perturbed samples, and scales well even with moderate sample sizes.
  • Quantitative metrics for consistency and robustness are successfully applied and show BayLIME outperforms LIME and other baselines across multiple benchmark datasets.
  • Bayesian uncertainty quantification enables reliable confidence estimates for explanations, supporting trust in high-stakes applications like healthcare and autonomous systems.

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.