Title: DEEP INFORMATION PROPAGATION

Abstract: We study the behavior of untrained neural networks whose weights and biases are randomly distributed using mean field theory. We show the existence of depth scales that naturally limit the maximum depth of signal propagation through these random networks. Our main practical result is to show that random networks may be trained precisely when information can travel through them. Thus, the depth scales that we identify provide bounds on how deep a network may be trained for a specific choice of hyperparameters. As a corollary to this, we argue that in networks at the edge of chaos, one of these depth scales diverges. Thus arbitrarily deep networks may be trained only sufficiently close to criticality. We show that the presence of dropout destroys the order-to-chaos critical point and therefore strongly limits the maximum trainable depth for random networks. Finally, we develop a mean field theory for backpropagation and we show that the ordered and chaotic phases correspond to regions of vanishing and exploding gradient respectively.

1. INTRODUCTION:

Deep neural network architectures have become ubiquitous in machine learning. The success of deep networks is due to the fact that they are highly expressive (Montufar et al., 2014) while simultaneously being relatively easy to optimize (Choromanska et al., 2015; Goodfellow et al., 2014) with strong generalization properties (Recht et al., 2015) . Consequently, developments in machine learning often accompany improvements in our ability to train increasingly deep networks. Despite this, designing novel network architectures is frequently equal parts art and science. This is, in part, because a general theory for neural networks that might inform design decisions has lagged behind the feverish pace of design.

A pair of recent papers (Poole et al., 2016; Raghu et al., 2016) demonstrated that random neural networks are exponentially expressive in their depth. Central to their approach was the consideration of networks after random initialization, whose weights and biases were i.i.d. Gaussian distributed. In particular the paper by Poole et al. (2016) developed a "mean field" formalism for treating wide, untrained, neural networks. They showed that these mean field networks exhibit an order-to-chaos transition as a function of the weight and bias variances. Notably the mean field formalism is not closely tied to a specific choice of activation function or loss.

In this paper, we demonstrate the existence of several characteristic "depth" scales that emerge naturally and control signal propagation in these random networks. We then show that one of these depth scales, ξ c , diverges at the boundary between order and chaos. This result is insensitive to many architectural decisions (such as choice of activation function) and will generically be true at any order-to-chaos transition. We then extend these results to include dropout and we show that even small amounts of dropout destroys the order-to-chaos critical point and consequently removes the divergence in ξ c . Together these results bound the depth to which signal may propagate through random neural networks.

We then develop a corresponding mean field model for gradients and we show that a duality exists between the forward propagation of signals and the backpropagation of gradients. The ordered and chaotic phases that Poole et al. (2016) identified correspond to regions of vanishing and exploding gradients, respectively. We demonstrate the validity of this mean field theory by computing gradients of random networks on MNIST. This provides a formal explanation of the 'vanishing gradients' phenomenon that has long been observed in neural networks (Bengio et al., 1993) . We continue to show that the covariance between two gradients is controlled by the same depth scale that limits correlated signal propagation in the forward direction.

Finally, we hypothesize that a necessary condition for a random neural network to be trainable is that information should be able to pass through it. Thus, the depth-scales identified here bound the set of hyperparameters that will lead to successful training. To test this ansatz we train ensembles of deep, fully connected, feed-forward neural networks of varying depth on MNIST and CIFAR10, with and without dropout. Our results confirm that neural networks are trainable precisely when their depth is not much larger than ξ c . This result is dataset independent and is, therefore, a universal function of network architecture.

A corollary of these result is that asymptotically deep neural networks should be trainable provided they are initialized sufficiently close to the order-to-chaos transition. The notion of "edge of chaos" initialization has been explored previously. Such investigations have been both direct as in Bertschinger et al. (2005) ; Glorot & Bengio (2010) or indirect, through initialization schemes that favor deep signal propagation such as batch normalization (Ioffe & Szegedy, 2015) , orthogonal matrix initialization (Saxe et al., 2014) , random walk initialization (Sussillo & Abbott, 2014) , composition kernels (Daniely et al., 2016) , or residual network architectures (He et al., 2015) . The novelty of the work presented here is two-fold. First, our framework predicts the depth at which networks may be trained even far from the order-to-chaos transition. While a skeptic might ask when it would be profitable to initialize a network far from criticality, we respond by noting that there are architectures (such as neural networks with dropout) where no critical point exists and so this more general framework is needed. Second, our work provides a formal, as opposed to intuitive, explanation for why very deep networks can only be trained near the edge of chaos.

