通过带跳跃连接的全卷积可微前端实现的对梯度攻击的显著鲁棒性奇案
A Curious Case of Remarkable Resilience to Gradient Attacks via Fully Convolutional and Differentiable Front End with a Skip Connection
AI总结:
本文发现冻结主干分类器前添加带跳跃连接的全卷积可微前端并短时训练后,模型对梯度攻击表现出异常鲁棒性,且随机集成可在多个数据集上接近 SOTA 的 AutoAttack 准确率。
摘要:
我们对前端增强的神经模型进行了实验,其中在冻结的主干分类器之前添加了一个可微且全卷积的带跳跃连接模型。通过使用较小学习率对这类复合模型训练约一个轮次,我们得到的模型在保持主干分类器准确率的同时,对梯度攻击表现出异常强的抵抗力——包括来自 AutoAttack 包的 APGD 和 FAB-T 攻击——我们将此归因于梯度掩蔽。尽管梯度掩蔽并非新现象,但对于完全可微且没有明显梯度粉碎(例如 JPEG 压缩)或梯度衰减组件的模型而言,我们观察到的程度是惊人的。\n\n产生此类模型的训练方法也非常稳定且可复现:我们将该方法应用于三个数据集(CIFAR10、CIFAR100 和 ImageNet)以及多种现代架构(包括视觉 Transformer),没有出现任何失败案例。虽然黑盒攻击(如 SQUARE 攻击和零阶 PGD)可以部分克服梯度掩蔽,但这些攻击很容易被简单的随机集成所击败。我们估计,这些集成在 CIFAR10、CIFAR100 和 ImageNet 上取得了接近 SOTA 的 AutoAttack 准确率(同时几乎保留了原始分类器的全部干净准确率),尽管在自适应攻击下准确率几乎为零。\n\n对主干进行对抗训练进一步放大了这种前端“鲁棒性”。在 CIFAR10 上,相应的随机集成在完整 AutoAttack 下取得了 90.8±2.5%(99% 置信区间)的准确率,而在自适应攻击(ε=8/255,L∞ 范数)下仅有 18.2±3.6% 的准确率。我们在论文结尾讨论了随机集成是否可以作为实际防御手段。\n\n复现关键结果的代码和说明已提供。https://github.com/searchivarius/curious_case_of_gradient_masking
英文摘要:
We experimented with front-end enhanced neural models where a differentiable and fully convolutional model with a skip connection is added before a frozen backbone classifier. By training such composite models using a small learning rate for about one epoch, we obtained models that retained the accuracy of the backbone classifier while being unusually resistant to gradient attacks-including APGD and FAB-T attacks from the AutoAttack package-which we attribute to gradient masking. Although gradient masking is not new, the degree we observe is striking for fully differentiable models without obvious gradient-shattering-e.g., JPEG compression-or gradient-diminishing components. The training recipe to produce such models is also remarkably stable and reproducible: We applied it to three datasets (CIFAR10, CIFAR100, and ImageNet) and several modern architectures (including vision Transformers) without a single failure case. While black-box attacks such as the SQUARE attack and zero-order PGD can partially overcome gradient masking, these attacks are easily defeated by simple randomized ensembles. We estimate that these ensembles achieve near-SOTA AutoAttack accuracy on CIFAR10, CIFAR100, and ImageNet (while retaining almost all clean accuracy of the original classifiers) despite having near-zero accuracy under adaptive attacks. Adversarially training the backbone further amplifies this front-end "robustness". On CIFAR10, the respective randomized ensemble achieved 90.8$\pm 2.5\%$ (99\% CI) accuracy under the full AutoAttack while having only 18.2$\pm 3.6\%$ accuracy under the adaptive attack ($\varepsilon=8/255$, $L^\infty$ norm). We conclude the paper with a discussion of whether randomized ensembling can serve as a practical defense. Code and instructions to reproduce key results are available. https://github.com/searchivarius/curious_case_of_gradient_masking
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。