arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2404.06313cs.LG
收藏

关于对抗训练与1最近邻分类器

On adversarial training and the 1 Nearest Neighbor classifier

Hebrew University of Jerusalem(耶路撒冷希伯来大学)

Amir Hagai, Yair Weiss

AI总结:

本文对比了对抗训练与简单的1最近邻分类器,证明1NN对训练图像的任意微小扰动具有鲁棒性,且在多组实验中其对抗鲁棒性优于TRADES等现代对抗训练方法。

摘要:

用输入的微小扰动欺骗深度学习分类器的能力,促使了对抗训练的发展,即在训练样本之外,还对对抗样本的损失进行最小化。虽然对抗训练提升了所学分类器的鲁棒性,但该过程计算成本高昂、对超参数敏感,且可能仍使分类器易受其他类型微小扰动的影响。本文将对抗训练的性能与简单的1最近邻(1NN)分类器进行了比较。我们证明,在合理的假设下,1NN分类器对训练图像的任意微小图像扰动都具有鲁棒性。在取自CIFAR10、MNIST和Fashion-MNIST的135个不同二分类图像问题的实验中,我们发现1NN在平均对抗准确率方面优于TRADES(一种强大的对抗训练算法)。在针对当前对抗鲁棒性排行榜上69个鲁棒模型的额外实验中,我们发现1NN在面对与训练期间所用扰动仅略有不同的扰动时,其鲁棒性几乎优于所有这些模型。综合来看,我们的结果表明,现代对抗训练方法在鲁棒性上仍不及简单的1NN分类器。我们的代码可在https://github.com/amirhagai/On-Adversarial-Training-And-The-1-Nearest-Neighbor-Classifier 找到。关键词:对抗训练

英文摘要:

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}

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