Robustness for Non-Parametric Classification: A Generic Attack and Defense

Yao-Yuan Yang, Cyrus Rashtchian, Yizhen Wang, Kamalika Chaudhuri
6/7/2019
cs.LGcs.CRcs.DS

Official code: yangarbiter/adversarial-nonparametrics (18 stars, Python, last commit 2022-11-21).

Abstract

Adversarially robust machine learning has received much recent attention. However, prior attacks and defenses for non-parametric classifiers have been developed in an ad-hoc or classifier-specific basis.

Show full abstract

In this work, we take a holistic look at adversarial examples for non-parametric classifiers, including nearest neighbors, decision trees, and random forests. We provide a general defense method, adversarial pruning, that works by preprocessing the dataset to become well-separated. To test our defense, we provide a novel attack that applies to a wide range of non-parametric classifiers. Theoretically, we derive an optimally robust classifier, which is analogous to the Bayes Optimal. We show that adversarial pruning can be viewed as a finite sample approximation to this optimal classifier. We empirically show that our defense and attack are either better than or competitive with prior work on non-parametric classifiers. Overall, our results provide a strong and broadly-applicable baseline for future work on robust non-parametrics. Code available at https://github.com/yangarbiter/adversarial-nonparametrics/ .

View on arXivView PDF

Code Implementations(1)

Robustness for Non-Parametric Classification: A Generic Attack and Defense

184Python, Jupyter NotebookMar 11, 20194 years ago
adversarial-machine-learningadversarial-pruningdecision-treenearest-neighborrobustness

Similar Papers

Cite this paper

@article{yang2019robustness,
  title  = {Robustness for Non-Parametric Classification: A Generic Attack and Defense},
  author = {Yao-Yuan Yang and Cyrus Rashtchian and Yizhen Wang and Kamalika Chaudhuri},
  year   = {2019},
  eprint = {1906.03310},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1906.03310}
}

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

Discussion