about
The exploding gradient problem demystified (arxiv.org)
4 points by jonbaer on Jan 24, 2020 | hide | past | pdf | discuss on HN

In plain words: Looking at how gradients grow as they flow backward through networks, this study finds that Adam, batch normalization, and self-normalizing activations do not stop them from exploding, which caps trainable depth. Skip connections keep gradients small by simplifying the math, letting deeper networks train.

Abstract · The exploding gradient problem demystified - definition, prevalence, impact, origin, tradeoffs, and solutions

Whereas it is believed that techniques such as Adam, batch normalization and, more recently, SeLU nonlinearities "solve" the exploding gradient problem, we show that this is not the case in general and that in a range of popular MLP architectures, exploding gradients exist and that they limit the depth to which networks can be effectively trained, both in theory and in practice. We explain why exploding gradients occur and highlight the *collapsing domain problem*, which can arise in architectures that avoid exploding gradients. ResNets have significantly lower gradients and thus can circumvent the exploding gradient problem, enabling the effective training of much deeper networks. We show this is a direct consequence of the Pythagorean equation. By noticing that *any neural network is a residual network*, we devise the *residual trick*, which reveals that introducing skip connections simplifies the network mathematically, and that this simplicity may be the major cause for their success.

George Philipp, Dawn Song, Jaime G. Carbonell
arXiv:1712.05577 · cs.LG, cs.CV · submitted Dec 15, 2017 · updated Apr 6, 2018
abstract · pdf · html · An earlier version of this paper was named "Gradients explode - Deep Networks are shallow - ResNet explained" and presented at the ICLR 2018 workshop (https://openreview.net/forum?id=rJjcdFkPM)

add comment on HN