Improved Analysis of Clipping Algorithms for Non-convex Optimization

Bohang Zhang, Jikai Jin, Cong Fang, Liwei Wang
10/5/2020
cs.LGmath.OCstat.ML

Official code: zbh2047/clipping-algorithms (10 stars, Python, last commit 2021-02-17).

Abstract

Gradient clipping is commonly used in training deep neural networks partly due to its practicability in relieving the exploding gradient problem. Recently, \citet{zhang2019gradient} show that clipped (stochastic) Gradient Descent (GD) converges faster than vanilla GD/SGD via introducing a new assumption called $(L_0, L_1)$-smoothness, which characterizes the violent fluctuation of gradients typically encountered in deep neural networks.

Show full abstract

However, their iteration complexities on the problem-dependent parameters are rather pessimistic, and theoretical justification of clipping combined with other crucial techniques, e.g. momentum acceleration, are still lacking. In this paper, we bridge the gap by presenting a general framework to study the clipping algorithms, which also takes momentum methods into consideration. We provide convergence analysis of the framework in both deterministic and stochastic setting, and demonstrate the tightness of our results by comparing them with existing lower bounds. Our results imply that the efficiency of clipping methods will not degenerate even in highly non-smooth regions of the landscape. Experiments confirm the superiority of clipping-based methods in deep learning tasks.

View on arXivView PDF

Code Implementations(1)

Code for the NeurIPS 2020 paper "Improved analysis of clippind algorithms for non-convex optimization", including various clipping algorithms for neural network training in CV and NLP.

104PythonOct 8, 20205 years ago
deep-learninggradient-clipping

Similar Papers

Cite this paper

@article{zhang2020improved,
  title  = {Improved Analysis of Clipping Algorithms for Non-convex Optimization},
  author = {Bohang Zhang and Jikai Jin and Cong Fang and Liwei Wang},
  year   = {2020},
  eprint = {2010.02519},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2010.02519}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2010.02519.svg)](https://codeofpaper.com/paper/2010.02519)

Discussion