Literature DB >> 27066332

Convergence of batch gradient learning with smoothing regularization and adaptive momentum for neural networks.

Qinwei Fan1, Wei Wu2, Jacek M Zurada3.   

Abstract

This paper presents new theoretical results on the backpropagation algorithm with smoothing [Formula: see text] regularization and adaptive momentum for feedforward neural networks with a single hidden layer, i.e., we show that the gradient of error function goes to zero and the weight sequence goes to a fixed point as n (n is iteration steps) tends to infinity, respectively. Also, our results are more general since we do not require the error function to be quadratic or uniformly convex, and neuronal activation functions are relaxed. Moreover, compared with existed algorithms, our novel algorithm can get more sparse network structure, namely it forces weights to become smaller during the training and can eventually removed after the training, which means that it can simply the network structure and lower operation time. Finally, two numerical experiments are presented to show the characteristics of the main results in detail.

Entities:  

Keywords:  Adaptive momentum; Convergence; Feedforward neural networks; Smoothing [Formula: see text] regularization

Year:  2016        PMID: 27066332      PMCID: PMC4783325          DOI: 10.1186/s40064-016-1931-0

Source DB:  PubMed          Journal:  Springerplus        ISSN: 2193-1801


Background

A multilayer perceptron network trained with a highly popular algorithm known as the error back-propagation (BP) has been dominating in the neural network literature for over two decades (Haykin 2008). BP uses two practical ways to implement the gradient method: the batch updating approach that accumulates the weight corrections over the training epoch before performing the update, while the online learning approach updates the network weights immediately after each training sample is processed (Wilson and Martinez 2003). Note that training is usually done by iteratively updating of the weights that reduces error value, which is proportional to the negative gradient of a sum-square error (SSE) function. However, during the training of feedforward neural networks (FNN) with SSE, the weights might become very large or even unbounded. This drawback can be addressed by adding a regularization term to the error function. The extra term acts as a brute-force to drive unnecessary weights to zero to prevent the weights from taking too large values and then it can be used to remove weights that are not needed, and is also called penalty term (Haykin 2008; Wu et al. 2006; Karnin 1990; Reed 1993; Saito and Nakano 2000). There are four main different penalty approaches for BP training: weight decay procedure (Hinton 1989), weight elimination (Weigend et al. 1991), approximate smoother procedure (Moody and Rognvaldsson 1997) and inner product penalty (Kong and Wu 2001). In the weight decay procedure, the complexity penalty term is defined as the squared norm of the weight vector, and all weights in the multilayer perceptron are treated equally. In the weight elimination procedure, the complexity penalty represents the complexity of the network as function of weight magnitudes relative to a pre-assigned parameter (Reed 1993). In approximate smoother procedure, this penalty term is used for a multilayer perceptron with a single hidden layer and a single neuron in the output layer. Compared with the earlier methods, it does two things. First, it distinguishes between the roles of weights in the hidden layer and those in the output layer. Second, it captures the interactions between these two sets of weights, however, it is much more demanding in computational complexity than weight decay or weight elimination methods. In Kong and Wu (2001) the inner-product form is proposed and its efficiency in general performance of controlling the weights is demonstrated. Convergence of the gradient method for the FNN has been considered by Zhang et al. (2015, 2009), Wang et al. (2012) and Shao and Zheng (2011). The convergence of the gradient method with momentum is considered in Bhaya and Kaszkurewicz (2004), Torii and Hagan (2002), Zhang et al. (2006), in Bhaya and Kaszkurewicz (2004) and Torii and Hagan (2002) under the restriction that the error function is quadratic. Inspired by Chan and Fallside (1987), Zhang et al. (2006) considers the convergence of a gradient algorithm with adaptive momentum, without assuming the error function to be quadratic as in the existing results. However, in Zhang et al. (2006), the strong convergence result is based on the assumption that the error function is uniformly convex, which still seems a little intense. The size of a hidden layer is one of the most important considerations when dealing with real life tasks using FNN. However, the existing pruning methods may not prune the unnecessary weights efficiently, so how to efficiently simplify the network structure becomes our main task. Recently, considerable attention has been paid to the sparsity problems and a class of regularization methods was proposed which take the following form:where is a loss function, is a data set, and is the regularization parameter. When h is in the linear form and the loss function is square loss, is normally taken as the norm of the coefficient of linear model. For , (1) becomes regularization and can be understood as a penalized least squares with penalty , which yields the most sparse solutions, but for large data analysis it faces the problem of combinatory optimization (Davis 1994; Natarajan 1995). In order to deal with such difficulty, Tibshirani (1996) proposed regularization where and is the norm of n dimensional Euclidean space , which just needs to solve a quadratic programming problem but is less sparse than the regularization. At the same time Donoho (1995, 2005) proved that under some conditions the solutions of the regularizer are equivalent to those of the , so the hard NP optimization problem can be avoided in the regularizer. In order to find a new regularizer which is more sparse than the regularizer while it is still easier to be solved than the regularizer, in Xu et al. (2010) a modified regularizer is proposed of the following form:where is the tuning parameter. As shown in Xu et al. (2010), regularizer has a nonconvex penalty and possesses many promising properties such as unbiasedness, sparsity, oracle properties and can be taken as a representative of the regularizer. Recently, we develop a novel method to prune FNNs through modify the usual regularization term by smoothing technique. The new algorithm not only removes the oscillation of the gradient value, but also get better pruning, namely the final weights to be removed are smaller than those produced through the usual regularization (Wu et al. 2014; Fan et al. 2014). The focus of this paper is on extension of regularization beyond its basic concept though its augmentation with a momentum term. Also, there are some other applications of FNNs for optimization problems, such as the generalized gradient and recurrent neural network methods shown as Liu et al. (2012) and Liu and Cao (2010) It is well known that a general drawback of gradient based BP learning process is its slow convergence. To accelerate learning, a momentum term is often added (Haykin 2001; Chan and Fallside 1987; Qiu et al. 1992; Istook and Martinez 2002). By adding momentum to the update formula, the current weight increment is a linear combination of the gradient of the error function and the previous weight increment. As a result, the updates respond not only to the local gradient but also to recent gradient in the error function. Selected reports discuss the NN training with momentum term in the literature (Torii and Hagan 2002; Perantonis and Karras 1995; Qian 1999). As demonstrated in Torii and Hagan (2002), there always exists a momentum coefficient that will stabilize the steepest descent algorithm, regardless of the value of the learning rate (we will define it below). In addition, it shows how the value of the momentum coefficient changes the convergence properties. Momentum acceleration, its performance in terms of learning speed and scalability properties is evaluated and found superior to the performance of reputedly fast variants of the BP algorithm in several benchmark training tasks in Perantonis and Karras (1995). Qian (1999) shows that in the limit of continuous time, the momentum parameter is analogous to the mass of Newtonian particles that move through a viscous medium in a conservative force field. In this paper, a modified batch gradient method with smoothing regularization penalty and adaptive momentum algorithm (BGSAM) is proposed. It damps oscillations present in the regularization and in the adaptive momentum algorithm (BGAM). In addition, without the requirement that the error function is quadratic or uniformly convex, we present a comprehensive study of the weak and strong convergence for BGSAM which offers an effective improvement in real life application. The rest of this paper is arranged as follows. The algorithm BGSAM is described in “Batch gradient method with smoothing ” section. In “Convergence results” section, the convergence results of BGSAM are presented, and the detailed proofs of the main results are stated in the “Appendix”. The performance of BGSAM is compared to BGAM and the experimental results shown in “Numerical experiments” section. Concluding remarks are in “Conclusions” section.

