Title: ON THE SELECTION OF INITIALIZATION AND ACTIVA-TION FUNCTION FOR DEEP NEURAL NETWORKS Anonymous

Abstract: The weight initialization and the activation function of deep neural networks have a crucial impact on the performance of the training procedure. An inappropriate selection can lead to the loss of information of the input during forward propagation and the exponential vanishing/exploding of gradients during back-propagation. Understanding the theoretical properties of untrained random networks is key to identifying which deep networks may be trained successfully as recently demonstrated by Schoenholz et al. ( 2017) who showed that for deep feedforward neural networks only a specific choice of hyperparameters known as the 'edge of chaos' can lead to good performance. We complete this analysis by providing quantitative results showing that, for a class of ReLU-like activation functions, the information propagates indeed deeper for an initialization at the edge of chaos. By further extending this analysis, we identify a class of activation functions that improve the information propagation over ReLU-like functions. This class includes the Swish activation, φ swish (x) = x • sigmoid(x), used in Hendrycks & Gimpel (2016), Elfwing et al. (2017) and Ramachandran et al. (2017) . This provides a theoretical grounding for the excellent empirical performance of φ swish observed in these contributions. We complement those previous results by illustrating the benefit of using a random initialization on the edge of chaos in this context.

1. INTRODUCTION:

Deep neural networks have become extremely popular as they achieve state-of-the-art performance on a variety of important applications including language processing and computer vision; see, e.g., LeCun et al. (1998) . The success of these models has motivated the use of increasingly deep networks and stimulated a large body of work to understand their theoretical properties. It is impossible to provide here a comprehensive summary of the large number of contributions within this field. To cite a few results relevant to our contributions, Montufar et al. (2014) have shown that neural networks have exponential expressive power with respect to the depth while Poole et al. (2016) obtained similar results using a topological measure of expressiveness.

We follow here the approach of Poole et al. (2016) and Schoenholz et al. (2017) by investigating the behaviour of random networks in the infinite-width and finite-variance i.i.d. weights context where they can be approximated by a Gaussian process as established by Matthews et al. (2018) and Lee et al. (2018) .

In this paper, our contribution is two-fold. Firstly, we provide an analysis complementing the results of Poole et al. (2016) and Schoenholz et al. (2017) and show that initializing a network with a specific choice of hyperparameters known as the 'edge of chaos' is linked to a deeper propagation of the information through the network. In particular, we establish that for a class of ReLU-like activation functions, the exponential depth scale introduced in Schoenholz et al. (2017) is replaced by a polynomial depth scale. This implies that the information can propagate deeper when the network is initialized on the edge of chaos. Secondly, we outline the limitations of ReLU-like activation functions by showing that, even on the edge of chaos, the limiting Gaussian Process admits a degenerate kernel as the number of layers goes to infinity. Our main result (4) gives sufficient conditions for activation functions to allow a good 'information flow' through the network (Proposition 4) (in addition to being non-polynomial and not suffering from the exploding/vanishing gradient problem). These conditions are satisfied by the Swish activation φ swish (x) = x • sigmoid(x) used in Hendrycks & Gimpel (2016) , Elfwing et al. (2017) and Ramachandran et al. (2017) . In recent work, Ramachandran et al. (2017) used automated search techniques to identify new activation functions and found experimentally that functions of the form φ(x) = x • sigmoid(βx) appear to perform indeed better than many alternative functions, including ReLU. Our paper provides a theoretical grounding for these results. We also complement previous empirical results by illustrating the benefits of an initialization on the edge of chaos in this context. All proofs are given in the Supplementary Material.

2. ON GAUSSIAN PROCESS APPROXIMATIONS OF NEURAL NETWORKS AND THEIR STABILITY:



2.1. SETUP AND NOTATIONS:

We use similar notations to those of Poole et al. (2016) and Lee et al. (2018) . Consider a fully connected random neural network of depth L, widths (N l ) 1≤l≤L , weights W l ij iid ∼ N (0,

σ 2 w N l-1 ) and bias B l i iid ∼ N (0, σ 2 b )

, where N (µ, σ 2 ) denotes the normal distribution of mean µ and variance σ 2 . For some input a ∈ R d , the propagation of this input through the network is given for an activation function φ : R → R by

y 1 i (a) = d j=1 W 1 ij a j + B 1 i , y l i (a) = N l-1 j=1

W l ij φ(y l-1 j (a)) + B l i , for l ≥ 2.

(1)

Throughout the paper we assume that for all l the processes y l i (.) are independent (across i) centred Gaussian processes with covariance kernels κ l and write accordingly y l i ind ∼ GP(0, κ l ). This is an idealized version of the true processes corresponding to choosing N l-1 = +∞ (which implies, using Central Limit Theorem, that y l i (a) is a Gaussian variable for any input a). The approximation of y l i (.) by a Gaussian process was first proposed by Neal (1995) in the single layer case and has been recently extended to the multiple layer case by Lee et al. (2018) and Matthews et al. (2018) . We recall here the expressions of the limiting Gaussian process kernels. For any input a ∈ R d , E[y l i (a)] = 0 so that for any inputs

a, b ∈ R d κ l (a, b) = E[y l i (a)y l i (b)] = σ 2 b + σ 2 w E y l-1 i ∼GP (0,κ l-1 ) [φ(y l-1 i (a))φ(y l-1 i (b))] = σ 2 b + σ 2 w F φ (κ l-1 (a, a), κ l-1 (a, b), κ l-1 (b, b))

, where F φ is a function that depends only on φ. This gives a recursion to calculate the kernel κ l ; see, e.g., Lee et al. (2018) for more details. We can also express the kernel κ l in terms of the correlation c l ab in the l th layer used in the rest of this paper

q l ab := κ l (a, b) = E[y l i (a)y l i (b)] = σ 2 b + σ 2 w E[φ( q l-1 a Z 1 )φ( q l-1 b (c l-1 ab Z 1 + 1 -(c l-1 ab ) 2 Z 2 ))]

where q l-1 a := q l-1 aa , resp. c l-1 ab := q l-1 ab / q l-1 a q l-1 b , is the variance, resp. correlation, in the (l -1) th layer and Z 1 , Z 2 are independent standard Gaussian random variables. when it propagates through the network. q l a is updated through the layers by the recursive formula q l a = F (q l-1 a ), where F is the 'variance function' given by

F (x) = σ 2 b + σ 2 w E[φ( √ xZ) 2 ],

where Z ∼ N (0, 1).

(2)

Throughout the paper, Z, Z 1 , Z 2 will always denote independent standard Gaussian variables.

2.2. LIMITING BEHAVIOUR OF THE VARIANCE AND COVARIANCE OPERATORS:

