Skip to main content
QUICK REVIEW

[论文解读] Shape Defense

Ali Borji|arXiv (Cornell University)|May 4, 2021
Adversarial Robustness in Machine LearningComputer Science被引用 1
一句话总结

本文提出两种面向CNN的形状感知防御方法,通过利用边缘图提升对对抗攻击的鲁棒性。第一种方法将边缘图作为额外输入通道,结合对抗训练;第二种方法采用条件生成对抗网络(conditional GAN),从边缘图重建干净图像。两种方法在10多个数据集上显著提升了对FGSM和ℓ∞ PGD-40攻击的鲁棒性,同时增强了对自然图像退化和投毒攻击的抵抗力。

ABSTRACT

Humans rely heavily on shape information to recognize objects. Conversely, convolutional neural networks (CNNs) are biased more towards texture. This fact is perhaps the main reason why CNNs are susceptible to adversarial examples. Here, we explore how shape bias can be incorporated into CNNs to improve their robustness. Two algorithms are proposed, based on the observation that edges are invariant to moderate imperceptible perturbations. In the first one, a classifier is adversarially trained on images with the edge map as an additional channel. At inference time, the edge map is recomputed and concatenated to the image. In the second algorithm, a conditional GAN is trained to translate the edge maps, from clean and/or perturbed images, into clean images. The inference is done over the generated image corresponding to the input’s edge map. A large number of experiments with more than 10 data sets have proved the effectiveness of the proposed algorithms against FGSM and `1 PGD-40 attacks. against FGSM and `l∞ PGD-40 attacks. Further, we show that edge information can a) benefit other adversarial training methods, b) be even more effective in conjunction with background subtraction, c) be used to defend against poisoning attacks, and d) make CNNs more robust against natural image corruptions such as motion blur, impulse noise, and JPEG compression, than CNNs trained solely on RGB images. From a broader perspective, our study suggests that CNNs do not adequately account for image structures and operations that are crucial for robustness. The code is available at: https://github.com/[masked].

研究动机与目标

  • 为解决CNN对对抗样本固有的脆弱性,其根源在于对纹理的过度依赖而非形状信息。
  • 探究将结构化形状信息(特别是边缘图)融入模型是否能提升模型鲁棒性。
  • 开发对对抗攻击、自然图像退化和投毒攻击均有效的防御机制。
  • 探索基于边缘的特征是否能增强现有的对抗训练方法。

提出的方法

  • 使用在附加边缘图作为输入通道的图像增强生成的对抗样本进行分类器训练,推理时重新计算边缘图。
  • 训练一个条件生成对抗网络(conditional GAN),将来自干净或受扰动图像的边缘图转换为对应的干净图像,并使用生成图像进行推理。
  • 利用边缘图在小而不可察觉的扰动下保持稳定,使其对对抗噪声具有鲁棒性。
  • 将边缘图整合进标准对抗训练流程,以提升泛化能力和鲁棒性。
  • 应用背景去除技术,以增强基于边缘的特征在分离目标结构方面的有效性。
  • 利用边缘图对中等程度扰动的不变性,构建对FGSM和ℓ∞ PGD-40攻击具有鲁棒性的防御机制。

实验结果

研究问题

  • RQ1边缘图能否作为稳定的结构先验,提升CNN对对抗攻击的鲁棒性?
  • RQ2将边缘图融入对抗训练后,对FGSM和ℓ∞ PGD-40攻击的性能影响如何?
  • RQ3通过条件GAN实现的基于边缘的重建方法是否在防御场景中优于标准对抗训练?
  • RQ4基于边缘的防御在多大程度上能泛化到自然图像退化(如运动模糊和JPEG压缩)?
  • RQ5基于边缘的特征能否提升对数据投毒攻击的鲁棒性?

主要发现

  • 所提出的基于边缘的防御方法在10多个数据集上对FGSM和ℓ∞ PGD-40攻击均实现了显著的鲁棒性提升。
  • 边缘图能增强其他对抗训练方法的性能,表明其具有良好的兼容性与叠加优势。
  • 将边缘图与背景去除结合可进一步提升鲁棒性,表明前景结构的重要性。
  • 该防御方法对数据投毒攻击也有效,证明其在标准对抗样本之外仍具备强抵抗力。
  • 使用边缘图训练的CNN在运动模糊、脉冲噪声和JPEG压缩等自然图像退化下,相比仅使用RGB的模型表现出更优的鲁棒性。
  • 基于边缘的方法通过促使模型更多依赖结构形状而非纹理线索,提升了泛化能力。

阅读本论文

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

在 Nubint 中阅读本论文

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