Skip to main content
QUICK REVIEW

[论文解读] Siamese networks for generating adversarial examples

Mandar Kulkarni, Aria Abubakar|arXiv (Cornell University)|May 3, 2018
Adversarial Robustness in Machine LearningComputer Science参考文献 6被引用 4
一句话总结

本文提出了一种基于孪生网络的方法,无需访问目标模型的架构或训练数据,即可生成针对黑盒深度神经网络的对抗性样本。通过使用未标注的不匹配数据集(如 TinyImageNet 或 Food-101)作为查询,该方法基于目标模型的误分类预测结果,从图像对中利用对比学习学习对抗性扰动,实现了在 ResNet-50、MNIST 和 CIFAR-10 等模型之间的高可迁移性。

ABSTRACT

Machine learning models are vulnerable to adversarial examples. An adversary modifies the input data such that humans still assign the same label, however, machine learning models misclassify it. Previous approaches in the literature demonstrated that adversarial examples can even be generated for the remotely hosted model. In this paper, we propose a Siamese network based approach to generate adversarial examples for a multiclass target CNN. We assume that the adversary do not possess any knowledge of the target data distribution, and we use an unlabeled mismatched dataset to query the target, e.g., for the ResNet-50 target, we use the Food-101 dataset as the query. Initially, the target model assigns labels to the query dataset, and a Siamese network is trained on the image pairs derived from these multiclass labels. We learn the \emph{adversarial perturbations} for the Siamese model and show that these perturbations are also adversarial w.r.t. the target model. In experimental results, we demonstrate effectiveness of our approach on MNIST, CIFAR-10 and ImageNet targets with TinyImageNet/Food-101 query datasets.

研究动机与目标

  • 解决在攻击者无法访问目标模型架构或训练数据的黑盒设置下生成对抗性样本的挑战。
  • 克服先前方法需要访问训练数据子集或模型梯度的局限性。
  • 利用孪生网络通过利用不匹配查询数据集中的标签差异来学习对抗性扰动。
  • 证明所学习扰动在跨模型迁移中的有效性,即使在远程 API(如 Google Vision)上也有效。
  • 表明可通过在未标注刺激样本上使用孪生对比学习,有效学习通用对抗性扰动。

提出的方法

  • 使用未标注的不匹配数据集(如 TinyImageNet 或 Food-101)作为刺激,查询目标卷积神经网络,获取多类别预测结果。
  • 根据目标模型预测标签的相似性或差异性,构建正样本对和负样本对。
  • 使用对比损失在这些图像对上训练孪生网络,以学习捕捉对抗方向的特征表示。
  • 对孪生网络应用快速梯度符号(FGS)方法,生成可切换预测标签的对抗性扰动。
  • 通过将所学扰动应用于真实图像并评估误分类率,将扰动迁移至目标模型。
  • 通过有界 L-infinity 范数(ε)和迭代优化来优化扰动,以在最小化感知可见性的同时最大化误分类率。

实验结果

研究问题

  • RQ1在无法访问目标模型架构或训练数据的情况下,能否有效学习对抗性扰动?
  • RQ2在不匹配数据集(如 Food-101)上学习的扰动在多大程度上可迁移至目标模型(如 ResNet-50)以实现误分类?
  • RQ3孪生网络训练集的大小如何影响对抗性扰动的可迁移性和成功率?
  • RQ4所学习的扰动是否具有通用性,即在最小 ε 下对多张图像有效,并在不同模型间泛化?
  • RQ5通过孪生学习生成的扰动在可迁移成功率和所需 ε 幅度方面是否优于随机扰动?

主要发现

  • 所提方法在使用 30,000 个来自 TinyImageNet 的图像对作为刺激时,于 MNIST 目标上实现了 0.635 ± 0.059 的迁移率,证明了其高度有效性。
  • 对于 CIFAR-10 目标,使用 30,000 个来自 Food-101 的图像对时,迁移率达到了 0.426 ± 0.06,表明在不同数据集上性能一致。
  • 随着训练对数量的增加,迁移率持续提升,但在某一阈值(如 30,000 对)后趋于饱和,表明超过一定数据量后收益递减。
  • 孪生网络中排名最高的扰动优于随机扰动,实现误分类所需的 ε 显著更小。
  • 该方法生成的对抗性样本成功欺骗了 Google Vision API,证实了其在真实远程模型上的可迁移性。
  • 该方法成功生成了对多样化图像有效的通用扰动,包括需 ε_T = 27 才能实现误分类的图像,尽管大多数图像所需 ε 更小。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。