Which Neural Net Architectures Give Rise To Exploding and Vanishing Gradients?

By Boris Hanin. 2018

302 citations recorded by the source corpus.

We give a rigorous analysis of the statistical behavior of gradients in randomly initialized feed-forward networks with ReLU activations. Our results show that a fully connected depth $d$ ReLU net with hidden layer widths $n_j$ will have exploding and vanishing gradients if and only if $\sum_{j=1}^{d-1} 1/n_j$ is large. The point of view of this article is that whether a given neural net will have exploding/vanishing gradients is a function mainly of the architecture of the net, and hence can be tested at initialization. Our results imply that a fully connected network that produces manageable gradients at initialization must have many hidden layers that are about as wide as the network is deep. This work is related to the mean field theory approach to random neural nets. From this point of view, we give a rigorous computation of the $1/n_j$ corrections to the propagation of gradients at the so-called edge of chaos.

Subfields: Artificial Intelligence, Model Architectures, 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. Greg Yang
  2. Boris Hanin
  3. Tengyu Ma
  4. Yann Dauphin
  5. Mihai Nica
  6. Yoshua Bengio
  7. Hadi Salman
  8. Maithra Raghu

In Model Architectures

  1. Greg Yang
  2. Boris Hanin
  3. Mihai Nica
  4. David Rolnick
  5. Martin T. Barlow
  6. Erica Schmidt
  7. Yann Dauphin
  8. Hadi Salman

In Optimization & Training

  1. Greg Yang
  2. Boris Hanin
  3. Mihai Nica
  4. Yann Dauphin
  5. Maithra Raghu
  6. David Rolnick
  7. Tengyu Ma
  8. Hadi Salman

Citations in the corpus