[论文解读] ComDefend: An Efficient Image Compression Model to Defend Adversarial Examples
ComDefend 是一种端到端图像压缩模型,通过使用压缩卷积神经网络(ComCNN)去除不可察觉的扰动,并利用重建卷积神经网络(RecCNN)恢复干净图像,从而防御对抗性样本。该方法在 MNIST、CIFAR-10 和 ImageNet 上实现了最先进(SOTA)的鲁棒准确率,且无需对抗性训练数据,推理速度更快、训练成本更低,优于 HGD 和 PixelDefend 等方法。
Deep neural networks (DNNs) have been demonstrated to be vulnerable to adversarial examples. Specifically, adding imperceptible perturbations to clean images can fool the well trained deep neural networks. In this paper, we propose an end-to-end image compression model to defend adversarial examples: extbf{ComDefend}. The proposed model consists of a compression convolutional neural network (ComCNN) and a reconstruction convolutional neural network (ResCNN). The ComCNN is used to maintain the structure information of the original image and purify adversarial perturbations. And the ResCNN is used to reconstruct the original image with high quality. In other words, ComDefend can transform the adversarial image to its clean version, which is then fed to the trained classifier. Our method is a pre-processing module, and does not modify the classifier's structure during the whole process. Therefore, it can be combined with other model-specific defense models to jointly improve the classifier's robustness. A series of experiments conducted on MNIST, CIFAR10 and ImageNet show that the proposed method outperforms the state-of-the-art defense methods, and is consistently effective to protect classifiers against adversarial attacks.
研究动机与目标
- 解决深度神经网络在推理过程中因不可察觉的对抗性扰动而被欺骗的脆弱性问题。
- 开发一种无需对抗性训练数据或重新训练分类器的防御机制。
- 利用图像压缩作为预处理防御手段,提升对多种对抗性攻击(如 FGSM、C&W、DeepFool)的鲁棒性。
- 相比 HGD 和 PixelDefend 等现有防御方法,降低计算成本并缩短推理时间。
- 通过作为即插即用的预处理模块,与现有分类器兼容,无需修改模型架构。
提出的方法
- ComDefend 采用端到端框架,包含两个 CNN:压缩卷积神经网络(ComCNN)和重建卷积神经网络(RecCNN),仅在干净图像上联合训练。
- ComCNN 将原始 24 位 RGB 图像(每通道 8 位)压缩为 12 位表示(每通道 4 位),在保留结构信息的同时过滤掉对抗性噪声。
- 训练过程中对压缩表示添加高斯噪声,以提升对扰动的鲁棒性并增强重建质量。
- RecCNN 从压缩表示中重建干净图像,有效抑制与自然图像结构不一致的对抗性扰动。
- 模型以分块方式处理图像,相比整图处理,显著提升了推理效率。
- 该防御在测试时作为预处理步骤应用,将对抗性输入转换为类似干净图像后再进行分类。
实验结果
研究问题
- RQ1图像压缩能否被有效用于预处理防御,以在不依赖对抗性训练数据的情况下去除对抗性扰动?
- RQ2ComDefend 在多种数据集和攻击类型下,与 HGD 和 PixelDefend 等最先进防御方法相比表现如何?
- RQ3分块处理在多大程度上提升了推理速度,同时保持高防御准确率?
- RQ4仅在干净图像上训练是否能使 ComDefend 对包括 FGSM、C&W 和 DeepFool 在内的多样化对抗攻击具有良好泛化能力?
- RQ5ComDefend 是否可与其他防御机制结合,进一步提升分类器的鲁棒性?
主要发现
- ComDefend 在 MNIST、CIFAR-10 和 ImageNet 上实现了最先进(SOTA)的鲁棒准确率,在 FGSM、C&W 和 DeepFool 攻击下优于 HGD 和 PixelDefend。
- 在 ImageNet 上,ComDefend 在 ε = 8 和 12 的 FGSM、C&W 和 DeepFool 攻击下,防御准确率高于 ICLR 2018 方法和 HGD。
- 由于采用分块处理,模型将每张图像的推理时间降低至 1.2 秒,显著快于 HGD 的 2.7 秒。
- ComDefend 在训练过程中无需对抗样本,相比需要大规模对抗数据的 HGD,显著降低了数据和计算成本。
- 该方法在 BIM 攻击下仍保持高性能,表明其鲁棒性不仅限于简单的 FGSM 类攻击。
- 即使扰动较强(ε ≥ 8),ComDefend 的防御依然有效,尽管感知可见性增加,表明存在人类可察觉噪声的实用阈值。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。