arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1909.06872cs.LGstat.ML
收藏

利用影响函数和最近邻检测敌对样本

Detecting Adversarial Samples Using Influence Functions and Nearest Neighbors

Tel Aviv University(特拉维夫大学);Duke University(杜克大学)

Gilad Cohen, Guillermo Sapiro, Raja Giryes

摘要:

深度神经网络(DNN)因其对对抗攻击的脆弱性而臭名昭着,对抗攻击是添加到其输入图像中以误导其预测的小扰动。因此,对抗性样本的检测是鲁棒分类框架的基本要求。在这项工作中,我们提出了一种方法来检测这种对抗攻击,这是适合于任何预先训练的神经网络分类。我们使用影响函数来衡量每个训练样本对验证集数据的影响。从影响分数中,我们找到了任何给定验证示例的最支持训练样本。采用在DNN的激活层上拟合的k-最近邻(k-NN)模型来搜索这些支持训练样本的排名。我们观察到这些样本与正常输入的最近邻居高度相关,而这种相关性对于对抗性输入要弱得多。我们使用k-NN秩和距离训练了一个对抗检测器,并证明它成功地区分了对抗示例,在三个数据集的六种攻击方法上获得了最先进的结果。代码可在https://github.com/giladcohen/NNIF_adv_defense上获得。

英文摘要:

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, therefore, a fundamental requirement for robust classification frameworks. In this work, we present a method for detecting such adversarial attacks, which is suitable for any pre-trained neural network classifier. We use influence functions to measure the impact of every training sample on the validation set data. From the influence scores, we find the most supportive training samples for any given validation example. A k-nearest neighbor (k-NN) model fitted on the DNN's activation layers is employed to search for the ranking of these supporting training samples. We observe that these samples are highly correlated with the nearest neighbors of the normal inputs, while this correlation is much weaker for adversarial inputs. We train an adversarial detector using the k-NN ranks and distances and show that it successfully distinguishes adversarial examples, getting state-of-the-art results on six attack methods with three datasets. Code is available at https://github.com/giladcohen/NNIF_adv_defense.

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

↑