We analyze here the limiting behaviour of q L a and c L a,b as the network depth L goes to infinity under the assumption that φ has a second derivative at least in the distribution sense 1 . From now onwards, we will also assume without loss of generality that c 1 ab ≥ 0 (similar results can be obtained straightforwardly when c 1 ab ≤ 0). We first need to define the Domains of Convergence associated with an activation function φ. 

) ∈ (R + ) 2 . (i) (σ b , σ w ) is in D φ,

var (domain of convergence for the variance) if there exists K > 0, q ≥ 0 such that for any input a with q 1 a ≤ K, lim l→∞ q l a = q. We denote by K φ,var (σ b , σ w ) the maximal K satisfying this condition. (ii) (σ b , σ w ) is in D φ,corr (domain of convergence for the correlation) if there exists K > 0 such that for any two inputs a, b with q 1 a , q 1 b ≤ K, lim l→∞ c l ab = 1. We denote by K φ,corr (σ b , σ w ) the maximal K satisfying this condition.

Remark : Typically, q in Definition 1 is a fixed point of the variance function defined in equation 2. Therefore, it is easy to see that for any (σ b , σ w ) such that F is increasing and admits at least one fixed point, we have K φ,corr (σ b , σ w ) ≥ q where q is the minimal fixed point; i.e. q := min{x : F (x) = x}. Thus, if we re-scale the input data to have q 1 a ≤ q, the variance q l a converges to q. We can also re-scale the variance σ w of the first layer (only) to assume that q 1 a ≤ q for all inputs a. The next result gives sufficient conditions on (σ b , σ w ) to be in the domains of convergence of φ.

Proposition 1. Let M φ := sup x≥0 E[|φ 2 (xZ) + φ (xZ)φ(xZ)|]. Assume M φ < ∞, then for σ 2 w < 1 M φ and any σ b , we have (σ b , σ w ) ∈ D φ,var and K φ,var (σ b , σ w ) = ∞ Let C φ,δ := sup x,y≥0,|x-y|≤δ,c∈[0,1] E[|φ (xZ 1 )φ (y(cZ 1 + √ 1 -c 2 Z 2 )|]. Assume C φ,δ < ∞ for some δ > 0, then for σ 2 w < min( 1 M φ , 1 C φ ) and any σ b , we have (σ b , σ w ) ∈ D φ,var ∩ D φ,corr and K φ,var (σ b , σ w ) = K φ,corr (σ b , σ w ) = ∞.

The proof of Proposition 1 is straightforward. We prove that sup F (x) = σ 2 w M φ and then apply the Banach fixed point theorem; similar ideas are used for C φ,δ .

Example : For ReLU activation function, we have M ReLU = 2 and C ReLU,δ ≤ 1 for any δ > 0.

In the domain of convergence D φ,var ∩ D φ,corr , for all a, b ∈ R d , y ∞ i (a) = y ∞ i (b) almost surely and the outputs of the network are constant functions. Figure 1 illustrates this behaviour for d = 2 for ReLU and Tanh using a network of depth L = 10 with N l = 100 neurons per layer. The draws of outputs of these networks are indeed almost constant.

To refine this convergence analysis, Schoenholz et al. (2017) established the existence of q and c such that |q l a -q| ∼ e -l/ q and |c l ab -1| ∼ e -l/ c when fixed points exist. The quantities q and c are called 'depth scales' since they represent the depth to which the variance and correlation can propagate without being exponentially close to their limits. More precisely, if we write

χ 1 = σ 2 w E[φ ( √ qZ) 2 ] and α = χ 1 + σ 2 w E[φ ( √ qZ)φ( √ qZ)]

then the depth scales are given by r = -log(α) -1 and c = -log(χ 1 ) -1 . The equation χ 1 = 1 corresponds to an infinite depth scale of the correlation. It is called the edge of chaos as it separates two phases: an ordered phase where the correlation converges to 1 if χ 1 < 1 and a chaotic phase where χ 1 > 1 and the correlations do not converge to 1. In this chaotic regime, it has been observed in Schoenholz et al. (2017) that the correlations converge to some random value c < 1 when φ(x) = Tanh(x) and that c is independent of the correlation between the inputs. This means that very close inputs (in terms of correlation) lead to very different outputs. Therefore, in the chaotic phase, the output function of the neural network is non-continuous everywhere. Definition 2. For (σ b , σ w ) ∈ D φ,var , let q be the limiting variance2 . The Edge of Chaos, hereafter EOC, is the set of values of (σ b , σ w ) satisfying

χ 1 = σ 2 w E[φ ( √ qZ) 2 ] = 1.

To further study the EOC regime, the next lemma introduces a function f called the 'correlation function' simplifying the analysis of the correlations. It states that the correlations have the same asymptotic behaviour as the time-homogeneous dynamical system

c l+1 ab = f (c l ab ). Lemma 1. Let (σ b , σ w ) ∈ D φ,var ∩ D φ,corr such that q > 0, a, b ∈ R d and φ an activation function such that sup x∈S E[φ(xZ) 2 ] < ∞ for all compact sets S. Define f l by c l+1 ab = f l (c l ab ) and f by f (x) = σ 2 b +σ 2 w E[φ( √ qZ1)φ( √ q(xZ1+ √ 1-x 2 Z2)) q . Then lim l→∞ sup x∈[0,1] |f l (x) -f (x)| = 0.

The condition on φ in Lemma 1 is violated only by activation functions with exponential growth (which are not used in practice), so from now onwards, we use this approximation in our analysis. Note that being on the EOC is equivalent to (σ b , σ w ) satisfying f (1) = 1. In the next section, we analyze this phase transition carefully for a large class of activation functions. To illustrate the effect of the initialization on the EOC, we plot in Figure 2 the output of a ReLU neural network with 20 layers and 100 neurons per layer with parameters (σ 2 b , σ 2 w ) = (0, 2) (as we will see later EOC = {(0, √ 2)} for ReLU). Unlike the output in Figure 1 , this output displays much more variability. However, we will prove here that the correlations still converges to 1 even in the EOC regime, albeit at a slower rate.

3. EDGE OF CHAOS:



3.1. RELU-LIKE ACTIVATION FUNCTIONS:

We consider activation functions φ of the form: φ(x) = λx if x > 0 and φ(x) = βx if x ≤ 0. ReLU corresponds to λ = 1 and β = 0. For this class of activation functions, we see (Proposition 2) that the variance is unchanged (q l a = q 1 a ) on the EOC, so that q does not formally exist in the sense that the limit of q l a depends on a. However, this does not impact the analysis of the correlations. Proposition 2. Let φ be a ReLU-like function with λ and β defined above. Then for any σ w <

2 λ 2 +β 2 and σ b ≥ 0, we have (σ b , σ w ) ∈ D φ,var with K φ,var (σ b , σ w ) = ∞. More- over EOC = {(0, 1 √ E[φ (Z) 2 ]

)} and, on the EOC, F (x) = x for any x ≥ 0. This class of activation functions has the interesting property of preserving the variance across layers when the network is initialized on the EOC. However, we show in Proposition 3 below that, even in the EOC regime, the correlations converge to 1 but at a slower rate. We only present the result for ReLU but the generalization to the whole class is straightforward.

Example : ReLU: The EOC is reduced to the singleton (σ 2 b , σ 2 w ) = (0, 2), which means we should initialize a ReLU network with the parameters (σ 2 b , σ 2 w ) = (0, 2). This result coincides with the 2017) also performed a similar analysis by using the "Scaled Exponential Linear Unit" activation (SELU) that makes it possible to center the mean and normalize the variance of the post-activation φ(y). The propagation of the correlation was not discussed therein either. In the next result, we present the correlation function corresponding to ReLU networks. This was first obtained in Cho & Saul (2009) .

We present an alternative derivation of this result and further show that the correlations converge to 1 at a polynomial rate of 1/l 2 instead of an exponential rate.

Proposition 3 (ReLU kernel). Consider a ReLU network with parameters (σ 2 b , σ 2 w ) = (0, 2) on the EOC.We have 3 displays the correlation function f with two different sets of parameters (σ b , σ w ). The red graph corresponds to the EOC (σ 2 b , σ 2 w ) = (0, 2), and the blue one corresponds to an ordered phase (σ b , σ w ) = (1, 1). In unreported experiments, we observed that numerical convergence towards 1 for l ≥ 50 on the EOC. As the variance q l a is preserved by the network (q l a = q 1 a = 2 a 2 /d) and the correlations c l ab converge to 1 as l increases, the output function is of the form C • a for a constant C (notice that in Figure 2 , we start observing this effect for depth 20).

(i) for x ∈ [0, 1], f (x) = 1 π x arcsin(x) + 1 π √ 1 -x 2 + 1 2 x, ii) for any (a, b), lim l→∞ c l ab = 1 and 1 -c l ab ∼ 9π 2 2l 2 as l → ∞. Figure

