Papers › "Why Should I Trust You?": Explaining the Predictions of Any Classifier

"Why Should I Trust You?": Explaining the Predictions of Any Classifier

16 Feb 2016arXiv:1602.04938archive 2025-07-28

Marco Tulio Ribeiro, Sameer Singh, Carlos Guestrin

Despite widespread adoption, machine learning models remain mostly black boxes. Understanding the reasons behind predictions is, however, quite important in assessing trust, which is fundamental if one plans to take action based on a prediction, or when choosing whether to deploy a new model. Such understanding also provides insights into the model, which can be used to transform an untrustworthy model or prediction into a trustworthy one. In this work, we propose LIME, a novel explanation technique that explains the predictions of any classifier in an interpretable and faithful manner, by learning an interpretable model locally around the prediction. We also propose a method to explain models by presenting representative individual predictions and their explanations in a non-redundant way, framing the task as a submodular optimization problem. We demonstrate the flexibility of these methods by explaining different models for text (e.g. random forests) and image classification (e.g. neural networks). We show the utility of explanations via novel experiments, both simulated and with human subjects, on various scenarios that require trust: deciding if one should trust a prediction, choosing between models, improving an untrustworthy classifier, and identifying why a classifier should not be trusted.

PaperPDFCodeCode Syntology ran

In Syntology View this paper on Syntology: its repositories, every harvested function with whether it ran, its licence and the call to fetch it.

Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="1602.04938")

Code

Syntology Ran 5 of 19 code samples harvested from 6 repositories linked to this paper; 14 have no recorded run. Of those that ran: 1 ran · honoured contract; 4 ran with no contract checked.

By repository: official repository: 2 samples from 1 repository, 0 ran; community (archive-listed): 17 samples from 5 repositories, 5 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

27 repositories listed; official and paper-mentioned ones first.

marcotcr/lime-experiments officialmentioned in papermentioned on GitHubBSD-2-Clause report
Kungbohan/EECSMed mentioned on GitHubtf report
LaurentLava/Lime mentioned on GitHub report
MachineLearningJournalClub/LearningNLP mentioned on GitHubpytorchNOASSERTION report
Mahdidrm/Emotion-Recognition mentioned on GitHubtf report
Nadhila/Explainble-AI mentioned on GitHub report
TooTouch/WhiteBox-Part2 mentioned on GitHubtf report
adrhill/explainableai.jl mentioned on GitHubpytorch report
aildnont/HIFIS-model mentioned on GitHubtfMIT report
blazecolby/PyTorch-LIME mentioned on GitHubpytorch report
dailab/maxi-xai-lib mentioned on GitHubpytorch report
galdeia/iirsbenchmark mentioned on GitHub report
hieu2906090/deep-learning-in-js mentioned on GitHubtfnot reachable when probed 2026-09-18 — repositories for recent papers often appear after camera-ready report
marcotcr/lime mentioned on GitHubpytorch report
nyuvis/explanation_explorer mentioned on GitHubBSD-3-Clause report
priyamtejaswin/devise-keras mentioned on GitHub report
quantabox/literature mentioned on GitHub report
rashidrao-pk/lime_stratified mentioned on GitHubpytorch report
stiasta/fraud_detection_notes mentioned on GitHubpytorch report
thomasp85/lime mentioned on GitHubNOASSERTION report
pytorch/captum pytorchBSD-3-Clause report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

19 samples harvested; 5 ran; 1 honoured the contract we drafted; 14 have no recorded run. Read from Syntology's graph 2026-09-25; that is when this build read the record, not when the samples ran.

1ran · honoured contract
4ran
14unverified

Licence: 0 of the 19 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from 6 repositories linked to this paper, official or community; each sample names its own and says which. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