2. BACKGROUND:

We begin by recapitulating the mean-field formalism developed in Poole et al. (2016) . Consider a fully-connected, untrained, feed-forward, neural network of depth L with layer width N l and some nonlinearity φ : R → R. Since this is an untrained neural network we suppose that its weights and biases are respectively i.i.d. as W l ij ∼ N (0, σ 2 w /N l ) and b l i ∼ N (0, σ 2 b ). Notationally we set z l i to be the pre-activations of the lth layer and y l+1 i to be the activations of that layer. Finally, we take the input to the network to be y 0 i = x i . The propagation of a signal through the network is described by the pair of equations,

EQUATION

Since the weights and biases are randomly distributed, these equations define a probability distribution on the activations and pre-activations over an ensemble of untrained neural networks. The "mean-field" approximation is then to replace z l i by a Gaussian whose first two moments match those of z l i . For the remainder of the paper we will take the mean field approximation as given. Consider first the evolution of a single input, x i;a , as it evolves through the network (as quantified by y l i;a and z l i;a ). Since the weights and biases are independent with zero mean, the first two moments of the pre-activations in the same layer will be,

E[z l i;a ] = 0 E[z l i;a z l j;a ] = q l aa δ ij (2)

where δ ij is the Kronecker delta. Here q l aa is the variance of the pre-activations in the lth layer due to an input x i;a and it is described by the recursion relation,

EQUATION

)

where

Dz = 1 √ 2π dze -1 2 z 2

is the measure for a standard Gaussian distribution. Together these equations completely describe the evolution of a single input through a mean field neural network. For any choice of σ 2 w and σ 2 b with bounded φ, eq. 3 has a fixed point at q * = lim l→∞ q l aa . The propagation of a pair of signals, x 0 i;a and x 0 i;b , through this network can be understood similarly. Here the mean pre-activations are trivially the same as in the single-input case. The independence of the weights and biases implies that the covariance between different pre-activations in the same layer will be given by, E[z l i;a z l j;b ] = q l ab δ ij . The covariance, q l ab , will be given by the recurrence relation,

q l ab = σ 2 w Dz 1 Dz 2 φ(u 1 )φ(u 2 ) + σ 2 b (4)

where u 1 = q l-1 aa z 1 and u 2 = q l-1 bb c l-1 ab z 1 + 1 -(c l-1 ab ) 2 z 2 , with c l ab = q l ab / q l aa q l bb , are Gaussian approximations to the pre-activations in the preceding layer with the correct covariance matrix. Moreover c l ab is the correlation between the two inputs after l layers. Examining eq. 4 it is clear that c * = 1 is a fixed point of the recurrence relation. To determine whether or not the c * = 1 is an attractive fixed point the quantity,

χ 1 = ∂c l ab ∂c l-1 ab = σ 2 w Dz φ √ q * z 2 (5)

is introduced. Poole et al. (2016) note that the c * = 1 fixed point is stable if χ 1 < 1 and is unstable otherwise. Thus, χ 1 = 1 represents a critical line separating an ordered phase (in which c * = 1 and all inputs end up asymptotically correlated) and a chaotic phase (in which c * < 1 and all inputs end up asymptotically decorrelated). For the case of φ = tanh, the phase diagram in fig. 1 (a ) is observed.

3. ASYMPTOTIC EXPANSIONS AND DEPTH SCALES:

Our first contribution is to demonstrate the existence of two depth-scales that arise naturally within the framework of mean field neural networks. Motivating the existence of these depth-scales, we iterate eq. 3 and 4 until convergence for many values of σ 2 w between 0.1 and 3.0 and with σ 2 b = 0.05 starting with q 0 aa = q 0 bb = 0.8 and c 0 ab = 0.6. We see, in fig. 1 (b ) and (c), that the manner in which both q l aa approaches q * and c l ab approaches c * is exponential over many orders of magnitude. We therefore anticipate that asymptotically |q l aaq * | ∼ e -l/ξq and |c l abc * | ∼ e -l/ξc for sufficiently large l. Here, ξ q and ξ c define depth-scales over which information may propagate about the magnitude of a single input and the correlation between two inputs respectively.

