[Paper Review] Robustness for Non-Parametric Classification: A Generic Attack and Defense
This paper introduces a generic defense, adversarial pruning, and a region-based attack for non-parametric classifiers like k-NN, decision trees, and random forests. By preprocessing training data to enhance class separation, adversarial pruning improves robustness across multiple models, while the region-based attack finds optimal adversarial examples by solving convex programs, outperforming prior attacks and establishing a new baseline for robust non-parametric learning.
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. 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/ .
Motivation & Objective
- To address the lack of generic, principled attacks and defenses for non-parametric classifiers such as k-NN, decision trees, and random forests.
- To identify general principles underlying robustness in non-parametric methods, particularly the role of class separation in the input space.
- To develop a defense that is effective across diverse non-parametric models without requiring classifier-specific tuning.
- To establish a new benchmark for evaluating robustness in non-parametric learning by introducing a provably optimal attack and a finite-sample approximation to a robust Bayes-optimal classifier.
Proposed method
- Adversarial pruning preprocesses training data by removing the minimal subset of points to maximize inter-class separation, making the data well-separated in the input space.
- The region-based attack identifies the closest Voronoi cell or polyhedral region of a different class to a given input, using convex optimization to find the minimal perturbation.
- For computationally expensive cases, a heuristic approximation is used to find near-optimal adversarial examples efficiently.
- Theoretical analysis introduces the r-optimal classifier, which maximizes astuteness (accuracy under robustness radius r), and shows adversarial pruning as a finite-sample approximation to this optimal classifier.
- The method is applied universally before training, enabling compatibility with any non-parametric classifier, including k-NN, decision trees, and random forests.
Experimental results
Research questions
- RQ1Can a generic defense be designed for non-parametric classifiers that is effective across k-NN, decision trees, and random forests?
- RQ2What geometric and structural properties of non-parametric classifiers enable the construction of a universal adversarial attack?
- RQ3Is there a theoretically optimal robust classifier for non-parametric methods analogous to the Bayes optimal classifier?
- RQ4Can adversarial pruning be interpreted as a finite-sample approximation to an optimal robust classifier?
Key findings
- Adversarial pruning consistently improves robustness across k-NN, decision trees, and random forests, outperforming adversarial training on several datasets.
- The region-based attack finds the optimal adversarial example for non-parametric models, as it solves a convex program to locate the closest point in a different-class polyhedral region.
- The region-based attack outperforms prior attacks in terms of perturbation size, demonstrating higher adversarial success with smaller perturbations.
- Adversarial pruning is shown to be a finite-sample approximation to the r-optimal classifier, which maximizes astuteness under a robustness radius r.
- The proposed defense and attack serve as a strong, general-purpose baseline for evaluating robustness in non-parametric learning, comparable to adversarial training and PGD in parametric settings.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.