Foolbox: A Python toolbox to benchmark the robustness of machine learning models

Jonas Rauber, Wieland Brendel, Matthias Bethge
7/13/2017
287 citations
cs.LGcs.CRcs.CV
benchmark-dataset

Official code: bethgelab/foolbox (2,983 stars, Python, MIT, PyTorch, last commit 2025-12-03).

Abstract

Even todays most advanced machine learning models are easily fooled by almost imperceptible perturbations of their inputs. Foolbox is a new Python package to generate such adversarial perturbations and to quantify and compare the robustness of machine learning models.

Show full abstract

It is build around the idea that the most comparable robustness measure is the minimum perturbation needed to craft an adversarial example. To this end, Foolbox provides reference implementations of most published adversarial attack methods alongside some new ones, all of which perform internal hyperparameter tuning to find the minimum adversarial perturbation. Additionally, Foolbox interfaces with most popular deep learning frameworks such as PyTorch, Keras, TensorFlow, Theano and MXNet and allows different adversarial criteria such as targeted misclassification and top-k misclassification as well as different distance measures. The code is licensed under the MIT license and is openly available at https://github.com/bethgelab/foolbox . The most up-to-date documentation can be found at http://foolbox.readthedocs.io .

View on arXivView PDF

Code Implementations(1)

bethgelab/foolboxOfficial100%
PyTorchMIT

A Python toolbox to create adversarial examples that fool neural networks in PyTorch, TensorFlow, and JAX

2,983440Python, Jupyter NotebookJun 14, 201712 months agoMIT
adversarial-attacksadversarial-examplesjaxkerasmachine-learning+3 more

Similar Papers

Cite this paper

@article{rauber2017foolbox,
  title  = {Foolbox: A Python toolbox to benchmark the robustness of machine learning models},
  author = {Jonas Rauber and Wieland Brendel and Matthias Bethge},
  year   = {2017},
  eprint = {1707.04131},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1707.04131}
}

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/1707.04131.svg)](https://codeofpaper.com/paper/1707.04131)

Discussion