We will presently prove that q l aa and c l ab are asymptotically exponential. In both cases we will use the same fundamental strategy wherein we expand one of the recurrence relations (either eq. 3 or eq. 4) about its fixed point to get an approximate "asymptotic" recurrence relation. We find that this asymptotic recurrence relation in turn implies exponential decay towards the fixed point over a depth-scale, ξ x .

We first analyze eq. 3 and identify a depth-scale at which information about a single input may propagate. Let q l aa = q * + l . By construction so long as lim l→∞ q l aa = q * exists it follows that l → 0 as l → ∞. Eq. 3 may be expanded to lowest order in l to arrive at an asymptotic recurrence relation (see Appendix 7.1),

l+1 = l χ 1 + σ 2 w Dzφ √ q * z φ √ q * z + O ( l ) 2 . (6)

Notably, the term multiplying l is a constant. It follows that for large l the asymptotic recurrence relation has an exponential solution, l ∼ e -l/ξq , with ξ q given by ξ

EQUATION

This establishes ξ q as a depth scale that controls how deep information from a single input may penetrate into a random neural network.

Next, we consider eq. 4. Using a similar argument (detailed in Appendix 7.2) we can expand about c l ab = c * + l to find an asymptotic recurrence relation,

EQUATION

Here

u * 1 = √ q * z 1 and u * 2 = √ q * (c * z 1 + 1 -(c * ) 2 z 2 )

. Thus, once again, we expect that for large l this recurrence will have an exponential solution, l ∼ e -l/ξc , with ξ c given by

EQUATION

In the ordered phase c * = 1 and so ξ -1 c =log χ 1 . Since the transition between order and chaos occurs when χ 1 = 1 it follows that ξ c diverges at any order-to-chaos transition so long as q * and c * exist. These results can be investigated intuitively by plotting c l+1 ab vs c l ab in fig. 2 (a ). In the ordered phase there is only a single fixed point, c l ab = 1. In the chaotic regime we see that a second fixed point develops and the c l ab = 1 point becomes unstable. We see that the linearization about the fixed points becomes significantly closer to the trivial map near the order-to-chaos transition.

c l ab c l+1 ab 2 w 2 w ⇠ c ⇠ q (a) (b) (c) 2 w = 0.5 2 w = 1.8 2 w = 3.5

To test these claims we measure ξ q and ξ c directly by iterating the recurrence relations for q l aa and c l ab as before with q 0 aa = q 0 bb = 0.8 and c 0 ab = 0.6. In this case we consider values of σ 2 w between 0.1 and 3.0 and σ 2 b between 0.01 and 0.3. For each hyperparameter settings we fit the resulting residuals, |q l aaq * | and |c l abc * |, to exponential functions and infer the depth-scale. We then compare this measured depth-scale to that predicted by the asymptotic expansion. The result of this measurement is shown in fig. 2 . In general we see that the agreement is quite good. As expected we see that ξ c diverges at the critical point.

As observed in Poole et al. (2016) we see that the depth scale for the propagation of information in a single input, ξ q , is consistently finite and significantly shorter than ξ c . To understand why this is the case consider eq. 6 and note that for tanh nonlinearities the second term is always negative. Thus, even as χ 1 approaches 1 we expect χ 1 + σ 2 w Dzφ ( √ q * z)φ( √ q * z) to be substantially smaller than 1.

3.1. DROPOUT:

The mean field formalism can be extended to include dropout. The main contribution here will be to argue that even infinitesimal amounts of dropout destroys the mean field critical point, and therefore limits the trainable network depth. In the presence of dropout the propagation equation, eq. 1, becomes,

EQUATION

)

where p j ∼ Bernoulli(ρ) and ρ is the dropout rate. As is typically the case we have re-scaled the sum by ρ -1 so that the mean of the pre-activation is invariant with respect to our choice of dropout rate.

