Minimum-Norm Adversarial Examples on KNN and KNN-Based Models

Chawin Sitawarin, David Wagner
3/14/2020
cs.LGcs.CRstat.ML

Official code: chawins/knn-defense (20 stars, Jupyter Notebook, MIT, last commit 2020-03-19).

Abstract

We study the robustness against adversarial examples of kNN classifiers and classifiers that combine kNN with neural networks. The main difficulty lies in the fact that finding an optimal attack on kNN is intractable for typical datasets.

Show full abstract

In this work, we propose a gradient-based attack on kNN and kNN-based defenses, inspired by the previous work by Sitawarin & Wagner [1]. We demonstrate that our attack outperforms their method on all of the models we tested with only a minimal increase in the computation time. The attack also beats the state-of-the-art attack [2] on kNN when k > 1 using less than 1% of its running time. We hope that this attack can be used as a new baseline for evaluating the robustness of kNN and its variants.

View on arXivView PDF

Code Implementations(1)

MIT

Adversarial Examples on KNN (and its neural network friends)

205Jupyter Notebook, PythonMar 20, 20196 years agoMIT
adversarial-examplek-nearest-neighborrepresentation-learning

Similar Papers

Cite this paper

@article{sitawarin2020minimumnorm,
  title  = {Minimum-Norm Adversarial Examples on KNN and KNN-Based Models},
  author = {Chawin Sitawarin and David Wagner},
  year   = {2020},
  eprint = {2003.06559},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2003.06559}
}

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

Discussion