Fooling LIME and SHAP: Adversarial Attacks on Post hoc Explanation Methods

Dylan Slack, Sophie Hilgard, Emily Jia, Sameer Singh, Himabindu Lakkaraju
11/6/2019
1,332 citations
cs.LGcs.AIstat.ML

Official code: dylan-slack/Fooling-LIME-SHAP (81 stars, Jupyter Notebook, MIT, last commit 2022-12-08).

Abstract

As machine learning black boxes are increasingly being deployed in domains such as healthcare and criminal justice, there is growing emphasis on building tools and techniques for explaining these black boxes in an interpretable manner. Such explanations are being leveraged by domain experts to diagnose systematic errors and underlying biases of black boxes.

Show full abstract

In this paper, we demonstrate that post hoc explanations techniques that rely on input perturbations, such as LIME and SHAP, are not reliable. Specifically, we propose a novel scaffolding technique that effectively hides the biases of any given classifier by allowing an adversarial entity to craft an arbitrary desired explanation. Our approach can be used to scaffold any biased classifier in such a way that its predictions on the input data distribution still remain biased, but the post hoc explanations of the scaffolded classifier look innocuous. Using extensive evaluation with multiple real-world datasets (including COMPAS), we demonstrate how extremely biased (racist) classifiers crafted by our framework can easily fool popular explanation techniques such as LIME and SHAP into generating innocuous explanations which do not reflect the underlying biases.

View on arXivView PDF

Code Implementations(1)

MIT

Adversarial Attacks on Post Hoc Explanation Techniques (LIME/SHAP)

8118Jupyter Notebook, PythonNov 9, 20193 years agoMIT
adversarial-attacksexplanationsfool-limeinterpretabilitylime+4 more

Similar Papers

Cite this paper

@article{slack2019fooling,
  title  = {Fooling LIME and SHAP: Adversarial Attacks on Post hoc Explanation Methods},
  author = {Dylan Slack and Sophie Hilgard and Emily Jia and Sameer Singh and Himabindu Lakkaraju},
  year   = {2019},
  eprint = {1911.02508},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1911.02508}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1911.02508.svg)](https://codeofpaper.com/paper/1911.02508)

Discussion