Following a similar procedure to the original mean field calculation consider the fate of two inputs, x 0 i;a and x 0 i;b , as they are propagated through such a random network. We take the dropout masks to be chosen independently for the two inputs mimicking the manner in which dropout is employed in practice. With dropout the diagonal term in the covariance matrix will be (see Appendix 7.3),

EQUATION

The variance of a single input with dropout will therefore propagate in an identical fashion to the vanilla case with a re-scaling σ 2 w → σ 2 w /ρ. Intuitively, this result implies that, for the case of a single input, the presence of dropout simply increases the effective variance of the weights.

Computing the off-diagonal term of the covariance matrix similarly (see Appendix 7.4),

ql ab = σ 2 w Dz 1 Dz 2 φ(ū 1 )φ(ū 2 ) + σ 2 b (12)

with ū1 , ū2 , and cl ab defined by analogy to the mean field equations without dropout. Here, unlike in the case of a single input, the recurrence relation is identical to the recurrence relation without dropout. To see that c * = 1 is no longer a fixed point of these dynamics consider what happens to eq. 12 when we input cl = 1. For simplicity, we leverage the short range of ξ q to replace ql aa = ql bb = q * . We find (see Appendix 7.5),

EQUATION

)

The second term is positive for any ρ < 1. This implies that if cl ab = 1 for any l then cl+1 ab < 1. Thus, c * = 1 is not a fixed point of eq. 12 for any ρ < 1. Since eq. 12 is identical in form to eq. 4 it follows that the depth scale for signal propagation with dropout will likewise be given by eq. 9 with the substitutions q * → q * and c * → c * computed using eq. 11 and eq. 12 respectively. Importantly, since there is no longer a sharp critical point with dropout we do not expect a diverging depth scale.

As in networks without dropout we plot, in fig. 3 w for different values of dropout from ρ = 1 (black) to ρ = 0.8 (blue). We see that for all values of dropout except for ρ = 1, c * does not show a sharp transition between an ordered phase and a chaotic phase. (c) The correlation depth scale ξ c as a function of σ 2 w for the same values of dropout as in (b). We see here that for all values of ρ except for ρ = 1 there is no divergence in ξ c .

To test these results we plot in fig. 3 (b ) the asymptotic correlation, c * , as a function of σ 2 w for different values of dropout from ρ = 0.8 to ρ = 1.0. As expected, we see that for all ρ < 1 there is no sharp transition between c * = 1 and c * < 1. Moreover as the dropout rate increases the correlation c * monotonically decreases. Intuitively this makes sense. Identical inputs passed through two different dropout masks will become increasingly dissimilar as the dropout rate increases. In fig. 3 (c ) we show the depth scale, ξ c , as a function of σ 2 w for the same range of dropout probabilities. We find that, as predicted, the depth of signal propagation with dropout is drastically reduced and, importantly, there is no longer a divergence in ξ c . Increasing the dropout rate continues to decrease the correlation depth for constant σ 2 w .

4. GRADIENT BACKPROPAGATION:

There is a duality between the forward propagation of signals and the backpropagation of gradients.

To elucidate this connection consider the backpropagation equations given a loss E,

EQUATION

with the identification δ l i = ∂E/∂z l i . Within mean field theory, it is clear that the scale of fluctuations of the gradient of weights in a layer will be proportional to E[(δ l i ) 2 ] (see appendix 7.6). In contrast to the pre-activations in forward propagation (eq. 1), the δ l i will typically not be Gaussian distributed even in the large layer width limit.

Nonetheless, we can work out a recurrence relation for the variance of the error, q l aa = E[(δ l i ) 2 ], leveraging the Gaussian ansatz on the pre-activations. In order to do this, however, we must first make an additional approximation that the weights used during forward propagation are drawn independently from the weights used in backpropagation. This approximation is similar in spirit to the vanilla mean field approximation and is reminiscent of work on feedback alignment (Lillicrap et al., 2014) . With this in mind we arrive at the recurrence (see appendix 7.7),

EQUATION

)

