paper-with-me

홈 › Papers

On adversarial training and the 1 Nearest Neighbor classifier

2024-04-09 · Amir Hagai, Yair Weiss

The ability to fool deep learning classifiers with tiny perturbations of the input has lead to the development of adversarial training in which the loss with respect to adversarial examples is minimized in addition to the training examples. While adversarial training improves the robustness of the learned classifiers, the procedure is computationally expensive, sensitive to hyperparameters and may still leave the classifier vulnerable to other types of small perturbations. In this paper we compare the performance of adversarial training to that of the simple 1 Nearest Neighbor (1NN) classifier. We prove that under reasonable assumptions, the 1NN classifier will be robust to {\em any} small image perturbation of the training images. In experiments with 135 different binary image classification problems taken from CIFAR10, MNIST and Fashion-MNIST we find that 1NN outperforms TRADES (a powerful adversarial training algorithm) in terms of average adversarial accuracy. In additional experiments with 69 robust models taken from the current adversarial robustness leaderboard, we find that 1NN outperforms almost all of them in terms of robustness to perturbations that are only slightly different from those used during training. Taken together, our results suggest that modern adversarial training methods still fall short of the robustness of the simple 1NN classifier. our code can be found at \url{https://github.com/amirhagai/On-Adversarial-Training-And-The-1-Nearest-Neighbor-Classifier} \keywords{Adversarial training}

📄 PDF Abstract BibTeX arXiv:2404.06313

Code (1)

amirhagai/on-adversarial-training-and-the-1-nearest-neighbor-classifier 공식 구현 pytorch

Tasks

Adversarial Robustnessimage-classificationImage Classification

Similar Papers 제목 키워드 기반

Analyzing the Robustness of Nearest Neighbors to Adversarial Examples

2017-06-13 · ICML 2018 7 · Yizhen Wang, Somesh Jha, Kamalika Chaudhuri

Motivated by safety-critical applications, test-time attacks on classifiers via adversarial examples has recently received a great deal of attention. However, there is a general lack of understanding on why adversarial e…

Deep Adversarially-Enhanced k-Nearest Neighbors

2021-08-15 · Ren Wang, Tianqi Chen, Alfred Hero

Recent works have theoretically and empirically shown that deep neural networks (DNNs) have an inherent vulnerability to small perturbations. Applying the Deep k-Nearest Neighbors (DkNN) classifier, we observe a dramatic…

On the Robustness of Deep K-Nearest Neighbors

2019-03-20 · Chawin Sitawarin, David Wagner

Despite a large amount of attention on adversarial examples, very few works have demonstrated an effective defense against this threat. We examine Deep k-Nearest Neighbor (DkNN), a proposed defense that combines k-Neares…

Deep k-Nearest Neighbors: Towards Confident, Interpretable and Robust Deep Learning

2018-03-13 · Nicolas Papernot, Patrick McDaniel

Deep neural networks (DNNs) enable innovative applications of machine learning like image recognition, machine translation, or malware detection. However, deep learning is often criticized for its lack of robustness in a…

Machine TranslationMalware Detection

Detecting Adversarial Samples Using Influence Functions and Nearest Neighbors

2019-09-15 · CVPR 2020 6 · Gilad Cohen, Guillermo Sapiro, Raja Giryes

Deep neural networks (DNNs) are notorious for their vulnerability to adversarial attacks, which are small perturbations added to their input images to mislead their prediction. Detection of adversarial examples is, there…

Robust classification