3.2. A BETTER CLASS OF ACTIVATION FUNCTIONS:

We now introduce a set of sufficient conditions for activation functions which ensures that it is then possible to tune (σ b , σ w ) to slow the convergence of the correlations to 1. This is achieved by making the correlation function f sufficiently close to the identity function. Proposition 4 (Main Result). Let φ be an activation function. Assume that (i) φ(0) = 0, and φ has right and left derivatives in zero and φ (0 + ) = 0 or φ (0 -) = 0, and there

exists k > 0 such that φ(x) x ≤ k. (ii) There exists A > 0 such that for any σ b ∈ [0, A], there exists σ w > 0 such that (σ b , σ w ) ∈ EOC. (iii) For any σ b ∈ [0, A], the function F with parameters (σ b , σ w ) ∈ EOC is non-decreasing and lim σ b →0 q = 0 where q is the minimal fixed point of F , q := inf{x : F (x) = x}. (iv) For any σ b ∈ [0, A], the correlation function f with parameters (σ b , σ w ) ∈ EOC introduced in Lemma 1 is convex.

Then, for any σ b ∈ [0, A], we have K φ,var (σ b , σ w ) ≥ q, and lim

σ b →0 (σ b ,σw)∈EOC sup x∈[0,1] |f (x) -x| = 0.

Note that ReLU does not satisfy the condition (ii) since the EOC in this case is the singleton (σ 2 b , σ 2 w ) = (0, 2). The result of Proposition 4 states that we can make f (x) close to x by considering σ b → 0. However, this is under condition (iii) which states that lim σ b →0 q = 0. Therefore, practically, we cannot take σ b too small. One might wonder whether condition (iii) is necessary for this result to hold. The next lemma shows that removing this condition results in a useless class of activation functions. The next proposition gives sufficient conditions for bounded activation functions to satisfy all the conditions of Proposition 4.

