IN THIS BREAKDOWN · 10 SECTIONS
You can read 22% of this breakdown.
The paper in one minute
A model can be accurate on its test set for reasons that will not hold in use. The paper's running example is a text classifier separating posts about Christianity from posts about atheism in the 20 Newsgroups dataset: it scores 94% on held-out posts by relying on email headers and author names, and drops to 57% on a new set of web pages. Looking at accuracy alone, you would pick it over a classifier trained on cleaned data that scores lower on the test split but generalizes better.
LIME (Local Interpretable Model-agnostic Explanations) explains individual predictions so a person can catch this. It treats the model as a black box. Around the input being explained, it creates many perturbed versions in a representation people understand: for text, the same document with random subsets of its words removed; for images, the same image with random "superpixel" regions grayed out. It asks the model for a prediction on each, weights each sample by how close it is to the original, and fits a linear model limited to K features. Those K weights, such as "the word 'Posting' pushed toward atheism", are the explanation, and they are meant to be faithful only near that input.
One explanation is not a view of the whole model, and users have limited time. SP-LIME picks a small set of instances whose explanations together cover the features that matter most across the data, without repeating each other, using a greedy algorithm for a submodular objective.
The evaluation has two parts. With simulated users, LIME recovered over 90% of the features that interpretable models actually used, and helped flag untrustworthy predictions and choose between models whose validation accuracy was the same. With real users, Mechanical Turk workers chose the better religion classifier 89% of the time with six SP-LIME explanations, removed non-generalizing words to improve a classifier, and graduate students who saw explanations for a deliberately flawed husky-versus-wolf image classifier noticed that it relied on snow.
Research notes: the problem, approach and results
recall of the features a sparse logistic regression or decision tree actually used, on books and DVD reviews (Figures 6 and 7)
Mechanical Turk users who chose the classifier that generalized, shown 6 LIME explanations picked by submodular pick (Figure 9)
graduate students who trusted a snow-detecting husky-vs-wolf model, before vs after seeing explanations (Table 2)
People are asked to trust models they cannot inspect, and accuracy on a validation set can be high for the wrong reasons, such as leaked headers or background artifacts. Users need a way to see why a single prediction was made, for any kind of model.
Perturb the input around the instance, for example by removing words or graying out image regions, query the model on each perturbation, weight samples by closeness to the original, and fit a sparse linear model whose few weights explain that one prediction. Pick a small, diverse set of such explanations to summarize the whole model.
On models whose true features were known, LIME recovered over 90% of them. Non-experts used explanations to pick the classifier that generalized (89% with LIME's chosen examples) even though its test accuracy was lower, and to remove spurious words; graduate students spotted a snow-detecting 'wolf' classifier.
Why it matters to an FDE
Explanations catch leakage that accuracy hides. The religion classifier's 94% came from headers and names. Customer data has the same traps: ticket IDs that encode the outcome, a region field that stands in for the label, a template phrase that only appears in one class. Running a handful of local explanations on a new model is a cheap way to find them before launch.
They help customers trust or reject a model for the right reasons. In the paper, users shown explanations stopped trusting a model that keyed on snow. In a deployment review, a few explained examples per segment do more for a skeptical domain expert than another accuracy table.
Model-agnostic matters in practice. LIME needs only a prediction function. It works the same on a gradient-boosted model, a neural network or a hosted model behind an API, which is often all an FDE has.
Explanations are approximations, so test them. Our run shows that one explanation of a nonlinear model can change with the random seed, the number of samples and the kernel width. Fix the seed, use enough samples, check stability, and do not present weights as exact causes.
Pick examples deliberately. The paper's submodular pick beat random examples by 12 to 14 points in helping users choose models. When presenting explanations to a customer, select examples that cover the important features and segments, not the first few rows.
Understand the mechanism. Try it on a real problem.
Unlock this breakdown and 290 more papers.
Premium opens every paper in full, plus every answer, concept, course and guide on the site. One payment for six months of access.
6 months · One payment · No auto-renewal
- ◇1 architecture diagram
- </>1 runnable code experiment
- ▦2 results tables
- ?5 interview questions with answers
- 03Key takeaways
The objective, interpretable features, sampling and weighting, K-LASSO, SP-LIME, results
Free account - 04How it works
The weighted objective, sampling and kernels, K-LASSO, SP-LIME coverage, experiment designs
Premium - 05The numbers that matter
Faithfulness recall, the model-choice and trust results, the religion and husky studies, and timing
Premium - 06Try it yourself
Recompute the studies, build LIME from its equations, test faithfulness, then test stability
Premium - 07Where it breaks
Representation limits, local nonlinearity, sensitivity to settings, studies built to succeed
Premium - 08Using it on a deployment
Explain in model review, pick covering examples, check stability, document the limits
Premium - 09Interview angles
Five questions this paper prepares you for, with answer hints
Premium - 10Read next
Where to go from here on this site
Premium
