[论文解读] You Only Propagate Once: Accelerating Adversarial Training via Maximal Principle
本论文将对抗性训练视为离散时间微分博弈,并推导出 Pontryagin Maximum Principle,揭示对抗性更新仅与第一层网络耦合,从而使 YOPO 在显著减少前向/反向传播的同时保持鲁棒性。
Deep learning achieves state-of-the-art results in many tasks in computer vision and natural language processing. However, recent works have shown that deep networks can be vulnerable to adversarial perturbations, which raised a serious robustness issue of deep networks. Adversarial training, typically formulated as a robust optimization problem, is an effective way of improving the robustness of deep networks. A major drawback of existing adversarial training algorithms is the computational overhead of the generation of adversarial examples, typically far greater than that of the network training. This leads to the unbearable overall computational cost of adversarial training. In this paper, we show that adversarial training can be cast as a discrete time differential game. Through analyzing the Pontryagin's Maximal Principle (PMP) of the problem, we observe that the adversary update is only coupled with the parameters of the first layer of the network. This inspires us to restrict most of the forward and back propagation within the first layer of the network during adversary updates. This effectively reduces the total number of full forward and backward propagation to only one for each group of adversary updates. Therefore, we refer to this algorithm YOPO (You Only Propagate Once). Numerical experiments demonstrate that YOPO can achieve comparable defense accuracy with approximately 1/5 ~ 1/4 GPU time of the projected gradient descent (PGD) algorithm. Our codes are available at https://https://github.com/a1600012888/YOPO-You-Only-Propagate-Once.
研究动机与目标
- 推动深度网络在对抗扰动下的鲁棒性提升。
- 将对抗性训练表述为离散时间微分博弈。
- 为该问题推导 Pontryagin Maximum Principle (PMP)。
- 提出 YOPO 算法,使对抗性更新与完整网络训练解耦。
- 展示在鲁棒性相当的情况下显著的计算节省。
提出的方法
- 将鲁棒优化问题表述为一个两人零和微分博弈。
- 推导 Pontryagin’s Maximum Principle 以获得该博弈的必要最优性条件(PMP)。
- 证明对抗性扰动仅与第一层的权重耦合。
- 通过将对抗者更新从网络权重更新中解耦并冻结内部导数来提出 YOPO。
- 将 YOPO 实现为 YOPO(m-n),其中 m 是对抗者更新轮数,n 是完整前向/反向传播次数。
- 在 MNIST/CIFAR-10 上经验性地将 YOPO 与标准 PGD 对抗性训练和 TRADES 进行比较。
实验结果
研究问题
- RQ1如何重新表述对抗性训练以在不牺牲鲁棒性的前提下降低计算成本?
- RQ2可以利用神经网络的哪些结构特性来实现对抗者更新与全网络训练的解耦?
- RQ3最优控制原理是否能为深度学习中的鲁棒性提供新型训练算法的指导?
- RQ4相较于 PGD 和 TRADES,在标准基准上,YOPO 在防御准确性和训练时间方面的表现如何?
主要发现
- YOPO 通过在对抗者更新期间将大部分前向和反向传播限制在第一层来减少总体计算。
- YOPO 在 MNIST/CIFAR-10 上以可比的准确率实现约 4-5x 的相对于 PGD 对抗性训练的加速。
- 在 MNIST 上的 YOPO-5-10 达到的鲁棒准确率与 PGD-40 相当,但花费时间更少。
- 在 CIFAR-10 上的 PreAct-Res18 的 YOPO-5-3 在每个 epoch 的计算量大约只有 PGD-10 的一半,同时实现了可比的鲁棒性。
- 将 YOPO 与 TRADES 结合,在标准 TRADES 时间的一半内获得更高的干净准确性和鲁棒准确性。
- PMP 分析表明对抗者更新仅与第一层耦合,从而实现解耦优化。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。