Catalogue of Tools & Metrics for Trustworthy AI

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.

Black-box Adversarial Attacks with Bandits and Priors



Black-box Adversarial Attacks with Bandits and Priors

This is the code for reproducing the paper ‘Prior Convictions: Black-box Adversarial Attacks with Bandits and Priors’ (arxiv) to appear at ICLR 2019. The paper can be cited as follows:

@article{IEM2018PriorCB,
  title={Prior Convictions: Black-Box Adversarial Attacks with Bandits and Priors},
  author={Andrew Ilyas and Logan Engstrom and Aleksander Madry},
  journal={ICLR 2019},
  year={2018},
  url={https://arxiv.org/abs/1807.07978}
}

Results

Avg Queries Failure Rate Avg Queries on NES success
Method l-inf l-2 l-inf l-2 l-inf l-2
NES 1735 2938 22.2\% 34.4\% 1735 2938
Bandits[T] (ours) 1781 2690 11.6\% 30.4\% 1214 2421
Bandits[TD] (ours) 1117 1858 4.6\% 15.5\% 703 999

Reproducing the results

Requirements

  • Pytorch (torch, torchvision) packages
  • argparse package

The results can be reproduced (with the default hyperparameters) with the following command:

python main.py [--nes] [--tiling] --json-config [configs/l2.json | configs/linf.json | configs/linf-nes.json | configs/l2-nes.json]

You can run python main.py --help to see all of the available options/hyperparameters. Although the hyperparameters were tuned for Inception-v3, the attack can be run with the flag --classifier {inception_v3,resnet50,vgg16_bn} to attack other classifiers.

About the tool


Developing organisation(s):


Tool type(s):




Country/Territory of origin:


Type of approach:





Programming languages:



Github stars:

  • 65

Github forks:

  • 15

Modify this tool

Use Cases

There is no use cases for this tool yet.

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
Partnership on AI

Disclaimer: The tools and metrics featured herein are solely those of the originating authors and are not vetted or endorsed by the OECD or its member countries. The Organisation cannot be held responsible for possible issues resulting from the posting of links to third parties' tools and metrics on this catalogue. More on the methodology can be found at https://oecd.ai/catalogue/faq.