A Neural Network model with Bidirectional Whitening
Yuki Fujimoto, Toru Ohira

TL;DR
This paper introduces a bidirectional whitening neural network model that enhances natural gradient descent in multilayer perceptrons by applying whitening during both feed-forward and back-propagation phases, improving learning efficiency.
Contribution
It extends whitened neural networks by incorporating whitening in both directions, offering a novel approach to natural gradient descent in neural networks.
Findings
Effective on MNIST handwritten character recognition
Improves training efficiency of multilayer perceptrons
Demonstrates the benefits of bidirectional whitening
Abstract
We present here a new model and algorithm which performs an efficient Natural gradient descent for Multilayer Perceptrons. Natural gradient descent was originally proposed from a point of view of information geometry, and it performs the steepest descent updates on manifolds in a Riemannian space. In particular, we extend an approach taken by the "Whitened neural networks" model. We make the whitening process not only in feed-forward direction as in the original model, but also in the back-propagation phase. Its efficacy is shown by an application of this "Bidirectional whitened neural networks" model to a handwritten character recognition data (MNIST data).
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
A Neural Network model with Bidirectional Whitening
Yuki Fujimoto*∗* and Toru Ohira*∗∗*
Graduate School of Mathematics, Nagoya University, Nagoya, Japan
∗E-mail: [email protected] *∗∗*E-mail: [email protected]
Abstract
We present here a new model and algorithm which performs an efficient Natural gradient descent for Multilayer Perceptrons. Natural gradient descent was originally proposed from a point of view of information geometry, and it performs the steepest descent updates on manifolds in a Riemannian space. In particular, we extend an approach taken by the “Whitened neural networks” model. We make the whitening process not only in feed-forward direction as in the original model, but also in the back-propagation phase. Its efficacy is shown by an application of this “Bidirectional whitened neural networks” model to a handwritten character recognition data (MNIST data).
1 Introduction
Interests for developing and efficient learning algorithm for multilayer neural networks have grown rapidly due to recent upheaval of the deep learning and other machine learnings. Natural gradient descent(NGD) is considered as one of the strong methods. It was proposed from a point of view of information geometry[1], where neural networks are considered as manifolds in a Riemannian space with a measure given by the Fisher information matrix (FIM). Then, the learning process can be interpreted as an optimization problem of a function in a Riemannian space. The idea of applying the NGD to multilayer neural networks was initiated by Amari. Recently, it has regained interests from machine learning researchers[6, 9].
However, difficulty exists for using the NGD: the computational costs of estimating the FIM and obtaining its inverse is high. Much attention and research efforts have gone into solving this difficulty[4, 7, 8, 5, 10].
In this paper, we will focus on one of such approaches, and extend the work of [4]. In their approach “Whitened neural networks” model was proposed. There, a neural network architecture, whose FIM is closer to the identity matrix with less computational demands, is explored. Extra neurons and connections are added to achieve this whitening approximation. In particular, they have used this scheme for the forward direction of inputs to neurons and achieved lower computational costs.
Our main proposal in this paper is to further push the approximation of the FIM being closer to the identity by implementing the whitening process also in the back-propagation phase. This model, which we term as the “bidirectional whitened neural networks” model, will be described in the following. Its efficacy is also shown through its application to a handwritten character recognition data (MNIST data).
2 Multilayer Perceptron and Natural Gradient Descent
We present here a brief review of the Multilayer Perceptron and the Natural Gradient Descent, which we focus in this paper. The first level of approximation for the FIM is also discussed.
2.1 Multilayer Perceptron
Multilayer Perceptron is a model of neural networks which has feed-forward structure with no recurrent loops. They have multiple layers called input, hidden, and output, and neurons have all to all connections between successive layers. Let us consider a layer Perceptron, and set the values of the input as , the hidden layer values as , (), and the output of the entire network as .
This can be viewed as a function of by fixing the parameters , and thus called as a “multilayer Perceptron function”. The rules of computing the value of the layer from the in the network is given as follows ().
[TABLE]
Here, is an activation function applied to each element of . Typically, the sigmoid function or function are used for this activation function. Also, (2) is a shortened notation by setting .
Hence, the multilayer Perceptron function (MPF) is defined by setting
. It is often convenient to denote these parameters by , defined by
[TABLE]
where means a compound vector of column vectors of a matrix
The learning process of multilayer Perceptrons is an optimization problem set by the following statistical inference. The training data of input and output pairs is given as . We assume this data set is generated by the same joint distribution independently. In order to estimate this input output probabilistic relations, a statistical model is considered using the MPF. Here is a joint probability density function and is a set of parameters. The problem is to find the parameter which makes as a best estimate of . The maximum likelihood method is employed to obtain such .
[TABLE]
It is known that this estimation is the same as the following minimization problem.
[TABLE]
Here, we have set the target function to minimize as . Research on efficient algorithms for this optimization problem is the central issue in the following.
2.2 Natural Gradient Method
Natural Gradient Method is a steepest descent method in a Riemannian space. It is proposed from the information geometry where statistical models are manifolds in a Riemannian space with a metric of the Fisher Information Matrices[2]. Thus, we can view the learning by the multilayer Perceptrons as an optimization problem in a Riemannian space as presented in 2.1.
Let us start by defining the Fisher information matrix and the Natural Gradient Descent.
Definition: Fisher Information Matrix
We set . For , a square matrix is defined as follows.
[TABLE]
(8) can be expressed by each elements as,
[TABLE]
We call this matrix the Fisher information matrix (FIM).
Definition: Natural Gradient Descent
We call the following gradient method as the Natural Gradient Descent (NGD).
[TABLE]
Here is a rate of the learning.
Then, is the direction of the maximal decrease of the target function given a fixed step size. We note that this NGD reduces to the ordinary gradient descent, when is the identity matrix.
2.3 Approximation of the Fisher Information Matrix
As discussed in the previous section, the FIM and its inverse play important roles in the calculation in the NGD. We, thus, present a preliminary approximation of the FIM in order to lessen the computational burdens[7].
Let us first compute the FIM for the multilayer Perceptrons. The probability density function associated with the multilayer Perceproton function (MPF) is given as follows.
[TABLE]
Also, the gradient vector are written concisely as in (4),
[TABLE]
Then, the FIM for the MLP is given as follows.
[TABLE]
Hence, the FIM for the MLP is composed of the block matrices .
If we further set , the following is obtained.
[TABLE]
By putting (15) into (14), the can now be expressed as
[TABLE]
(Here, is the Kronecker product. )
For the efficient computation, it is essential to approximate this FIM. The preliminary approximation consists of two steps.
The first step approximation of is given as which is defined as follows.
[TABLE]
This approximation means that we are inter-changing the expectation of the Kronecker products with the Kronecker products of the expectations. The matrix , whose elements are given by replacing of (13) with , is the first step approximation of the FIM. We note that the FIM is decomposed into two parts by this approximation: (the feed-forward phase part) and (the back-propagtaing phase part).
We perform the second step approximation on to obtain .
[TABLE]
Here, denotes a block diagonal matrix, whose non-zero diagonals are given by the elements. In other words, is obtained from by setting non-diagonal elements as the zero matrix,
[TABLE]
This approximation allows us to compute the FIM layer by layer independently.
3 Whitened Neural Networks
In this section, we present algorithms which aim to perform Natural Gradient Descent efficiently with the approximated FIM, .
3.1 Natural Gradient Descent by Whitening
Let us first describe Whitened Neural Networks[4]. The main idea of this method is to perform the NGD by reconfiguring the network and parameters, so that the FIM becomes closer to the identity matrix. When the FIM is the identity matrix, the NGD is the same as the ordinary gradient descent, thus can be implemented simply with less computational costs.
3.1.1 Whitened Neural Network
The architecture of the Whitened Neural Networks (WNN) is obtained by changing (1) through (3) into the following form.
[TABLE]
Here are the new parameters introduced as “Whitening” parameters. are the new model parameters associated with this new architecture. These are the ones which we want to estimate and update using gradient descent methods as in the normal multilayer Perceptrons.
We present in the Figure 1 the new architecture defined by (20), (21), (22). It shows the th layer to the th layer. We note the gray layer in the Figure 1 is the new inserted layer for the purpose of “whitening”. This change of network configuration is the essence of WNN.
From (2.3), the approximated FIM in the WNN, then, is expressed as the following.
[TABLE]
The essential idea of the whitening is to make closer to the identity by defining the whitening parameters as
[TABLE]
for each and performs the gradient descent. (Our idea, which will be described later in 3.2, is to further extend the whitening to the latter factor in (23))
3.1.2 Updating of the Whitening Parameters
We calculate here explicitly , which satisfies the condition (24).
As , (24) can be decomposed into
[TABLE]
Thus,
[TABLE]
are required to satisfy this condition.
Let us look at these conditions. (26) can be satisfied by
[TABLE]
Also, for (27), we first set the matrix by the following
[TABLE]
Then, (27) becomes
[TABLE]
Because is a symmetric matrix, there exists a orthogonal matrix , which makes it diagonal.
[TABLE]
Here is the diagonalized matrix. Then, if we set
[TABLE]
the condition (30) is approximately satisfied. (Here, is a small positive constant to avoid division by zero. )
By this process, called the whitening process, according to (28) and (32), we update the whitening parameters satisfying (24). We note that, in this updating, the calculation of in feed-forward phase is essential.
3.1.3 Updating of the model parameters
We now turn our attention to the updating of the model parameters . We need to pay attention so that the inclusion of the whitening process and the associated layer does not change the value of the multilayer Perceptron function (MPF) itself. In concrete, we need to do the following. Let us assume the whitening parameters are updated to . We want to keep the value of (21) unchanged by this updating. This places a constrains in the way we update the model parameters . Namely, for any value of , the following must be satisfied.
[TABLE]
We can obtain the following by solving these equations.
[TABLE]
By putting together (20) and (21), we can set as
[TABLE]
Using these , we can re-write (34)and (35) as
[TABLE]
Thus, we can keep MPF the same by updating whitening parameters first as in (28) and (32) and then update model parameters with (38) and (39).
As we change model parameters, the values of changes, which in turn requires the update of the whitening parameters to keep the FIM close to the identity matrix. However, it is computationally expensive to update both set of parameters at every iterations. In particular, the update of the whitening parameters for a layer of neurons takes computation of the order of . Thus, in actual implementations, the update of the whitening parameters are performed at certain fixed time intervals[4], though this makes a gradual digression from the NGD for that time interval between the successive updating of the whitening parameters.
The method and algorithm described above is called “Projected Natural Gradient Descent”(PRONG)[4], which is outlined in Algorithm 1.
3.2 Extension of Whitening
Here, we describe our proposal of the new extended whitening algorithms based on 3.1.
In the whitening method described above, in order to keep the approximated FIM, , closer to the identity matrix, updating of the whitening parameters are performed. This makes the first factor in
[TABLE]
closer to the identity matrix.
The main idea of our method is to make the second factor toward the identity as well, so that is even better approximated by the identity matrix. This turns out that we implement whitening process not only in the feed-forward phase but also in the back-propagating phase.
3.2.1 Bidirectional Whitened Neural Networks
In order to perform the back-whitening, we modify the forward-whitening process described by (20), (21) and (22) into the following.
[TABLE]
Here, is a newly introduced parameter, called the back-whitening parameter.
We show, as in Figure 1, the architecture of this extended method defined by (41), (42), (43), (44) in the Figure 2. The dark gray part in the Figure 2 is the newly introduced layer to accommodate the back-whitening parameter .
As mentioned above, this proposed method performs whitening process both in feed-forward and back-propagating phase. Thus, we call this new architecture as the Bidirectional Whitened Neural Networks (BWNN).
We introduce a new parameter in place of as in the following.
[TABLE]
Then, the approximation of is then expressed as
[TABLE]
In analogy with Section 3.1, we will fix the back-whitening parameter so that
[TABLE]
3.2.2 Updating of the back-whitening parameter
Let us explicitly find to satisfy (47). From (45), we have
[TABLE]
Thus, is a linear transformation of , which can be written as
[TABLE]
By inserting (49) into (47), we obtain
[TABLE]
Hence, in analogy with (32), which satisfies (47) is given by the following
[TABLE]
Here, are the diagonalized and the orthogonal matrices associated with , and is the small positive parameter to avoid a division by zero.
Altogether, as in the case of the forward-whitening parameters, (47) is satisfied by updating of the back-whitening parameters according to (51), which, in turn, depends on the calculation of in the back-propagating phase.
3.2.3 Updating of the model parameters
As in the feed-forward phase, we update the model parameters so that the values of the multilayer Perceptron function are kept the same when the back-whitening parameters are updated.
In order to achieve this, the model parameters need to be updated as follows, given the back-whitening parameters are updated from to .
[TABLE]
We will call the above algorithm as “Bidirectional Projected Natural Gradient Descent”(BPRONG) because it performs whitening both in feed-forward and back-propagaing phase. Its outline is shown in Algorithm 2. Also, as in the forward-whitening, we can perform the back-whitening update in a fixed intervals. They can both be done at the same time, or independently. In the following section, we will employ the latter method for a numerical application.
4 Numerical Experiment
In order to see the efficacy of our proposed method BPRONG in 3.2, we have applied it to a problem of hand-written character (digits) recognition using the MNIST data set (http://yann.lecun.com/exdb/mnist/) and compared against three other methods: ordinary Stochastic Gradient Descent(SGD), Batch
Normalization(BN)[5], and PRONG. The network architecture is common to all the compared methods with 5 layers of 784-100-100-100-10 neurons from input to output. Also, common learning rate of is taken and the mini-batch size is . The training data contains sets and the test data has . We call updates of as epoch, and plot, at each epoch, the training loss with the training set, and the validation loss with the test data sets.
We observe the advantage of BPRONG with respect to the iteration numbers both in the training and the validation losses as shown in Figures 3 and 4. With respect to the actual computation times, BPRONG is faster than PRONG, and about the same speed as the BN (Figures 5 and 6). This is due to the fact that eigenvalue decomposition associated with the whitening is computationally costly to offset the advantage over BN with respect to iteration numbers.
Altogether, our proposed method, BPRONG, has shown its potential. If we can find methods to speed up the whitening process, BPRONG can show its effectiveness further.
5 Discussion
We presented here an extended model of the previously proposed Whitened Neural Networks[4] as a method to realize the Natural Gradient Descent. Our extension, which we call Bidirectional Whitened Neural Networks, aims to make the Fisher Information Matrix closer to the identity matrix. It has shown its potential as an efficient method thorough a numerical application to a hand-written digits recognition problem.
We note two points as topics to be investigated further. First, the proposed model should be tested for larger and deeper network architectures for a check of its efficacy and stability. It may require further modifications for improvements on these aspects, particularly by exploring matrix decomposition methods. Secondly, we want to find more dynamical way for whitening process. In other words, we would like to keep the Fisher Information Matrix constantly closer to the identity by continuous whitenings. Though it is computationally more expensive, we may build on some previous studies, such as adaptive calculations of transforming matrices[3].
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[1] Shun-ichi Amari. Natural gradient works efficiently in learning. Neural computation , 10(2):251–276, 1998.
- 2[2] Shun-ichi Amari and Hiroshi Nagaoka. Methods of Information Geometry (Translations of Mathematical Monographs) . American Mathematical Society, 2007.
- 3[3] J-F Cardoso and Beate H Laheld. Equivariant adaptive source separation. IEEE Transactions on signal processing , 44(12):3017–3030, 1996.
- 4[4] Guillaume Desjardins, Karen Simonyan, Razvan Pascanu, and Koray Kavukcuoglu. Natural neural networks. In C. Cortes, N. D. Lawrence, D. D. Lee, M. Sugiyama, and R. Garnett, editors, Advances in Neural Information Processing Systems 28 , pages 2071–2079. Curran Associates, Inc., 2015.
- 5[5] Sergey Ioffe and Christian Szegedy. Batch normalization: Accelerating deep network training by reducing internal covariate shift. In Proceedings of the 32nd International Conference on Machine Learning (ICML-15) , pages 448–456, 2015.
- 6[6] James Martens. New insights and perspectives on the natural gradient method. ar Xiv preprint ar Xiv:1412.1193 , 2014.
- 7[7] James Martens and Roger Grosse. Optimizing neural networks with kronecker-factored approximate curvature. ar Xiv preprint ar Xiv:1503.05671 , 2015.
- 8[8] Hyeyoung Park, Shun-ichi Amari, and Kenji Fukumizu. Adaptive natural gradient learning algorithms for various stochastic models. Neural Networks , 13(7):755–764, 2000.