LoadDataset marcotcr/lime-experiments/load_datasets.py official repository unverified BSD-2-Clause (permissive) · 08eafab62d4e85de · report
LoadMultiDomainDataset marcotcr/lime-experiments/load_datasets.py official repository unverified BSD-2-Clause (permissive) · cf7a25ab27f89e9a · report
LimeBase rashidrao-pk/lime_stratified/lime/lime_base.py community (archive-listed) ran BSD-2-Clause (permissive) · 42b2a390d8ff275b · report
LimeBase marcotcr/lime/lime/lime_base.py community (archive-listed) ran BSD-2-Clause (permissive) · 1c5395421c214d40 · report
URVGradientEstimator dailab/maxi-xai-lib/src/maxi/lib/loss/lime_loss.py community (archive-listed) ran MIT (permissive) · 3db066a795db215a · report
USRVGradientEstimator dailab/maxi-xai-lib/src/maxi/lib/loss/lime_loss.py community (archive-listed) ran MIT (permissive) · c7d5a85f36753c55 · report
to_numpy dailab/maxi-xai-lib/src/maxi/lib/loss/lime_loss.py community (archive-listed) ran · honoured contract fingerprinted MIT (permissive) · eca7268d93d00565 · report
BaseExplanationModel dailab/maxi-xai-lib/src/maxi/lib/loss/lime_loss.py community (archive-listed) unverified MIT (permissive) · 979f6f402b2b9b46 · report
BaseGradient dailab/maxi-xai-lib/src/maxi/lib/loss/lime_loss.py community (archive-listed) unverified MIT (permissive) · 1a1d95102a5a11e4 · report
LimeLoss dailab/maxi-xai-lib/src/maxi/lib/loss/lime_loss.py community (archive-listed) unverified MIT (permissive) · b4ef3290d7e28bce · report
f1_loss aildnont/HIFIS-model/src/custom/losses.py community (archive-listed) unverified MIT (permissive) · eddf4f6a3b167f89 · report
get_server nyuvis/explanation_explorer/server.py community (archive-listed) unverified BSD-3-Clause (permissive) · 65a415ee59253e1f · report
hifis_mlp aildnont/HIFIS-model/src/models/models.py community (archive-listed) unverified MIT (permissive) · fda9eb61df66c32b · report
load nyuvis/explanation_explorer/defs.py community (archive-listed) unverified BSD-3-Clause (permissive) · da2220784f8447f3 · report
plot_confusion_matrix aildnont/HIFIS-model/src/visualization/visualize.py community (archive-listed) unverified MIT (permissive) · d83a0853d1cf871a · report
plot_roc aildnont/HIFIS-model/src/visualization/visualize.py community (archive-listed) unverified MIT (permissive) · d180a13668906ebd · report
predict_and_explain aildnont/HIFIS-model/src/interpretability/lime_explain.py community (archive-listed) unverified MIT (permissive) · 289cf6ebf79d47d9 · report
predict_instance aildnont/HIFIS-model/src/interpretability/lime_explain.py community (archive-listed) unverified MIT (permissive) · 58d534b81925a997 · report
visualize_multiple_explanations aildnont/HIFIS-model/src/visualization/visualize.py community (archive-listed) unverified MIT (permissive) · 9254beefe009bdda · report

Tasks

Image AttributionImage ClassificationInterpretability Techniques for Deep LearningInterpretable Machine LearningPredictionimage-classification

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Image Attribution CUB-200-2011 LIME Deletion AUC score (ResNet-101) 0.1070 #5 of 8 Archive leaderboard report
Image Attribution CUB-200-2011 LIME Insertion AUC score (ResNet-101) 0.6812 #5 of 8 Archive leaderboard report
Image Attribution CelebA LIME Deletion AUC score (ArcFace ResNet-101) 0.1484 #5 of 8 Archive leaderboard report
Image Attribution CelebA LIME Insertion AUC score (ArcFace ResNet-101) 0.5246 #5 of 8 Archive leaderboard report
Image Attribution VGGFace2 LIME Deletion AUC score (ArcFace ResNet-101) 0.2119 #4 of 8 Archive leaderboard report
Image Attribution VGGFace2 LIME Insertion AUC score (ArcFace ResNet-101) 0.6185 #4 of 8 Archive leaderboard report
Interpretability Techniques for Deep Learning CelebA LIME Insertion AUC score 0.5246 #4 of 7 Archive leaderboard report

Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.

Methods

Introduced by this paper: LIME

LIME

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections