These tools and metrics are designed to help AI actors develop and use trustworthy AI systems and applications that respect human rights and are fair, transparent, explainable, robust, secure and safe.
Fooling LIME and SHAP: Adversarial Attacks on Post hoc Explanation Methods

This is the code for our paper, ‘Fooling LIME and SHAP: Adversarial Attacks on Post hoc Explanation Methods.’
Read the paper.
Getting started
Setup virtual environment and install requirements:
conda create -n fooling_limeshap python=3.7
source activate fooling_limeshap
pip install -r requirements.txt
You should be able to run the code now!
We provide a short walk-through on COMPAS in COMPAS_Example.ipynb. This is a nice place to get started to see how our method works. Applications of the attack on each data set can be found in compas_experiment.py, cc_experiment.py, and german_experiment.py.
References
Please consider citing our paper if you found this work useful!
@inproceedings{advlime:aies20,
author = {Dylan Slack and Sophie Hilgard and Emily Jia and Sameer Singh and Himabindu Lakkaraju},
title = {Fooling LIME and SHAP: Adversarial Attacks on Post hoc Explanation Methods},
booktitle = {AAAI/ACM Conference on AI, Ethics, and Society (AIES)},
year = {2020}
}
Contact
This code was developed by Dylan Slack, Sophie Hilgard, and Emily Jia. Reach out to us with any questions!
Our emails are dslack@uci.edu, ash798@g.harvard.edu, and ejia@college.harvard.edu.
About the tool
You can click on the links to see the associated tools
Tool type(s):
Objective(s):
Purpose(s):
Type of approach:
Usage rights:
License:
Target users:
Required skills:
Programming languages:
Github stars:
- 81
Github forks:
- 18
Use Cases
Would you like to submit a use case for this tool?
If you have used this tool, we would love to know more about your experience.
Add use case




