The presence of χ 1 in the above equation should perhaps not be surprising. In Poole et al. (2016) they show that χ 1 is intimately related to the tangent space of a given layer in mean field neural networks. We note that the backpropagation recurrence features an explicit dependence on the ratio of widths of adjacent layers of the network, N l+1 /N l . Here we will consider exclusively constant width networks where this factor is unity. For a discussion of the case of unequal layer widths see Glorot & Bengio (2010) .

Since χ 1 depends only on the asymptotic q * it follows that for constant width networks we expect eq. 15 to again have an exponential solution with,

EQUATION

Note that here ξ -1 ∇ =log χ 1 both above and below the transition. It follows that ξ ∇ can be both positive and negative. We conclude that there should be three distinct regimes for the gradients.

1. In the ordered phase, χ 1 < 1 and so ξ ∇ > 0. We therefore expect gradients to vanish over a depth |ξ ∇ |. 2. At criticality, χ 1 → 1 and so ξ ∇ → ∞. Here gradients should be stable regardless of depth. 3. In the chaotic phase, χ 1 > 1 and so ξ ∇ < 0. It follows that in this regime gradients should explode over a depth |ξ ∇ |.

Intuitively these three regimes make sense. To see this, recall that perturbations to a weight in layer l can alternatively be viewed as perturbations to the pre-activations in the same layer. In the ordered phase both the perturbed signal and the unperturbed signal will be asymptotically mapped to the same point and the derivative will be small. In the chaotic phase the perturbed and unperturbed signals will become asymptotically decorrelated and the gradient will be large. The depth scale for gradients predicted by theory (dashed line) compared with measurements from experiment (red dots). Similarity between theory and experiment is clear. Deviations near the critical point are primarily due to finite size effects.

To investigate these predictions we construct deep random networks of depth L = 240 and layerwidth N l = 300. We then consider the cross-entropy loss of these networks on MNIST. In fig. 4 (a) we plot the layer-by-layer 2-norm of the gradient, ||∇ W l ab E|| 2 2 , as a function of layer, l, for different values of σ 2 w . We see that ||∇ W l ab E|| 2 2 behaves exponentially over many orders of magnitude. Moreover, we see that the gradient vanishes in the ordered phase and explodes in the chaotic phase. We test the quantitative predictions of eq. 16 in fig. 4 (b) where we compare |ξ ∇ | as predicted from theory with the measured depth-scale constructed from exponential fits to the gradient data. Here we see good quantitative agreement between the theoretical predictions from mean field random networks and experimentally realized networks. Together these results suggest that the approximations on the backpropagation equations were representative of deep, wide, random networks.

Finally, we show that the depth scale for correlated signal propagation likewise controls the depth at which information stored in the covariance between gradients can survive. The existence of consistent gradients across similar samples from a training set ought to be especially important for determining whether or not a given neural network architecture can be trained. To establish this depth-scale first note (see Appendix 7.8) that the covariance between gradients of two different inputs, x i;1 and x i;2 , will be proportional to

(∇ W l ij E a ) • (∇ W l ij E b ) ∼ E[δ l i;a δ l i;b ] = q l

ab where E a is the loss evaluated on x i;a and δ i;a = ∂E a /∂z l i;a are appropriately defined errors.

It can be shown (see Appendix 7.9) that q l ab features the recurrence relation,

EQUATION

)

where u 1 and u 2 are defined similarly as for the forward pass. Expanding asymptotically it is clear that to zeroth order in l , ql ab will have an exponential solution with q l ab = q L ab e -(L-l)/ξc with ξ c as defined in the forward pass.

5. EXPERIMENTAL RESULTS:

Taken together, the results of this paper lead us to the following hypothesis: a necessary condition for a random network to be trained is that information about the inputs should be able to propagate forward through the network, and information about the gradients should be able to propagate backwards through the network. The preceding analysis shows that networks will have this property precisely when the network depth, L, is not much larger than the depth-scale ξ c . This criterion is data independent and therefore offers a "universal" constraint on the hyperparameters that depends on network architecture alone. We now explore this relationship between depth of signal propagation and network trainability empirically. w from a high accuracy (red) to low accuracy (black). In (a) we plot the training accuracy after 200 training steps on MNIST using SGD. Here overlayed in grey dashed lines are different multiples of the depth scale for correlated signal propagation, nξ c . We plot the accuracy in (b) after 2000 training steps on CIFAR10 using SGD, in (c) after 14000 training steps on MNIST using SGD, and in (d) after 300 training steps on MNIST using RMSPROP. Here we overlay in white dashed lines 6ξ c .