Proposition 5. Let φ be a bounded function such that φ(0

EQUATION

> 0 and xφ (x) < 0 for x = 0, and φ satisfies (ii) in Proposition 4. Then, φ satisfies all the conditions of Proposition 4.

The conditions in Proposition 5 are easy to verify and are, for example, satisfied by Tanh and Arctan. We can also replace the assumption "φ satisfies (ii) in Proposition 4" by a sufficient condition (see Proposition 7 in the Supplementary Material). Tanh-like activation functions provide better information flow in deep networks compared to ReLU-like functions. However, these functions suffer from the vanishing gradient problem during back-propagation; see, e.g., Pascanu et al. (2013) and Kolen & Kremer (2001) . Thus, an activation function that satisfies the conditions of Proposition 4 (in order to have a good 'information flow') and does not suffer from the vanishing gradient issue is expected to perform better than ReLU. Swish is a good candidate.

Proposition 6. The Swish activation function φ swish (x) = x • sigmoid(x) = x 1+e -x satisfies all the conditions of Proposition 4.

It is clear that Swish does not suffer from the vanishing gradient problem as it has a gradient close to 1 for large inputs like ReLU. Figure 4 (a) displays f for Swish for different values of σ b . We see that f is indeed approaching the identity function when σ b is small, preventing the correlations from converging to 1. Figure 4 (b) displays a draw of the output of a neural network of depth 30 and width 100 with Swish activation, and σ b = 0.2. The outputs displays much more variability than the ones of the ReLU network with the same architecture. We present in Table 1 some values of (σ b , σ w ) on the EOC as well as the corresponding limiting variance for Swish. As condition (iii) of Proposition 4 is satisfied, the limiting variance q decreases with σ b . 

4. EXPERIMENTAL RESULTS:

We demonstrate empirically our results on the MNIST dataset. In all the figures below, we compare the learning speed (test accuracy with respect to the number of epochs/iterations) for different activation functions and initialization parameters. We use the Adam optimizer with learning rate lr = 0.001. The Python code to reproduce all the experiments will be made available on-line.

Initialization on the Edge of Chaos We initialize randomly the deep network by sampling

W l ij iid ∼ N (0, σ 2 w /N l-1 ) and B l i iid ∼ N (0, σ 2 b ).

In Figure 5 , we compare the learning speed of a Swish network for different choices of random initialization. Any initialization other than on the edge of chaos results in the optimization algorithm being stuck eventually at a very poor test accuracy of ∼ 0.1 as the depth L increases (equivalent to selecting the output uniformly at random). To understand what is happening in this case, let us recall how the optimization algorithm works. Let {(X i , Y i ), 1 ≤ i ≤ N } be the MNIST dataset. The loss we optimize is given by L(w, b) = N i=1 (y L (X i ), Y i )/N where y L (x) is the output of the network, and is the categorical cross-entropy loss. In the ordered phase, we know that the output converges exponentially to a fixed value (same value for all X i ), thus a small change in w and b will not change significantly the value of the loss function, therefore the gradient is approximately zero and the gradient descent algorithm will be stuck around the initial value. from the vanishing gradient problem. Consequently, we expect Tanh to perform better than ReLU for shallow networks as opposed to deep networks, where the problem of the vanishing gradient is not encountered. Numerical results confirm this fact. Figure 6 shows curves of validation accuracy with confidence interval 90% (30 simulations). For depth 5, the learning algorithm converges faster for Tanh compared to ReLu. However, for deeper networks (L ≥ 40), Tanh is stuck at a very low test accuracy, this is due to the fact that a lot of parameters remain essentially unchanged because the gradient is very small.

ReLU versus Swish As established in Section 3.2, Swish, like Tanh, propagates the information better than ReLU and, contrary to Tanh, it does not suffer from the vanishing gradient problem. Hence our results suggest that Swish should perform better than ReLU, especially for deep architectures. Numerical results confirm this fact. Figure 7 shows curves of validation accuracy with confidence interval 90% (30 simulations). Swish performs clearly better than ReLU especially for depth 40. A comparative study of final accuracy is shown in Table 2 . We observe a clear advantage for Swish, especially for large depths. Additional simulations results on diverse datasets demonstrating better performance of Swish over many other activation functions can be found in Ramachandran et al.

(2017) (Notice that these authors have already implemented Swish in Tensorflow). 

5. CONCLUSION AND DISCUSSION:

We have complemented here the analysis of Schoenholz et al. (2017) which shows that initializing networks on the EOC provides a better propagation of information across layers. In the ReLU case, such an initialization corresponds to the popular approach proposed in He et al. (2015) . However, even on the EOC, the correlations still converge to 1 at a polynomial rate for ReLU networks. We have obtained a set of sufficient conditions for activation functions which further improve information propagation when the parameters (σ b , σ w ) are on the EOC. The Tanh activation satisfied those conditions but, more interestingly, other functions which do not suffer from the vanishing/exploding gradient problems also verify them. This includes the Swish function used in Hendrycks & Gimpel (2016) , Elfwing et al. (2017) and promoted in Ramachandran et al. (2017) but also ELU Clevert et al. (2016) .

Our results have also interesting implications for Bayesian neural networks which have received renewed attention lately; see, e.g., Hernandez-Lobato & Adams (2015) and Lee et al. (2018) . They show that if one assigns i.i.d. Gaussian prior distributions to the weights and biases, the resulting prior distribution will be concentrated on close to constant functions even on the EOC for ReLU-like activation functions. To obtain much richer priors, our results indicate that we need to select not only parameters (σ b , σ w ) on the EOC but also an activation function satisfying Proposition 4.

A PROOFS:

We provide in the supplementary material the proofs of the propositions presented in the main document, and we give additive theoretical and experimental results. For the sake of clarity we recall the propositions before giving their proofs.

A.1 CONVERGENCE TO THE FIXED POINT: PROPOSITION 1

Proposition 1. Let M φ := sup x≥0 E[|φ 2 (xZ) + φ (xZ)φ(xZ)|]. Suppose M φ < ∞, then for σ 2 w < 1 M φ and any σ b , we have (σ b , σ w ) ∈ D φ,var and K φ,var (σ b , σ w ) = ∞ Moreover, let C φ,δ := sup x,y≥0,|x-y|≤δ,c∈[0,1] E[|φ (xZ 1 )φ (y(cZ 1 + √ 1 -c 2 Z 2 )|]. Suppose C φ,δ < ∞ for some positive δ, then for σ 2 w < min( 1 M φ , 1 C φ ) and any σ b , we have (σ b , σ w ) ∈ D φ,var ∩ D φ,corr and K φ,var (σ b , σ w ) = K φ,corr (σ b , σ w ) = ∞.

Proof. To abbreviate the notation, we use q l := q l a for some fixed input a. Convergence of the variances: We first consider the asymptotic behaviour of q l = q l a . Recall that q l = F (q l-1 ) where,

F (x) = σ 2 b + σ 2 w E[φ( √ xZ) 2 ].

The first derivative of this function is given by:

EQUATION

where we used Gaussian integration by parts

E[ZG(Z)] = E[G (Z)], an identify satisfied by any function G such that E[|G (Z)|] < ∞.

Using the condition on φ, we see that for σ 2 w < 1 M φ , the function F is a contraction mapping, and the Banach fixed-point theorem guarantees the existence of a unique fixed point q of F , with lim l→+∞ q l = q. Note that this fixed point depends only on F , therefore, this is true for any input a, and K φ,var (σ b , σ w ) = ∞.

Convergence of the covariances: Since M φ < ∞, then for all a, b ∈ R d there exists l 0 such that, for all l > l 0 , | q l a -q l b | < δ. Let l > l 0 , using Gaussian integration by parts, we have

dc l+1 ab dc l ab = σ 2 w E[|φ ( q l a Z 1 )φ ( q l b (c l ab Z 1 + 1 -(c l ab ) 2 Z 2 )|].

We cannot use the Banach fixed point theorem directly because the integrated function here depends on l through q l . For ease of notation, we write c l := c l ab , we have

|c l+1 -c l | = | c l c l-1 dc l+1 dc l (x)dx| ≤ σ 2 w C φ |c l -c l-1 |.

Therefore, for σ 2 w < min( 1 M φ , 1 C φ ), c l is a Cauchy sequence and it converges to a limit c ∈ [0, 1] . At the limit

c = f (c) = σ 2 b + σ 2 w E[φ( √ qz 1 )φ( √ q(cz 1 + √ 1 -c 2 z 2 )))] q ,

The derivative of this function is given by

f (x) = σ 2 w E[φ ( √ qZ 1 )φ ( √ q(xZ 1 + √ 1 -xZ 2 )]

By assumption on φ and the choice of σ w , we have sup x |f (x)| < 1, so that f is a contraction, and has a unique fixed point. Since f (1) = 1, c = 1. The above result is true for any a, b, therefore,

K φ,var (σ b , σ w ) = K φ,corr (σ b , σ w ) = ∞.

As an illustration we plot in Figure 12 the variance for three different inputs with (σ b , σ w ) = (1, 1), as a function of the layer l. In this example, the convergence for Tanh is faster than that of ReLU. 

(x) = σ 2 b +σ 2 w E[φ( √ qZ1)φ( √ q(xZ1+ √ 1-x 2 Z2)) q . Then lim l→∞ sup x∈[0,1] |f l (x) -f (x)| = 0. Proof. For x ∈ [0, 1], we have f l (x) -f (x) = ( 1 q l a q l b - 1 q )(σ 2 b + σ 2 w E[φ( q l a Z 1 )φ( q l b u 2 (x))]) + σ 2 w q (E[φ( q l a Z 1 )φ( q l b u 2 (x))] -E[φ( √ qZ 1 )φ( √ qu 2 (x))]),

where u 2 (x) :

= xZ 1 + √ 1 -x 2 Z 2 .

The first term goes to zero uniformly in x using the condition on φ and Cauchy-Schwartz inequality. As for the second term, it can be written as

E[(φ( q l a Z 1 ) -φ( √ qZ 1 ))φ( q l b u 2 (x))] + E[φ( √ qZ 1 )(φ( q l b u 2 (x)) -φ( √ qu 2 (x)))]

again, using Cauchy-Schwartz and the condition on φ, both terms can be controlled uniformly in x by an integrable upper bound. We conclude using the Dominated convergence.

A.2 RESULTS FOR RELU-LIKE ACTIVATION FUNCTIONS: PROOF OF PROPOSITIONS 2 AND 3

Proposition 2. Let φ be a ReLU-like function with λ and β defined above. Then for any σ w <

2 λ 2 +β 2 and σ b ≥ 0, we have (σ b , σ w ) ∈ D φ,var with K φ,var (σ b , σ w ) = ∞. Moreover EOC = {(0, 1 √ E[φ (Z) 2 ]

)} and, on the EOC, F (x) = x for any x ≥ 0.

Proof. We write q l = q l a throughout the proof. Note first that the variance satisfies the recursion:

q l+1 = σ 2 b + σ 2 w E[φ(Z) 2 ]q l = σ 2 b + σ 2 w λ 2 + β 2 2 q l . (4) For all σ w < 2 λ 2 +β 2 , q = σ 2 b 1 -σ 2 w (λ 2 + β 2 )/2

-1 is a fixed point. This is true for any input, therefore K φ,var (σ b , σ w ) = ∞ and (i) is proved. Now, the EOC equation is given by

χ 1 = σ 2 w E[φ (Z) 2 ] = σ 2 w λ 2 +β 2 2 . Therefore, σ 2 w = 2 λ 2 +β 2 . Replacing σ 2

w by its critical value in equation 4 yields

q l+1 = σ 2 b + q l .

Thus q = σ 2 b + q if and only if σ b = 0, otherwise q l diverges to infinity. So the frontier is reduced to a single point (σ 2 b , σ 2 w ) = (0, E[φ (Z) 2 ] -1 ), and the variance does not depend on l.

Proposition 3 (ReLU kernel). Consider a ReLU network with parameters (σ 2 b , σ 2 w ) = (0, 2) on the EOC.We have

(i) for x ∈ [0, 1], f (x) = 1 π x arcsin(x) + 1 π √ 1 -x 2 + 1 2 x, ii) for any (a, b), lim l→∞ c l ab = 1 and 1 -c l ab ∼ 9π 2 2l 2 as l → ∞.

Proof. In this case the correlation function f is given by f

(x) = 2E[(Z 1 ) + (xZ 1 + √ 1 -x 2 Z 2 ) + ] where (x) + := x1 x>0 . • Let x ∈ [0, 1], note that f is differentiable and satisfies, f (x) = 2E[1 Z1>0 1 xZ1+ √ 1-x 2 Z2>0 ],

which is also differentiable. Simple algebra leads to

f " (x) = 1 π √ 1 -x 2 . Since arcsin (x) = 1 √ 1-x 2 and f (0) = 1/2, f (x) = 1 π arcsin(x) + 1 2 .

We conclude using the fact that arcsin = x arcsin + √ 1 -x 2 and f (1) = 1.

• We first derive a Taylor expansion of f near 1. Consider the change of variable x = 1 -t 2 with t close to 0, then

EQUATION

x arcsin(x) = π 2 - √ 2(1 -x) 1/2 + 11 √ 2 12 (1 -x) 3/2 + O((1 -x) 5/2 ). Since 1 -x 2 = √ 2(1 -x) 1/2 - √ 2 4 (1 -x) 3/2 + O((1 -x) 5/2 ),

we obtain that

f (x) = x→1- x + 2 √ 2 3π (1 -x) 3/2 + O((1 -x) 5/2 ). (5) Since (f (x) -x) = 1 π (arcsin(x) -π 2 ) < 0 and f (1) = 1, for all x ∈ [0, 1[, f (x) > x. If c l < c l+1

then by taking the image by f (which is increasing because f ≥ 0) we have that c l+1 < c l+2 , and we know that c 1 = f (c 0 ) ≥ c 0 , so by induction the sequence c l is increasing, and therefore it converges (because it is bounded) to the fixed point of f which is 1. Now let γ l := 1 -c l ab for a, b fixed. We note s = 2 √ 2 3π , from the series expansion we have that γ l+1 = γ l -sγ

3/2 l + O(γ 5/2 l ) so that γ -1/2 l+1 = γ -1/2 l (1 -sγ 1/2 l + O(γ 3/2 l )) -1/2 = γ -1/2 l (1 + s 2 γ 1/2 l + O(γ 3/2 l )) = γ -1/2 l + s 2 + O(γ l ).

Thus, as l goes to infinity γ

-1/2 l+1 -γ -1/2 l

∼ s 2 and by summing and equivalence of positive divergent series

γ -1/2 l ∼ s 2 l,

which terminates the proof.

A.3 A BETTER CLASS OF ACTIVATION FUNCTIONS: PROOFS OF PROPOSITIONS 4, 5, 6 AND LEMMA 2

Proposition 4 (main result). Let φ be an activation function. Recall the definition of the variance function

F (x) := σ 2 b + σ 2 w E[φ( √ xZ) 2 ].

Assume that (i) φ(0) = 0, and φ has right and left derivatives in zero and at least one of them is different from zero (φ (0 + ) = 0 or φ (0 -) = 0), and there exists K > 0 such that φ(x) x ≤ K. (ii) There exists A > 0 such that for any σ b ∈ [0, A], there exists σ w,EOC > 0 such that (σ b , σ w,EOC ) ∈ EOC. (iii) For any σ b ∈ [0, A], the function F with parameters (σ b , σ w,EOC ) is non-decreasing and lim σ b →0 q = 0 where q is the minimal fixed point of F , q := inf{x :

F (x) = x}). (iv) For any σ b ∈ [0, A], the correlation function f with parameters (σ b , σ w,EOC ) introduced in Lemma 1 is convex.

Then, for any σ b ∈ [0, A], we have K φ,var (σ b , σ w ) ≥ q, and lim

σ b →0 (σ b ,σw)∈EOC sup x∈[0,1] |f (x) -x| = 0.

Proof. We first prove that K φ,var (σ b , σ w ) ≥ q. We assume that σ b > 0, the case σ b = 0 is trivial since in this case q = 0 (the output of the network is zero in this case).

Since F is continuous and F (0) = σ 2 b > 0, we have x ≤ F (x) ≤ q for all x ∈ [0, q]. Using the fact that F is non-decreasing for any input a such that q 1 a ≤ q, we have q l is increasing and converges to the fixed point q. Therefore K φ,var (σ b , σ w ) ≥ q. Now we prove that on the edge of chaos, we have lim

EQUATION

The EOC equation is given by σ 2 w E[φ ( √ qZ) 2 ] = 1. By taking the limit σ b → 0 on the edge of chaos, and using the fact that lim σ b →0 q = 0, we have σ 2

w φ (0 + ) 2 +φ (0 -) 2 2 = 1. Moreover q verifies F (q) q = 1 = σ 2 b q + σ 2 w E[( φ( √ qZ) √ q ) 2 ],

so that by taking the limit σ b → 0, and using the dominated convergence theorem, we have that

1 = lim σ b →0 σ 2 b q + σ 2 w φ (0 + ) 2 +φ (0 -) 2 2 = lim σ b →0 σ 2 b q + 1 and equation 6 holds. Finally since f is strictly convex, for all x ∈ [0, 1] f (x) ≤ f (1) = 1 if (σ b , σ w ) ∈ EOC. Therefore 0 ≤ f (x) -x ≤ f (0) = σ 2 b q , we conclude using the fact that lim σ b →0 σ 2 b q = 0.

Note however that for all σ b > 0, if (σ b , σ w ) ∈ EOC, for any inputs a, b, we have lim l→∞ c l a,b = 1. Indeed, since f is usually strictly convex (otherwise, f would be equal to identity on at least a segment of [0, 1]) and f (1) = 1, we have that f is a contraction (because f ≥ 0), therefore the correlation converges to the unique fixed point of f which is 1. Therefore, in most of the cases, the result of Proposition 4 should be seen as a way of slowing down the convergence of the correlation to 1.

Lemma 2. Under the conditions of Proposition 4, the only change being lim σ b →0 q > 0, the result of Proposition 4 holds only if the activation function is linear.

Proof. Using the convexity of f and the result of Proposition 4, we have in the limit σ b → 0,

f (0) = f (1) = 1, which is equivalent to E[φ ( √ qZ) 2 ] = E[φ ( √ qZ)

] 2 which implies that var(φ ( √ qZ)) = 0. Therefore there exists a constant a 1 such that φ ( √ qZ) = a 1 almost surely. This implies φ = a 1 almost everywhere.

Proposition 5. Let φ be a bounded function such that φ(0) = 0, φ (0) > 0, φ (x) ≥ 0, φ(-x) = -φ(x), xφ(x) > 0 and xφ (x) < 0 for x = 0, and φ satisfies (ii) in Proposition 4. Then, φ satisfies all the conditions of Proposition 4.

Proof. Let φ be an activation function that satisfies the conditions of Proposition 5.

(i) we have φ(0) = 0 and φ (0) > 0. Since φ is bounded and 0 < φ (0) < ∞, then there exists K such that φ(x)

x ≤ K.

(ii) The condition (ii) is satisfied by assumption.

(iii) Let σ b > 0 and σ w > 0. Using equation 3 together with φ > 0, we have F (x) ≥ 0 so that F is non-decreasing. Moreover, we have

F (R + ) ⊂ [B, C] := [σ 2 b , σ 2 b + σ 2 w M 2 ],

therefore any fixed point of F should be in [B, C] . We have F (B) ≥ B and F (C) ≤ C and F is strictly increasing, therefore, there exists a fixed point q of F in [B, C]. Now we prove that lim σ b →0 q = 0. Using the EOC equation, q satisfies the equation q

= σ 2 b + E[φ( √ qZ) 2 ] E[φ ( √ qZ) 2 ] . Now let's prove that the function e(x) := x -E[φ( √ xZ) 2 ] E[φ ( √ xZ) 2 ]

is increasing near 0 which means it is an injection near 0, this is sufficient to conclude (because we take q to be the minimal fixed point). After some calculus, we have

e (x) = - E[φ ( √ xZ)(φ( √ xZ)E[φ ( √ xZ) 2 ] -Z √ x φ ( √ xZ)E[φ( √ xZ) 2 ])] E[φ ( √ xZ) 2 ]

Using Taylor expansion near 0, after a detailed but unenlightening calculation the numerator is equal to -2φ (0) 2 φ (0) 2 x √ x + O(x 2 ), therefore the function e is increasing near 0.

(iv) Finally, using the notations U 1 := √ qZ 1 and U 2 (x) = √ q(xZ 1 + √ 1 -x 2 Z 2 ), the first and second derivatives of the correlation function are given by

f (x) = σ 2 w E[φ (U 1 )φ (U 2 (x))], f (x) = σ 2 w qE[φ (U 1 )φ (U 2 (x))]

where we used Gaussian integration by parts. Let x > 0, we have that

E[φ (U 1 )φ (U 2 (x))] = E[1 {U1≥0} φ (U 1 )φ (U 2 (x))] + E[1 {U1≤0} φ (U 1 )φ (U 2 (x))] = 2E[1 {U1≥0} φ (U 1 )φ (U 2 (x))]

where we used the fact that (Z 1 , Z 2 ) = (-Z 1 , -Z 2 ) (in distribution) and φ (-y) = -φ (y) for any y.

Using xφ (x) ≤ 0, we have 1 {u1≥0} φ (u 1 ) ≤ 0. We also have for all y > 0, E[φ (U 2 (x))|U 1 = y] < 0, this is a consequence of the fact that φ is an odd function and that for x > 0 and y > 0, the mapping z 2 → xy + √ 1 -x 2 z 2 moves the center of the Gaussian distribution to a strictly positive number, we conclude that f (x) > 0 almost everywhere and assumption (iii) of Proposition 4 is verified.

Proposition 6. The Swish activation function φ swish (x) = x • sigmoid(x) = x 1+e -x satisfies all the conditions of Proposition 4. Proof. To abbreviate notation, we note φ := φ Swish = xe x /(1 + e x ) and h := e x /(1 + e x ) is the Sigmoid function. This proof should be seen as a sketch of the ideas and not a rigourous proof.

• we have φ(0) = 0 and φ (0) = 1 2 and φ(x)

x ≤ 1

• As illustrated in Table 1 in the main text, it is easy to see numerically that (ii) is satisfied. Moreover, we observe that lim σ b →0 q = 0, which proves the second part of the (iii).

• Now we prove that F > 0, we note g(x) := xφ (x)φ(x). We have

g(x) = x 2 (1 + e -x + xe -x ) (1 + e -x ) 3 Define G by G(x) = g(x) if x ≤ 0 -g(-x) if x > 0 so that G(-x) = -G(x) for all x ∈ R and g(x) ≥ G(x) for all x ≤ 0. Let x > 0, then g(x) > G(x) ⇐⇒ 1 + e -x + xe -x ≥ e -3x (-1 -e x + xe x )

which holds true for any positive number x. We thus have g(x) > G(x) for all real numbers x. Therefore E[g( √ xZ)] > 0 almost everywhere and F > 0. The second part of (iii) was already proven above.

• Let σ b > 0 and σ w > 0 such that q exists. Recall that

f (x) = σ 2 w qE[φ (U 1 )φ (U 2 (x))]

In Figure 10 , we show the graph of E[φ (U 1 )φ (U 2 (x))] for different values of q (from 0.1 to 10, the darkest line being for q = 10). A rigorous proof can be done but is omitted here.

Figure 10 : graphs of E[φ (U 1 )φ (U 2 (x))] for different values of q (from 0.1 to 10, the darkest line corresponds to q = 10)

We observe that f has very small values when q is large, this is a result of the fact that φ is concentrated around 0.

Remark : On the edge of chaos, we have σ

EQUATION

The term E[φ ( √ qZ)φ( √ qZ)] is very small compared to 1 (∼ 0.01), therefore F (q) ≈ 1.

Notice also that the theoretical results corresponds to the equivalent Gaussian process, which is just an approximation of the neural network. Thus, using a value of (σ b , σ w ) close to the EOC should not essentially change the quality of the result.

B SUPPLEMENTARY THEORETICAL RESULTS:



B.1 SUFFICIENT CONDITIONS FOR BOUNDED ACTIVATION FUNCTIONS:

We can replace the conditions "φ satisfies (ii)" in Proposition 5 by a sufficient condition. However, this condition is not satisfied by Tanh. Proposition 7. Let φ be a bounded function such that φ(0) = 0, φ (0) > 0, φ (x) ≥ 0, φ(-x) = -φ(x), xφ(x) > 0 and xφ (x) < 0 for x = 0, and |Eφ (xZ) 2 | |x| -2β for large x and some β ∈ (0, 1). Then, φ satisfies all the conditions of Proposition 4.

Proof. Let φ be an activation function that satisfies the conditions of Proposition 7. The proof is similar to the one of 5, we only need to show that having |Eφ (xZ) 2 | |x| -2β for large x and some β ∈ (0, 1) implies that (ii) of 4 is verified.

We have that σ

2 w |Eφ ( √ qZ) 2 | σ 2 w q -2β = σ 2 w (σ 2 b + σ 2 w E[φ( √ qZ) 2 ]) -β

, so that we can make the term σ 2 w |Eφ ( √ qZ) 2 | take any value between 0 and ∞. Therefore, there exists σ w such that (σ b , σ w ) ∈ EOC, and assumption (ii) of Proposition 4 holds.

B.2 IMPACT OF SMOOTHNESS:

In the proof of Proposition 5, we used the condition on φ (odd function) to prove that f > 0, however, in some cases when we can explicitly calculate f , we do not need φ to be defined. This is the case for Hard-Tanh, which is a piecewise-linear version of Tanh. We give an explicit calculation of f for the Hard-Tanh activation function which we note HT in what follows. We compare the performance of HT and Tanh based on a metric which we will define later.

HT is given by

HT (x) =    -1 if x < -1 x if -1 ≤ x ≤ 1 1 if x > 1

Recall the propagation of the variance q l

q l+1 = σ 2 b + σ 2 w E(HT ( q l Z) 2 )

where HT is the Hard-Tanh function. We have

EQUATION

This yields q l+1 = g(q l ) where

g(x) = σ 2 b + σ 2 w (1 - 2 √ x exp(-1 x ) √ 2π )

-EDGE OF CHAOS :

To study the correlation behaviour, we will assume that the variance converges to q. We have

EQUATION

q )-1 (where Ψ is the cumulative distribution function of a standard normal variable). The edge of chaos is then given by the equation σ 2 w (2Ψ( 1 √ q ) -1) = 1. We fix σ w to its value on the edge. Now let a and b be any two inputs. We have

c l+1 = f (c l ) where f (x) = σ 2 b + σ 2 w E[φ(U 1 )φ(U 2 (x))] q

with U 1 := √ qZ 1 , and U 2 (x) := √ q(xZ 1 + √ 1 -x 2 Z 2 ).

Lemma 3. Suppose q l converges to a fixed point q > 0. Then, ∀x ∈ [0, 1], f (x) = σ 2 w π √ 1 -x 2 (e -1 q(1+x) -e -1 q(1-x) )

Proof. We note α := 1/ √ q. For x ∈ [0, 1[, we have that : We deal with the first part

f (x) = σ 2 w E[1 -α<Z1<α × 1 -α<xZ1+ √ 1-x 2 Z2<α ] = σ 2 w E[1 -α<Z1<α × (1 -α<xZ1+ √ 1-x 2 Z2 -1 α<xZ1+ √ 1-x 2 Z2 )]

f 1 (x) = σ 2 w E[1 -α<Z1<α × 1 -α<xZ1+ √ 1-x 2 Z2 ],

we have that :

f 1 (x) = σ 2 w E[1 -α<Z1<α × 1 √ 1 -x 2 (Z 1 - x √ 1 -x 2 Z 2 )δ -α=xZ1+ √ 1-x 2 Z2 ] = σ 2 w √ 2π E[1 -α<Z1<α × 1 √ 1 -x 2 Z 1 + xα 1 -x 2 exp(- (xZ 1 + α) 2 2(1 -x 2 ) )] = σ 2 w 2π √ 1 -x 2 α -α z 1 + xα 1 -x 2 exp(- z 2 1 + 2xαz 1 + α 2 2(1 -x 2 ) )dz 1 = σ 2 w 2π √ 1 -x 2 (e -α 2 1+x -e -α 2 1-x )

we show a similar result for the second part and we conclude.

We proved that f > 0 for Hard-Tanh, all other conditions of proposition 5 (excluding the conditions on φ since those were only used to prove f > 0) are verified, therefore the result of Proposition 4 holds for Hard-Tanh. we want to compare Tanh and Hard-Tanh when σ b is small since this is the important case. The proof of Proposition 4 gives us an idea on how to compare them, the ratio

σ 2 b

q controls the quality of approximation of f by the identity function, so a smaller ratio means a better approximation. Figure 2 shows that Tanh outperforms Hard-Tanh in this sense. This also means that for the same quality of approximation, we have bigger q (bigger output variance) with Tanh compared to Hard-Tanh. This can particularly be due to the nonsmoothness of Hard-Tanh, which slows down the dominated convergence in the proof of Proposition 4.

C SUPPLEMENTARY EXPERIMENTAL RESULTS:



C.1 ELU ACTIVATION:

We show numerically that the activation function ELU defined by φ(x) = (e x -1)1 x<0 + x1 x≥0 satisfies the conditions of Proposition 4. We have φ(x) = 0, φ (0 + ) = 1, φ (0 -) = 1 and φ(x) Figure 12a shows the EOC curve (condition (ii) is satisfied). Figure 12b shows that is non-decreasing and Figure 12d illustrates the fact that lim σ b →0 q = 0. Finally, Figure 12c shows that function f is convex. Although the figures of F and f are shown just for one value of (σ b , σ w ), the results are true for any value of (σ b , σ w ) on the EOC.

C.2 WHAT HAPPENS WHEN THE DEPTH IS LARGER THAN THE WIDTH?:

Table 2 presents a comparative analysis of the validation accuracy of ReLU and Swish when the depth is larger than the width, in which case the approximation by a Gaussian process is not accurate (notice that in the approximation of a neural network by a Gaussian process, we first let N l → ∞, then we consider the limit of large L). ReLU tends to outperforms Swish when the width is smaller than the depth and both are small, however, we still observe a clear advantage of Swish for deeper architectures. 

:

ReLU admits a Dirac mass in 0 as second derivative and so is covered by our developments.

The limiting variance is a function of (σ b , σw) but we do not emphasize it notationally.

Figures and Tables:

Figure 1: Two draws of outputs for ReLU and Tanh networks with (σ b , σ w ) = (1, 1) ∈ D φ,var ∩ D φ,corr . The output functions are almost constant.

Figure 2: A draw from the output function of a ReLu network with 20 layers, 100 neurons per layer, (σ 2 b , σ 2 w ) = (0, 2) (edge of chaos)

Figure 3: Impact of the initialization on the EOC for a ReLU network

Figure 4: Correlation function and a draw of the output for a Swish network

Figure 5: Impact of the initialization on the edge of chaos for Swish network

(a) width = 10, depth = 5 (b) width = 80, depth = 40

Figure 7: Convergence across iterations of the learning algorithm for ReLU and Swish networks

Figure 8: Convergence of the variance for three different inputs with (σ b , σ w ) = (1, 1) Lemma 1. Let (σ b , σ w ) ∈ D φ,var ∩ D φ,corr such that q > 0, a, b ∈ R d and φ an activation function such that sup x∈K E[φ(xZ) 2 ] < ∞ for all compact sets K. Define f l by c l+1 a,b = f l (c l a,b ) and f by f (x) =

Figure 9: Graphs of ReLU and Swish

Figure 11: The correlation function on the edge of order-to-chaos for a Tanh network with small values of σ b

Other conditions of Proposition 4 are shown numerically in graphs below.

Figure 12: Experimental results for ELU activation

Values of (σ b , σ w ) on the EOC and limiting variance q for Swish Other activation functions that have been shown to outperform empirically ReLU such as ELU(Clevert et al. (2016)), SELU(Klambauer et al. (2017)) and Softplus also satisfy the conditions of Proposition 4 (see Supplementary Material for ELU). The comparison of activation functions satisfying the conditions of Proposition 4 remains an open question.

Table content: <table><tr><td colspan="2">σ b 0.1</td><td>0.2</td><td>0.3</td><td>0.4</td><td>0.5</td></tr><tr><td colspan="6">σ w 1.845 1.718 1.616 1.537 1.485</td></tr><tr><td>q</td><td>0.14</td><td>0.44</td><td>0.61</td><td>1.01</td><td>2.13</td></tr></table>



Table content: <table><tr><td>ReLU 94.01 96.01</td><td>96.51</td><td>91.45</td></tr><tr><td>Swish 94.46 96.34</td><td>97.09</td><td>97.14</td></tr></table>

Validation accuracy for different values of(width, depth)

Table content: <table><tr><td colspan="3">(5,10) (10,20) (30,40) (40,50)</td></tr><tr><td>ReLU 86.65 93.76</td><td>93.59</td><td>90.77</td></tr><tr><td>Swish 86.56 93.21</td><td>96.78</td><td>97.08</td></tr></table>

Peer review (iclr2019):
 Studying properties of random networks in the infinite width limit, this work suggests guidance for choosing initialization and activation function. In my opinion, novel contribution comes for guidance for choosing activation functions and theoretical grounds for superior performance of ```*swish’ activation function. I have two main concerns : In terms of selection on initialization, the findings seem to be mostly discussed already in Schoenholz et al (2017) [1]. In their work, Edge of Chaos is critical line separating different phases and was already shown to have power-law decay rather than exponential decay. As far as I can tell, analysis on EOC on ReLU-like activations are different from Schoenholz et al (2017) [1]. Some of the results for ReLU are already appeared in the literature e.g. Lee et al (2018) [2]. Another main concern is in the author’s experimental setup. It is hard to draw conclusions when comparison experiments were done with a fixed learning rate. As we know learning rate is one of the most critical hyperparameter for determining performance and optimal learning rate is often sensitive to architecture choice. Especially for different non-linearity and different depth/width optimal learning rate can change. Pros: - Clearly written and easy to understand what authors are trying to say - Interesting theoretical support for activation function which recently got attention due to boosting performance in neural networks - Nice suggestion of choosing activation function for deep networks (Proposition 4) -- ELU/SELU/Softplus/Swish all satisfy this suggestion Cons: - Novelty may be not strong enough as the standard analysis tool from [1] was mostly used - Experimental setup may suffer from some critical flaw Few comments/questions: - P3: Is M_{ReLU} = 2 correct, from ReLU EOC, shouldn’t it be ½? - For all the works using activation functions satisfying Proposition 4 (ELU/SELU/Softplus/Swish), the initialization scheme close to EOC? Does this work’s analysis actually explain performance boost over ReLU for these activation functions? [1] S.S. Schoenholz, J. Gilmer, S. Ganguli, and J. Sohl-Dickstein. Deep information propagation. 5th International Conference on Learning Representations, 2017. [2] J. Lee, Y. Bahri, R. Novak, S.S. Schoenholz, J. Pennington, and J. Sohl-Dickstein. Deep neural networks as gaussian processes. 6th International Conference on Learning Representations, 2018.