稳定化NeuralODEs的对抗鲁棒性可能来自于混淆的攻击者
Adversarial Robustness of Stabilized NeuralODEs Might be from Obfuscated Gradients
摘要:
在本文中,我们介绍了一个可证明稳定的神经常微分方程(ODE)的架构,实现了非平凡的对抗性鲁棒性下的白盒对抗攻击,即使网络是自然训练。现有的大多数防御方法在抵御强白盒攻击时,为了提高神经网络的鲁棒性,需要对它们进行对抗性训练,从而在自然准确性和对抗性鲁棒性之间进行权衡。受动力系统理论的启发,我们设计了一个稳定的神经ODE网络SONet,它的ODE块是反对称的,并且被证明是输入输出稳定的。通过自然训练,SONet可以实现与最先进的对抗性防御方法相当的鲁棒性,而不会牺牲自然的准确性。即使用这样的ODE块仅替换ResNet的第一层也可以表现出鲁棒性的进一步改进,例如,在PGD-20($\ell_\infty=0.031$)攻击下,对CIFAR-10数据集的自然准确率和鲁棒准确率分别为91.57%和62.35%,而用TRADES训练的ResNet对应结构的自然准确率和鲁棒准确率分别为76.29%和45.24%.为了理解这一令人惊讶的好结果背后的可能原因,我们进一步探索了这种对抗性鲁棒性背后的可能机制。我们表明,自适应步长数值ODE求解器,DOPRI 5,有梯度掩蔽效应,失败的PGD攻击,这是敏感的梯度信息的训练损失;另一方面,它不能欺骗CW攻击的强大梯度和SPSA攻击是梯度自由。这提供了一个新的解释,基于ODE网络的对抗性鲁棒性主要来自数值ODE求解器中的混淆梯度。
英文摘要:
In this paper we introduce a provably stable architecture for Neural Ordinary Differential Equations (ODEs) which achieves non-trivial adversarial robustness under white-box adversarial attacks even when the network is trained naturally. For most existing defense methods withstanding strong white-box attacks, to improve robustness of neural networks, they need to be trained adversarially, hence have to strike a trade-off between natural accuracy and adversarial robustness. Inspired by dynamical system theory, we design a stabilized neural ODE network named SONet whose ODE blocks are skew-symmetric and proved to be input-output stable. With natural training, SONet can achieve comparable robustness with the state-of-the-art adversarial defense methods, without sacrificing natural accuracy. Even replacing only the first layer of a ResNet by such a ODE block can exhibit further improvement in robustness, e.g., under PGD-20 ($\ell_\infty=0.031$) attack on CIFAR-10 dataset, it achieves 91.57\% and natural accuracy and 62.35\% robust accuracy, while a counterpart architecture of ResNet trained with TRADES achieves natural and robust accuracy 76.29\% and 45.24\%, respectively. To understand possible reasons behind this surprisingly good result, we further explore the possible mechanism underlying such an adversarial robustness. We show that the adaptive stepsize numerical ODE solver, DOPRI5, has a gradient masking effect that fails the PGD attacks which are sensitive to gradient information of training loss; on the other hand, it cannot fool the CW attack of robust gradients and the SPSA attack that is gradient-free. This provides a new explanation that the adversarial robustness of ODE-based networks mainly comes from the obfuscated gradients in numerical ODE solvers.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。