EQUATION

⇠ c 6⇠ c 4⇠ c 2⇠ c 6⇠ c 6⇠ c 6⇠ c

To investigate this prediction, we consider random networks of depth 10 ≤ L ≤ 300 and 1 ≤ σ 2 w ≤ 4 with σ 2 b = 0.05. We train these networks using Stochastic Gradient Descent (SGD) and RMSProp on MNIST and CIFAR10. We use a learning rate of 10 -3 for SGD when L 200, 10 -4 for larger L, and 10 -5 for RMSProp. These learning rates were selected by grid search between 10 -6 and 10 -2 in exponentially spaced steps of size 10. We note that the depth dependence of learning rate was explored in detail in Saxe et al. (2014) . In fig. 5 (a)-(d) we color in red the training accuracy that neural networks achieved as a function of σ 2 w and L for different datasets, training time, and choice of minimizer (see Appendix 7.10 for more comparisons). In all cases the neural networks over-fit the data to give a training accuracy of 100% and test accuracies of 98% on MNIST and 55% on CIFAR10. We emphasize that the purpose of this study is to demonstrate trainability as opposed to optimizing test accuracy.

We now make the connection between the depth scale, ξ c , and the maximum trainable depth more precise. Given the arguments in the preceding sections we note that if L = nξ c then signal through the network will be attenuated by a factor of e n . To understand how much signal can be lost while still allowing for training, we overlay in fig. 5 (a) curves corresponding to nξ c from n = 1 to 6. We find that networks appear to be trainable when L 6ξ c . It would be interesting to understand why this is the case.

Motivated by this argument in fig. 5 (b)-(d ) in white, dashed, overlay we plot twice the predicted depth scale, 6ξ c . There is clearly a relationship between the depth of correlated signal propagation and whether or not these networks are trainable. Networks closer to their critical point appear to train more quickly than those further away. Moreover, this relationship has no obvious dependence on dataset, duration of training, or minimizer. We therefore conclude that these bounds on trainable hyperparameters are universal. This in turn implies that to train increasingly deep networks, one must generically be ever closer to criticality.

L L (a) (b) (c) L 2 w 2 w 2 w 6⇠ c 6⇠ c 6⇠ c

Figure 6 : The effect of dropout on trainability. The same scheme as in fig. 5 but with dropout rates of (a) ρ = 0.99, (b) ρ = 0.98, and (c) ρ = 0.94. Even for modest amounts of dropout we see an upper bound on the maximum trainable depth for neural networks. We continue to see good agreement between the prediction of our theory and our experimental training accuracy.

Next we consider the effect of dropout. As we showed earlier, even infinitesimal amounts of dropout disrupt the order-to-chaos phase transition and cause the depth scale to become finite. However, since the effect of single dropout mask is to simply re-scale the weight variance by σ 2 w → σ 2 w /ρ, the gradient magnitude will be stable near criticality, while the input and gradient correlations will not be. This therefore offers a unique opportunity to test whether the relevant depth-scale is |1/ log χ 1 | or ξ c .

In fig. 6 we repeat the same experimental setup as above on MNIST with dropout rates ρ = 0.99, 0.98, and 0.94. We observe, first and foremost, that even extremely modest amounts of dropout limit the maximum trainable depth to about L = 100. We additionally notice that the depth-scale, ξ c , predicts the trainable region accurately for varying amounts of dropout.

6. DISCUSSION:

In this paper we have elucidated the existence of several depth-scales that control signal propagation in random neural networks. Furthermore, we have shown that the degree to which a neural network can be trained depends crucially on its ability to propagate information about inputs and gradients through its full depth. At the transition between order and chaos, information stored in the correlation between inputs can propagate infinitely far through these random networks. This in turn implies that extremely deep neural networks may be trained sufficiently close to criticality. However, our contribution goes beyond advocating for hyperparameter selection that brings random networks to be nearly critical. Instead, we offer a general purpose framework that predicts, at the level of mean field theory, which hyperparameters should allow a network to be trained. This is especially relevant when analyzing schemes like dropout where there is no critical point and which therefore imply an upper bound on trainable network depth.