Batch gradient method with smoothing regularization and adaptive momentum (BGSAM)

Batch gradient method with regularization and adaptive momentum (BGAM)

Here and below, some definitions and notations used in e.g. Wu et al. (2006), Shao and Zheng (2011), and Wu et al. (2006), Shao and Zheng (2011) have been re-defined and used without repeatedly citing the references. We consider a FNN with three layers, and we denote the numbers of neurons of the input, hidden and output layers by p, q and 1, respectively. Suppose that is the given set of J training samples. Let be the weight vector between the hidden units and the output unit, and be the weight vector between the input units and the hidden unit i. To simplify the presentation, we combine the weight vectors, and write and we define a matrix . We also define a vector function , for Let be a given transfer function for the hidden and output nodes, which is typically, but not necessarily, a sigmoid function. Then for each input , the actual output vector of the hidden layer is and the final output of the network is For a fixed W, the output error function with the regularization penalty term iswhere , , , is the penalty coefficient, and denotes the absolute value. The gradient of the error function iswhereThe gradient of the error function with respect to and are, respectively, given bywhere and . The detailed BGAM algorithm is presented as follows. We denote , starting from an arbitrary initial value and , and the weights are updated iteratively by The learning rate is assumed constant and satisfies , and is the momentum coefficient vector of the n-th training. It consists of coefficients for each , and for each . Similar to Shao and Zheng (2011), for every , after each training epoch it is chosen aswhere is the momentum factor. Compared with the traditional algorithm, the BGAM has better pruning performance, but we notice that this usual regularization term used in this part involves in absolute values and it is not differentiable at the origin, which will cause difficulty in the convergence analysis. More importantly, it causes oscillations of the error function and the norm of gradient. In order to overcome these drawbacks we improved the BGAM algorithm as follows:

