用随机神经指纹提升对抗攻击检测抗破解能力
Neural Fingerprints for Adversarial Attack Detection
- 为每类图像生成大量随机神经指纹,动态选择检测器
- 在ImageNet上对多种攻击方法实现近99%检测率,误报率极低
- 适合高安全要求场景,尤其防御白盒攻击者
近年来,图像分类的深度学习模型已成为标准工具,但其对对抗样本存在显著脆弱性——微小人眼不可见的扰动可导致模型错误分类。现有检测方法虽有效,但在白盒攻击场景下仍易被绕过:攻击者可通过本地测试大量样本,仅提交未被检测的样本进行攻击。本文提出通过随机化构建大规模一致性能的检测器家族,每次测试随机选取一个或多个检测器。训练时,从网络特定层中反复采样极小数量神经元子集,若其平均响应在正常与对抗样本间差异显著,则视为该类的神经指纹并存入检测库。测试时,根据模型预测标签从对应指纹库中采样,采用似然比检验判定是否受攻击。在ImageNet上对多种攻击方法和模型架构进行评估,结果表明该方法能实现近乎完美的检测效果,同时保持极低的误报率。
原文摘要 · Abstract (English)
Deep learning models for image classification have become standard tools in recent years. A well known vulnerability of these models is their susceptibility to adversarial examples. These are generated by slightly altering an image of a certain class in a way that is imperceptible to humans but causes the model to classify it wrongly as another class. Many algorithms have been proposed to address this problem, falling generally into one of two categories: (i) building robust classifiers (ii) directly detecting attacked images. Despite the good performance of these detectors, we argue that in a white-box setting, where the attacker knows the configuration and weights of the network and the detector, they can overcome the detector by running many examples on a local copy, and sending only those that were not detected to the actual model. This problem is common in security applications where even a very good model is not sufficient to ensure safety. In this paper we propose to overcome this inherent limitation of any static defence with randomization. To do so, one must generate a very large family of detectors with consistent performance, and select one or more of them randomly for each input. For the individual detectors, we suggest the method of neural fingerprints. In the training phase, for each class we repeatedly sample a tiny random subset of neurons from certain layers of the network, and if their average is sufficiently different between clean and attacked images of the focal class they are considered a fingerprint and added to the detector bank. During test time, we sample fingerprints from the bank associated with the label predicted by the model, and detect attacks using a likelihood ratio test. We evaluate our detectors on ImageNet with different attack methods and model architectures, and show near-perfect detection with low rates of false detection.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。