arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 1810.05665cs.LGstat.ML
收藏

PGD对抗训练有必要吗?基于软Quantization网络的噪声样本训练

Is PGD-Adversarial Training Necessary? Alternative Training via a Soft-Quantization Network with Noisy-Natural Samples Only

Tianhang Zheng, Changyou Chen, Kui Ren

摘要:

对抗攻击和防御的最新研究表明,PGD是一种通用的$l_\infty$一阶攻击,PGD对抗性训练可以显着提高网络对各种一阶$l_\infty$有界攻击的鲁棒性,代表了最先进的防御方法。然而,PGD对抗训练的一个明显弱点是其在生成对抗样本时的高计算成本,这使得它在计算上不适用于大型和高分辨率的真实数据集,如ImageNet数据集。此外,最近的工作也提出了一个简单的“封闭形式”的解决方案,一个强大的模型MNIST。因此,一个自然的问题是,PGD对抗训练对于强大的防御真的是必要的吗?在本文中,我们给出了否定的答案,提出了一种训练范式,该范式与几个标准数据集上的PGD对抗训练相当,同时只使用噪声自然样本。具体来说,我们通过一个问题来重新制定PGD对抗训练中的最小-最大目标,以最小化原始网络损失加上其梯度w.r.t.的$l_1$范数。输入。对于$l_1$ -范数损失,我们提出了一个计算上可行的解决方案,通过在网络输入层之后嵌入可微软量化层。我们正式表明,用噪声自然样本训练的软量化层是一种替代方法,可以像PGD对抗训练一样最小化$l_1$梯度范数。在标准数据集上进行的广泛的实证评估表明,我们提出的模型与PGD和BPDA攻击下的PGD对抗训练模型相当。值得注意的是,我们的方法在MNIST上实现了24倍的加速,同时保持了相当的防御能力,并且首次在两天内微调了一个强大的Imagenet模型。代码见\url{https://github.com/tianzheng4/Noisy-Training-Soft-Quantization}

英文摘要:

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}

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

↑