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

形成对对抗攻击的防御

Shape Defense Against Adversarial Attacks

Quintic AI

Ali Borji

摘要:

人类在很大程度上依赖于形状信息来识别物体。相反,卷积神经网络(CNN)更偏向于纹理。这也许是CNN容易受到对抗性样本影响的主要原因。在这里,我们将探讨如何将形状偏差纳入CNN以提高其鲁棒性。提出了两种算法,根据观察,边缘是不变的,以温和的不可察觉的扰动。在第一种方法中,分类器在图像上进行逆向训练,边缘图作为额外的通道。在推理时,重新计算边缘图并将其连接到图像。在第二种算法中,训练条件GAN以将来自干净和/或扰动图像的边缘图转换为干净图像。在对应于输入的边缘图的生成图像上进行推断。在10个数据集上的实验结果表明,该算法能够有效抵抗FGSM和$\ell_\infty$ PGD-40攻击.此外,我们还证明了a)边缘信息也可以使其他对抗性训练方法受益,b)在边缘增强输入上训练的CNN比仅在RGB图像上训练的CNN更能抵抗自然图像损坏,如运动模糊,脉冲噪声和JPEG压缩。从更广泛的角度来看,我们的研究表明,CNN没有充分考虑到对鲁棒性至关重要的图像结构。代码可在:~\url{https://github.com/aliborji/Shapedefense.git}获得。

英文摘要:

Humans rely heavily on shape information to recognize objects. Conversely, convolutional neural networks (CNNs) are biased more towards texture. This is perhaps the main reason why CNNs are vulnerable 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. Inference is done over the generated image corresponding to the input's edge map. Extensive experiments over 10 datasets demonstrate the effectiveness of the proposed algorithms against FGSM and $\ell_\infty$ PGD-40 attacks. Further, we show that a) edge information can also benefit other adversarial training methods, and b) CNNs trained on edge-augmented inputs are 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 that are crucial for robustness. Code is available at:~\url{https://github.com/aliborji/Shapedefense.git}.

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

↑