Skip to main content
QUICK REVIEW

[Paper Review] You Only Propagate Once: Accelerating Adversarial Training via Maximal Principle

Dinghuai Zhang, Tianyuan Zhang|arXiv (Cornell University)|May 2, 2019
Adversarial Robustness in Machine LearningComputer Science84 citations
TL;DR

The paper casts adversarial training as a discrete-time differential game and derives a Pontryagin Maximum Principle, revealing that adversarial updates couple only with the first network layer, enabling YOPO to dramatically reduce forward/backward propagations while preserving robustness.

ABSTRACT

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.

Motivation & Objective

  • Motivate robustification of deep networks against adversarial perturbations.
  • Formulate adversarial training as a discrete-time differential game.
  • Derive a Pontryagin Maximum Principle (PMP) for the problem.
  • Propose the YOPO algorithm that decouples adversary updates from full network training.
  • Demonstrate significant computational savings with comparable robustness.

Proposed method

  • Formulate the robust optimization problem as a two-player zero-sum differential game.
  • Derive Pontryagin’s Maximum Principle to obtain necessary optimality conditions (PMP) for the game.
  • Show that adversarial perturbations couple only with the weights of the first layer.
  • Propose YOPO by decoupling adversary updates from network weight updates and freezing inner derivatives.
  • Implement YOPO as YOPO(m-n), where m is adversary update rounds and n is full forward/backward passes.
  • Empirically compare YOPO to standard PGD adversarial training and to TRADES on MNIST/CIFAR-10.

Experimental results

Research questions

  • RQ1How can adversarial training be reformulated to reduce computational cost without sacrificing robustness?
  • RQ2What structural properties of neural networks can be exploited to decouple adversary updates from full network training?
  • RQ3Can optimal control principles guide new training algorithms for robustness in deep learning?
  • RQ4How does YOPO perform in terms of defense accuracy and training time compared to PGD and TRADES on standard benchmarks?

Key findings

  • YOPO reduces overall computation by restricting most forward and backpropagation to the first layer during adversary updates.
  • YOPO achieves approximately 4-5x speedup over PGD adversarial training with comparable accuracy on MNIST/CIFAR-10.
  • YOPO-5-10 on MNIST attains robust accuracy comparable to PGD-40 with much less time.
  • YOPO-5-3 on CIFAR-10 with PreAct-Res18 achieves comparable robustness with about half the computation per epoch compared to PGD-10.
  • Combining YOPO with TRADES yields higher clean and robust accuracy within half the time of standard TRADES.
  • The PMP analysis shows adversary updates are coupled only with the first layer, enabling decoupled optimization.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.