Smoothing regularization and adaptive momentum (BGSAM)

This section introduces a modified algorithm with smoothing regularization and adaptive momentum term. The network structure is the same as the description in part of last subsection (BGAM). We modify the usual regularization term at the origin (i.e. we replace the absolute values of the weights by a smooth function in a neighborhood of the origin). Then we use a smooth function f(x) to approximate |x|. We get the following error function with a smoothing regularization penalty term:where , , , is the penalty coefficient. Here, by smoothing we mean that, in a neighborhood of the origin, we replace the absolute values of the weights by a smooth function of the weights. For definiteness and simplicity, we choose f(x) as a piecewise polynomial function such as:where a is a small positive constant. and denotes the absolute value. Then, from the definition of f(x) immediately yields The gradient of the error function with respect to W as in (6), and the gradients of the error function with respect to and are then as follows:where . For BGSAM algorithm, we denote . Starting with an initial value and , the weights are updated iteratively by Here the learning rate , the momentum coefficient vector of the n-th training and other coefficients are the same as the description of algorithm BGAM. For each , after each training epoch it is chosen as (10).

Convergence results

The following assumptions are needed to introduce the relating convergence theorems of BGSAM. |g(t)|, , are uniformly bounded for . There exists a bounded region such that . , where and is a constant defined in (16) below. Assume conditions (A1)–(A2) is valid. Then there are some positive constants – such that

Theorem 1

If assumptions are valid for any arbitrary initial value and , the error function be defined by (1), and let the learning sequence 1 be generated by the iteration algorithm (15), then we have the following convergence . Moreover, (A4) if there exists a compact set such that and the set contains finite points also holds, then we have the following convergence where .

Numerical experiments

This section presents the simulations that verify the performance of BGAM and BGSAM. Our theoretical results are experimentally verified with the 3-bit parity problem, which is a typical benchmark problem in area of the neural networks. The two algorithms (BGAM and BGSAM) are implemented by the networks with the structure 5-7-1 (input , hidden and output nodes, see Fig. 1). Each of the two algorithms are carried out fifty trials for 3-bit parity problem and then take the mean values, and the termination criterion is that the error is 1e6 or 3000 iterations. For the network with linear output, we set the transfer function for hidden neurons to be and that for output layer to be . For the network with nonlinear output, the transfer functions for both hidden and output neurons are . The inputs and the ideal outputs are shown in Table 1.
Fig. 1

Feedforward neural network with one hidden layer and one output

Table 1

3-bit parity problem

InputOutputInputOutput
111−111−1−1−11
11−1−10−111−10
1−11−10−1−11−11
−1−1−1−10−11−1−11
Feedforward neural network with one hidden layer and one output 3-bit parity problem The performance results of BGAM and BGSAM are shown in the following figures. Figures 2, 3 and 4 present the comparison results for learning rate , penalty parameter and momentum term with 0.01, 0.0006 and 0.03, respectively.
Fig. 2

The curve of error function

Fig. 3

The curve of norm of gradient

Fig. 4