An alternative perspective as to why information stored in the covariance between inputs is crucial for training can be understood by appealing to the correspondence between infinitely wide Bayesian neural networks and Gaussian Processes (Neal, 2012) . In particular the covariance, q l ab , is intimately related to the kernel of the induced Gaussian Process. It follows that cases in which signal stored in the covariance between inputs may propagate through the network correspond precisely to situations in which the associated Gaussian Process is well defined.

Our work suggests that it may be fruitful to investigate pre-training schemes that attempt to perturb the weights of a neural network to favor information flow through the network. In principle this could be accomplished through a layer-by-layer local criterion for information flow or by selecting the mean and variance in schemes like batch normalization to maximize the covariance depth-scale.

These results suggest that theoretical work on random neural networks can be used to inform practical architectural decisions. However, there is still much work to be done. For instance, the framework developed here does not apply to unbounded activations, such as rectified linear units, where it can be shown that there are phases in which eq. 3 does not have a fixed point. Additionally, the analysis here applies directly only to fully connected feed-forward networks, and will need to be extended to architectures with structured weight matrices such as convolutional networks.

We close by noting that in physics it has long been known that, through renormalization, the behavior of systems near critical points can control their behavior even far from the idealized critical case. We therefore make the somewhat bold hypothesis that a broad class of neural network topologies will be controlled by the fully-connected mean field critical point.

7. APPENDIX:

Here we present derivations of results from throughout the paper.

7.1. SINGLE INPUT DEPTH-SCALE:



Result::

Consider the recurrence relation for the variance of a single input,

EQUATION

)

and a fixed point of the dynamics, q * . q l aa can be expanded about the fixed point to yield the asymptotic recurrence relation,

EQUATION

)

Derivation:

We begin by first expanding to order l ,

EQUATION

We therefore arrive at the approximate reccurence relation,

EQUATION

Using the identity, Dzzf (z) = Dzf (z) we can rewrite this asymptotic recurrence relation as,

EQUATION

as required.

7.2. TWO INPUT DEPTH-SCALE:

Result:

Consider the recurrence relation for the co-variance of two input,

EQUATION

a correlation between the inputs, c l ab = q l ab / q l aa q l bb , and a fixed point of the dynamics, c * . c l ab can be expanded about the fixed point to yield the asymptotic recurrence relation, l+1 = l σ 2 w Dz 1 Dz 2 φ (u 1 )φ (u 2 ) + O ( l ) 2 .

(29)

Derivation:

Since the relaxation of q l aa and q l bb to q * occurs much more quickly than the convergence of q l ab we approximate q l aa = q l bb = q * as in Poole et al. (2016) . We therefore consider the perturbation q l ab /q * = c l ab = c * + l . It follows that we may make the approximation,

EQUATION

We now consider the case where c * < 1 and c * = 1 separately; we will later show that these two results agree with one another. First we consider the case where c * < 1 in which case we may safely expand the above equation to get,

EQUATION

Plugging in c l ab = 1 with q l aa ≈ q l bb ≈ q * we find that ū1 = ū2 = √ q * z 1 . It follows that,

EQUATION

as required. Here we have integrated out z 2 since nether ū1 nor ū2 depend on it.

7.6. MEAN FIELD GRADIENT SCALING:

Result:

In mean field theory the expected magnitude of the gradient ||∇ W l ij E|| 2 will be proportional to E[(δ l i ) 2 ]. Derivation:

We first note that since the W l ij are i.i.d. it follows that,

EQUATION

)

where we have used the fact that the first line is related to the sample expectation over the different realizations of the W l ij to approximate it by the analytic expectation in the second line. In mean field theory since the pre-activations in each layer are assumed to be i.i.d. Gaussian it follows that,

EQUATION

and the result follows.

7.7. MEAN FIELD BACKPROPAGATION:

Result:

In mean field theory the recursion relation for the variance of the errors, q l = E[(δ l i ) 2 ] is given by, q l aa = q l+1 aa N l+1 N l+2 χ 1 (q l aa ).

(65) Derivation:

7.10. FURTHER EXPERIMENTAL RESULTS:

Here we include some more experimental figures that investigate the effects of training time, minimizer, and dataset more closely. 

:



Figures and Tables:

Figure 1: Mean field criticality. (a) The mean field phase diagram showing the boundary between ordered and chaotic phases as a function of σ 2 w and σ 2 b . (b) The residual |q *q l aa | as a function of depth on a log-scale with σ 2 b = 0.05 and σ 2 w from 0.01 (red) to 1.7 (purple). Clear exponential behavior is observed. (c) The residual |c *c l ab | as a function of depth on a log-scale. Again, the exponential behavior is clear. The same color scheme is used here as in (b).

Figure 2: Depth scales. (a) The iterative correlation map showing c l+1 ab as a function of c l ab for three different values of σ 2 w . Green inset lines show the linearization of the iterative map about the critical point, e -1/ξc . The three curves show networks far in the ordered regime (red), at the edge of chaos (purple), and deep in the chaotic regime (blue). (b) The depth scale for information propagated in a single input, ξ q as a function of σ 2 w for σ 2 b = 0.01 (black) to σ 2 b = 0.3 (green). Dashed lines show theoretical predictions while solid lines show measurements. (c) The depth scale for correlations between inputs, ξ c for the same values of σ 2 b . Again dashed lines are the theoretical predictions while solid lines show measurements. Here a clear divergence is observed at the order-to-chaos transition.

Figure 3: Dropout destroys the critical point, and limits the depth to which information can propagate in a deep network. (a) The iterative correlation map showing cl+1 ab as a function of cl ab for three different values of the dropout rate ρ for networks tuned close to their critical point. Green inset lines show the linearization of the iterative map about the critical point, e -1/ξc . (b) The asymptotic value of the correlation map, c * , as a function of σ 2w for different values of dropout from ρ = 1 (black) to ρ = 0.8 (blue). We see that for all values of dropout except for ρ = 1, c * does not show a sharp transition between an ordered phase and a chaotic phase. (c) The correlation depth scale ξ c as a function of σ 2 w for the same values of dropout as in (b). We see here that for all values of ρ except for ρ = 1 there is no divergence in ξ c .

Figure 4: Gradient backpropagation behaves similarly to signal forward propagation. (a) The 2norm, ||∇ W l ab E|| 2 2 as a function of layer, l, for a 240 layer random network with a cross-entropy loss on MNIST. Different values of σ 2 w from 1.0 (blue) to 4.0 (red) are shown. Clear exponential vanishing / explosion is observed over many orders of magnitude. (b)The depth scale for gradients predicted by theory (dashed line) compared with measurements from experiment (red dots). Similarity between theory and experiment is clear. Deviations near the critical point are primarily due to finite size effects.

Figure 5: Mean field depth scales control trainable hyperparameters. The training accuracy for neural networks as a function of their depth and initial weight variance, σ 2 w from a high accuracy (red) to low accuracy (black). In (a) we plot the training accuracy after 200 training steps on MNIST using SGD. Here overlayed in grey dashed lines are different multiples of the depth scale for correlated signal propagation, nξ c . We plot the accuracy in (b) after 2000 training steps on CIFAR10 using SGD, in (c) after 14000 training steps on MNIST using SGD, and in (d) after 300 training steps on MNIST using RMSPROP. Here we overlay in white dashed lines 6ξ c .

Figure 7: Training accuracy on MNIST after (a) 45 (b) 304 (c) 2048 and (d) 13780 steps of SGD with learning rate 10 -3 .

Peer review (iclr2017):
The paper expands a recent mean-field approximation of deep random neural networks to study depth-dependent information propagation, its phase-dependence and the influence of drop-out. The paper is extremely well written, the mathematical analysis is thorough and numerical experiments are included that underscore the theoretical results. Overall the paper stands out as one of the few papers that thoroughly analyses training and performance of deep nets.