Why Gradient Clipping Accelerates Training: A Theoretical Justification for Adaptivity

By Jingzhao Zhang, Tianxing He, Suvrit Sra, Ali Jadbabaie. 2019

627 citations recorded by the source corpus.

We provide a theoretical explanation for the effectiveness of gradient clipping in training deep neural networks. The key ingredient is a new smoothness condition derived from practical neural network training examples. We observe that gradient smoothness, a concept central to the analysis of first-order optimization algorithms that is often assumed to be a constant, demonstrates significant variability along the training trajectory of deep neural networks. Further, this smoothness positively correlates with the gradient norm, and contrary to standard assumptions in the literature, it can grow with the norm of the gradient. These empirical observations limit the applicability of existing theoretical analyses of algorithms that rely on a fixed bound on smoothness. These observations motivate us to introduce a novel relaxation of gradient smoothness that is weaker than the commonly used Lipschitz smoothness assumption. Under the new condition, we prove that two popular methods, namely, \emph{gradient clipping} and \emph{normalized gradient}, converge arbitrarily faster than gradient descent with fixed stepsize. We further explain why such adaptively scaled gradient methods can accelerate empirical convergence and verify our results empirically in popular neural network training settings.

Subfields: Artificial Intelligence, Computational Mechanics, Optimization & Training

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Artificial Intelligence

  1. Quoc V. Le
  2. Percy Liang
  3. Martin Jaggi
  4. Ruslan Salakhutdinov
  5. Mohit Bansal
  6. Yoshua Bengio
  7. Luke S. Zettlemoyer
  8. Sergey Levine

In Computational Mechanics

  1. Sai Praneeth Karimireddy
  2. Sebastian U. Stich
  3. Martin Jaggi
  4. Sashank J. Reddi
  5. Peter Richtárik
  6. Ameet Talwalkar
  7. Tengyu Ma
  8. Ananda Theertha Suresh

In Optimization & Training

  1. Martin Jaggi
  2. Sebastian U. Stich
  3. Sai Praneeth Karimireddy
  4. Soham De
  5. Peter Richtárik
  6. Sashank J. Reddi
  7. Samuel L. Smith
  8. Andrew Brock

Citations in the corpus