The Normalization Method for Alleviating Pathological Sharpness in Wide Neural Networks
Ryo Karakida, Shotaro Akaho, Shun-ichi Amari
Introduction
Deep neural networks (DNNs) have performed excellently in various practical applications , but there are still many heuristics and an arbitrariness in their settings and learning algorithms. To proceed further, it would be beneficial to give theoretical elucidation of how and under what conditions deep learning works well in practice.
Normalization methods are widely used to enhance the trainability and generalization ability of DNNs. In particular, batch normalization makes optimization faster with a large learning rate and achieves better generalization in experiments . Recently, some studies have reported that batch normalization changes the shape of the loss function, which leads to better performance . Batch normalization alleviates a sharp change of the loss function and makes the loss landscape smoother , and prevents an explosion of the loss function and its gradient . The flatness of the loss landscape and its geometric characterization have been explored in various topics such as improvement of generalization ability , advantage of skip connections , and robustness against adversarial attacks . Thus, it seems to be an important direction of research to investigate normalization methods from the viewpoint of the geometric characterization. Nevertheless, its theoretical elucidation has been limited to only linear networks and simplified models neglecting the hierarchical structure of DNNs .
One promising approach of analyzing normalization methods is to consider DNNs with random weights and sufficiently wide hidden layers. While theoretical analysis of DNNs often becomes intractable because of hierarchical nonlinear transformations, wide DNNs with random weights can overcome such difficulties and are attracting much attention, especially within the last few years; mean field theory of DNNs , random matrix theory and kernel methods . They have succeeded in predicting hyperparameters with which learning algorithms work well and even used as a kernel function for the Gaussian process. In addition, recent studies on the neural tangent kernel (NTK) have revealed that the Gaussian process with the NTK of random initialization determines even the performance of trained neural networks . Thus, the theory of wide DNNs is becoming a foundation for comprehensive understanding of DNNs. Regarding the geometric characterization, there have been studies on the Fisher information matrix (FIM) of wide DNNs . The FIM widely appears in the context of deep learning because it determines the Riemannian geometry of the parameter space and a local shape of the loss landscape around a certain global minimum. In particular, Karakida et al. have reported that the eigenvalue spectrum of the FIM is strongly distorted in wide DNNs, that is, the largest eigenvalue takes a pathologically large value (Theorem 2.2). This causes pathological sharpness of the landscape and such sharpness seems to be harmful from the perspective of optimization and generalization .
In this study, we focus on the FIM of DNNs and uncover how normalization methods affect it. First, to clarify a condition to alleviate the pathologically large eigenvalues, we identify the eigenspace of the largest eigenvalues (Theorem 3.1). Then, we reveal that batch normalization in the last layer drastically decreases the size of the largest eigenvalues and successfully alleviates the pathological sharpness. This alleviation requires a certain condition on the width and sample size (Theorem 3.3), which is determined by a convergence rate of order parameters. In contrast, we find that batch normalization in the middle layers cannot alleviate pathological sharpness in many settings (Theorem 3.4) and layer normalization cannot either (Theorem 4.1). Thus, we can conclude that batch normalization in the last layer has a vital role in decreasing pathological sharpness. Our experiments suggest that such alleviation of the sharpness is helpful in making gradient descent converge even with a larger learning rate. These results give novel quantitative insight into normalization methods, wide DNNs, and geometric characterization of DNNs and is expected to be helpful in developing a further theory of deep learning.
Preliminaries
We investigate a fully-connected feedforward neural network with random weights and bias parameters. The network consists of one input layer with units, hidden layers with units per layer (), and one output layer:
The FIM of a DNN is computed by the chain rule in a manner similar to that of the backpropagation algorithm:
where we denote and for . To avoid complicated notation, we omit index of the output unit, i.e., .
2 Understanding DNNs through order parameters
for . Because input samples generated by Eq. (3) yield and for all and , in each layer takes the same value for all , and so does for all . The notation means integration over the standard Gaussian density. We use a two-dimensional Gaussian integral given by with .
The order parameters depend only on and , the types of activation functions, and depth. The recurrence relations require iterations of one- and two-dimensional numerical integrals. They are analytically tractable in certain activation functions including the ReLUs .
3 Pathological sharpness of local landscapes
The FIM plays an essential role in the geometry of the parameter space and is a fundamental quantity in both statistics and machine learning. It defines a Riemannian metric of the parameter space, where the infinitesimal difference of statistical models is measured by Kullback-Leibler divergence, as in information geometry . We analyze the eigenvalue statistics of the following FIM of DNNs ,
The FIM is known to determine not only the local distortion of the parameter space but also the loss landscape around a certain global minimum. Suppose the squared loss function , where represents a training label corresponding to the input sample . The FIM is related to the Hessian of the loss function, , in the following manner :
The Hessian coincides with the empirical FIM when the parameter converges to the global minimum with zero training error. In that sense, the FIM determines the local shape of the loss landscape around the minimum. This FIM is also known as the Gauss-Newton approximation of the Hessian.
Karakida et al. elucidated hidden relations between the order parameters and basic statistics of the FIM’s eigenvalues. We investigate DNNs satisfying the following condition.
Suppose a DNN with bias terms () or activation functions satisfying the non-zero Gaussian mean. We refer to this as a non-centered network.
The definition of the non-zero Gaussian mean is . Non-centered networks include various realistic settings because usual networks include bias terms, and widely used activation functions, such as the sigmoid function and (leaky-) ReLUs, have the non-zero Gaussian mean. Denote the FIM’s eigenvalues as () where is the number of all parameters. The eigenvalues are non-negative by definition. Their mean is and the maximum is . The following theorem holds:
Suppose a non-centered network and i.i.d. input samples generated by Eq. (3). When is sufficiently large, the eigenvalue statistics of are asymptotically evaluated as
where , and positive constants and are obtained using order parameters,
The mean is asymptotically close to zero and it implies that most of the eigenvalues are very small. In contrast, becomes pathologically large in proportion to the width. We refer to this as pathological sharpness since FIM’s eigenvalues determine the local shape of the parameter space and loss landscape. Empirical experiments reported that both of close-to-zero eigenvalues and pathologically large ones appear in trained networks as well .
Pathological sharpness universally appears in various DNNs. Technically speaking, if the network is not non-centered (i.e., a network with no bias terms and zero-Gaussian mean; we call it a centered network), holds and lower order terms of the eigenvalue statistics become non-negligible , and the pathological sharpness may disappear. For instance, is of when is properly scaled with in a centered shallow network . Except for such special centered networks, we cannot avoid pathological sharpness. In practice, it would be better to alleviate the pathologically large because it causes the sharp loss landscape. It requires very small learning rates (see Section 3.4) and will lead to worse generalization . In the following section, we reveal that a specific normalization method plays an important role in alleviating pathological sharpness.
Alleviation of pathological sharpness in batch normalization
Before analyzing the effects of normalization methods on the FIM, it will be helpful to characterize the cause of pathological sharpness. We find the following eigenspace of ’s:
Suppose a non-centered network and i.i.d. input samples generated by Eq. (3). When is sufficiently large, the eigenvectors corresponding to ’s are asymptotically equivalent to
2 Batch normalization in last layer
In this section, we analyze batch normalization in the last layer (-th layer):
In the following analysis, we use a widely used assumption for DNNs with random weights:
Supposing this assumption has been a central technique of the mean field theory of DNNs to make the derivation of backward order parameters relatively easy. These studies confirmed that this assumption leads to excellent agreements with experimental results. Moreover, recent studies have succeeded in theoretically justifying that various statistical quantities obtained under this assumption coincide with exact solutions. Thus, Assumption 3.2 is considered to be effective as the first step of the analysis.
First, let us set as a constant and only consider mean subtraction in the last layer:
Since the controls the scale of the network output, one may suspect that the contribution of the mean subtraction would only be restrictive for alleviating sharpness. Contrary to this expectation, we find an interesting fact that the mean subtraction is essential to alleviate pathological sharpness:
Suppose a non-centered network with the mean subtraction in the last layer (Eq. (15)) and i.i.d. input samples generated by Eq. (3). In the large limit, the mean of the FIM’s eigenvalues is asymptotically evaluated by
The largest eigenvalue is asymptotically evaluated as follows: (i) when and ,
and (ii) when with a constant , under the gradient independence assumption, we have
for non-negative constants and .
The derivation is shown in Supplementary Material B.1. The mean subtraction does not change the order of when . In contrast, it is interesting that it decreases the order when . The decrease in only appears in the coefficient because hold in the non-centered networks. Thus, we can conclude that the mean subtraction in the last layer plays an essential role in decreasing when is appropriately scaled to .
As shown in Fig.1, we empirically confirmed that became of in numerical experiments and pathological sharpness disappeared when . Theorem 3.3 is consistent with the numerical experimental results. We numerically computed in DNNs with random Gaussian weights, biases, and input samples generated by Eq. (3). We set and . Variances of parameters were given by () = () in the ReLU case, and () in the tanh case. Each points and error bars show the experimental results over different ensembles. We show the value of as the lower bound of (red line). Although this lower bound and the theoretical upper bound of order are relatively loose compared to the experimental results, recall that our purpose is not to obtain the tight bounds but to show the alleviation of . The experimental results with the mean subtraction were much lower than those without it as our theory predicts.
We can also add to Theorem 3.3 and obtain the eigenvalue statistics under the normalization (Eq. (13)). When , the eigenvalue statistics slightly change to
where , , and are non-negative constants. The derivation is shown in Supplementary Material B.2. This clarifies that the variance normalization works only as a constant factor and the mean subtraction is essential to reduce pathological sharpness.
3 Batch normalization in middle layers
To distinguish the effectiveness of normalization in the last layer from those in other layers, we apply batch normalization in all layers except for the last layer :
for all middle layers while the last layer is kept in an un-normalized manner, i.e., . The variables and depend on weight and bias parameters. For simplicity, we set and . We find a lower bound of with order of :
Suppose non-negative activation functions and i.i.d. input samples generated by Eq. (3). The largest eigenvalue of the FIM under the normalization (Eq. (20)) is asymptotically lower bounded by
where and are positive constants independent of .
Because the last layer is unnormalized, we can construct a lower bound composed of the activations in the -th layer. Note that the set of non-negative activation functions (i.e., ) is a subclass of the non-centered networks. It includes sigmoid and ReLU functions which are widely used. The bias term, i.e., , does not affect the theorem because they are canceled out in the mean subtraction of each middle layer. After this batch normalization, is still of at lowest and the pathological sharpness is unavoidable in that sense. Thus, one can conclude that the normalization in the middle layers cannot alleviate pathological sharpness in many settings.
The constants and correspond to feedforward order parameters in batch normalization. The details are shown in Supplementary Material C.1. Although the purpose of our study was to evaluate the order of the eigenvalues, some approaches analytically compute the specific values of the order parameters under certain conditions (see Supplementary Material C.2 for more details). In particular, they are analytically tractable in ReLU networks as follows; and where is the arccosine kernel .
4 Effect on the gradient descent method
Consider the gradient descent method in a batch regime. Its update rule is given by where is a constant learning rate. Under some natural assumptions, there exists a necessary condition of the learning rate for the gradient dynamics to converge to a global minimum ;
Because our theory shows that batch normalization in the last layer decreased , the appropriate learning rate for convergence becomes larger. To confirm this effect on the learning rate, we did experiments on training with the gradient descent as shown in Fig. 2. we trained DNNs with various widths by using various fixed learning rates, providing i.i.d. Gaussian input samples and labels generated by corresponding teacher networks. It was the same setting as the experiment shown in . Fig. 2 (left) shows the color map of training losses without any normalization method and is just a reproduction of . Losses exploded in the gray area (i.e., were larger than ) and the red line shows the theoretical value of , which was calculated with the FIM at random initialization. Training above the red line exploded in sufficiently widen DNNs, just as the necessary condition (23) predicts. In contrast, Fig. 2 (right) shows the result of the batch normalization (mean subtraction) in the last layer. We confirmed that it allows larger learning rates for convergence and they are independent of width. We calculated the theoretical line by using the lower bound of , i.e., . Note that Fig. 2 shows the results on the single trial of training with fixed initialization. It caused the stripe pattern of color map depending on the random seed of each width, especially in the case of normalized networks. As shown in Fig. S.2 of Supplementary Material D, accumulation of multiple trials achieves lower losses regardless of the width. Thus, the batch normalization is helpful to set larger learning rates, which could be expected to speed-up the training of neural networks .
Pathological sharpness in layer normalization
It is an interesting question to investigate the effect of other normalization methods on pathological sharpness. Let us consider layer normalization :
for all layers (). The network output is normalized as . While batch normalization (20) normalizes the pre-activation of each unit across batch samples, layer normalization (24) normalizes that of each sample across the units in the same layer. Although layer normalization is the method typically used in recurrent neural networks, we show its effectiveness in feedforward networks to contrast the effect of batch normalization on the FIM. For simplicity, we set and . Then, we find
Suppose a non-centered network, i.i.d. input samples generated by Eq. (3), and the gradient independence assumption. When is sufficiently large and , the eigenvalue statistics of the FIM under the normalization (Eq. (24)) are asymptotically evaluated as
where , and are constants independent of .
Related work
Normalization and geometric characterization. Batch normalization is believed to perform well because it suppresses the internal covariate shift . Recent extensive studies, however, have reported alternative explanations on how batch normalization works . Santurkar et al. empirically found that batch normalization decreases a sharp change of the loss function and makes the loss landscape smoother. Bjorck et al. reported that batch normalization works to prevent an explosion of the loss and gradients. While some theoretical studies analyzed FIMs in un-normalized DNNs , analysis in normalized DNNs has been limited. Santurkar et al. analyzed gradients and Hessian under batch normalization in a single layer and theoretically evaluated their worst case bounds, but its inequality was too general to quantify the decrease of sharpness. In particular, it misses the special effect of the last layer, as we found in this study. The original paper of layer normalization analyzed the FIM in generalized linear models (GLMs) and argued that the normalization could decrease curvature of the parameter space. While a GLM corresponds to the single layer model, shallow and deep networks have hidden layers. As the hidden layers become wide, pathological sharpness appears and layer normalization suffers from it.
Gradient descent method. There are other related works in addition to those mentioned in Section 3.4. Bjorck et al. speculated that larger learning rates realized by batch normalization may help stochastic gradient descent avoid sharp minima and it leads to better generalization. Wei et al. estimated and under a special type of batch-wise normalization. Because their normalization method approximates a chain rule of backpropagation by neglecting the contribution of mean subtraction, it suffers from pathological sharpness and requires smaller learning rates.
Neural tangent kernel. The FIM and NTK satisfy a kind of duality, and share the same non-zero eigenvalues. Our proofs on the eigenvalue statistics use NTK with standard parameterization, i.e., in Supplementary Material A.1. The NTK at random initialization is known to determine the gradient dynamics of a sufficiently wide DNN in function space. The sufficiently wide network can achieve a zero training error and it means that there is always a global minimum sufficiently close to random initialization. In the parameter space, Lee et al. proved that NTK dynamics is sufficiently approximated by the gradient descent of a linearized model expanded around random initialization : , where and means the step of the gradient descent. Naively speaking, this suggests that the optimization of the wide DNN approximately becomes convex and the loss landscape is dominated by a quadratic form with the FIM, i.e., .
Discussion
There remain a number of directions for extending our theoretical framework. Recent studies on wide DNNs have revealed that the NTK of random initialization dominates the training dynamics and even the performance of trained networks . Since the NTK is defined as a right-to-left reversed Gram matrix of the FIM under a special parameterization, the convergence speed of the training dynamics is essentially governed by the eigenvalues of the FIM at the random initialization. Analyzing these dynamics under normalization remains to be uncovered. For further analysis, random matrix theory will also be helpful in obtaining the whole eigenvalue spectrum or deriving tighter bounds of the largest eigenvalues. Although random matrix theory has been limited to a single layer or shallow networks , it will be an important direction to extend it to deeper and normalized networks.
There may be potential properties of normalization methods that are not detected in our framework. Kohler et al. analyzed the decoupling of the weight vector to its direction and length as in batch normalization and weight normalization. They revealed that such decoupling could contribute to accelerating the optimization. Bjorck et al. discussed that deep linear networks without bias terms suffer from the explosion of the feature vectors and speculated that batch normalization is helpful in reducing this explosion. This implies that batch normalization may be helpful to improve optimization performance even in a centered network. Yang et al. developed an excellent mean-field framework for batch normalization through all layers and found that the gradient explosion is induced by batch normalization in networks with extreme depth. Even if batch normalization alleviates pathological sharpness regarding the width, the coefficients of order evaluation can become very large when the network is extremely deep. It may cause another type of sharpness. It is also interesting to explore SGD training under normalization and quantify how the alleviation of sharpness affects appropriate sizes of learning rate and mini-batch, which have been mainly investigated in SGD training without normalization . Further studies on such phenomena in wide DNNs would be helpful for further understanding and development of normalization methods.
This work was partially supported by a Grant-in-Aid for Young Scientists (19K20366) from the Japan Society for the Promotion of Science (JSPS).
References
Supplementary Materials
We prepare the following two lemmas to prove the theorems in the main text.
An FIM is a matrix, where is the dimension of all parameters. Define a matrix by
Its columns are the gradients on each input, i.e., . One can represent an empirical FIM by
Let us refer to the following matrix as a reversed FIM:
which is the right-to-left reversed Gram matrix of . This is essentially the same as the NTK . The and have the same non-zero eigenvalues by definition. Karakida et al. introduced to derive the eigenvalue statistics in Theorem 2.2. Technically speaking, they derived the eigenvalue statistics under the gradient independence assumption (Assumption 3.2). However, Yang recently succeeded in proving that this assumption is unnecessary. Therefore, Theorem 2.2 is free from this assumption.
To evaluate the effects of batch normalization, we need to take a more careful look into than done in previous studies. As shown in Supplementary Material B, the FIM under batch normalization in the last layer requires information on how fast backward order parameters asymptotically converge in the large limit. Let us introduce the following variables depending on :
Between the reversed FIM and convergence rate , we found that the following lemma holds. This lemma is a minor extension of Supplementary Material A in into the case without the gradient independence assumption.
Suppose a non-centered network and i.i.d. input samples generated by Eq. (3). When is sufficiently large, the can be partitioned into block matrices whose -th block is a matrix defined by
where , and is the Kronecker delta. The matrix has entries given by
Proof. We have the parameter set but the number of bias parameters (of ) is much less than that of weight parameters (of ). Therefore, the contribution of the FIM corresponding the bias terms are negligibly small in the large limit , and what we should analyze is weight parts of the FIM, that is, . The -th block of has the -th entry as
for . In the large limit, we can apply the central limit theorem to the feedforward propagation because the pre-activation is a weighted sum of independent random weights : . This convergence rate of is also known in non-asymptotic evaluations . We then have
The current work essentially differs from in the point that the evaluation of includes the convergence rate. The previous work investigated DNNs without any normalization method and such cases allow us to focus on the first term of the right-had side of Eq. (S.6). This is because the second term becomes asymptotically negligible in the large limit. In contrast, batch normalization in the last layer makes the first term comparable to the second term and requires careful evaluation of the second term. Thus, eigenvalues statistics become dependent on the convergence rate.
The previous work showed that the matrix in the first term of (S.6) determines the eigenvalue statistics such as and in the large limit. The assumption of i.i.d. input samples makes the structure of matrix easy to analyze, i.e., all the diagonal terms take the same and all the non-diagonal terms take . Using this matrix , we can also derive the eigenvectors of corresponding to :
It should be remarked that the above results require . Technically speaking, the second term of Eq. (S.6) is negligible because is positive by definition and is also positive in a non-centered network. If one considers a centered network, however, the initialization of recurrence relations, i.e., , recursively yields
To prove Theorem 3.1, we use the eigenvector obtained in Lemma A.2. The eigenspace of corresponding to is constructed from . Let us denote an eigenvector of as satisfying . By multiplying by both sides, we have
for . The first term of the right-hand side of Eq. (S.16) is of in non-centered networks and asymptotically larger than the second term. Thus, we obtain Theorem 3.1.
B Batch normalization in last layer
The FIM under the mean subtraction (Eq. (15)) is expressed by
where is a matrix whose -th column is given by a vector (, ). Note that the hyperparameter disappears since is independent of . Here, we define the projector
which satisfies . Using this projector, we have and
where is a identity matrix and is the Kronecker product. We introduce a reversed Gram matrix of the FIM under the mean subtraction:
Let us partition into block matrices and denote its -th block as a matrix . Substituting the (S.6) into the above, we obtain these blocks as
We assume since is trivial.
The mean of eigenvalues is asymptotically obtained by
First, we obtain a lower bound of . In general, we have
where is a -dimensional vector whose -th entries are , -th entries are , and the others are (). We then have
Next, we obtain an upper bound of . In general, the maximum eigenvalue is denoted as the spectral norm , i.e., . Using the triangle inequality, we have
where is the Frobenious norm. These lead to
Finally, sandwiching by bounds (S.27) and (S.31), we asymptotically obtain
Note that holds in our settings. We can easily observe from the Cauchy–Schwarz inequality and it leads to (strictly speaking, when is a constant function, its equality holds and we have and . However, we do not suppose the constant function as an ”activation” function and then holds).
This case requires a careful consideration of the term in the reversed FIM (S.21). This is because the non-diagonal term of asymptotically decreases to zero in the large limit and the term becomes non-negligible. We found the following theorem without using the gradient independence assumption;
Suppose a non-centered network with the mean subtraction in the last layer (Eq. (15)) and i.i.d. input samples generated by Eq. (3). When with a constant , the largest eigenvalue in the large limit is asymptotically evaluated as
for , non-negative constants and .
Proof. To evaluate the largest eigenvalue, we use the second moment of the eigenvalues, i.e., . Because is positive semi-definite, we have and obtain
where we denote the second term of Eq. (S.21) as . We then have
When (), the first term is of , the second and third terms are of , and the fourth term is of . Therefore, the second and third terms are negligible compared to the first term for all and . The fifth term is non-negative by definition. Although we can make the bounds of for all , we focus on for simplicity. In the large limit, we have asymptotically
The constant comes from the fourth term of Eq. (S.35) and is non-negative.
The lower bound of is derived from , that is,
The upper bound comes from and we have
The non-negative constants and come from . ∎
Thus, we find that is of order at least and of order at most. Since we have by definition, the order of is always lower than order of . Therefore, we can conclude that the mean subtraction alleviates the pathological sharpness for any .
From the theoretical perspective, we found that the gradient independence assumption achieves and leads to a constant lower bound independent of .
The gradient independent assumption yields .
The bounds for in Theorem 3.3 are immediately obtained from Theorem B.1 and Lemma B.2.
B.2 Mean subtraction and variance normalization
Define . The derivatives of output units are given by
is a matrix whose -th block is given by a matrix,
where is a identity matrix, means , and is a projector to the vector . and the following matrix have the same non-zero eigenvalues,
is a matrix and partitioned into block matrices. Using Eq. (S.21), we obtain the -th block as
where the independence assumption yields . The first term is easy to evaluate,
by using the fact of . Suppose the case of Regarding the diagonal entries of , the contribution of is negligible to that of in the large limit. Thus, we asymptotically obtain
The bounds of the largest eigenvalue are straightforwardly obtained from the second moment as in the deviation of Theorem B.1. Since the second moment is given by a trace of the squared matrix in general, we have
The lower bound is given by and the upper bound by .
C Batch normalization in middle layers
Batch normalization makes the chain of backward signals more complicated as follows. Suppose the -th input sample is given. Then, the activation in each layer depends not only on the -th sample but also on the whole of all samples. This is because batch normalization includes and , which depend on the whole of all samples in the batch. Therefore, we should compute derivatives as
Recently, Yang et al. investigated a gradient explosion of the above chain rule in extremely deep networks although it requires a complicated formulation of mean field equations and is analytically intractable in general cases. In the following, we demonstrate an approach to batch normalization in the middle layers by avoiding the complicated analysis of the chain rule.
The derivative with respect to the -th layer is independent of the complicated chain of batch normalization because we do not normalize the last layer and have
where we used . The lower bound of is derived as follows:
The matrix is defined by where we denote feedroward order parameters for batch normalization as
The evaluation of the order parameters are shown in the following subsection. When the activation function is non-negative, the order paramters are positive. In particular, they are analytically tractable in ReLU networks.
Order parameters for batch normalization in the middle layers (S.66) require a careful integral over a -dimensional Gaussian distribution . This is because the pre-activation depends on all of which share the same weight . Therefore, we generally need the integration of over the -dimensional Gaussian distribution, that is,
where is a dimensional vector and . The covariance matrix is defined by (), (). These order parameters are positive when the activation function is non-negative (strictly speaking, non-negative and for certain ).
Although the above integral is analytically intractable in many activation functions, Yang et al. gave profound insight into the integral. For instance, Corollary F.10 in revealed that the ReLU activation is more tractable, and we have
where is known as the arccosine kernel. Wei et al. proposed a mean field approximation on the computation of order parameters for batch normalization, which is consistent with the above order parameters in the large limit. The previous study also proposed some methods to evaluate the order parameters in more general activation functions.
D Additional experiment on gradient descent training
E Layer normalization
We show that the order parameters under layer normalization are quite similar to those without the normalization. This is because the random weights and biases make the contribution of layer normalization relatively easy. In the large limit, we asymptotically have
for . Let us denote feedforward order parameters as
The same calculation as in the feedforward propagation without normalization leads to
The backward order parameters are also very similar to those without layer normalization. Let us consider the chain rule which appears in a FIM:
Ommiting index in to avoid complicated notation, we have
where we define , which is an essential effect of layer normalization on the chain, and it becomes
where we substituted and defined
The first term of is dominant in the large limit because other terms are of order . Then, we have
After applying the central limit theorem to , we have
E.2 FIM
Denote the mean subtraction in the last layer as . The derivatives in the last layer are given by
where . Then, the FIM is given by
We can represent in a matrix representation. Define a matrix by
Its columns are the gradients on each input sample, i.e., . We then have
where is defined as a matrix whose -th column is given by a vector (, ). We also defined a matrix whose -th block matrix is given by the following matrix:
for . This is a diagonal matrix. Compared to the matrix in batch normalization (Eq. (S.47)), in layer normalization is not block-diagonal. This is because layer normalization in the last layer yields interaction between different output units.
We introduce the following matrix which has the same non-zero eigenvalues as :
This corresponds to the mean subtraction in layer normalization. Its entries are given by
after doing the same calculation as Eq. (S.12) and using the order parameters obtained in Section E.1. We have due to the gradient independence assumption. The reversed FIM becomes
where .
The largest eigenvalue is evaluated using the second moment of the eigenvalues. Since the second moment is given by a trace of the squared matrix in general, we have
where we define Substituting Eq. (S.112) into Eq. (S.109), we obtain
where and The lower bound is given by and the upper bound by .
Remark on : Because we have a special symmetry, i.e., in , the gradient (Eq. (S.88)) becomes zero. This is caused by the mean subtraction and variance normalization in the last layer. This makes the FIM a zero matrix. The case of is non-trivial and the FIM becomes non-zero, as we revealed. Similarly, the gradient (Eq. (S.43)) in batch normalization becomes zero when due to the same symmetry . Such an exceptional case of batch normalization is not our interest because we focus on the sufficiently large in Eq. (19).