"Why Should I Trust You?": Explaining the Predictions of Any Classifier
TL;DR. LIME (Local Interpretable Model-agnostic Explanations) treats the model as a black box. To explain one prediction, it perturbs the input, records the model’s outputs, and fits a simple model such as a sparse linear model that is faithful only near that input. SP-LIME then picks a small, non-redundant set of explanations that together give an overview of the whole model.
Key idea
Section titled “Key idea”An explanation is a simple model from a family , acting on binary “present or absent” features:
is the proximity-weighted squared error between and on sampled perturbations. caps complexity, for example K non-zero weights (§3.2–3.4).
Key results
Section titled “Key results”An RBF SVM separating “Christianity” from “Atheism” on 20 Newsgroups reached 94% held-out accuracy, but LIME showed it relied on header words such as “Posting”, which appears in 22% of training documents and 99% of the time in the Atheism class (§3.5). In the husky-versus-wolf study, a classifier was deliberately trained on 20 images where every wolf had snow in the background. Before seeing explanations, 10 of 27 participants trusted it and 12 of 27 mentioned snow. After seeing LIME explanations, only 3 trusted it and 25 named snow as a likely feature (Table 2, §6.4).
Connections
Section titled “Connections”- SHAP: shows that LIME with the Shapley kernel and no regulariser recovers Shapley values.
- Integrated Gradients: a gradient-based alternative that needs model internals.
- TCAV: explains with user-defined concepts instead of input features.
- Attention is not Explanation.
Questions to think through
These questions have no single right answer. Write or say your answer before you open the hints. Mark a question once you could defend your answer in a reading group.
- Mechanism
Walk through how LIME explains one prediction of a text classifier: the interpretable representation, the sampling, the proximity weight, the fitted model and the role of Ω(g). Then explain why the kernel width σ can change which words appear in the explanation.
What a strong answer covers
- Interpretable representation: a binary vector over the words present in the document (present or removed).
- Sampling: draw perturbed copies by removing random subsets of words, and query the black box f on each copy.
- Proximity weight π_x(z) = exp(−D(x, z)² / σ²), with cosine distance for text, so near copies count more.
- Fit ξ(x) = argmin_g L(f, g, π_x) + Ω(g), with g a linear model and Ω limiting the number of non-zero weights (K features chosen with K-LASSO).
- σ sets what "local" means. A small σ fits only copies with few words removed; a large σ fits a more global trend. Different neighbourhoods can give different top-K words.
- Connect
Kernel SHAP and LIME solve the same weighted regression with different kernels and regularisers. Explain which LIME choices break local accuracy or consistency, and what concrete symptom a user would see on a document whose prediction depends on an interaction between two words.
What a strong answer covers
- LIME uses a heuristic exponential kernel and a sparsity penalty. Kernel SHAP uses the Shapley kernel with no regulariser, which forces the explanation to sum to f(x) − f(∅).
- With LIME's kernel the fitted weights need not add up to the prediction (local accuracy can fail), and they can change in odd directions when the model changes (consistency can fail).
- Interaction symptom: if f fires only when both words are present, LIME's linear fit spreads credit depending on the sampling distribution and σ; the sum of weights may not match the prediction, and reruns with new samples may rank the words differently.
- Design
The paper's husky-versus-wolf study showed that explanations reveal a snow shortcut. Design a similar study for a passage reranker suspected of rewarding passages that repeat the query's words, using LIME. Include the planted shortcut, the explanation setup and the measure of whether explanations helped users.
What a strong answer covers
- Plant the shortcut: train or fine-tune a reranker on data where relevant passages always repeat query terms and non-relevant ones do not, then build test cases that break this correlation.
- Explain predictions with LIME over passage words (remove words as perturbations), showing the top K words per prediction.
- Users first judge trust and guess the rule from predictions alone, then again with explanations, as in the paper's before/after design (Table 2).
- Measures: fraction who identify "query-term repetition" as the rule and fraction who still trust the model, before versus after; check with independent raters.
- Control: also explain an unbiased reranker, so users do not just learn to say "overlap" every time.