[论文解读] Is PGD-Adversarial Training Necessary? Alternative Training via a Soft-Quantization Network with Noisy-Natural Samples Only
该论文提出了一种计算效率更高的PGD对抗训练替代方法,通过在输入层后引入可微分的软量化层,最小化输入梯度的$l_1$-范数,仅使用带噪声的自然样本。该方法在MNIST上实现了24倍的速度提升,同时保持了与PGD训练相当的鲁棒性,并实现了仅用两天时间即可微调一个鲁棒的ImageNet模型。
Recent work on adversarial attack and defense suggests that PGD is a universal $l_\infty$ first-order attack, and PGD adversarial training can significantly improve network robustness against a wide range of first-order $l_\infty$-bounded attacks, represented as the state-of-the-art defense method. However, an obvious weakness of PGD adversarial training is its highly-computational cost in generating adversarial samples, making it computationally infeasible for large and high-resolution real datasets such as the ImageNet dataset. In addition, recent work also has suggested a simple "close-form" solution to a robust model on MNIST. Therefore, a natural question raised is that is PGD adversarial training really necessary for robust defense? In this paper, we give a negative answer by proposing a training paradigm that is comparable to PGD adversarial training on several standard datasets, while only using noisy-natural samples. Specifically, we reformulate the min-max objective in PGD adversarial training by a problem to minimize the original network loss plus $l_1$ norms of its gradients w.r.t. the inputs. For the $l_1$-norm loss, we propose a computationally-feasible solution by embedding a differentiable soft-quantization layer after the network input layer. We show formally that the soft-quantization layer trained with noisy-natural samples is an alternative approach to minimizing the $l_1$-gradient norms as in PGD adversarial training. Extensive empirical evaluations on standard datasets show that our proposed models are comparable to PGD-adversarially-trained models under PGD and BPDA attacks. Remarkably, our method achieves a 24X speed-up on MNIST while maintaining a comparable defensive ability, and for the first time fine-tunes a robust Imagenet model within only two days. Code is provided on \url{https://github.com/tianzheng4/Noisy-Training-Soft-Quantization}
研究动机与目标
- 探究PGD对抗训练是否对鲁棒模型泛化是严格必要的。
- 降低基于PGD的对抗训练在大规模数据集(如ImageNet)上的高计算成本。
- 开发一种无需在训练过程中使用对抗样本即可保持鲁棒性的训练范式。
- 探索最小化输入梯度的$l_1$-范数是否可作为PGD对抗训练的可行替代方案。
- 实现鲁棒ImageNet模型的高效微调,将原本数周的训练时间缩短至数天。
提出的方法
- 将PGD对抗训练的极小极大目标重新表述为最小化原始网络损失加上网络输入梯度的$l_1$-范数。
- 在输入层后引入一个可微分的软量化层,以近似$l_1$-梯度范数正则化。
- 仅使用带噪声的自然样本进行训练,避免生成昂贵的迭代式PGD攻击。
- 利用软量化层隐式正则化网络对输入扰动的敏感性。
- 形式化证明:通过软量化最小化梯度的$l_1$-范数,在极限情况下等价于PGD对抗训练。
- 利用软量化层的可微性,实现通过梯度范数正则化进行反向传播。
实验结果
研究问题
- RQ1是否可以在不使用PGD对抗样本的情况下,仅依赖带噪声的自然数据训练出鲁棒模型?
- RQ2最小化输入梯度的$l_1$-范数是否足以实现与PGD对抗训练相当的鲁棒性?
- RQ3软量化层是否能有效近似PGD攻击在正则化模型鲁棒性方面的效果?
- RQ4与PGD对抗训练相比,该方法在标准基准上的计算效率提升如何?
- RQ5该方法是否可扩展至大规模数据集(如ImageNet),并在可接受的训练时间内完成?
主要发现
- 所提方法在标准数据集上,对PGD和BPDA攻击的鲁棒性与PGD对抗训练的模型相当。
- 在MNIST上,该方法相比PGD对抗训练实现了24倍的速度提升,同时保持了相似的鲁棒准确率。
- 首次实现了仅用两天时间即可完成鲁棒ImageNet模型的微调,显著缩短了训练时间。
- 在带噪声的自然样本上训练的软量化层,能有效正则化输入梯度,模仿PGD对抗训练的效果。
- 该方法在不生成对抗样本的情况下,仍能保持对一阶$l_\frown$-有界攻击的强泛化能力。
- 实证结果证实,通过软量化最小化输入梯度的$l_1$-范数,是PGD对抗训练的一种可行且高效的替代方案。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。