The curve of norm of weight

From Figs. 2 and 3, it can be seen that the error function decreases monotonically and the norm of the gradient of the error function approaches zero as depicted by the convergence theorem, respectively. Also Fig. 3 show us that our modified algorithm overcomes the drawbacks of numerical oscillations, i.e., for BGSAM the norm of gradient curve is much smoother than BGAM. The reason as the following: Since the derivative of |x| jumps from to near the , the learning process of BGAM will oscillate when a weight is close to zero, whic prevents it from getting further closer to zero. And on the contrary, the derivative of f(x), which is a smooth approximation of |x|, is smooth and equal to zero at the origin, and will not cause any oscillation in the learning process when is close to zero. In the meantime, it can be seen that BGSAM convergence faster than BGAM. Fig. 4 demonstrates that the effectiveness of the algorithm BGSAM in controlling the magnitude of weights is better than BGAM. The curve of error function The curve of norm of gradient The curve of norm of weight

Conclusions

In this paper, the smoothing regularization term with adaptive momentum is introduced into the batch gradient learning algorithm to prune FNN. First, it removes the oscillation of the gradient value. Second, the convergence results for three-layer FNN are proved under certain relaxed conditions. Third, the algorithm is applied to a 3-bit parity problem and the related results are supplied to support the theoretical findings above. Finally, this new algorithm will also effective for other types neural networks or big data processing.
  15 in total

1.  Second-order learning algorithm with squared penalty term.

Authors:  K Saito; R Nakano
Journal:  Neural Comput       Date:  2000-03       Impact factor: 2.026

2.  On the momentum term in gradient descent learning algorithms.

Authors:  Ning Qian
Journal:  Neural Netw       Date:  1999-01

3.  Improved backpropagation learning in neural networks with windowed momentum.

Authors:  Ernest Istook; Tony Martinez
Journal:  Int J Neural Syst       Date:  2002 Jun-Aug       Impact factor: 5.866

4.  A one-layer recurrent neural network for constrained pseudoconvex optimization and its application for dynamic portfolio optimization.

Authors:  Qingshan Liu; Zhishan Guo; Jun Wang
Journal:  Neural Netw       Date:  2011-09-16

5.  Convergence of gradient method with momentum for two-layer feedforward neural networks.

Authors:  Naimin Zhang; Wei Wu; Gaofeng Zheng
Journal:  IEEE Trans Neural Netw       Date:  2006-03

6.  A simple procedure for pruning back-propagation trained neural networks.

Authors:  E D Karnin
Journal:  IEEE Trans Neural Netw       Date:  1990

7.  Pruning algorithms-a survey.

Authors:  R Reed
Journal:  IEEE Trans Neural Netw       Date:  1993

8.  Stability of steepest descent with momentum for quadratic functions.

Authors:  M Torii; M T Hagan
Journal:  IEEE Trans Neural Netw       Date:  2002

9.  Boundedness and convergence of online gradient method with penalty for feedforward neural networks.

Authors:  Huisheng Zhang; Wei Wu; Fei Liu; Mingchen Yao
Journal:  IEEE Trans Neural Netw       Date:  2009-05-08

10.  Batch gradient method with smoothing L1/2 regularization for training of feedforward neural networks.

Authors:  Wei Wu; Qinwei Fan; Jacek M Zurada; Jian Wang; Dakun Yang; Yan Liu
Journal:  Neural Netw       Date:  2013-11-18
View more
  3 in total

1.  An efficient method for generalized linear multiplicative programming problem with multiplicative constraints.

Authors:  Yingfeng Zhao; Sanyang Liu
Journal:  Springerplus       Date:  2016-08-09

2.  Optimality condition and iterative thresholding algorithm for [Formula: see text]-regularization problems.

Authors:  Hongwei Jiao; Yongqiang Chen; Jingben Yin
Journal:  Springerplus       Date:  2016-10-26

3.  Strong convergence theorems for a common zero of a finite family of H-accretive operators in Banach space.

Authors:  Huimin He; Sanyang Liu; Rudong Chen
Journal:  Springerplus       Date:  2016-06-30
  3 in total

北京卡尤迪生物科技股份有限公司 © 2022-2023.