LIME explanation and its stability
Fit a local linear surrogate around the decision and measure how the explanation varies across sampling runs.
العربيةThe idea
Samples around the case are weighted by an exponential kernel, repeated with five seeds.
Data description
Synthetic data generated in your browser from stated distributions; no real personal data.
Suggested next experiment
Concepts in this experiment
What is the difference between SHAP and LIME?
Both explain one decision locally. SHAP rests on Shapley values and its contributions add up to the difference from the average; exact computation is costly with many features. LIME fits a weighted linear model around the case; faster and flexible but less stable, depending on sampling and kernel width.
LIME objective formula
Fits a simple model g approximating f near x with proximity weights.
\xi(x)=\arg\min_{g\in G}\;\mathcal{L}(f,g,\pi_x)+\Omega(g),\quad \pi_x(z)=\exp\!\left(-\frac{D(x,z)^2}{\sigma^2}\right)LIME (LIME)
Explains one decision with a simple local linear model: perturb samples near the case, query the original model, weight by proximity (exponential kernel) and fit a weighted regression (Ribeiro et al., 2016). Results depend on sampling and kernel width, so the lab measures stability over seeds.
Scientific sources for this experiment
- "Why Should I Trust You?" Explaining the Predictions of Any Classifier (arXiv:1602.04938)M. T. Ribeiro, S. Singh, C. Guestrin (2016) — Paper
- LIME — Local Interpretable Model-agnostic Explanations (code)M. T. Ribeiro (2016) — Tool
