Example: dental hygienist

Understanding the difficulty of training deep feedforward ...

249 Understanding the difficulty of training deep feedforward neural networksXavier GlorotYoshua BengioDIRO, Universit e de Montr eal, Montr eal, Qu ebec, CanadaAbstractWhereas before 2006 it appears that deep multi-layer neural networks were not successfullytrained, since then several algorithms have beenshown to successfully train them, with experi-mental results showing the superiority of deepervs less deep architectures. All these experimen-tal results were obtained with new initializationor training mechanisms. Our objective here is tounderstand better why standard gradient descentfrom random initialization is doing so poorlywith deep neural networks, to better understandthese recent relative successes and help designbetter algorithms in the future. We first observethe influence of the non-linear activations func-tions. We find that the logistic sigmoid activationis unsuited for deep networks with random ini-tialization because of its mean value, which candrive especially the top hidden layer into satu-ration.

deep networks with sigmoids but initialized from unsuper-vised pre-training (e.g. from RBMs) do not suffer from this saturation behavior. Our proposed explanation rests on the hypothesis that the transformation that the lower layers of the randomly initialized network computes initially is

Tags:

  Network, Deep, Deep networks

Information

Domain:

Source:

Link to this page:

Please notify us if you found a problem with this document:

Other abuse

Transcription of Understanding the difficulty of training deep feedforward ...

1 249 Understanding the difficulty of training deep feedforward neural networksXavier GlorotYoshua BengioDIRO, Universit e de Montr eal, Montr eal, Qu ebec, CanadaAbstractWhereas before 2006 it appears that deep multi-layer neural networks were not successfullytrained, since then several algorithms have beenshown to successfully train them, with experi-mental results showing the superiority of deepervs less deep architectures. All these experimen-tal results were obtained with new initializationor training mechanisms. Our objective here is tounderstand better why standard gradient descentfrom random initialization is doing so poorlywith deep neural networks, to better understandthese recent relative successes and help designbetter algorithms in the future. We first observethe influence of the non-linear activations func-tions. We find that the logistic sigmoid activationis unsuited for deep networks with random ini-tialization because of its mean value, which candrive especially the top hidden layer into satu-ration.

2 Surprisingly, we find that saturated unitscan move out of saturation by themselves, albeitslowly, and explaining the plateaus sometimesseen when training neural networks. We find thata new non-linearity that saturates less can oftenbe beneficial. Finally, we study how activationsand gradients vary across layers and during train-ing, with the idea that training may be more dif-ficult when the singular values of the Jacobianassociated with each layer are far from 1. Basedon these considerations, we propose a new ini-tialization scheme that brings substantially deep Neural NetworksDeep learning methods aim at learning feature hierarchieswith features from higher levels of the hierarchy formedby the composition of lower level features. They includeAppearing in Proceedings of the13thInternational Conferenceon Artificial Intelligence and Statistics (AISTATS) 2010, Chia La-guna Resort, Sardinia, Italy. Volume 9 of JMLR: W&CP 9. Copy-right 2010 by the methods for a wide array ofdeep architectures,including neural networks with many hidden layers (Vin-cent et al.)

3 , 2008) and graphical models with many levels ofhidden variables (Hinton et al., 2006), among others (Zhuet al., 2009; Weston et al., 2008). Much attention has re-cently been devoted to them (see (Bengio, 2009) for a re-view), because of their theoretical appeal, inspiration frombiology and human cognition, and because of empiricalsuccess in vision (Ranzato et al., 2007; Larochelle et al.,2007; Vincent et al., 2008) and natural language process-ing (NLP) (Collobert & Weston, 2008; Mnih & Hinton,2009). Theoretical results reviewed and discussed by Ben-gio (2009), suggest that in order to learn the kind of com-plicated functions that can represent high-level abstractions( in vision, language, and other AI-level tasks), onemay needdeep of the recent experimental results with deep archi-tecture are obtained with models that can be turned intodeep supervised neural networks, but with initialization ortraining schemes different from the classical feedforwardneural networks (Rumelhart et al.

4 , 1986). Why are thesenew algorithms working so much better than the standardrandom initialization and gradient-based optimization of asupervised training criterion? Part of the answer may befound in recent analyses of the effect of unsupervised pre- training (Erhan et al., 2009), showing that it acts as a regu-larizer that initializes the parameters in a better basin ofattraction of the optimization procedure, corresponding toan apparent local minimum associated with better general-ization. But earlier work (Bengio et al., 2007) had shownthat even a purely supervised but greedy layer-wise proce-dure would give better results. So here instead of focus-ing on what unsupervised pre- training or semi-supervisedcriteria bring to deep architectures, we focus on analyzingwhat may be going wrong with good old (but deep ) multi-layer neural analysis is driven by investigative experiments to mon-itor activations (watching for saturation of hidden units)and gradients, across layers and across training also evaluate the effects on these of choices of acti-vation function (with the idea that it might affect satura-tion) and initialization procedure (since unsupervised pre- training is a particular form of initialization and it has adrastic impact).

5 250 Understanding the difficulty of training deep feedforward neural networks2 Experimental Setting and DatasetsCode to produce the new datasets introduced in this sectionis available from: lisa/twiki/ Online Learning on an Infinite Dataset:Shapeset-3 2 Recent work with deep architectures (see Figure 7 in Ben-gio (2009)) shows that even with very large training setsor online learning, initialization from unsupervised pre- training yields substantial improvement, which does notvanish as the number of training examples increases. Theonline setting is also interesting because it focuses on theoptimization issues rather than on the small-sample regu-larization effects, so we decided to include in our experi-ments a synthetic images dataset inspired from Larochelleet al. (2007) and Larochelle et al. (2009), from which asmany examples as needed could be sampled, for testing theonline learning call this dataset theShapeset-3 2dataset, with ex-ample images in Figure 1 (top).

6 Shapeset-3 2con-tains images of 1 or 2 two-dimensional objects, each takenfrom 3 shape categories (triangle, parallelogram, ellipse),and placed with random shape parameters (relative lengthsand/or angles), scaling, rotation, translation and noticed that for only one shape present in the image thetask of recognizing it was too easy. We therefore decidedto sample also images with two objects, with the constraintthat the second object does not overlap with the first bymore than fifty percent of its area, to avoid hiding it en-tirely. The task is to predict the objects present ( trian-gle + ellipse, parallelogram + parallelogram, triangle alone,etc.) without having to distinguish between the foregroundshape and the background shape when they overlap. Thistherefore defines nine configuration task is fairly difficult because we need to discover in-variances over rotation, translation, scaling, object color,occlusion and relative position of the shapes.

7 In parallel weneed to extract the factors of variability that predict whichobject shapes are size of the images are arbitrary but we fixed it to 32 32in order to work with deep dense networks Finite DatasetsThe MNIST digits (LeCun et al., 1998a), dataset has50,000 training images, 10,000 validation images (forhyper-parameter selection), and 10,000 test images, eachshowing a 28 28 grey-scale pixel image of one of the (Krizhevsky & Hinton, 2009) is a labelled sub-Figure 1:Top: Shapeset-3 2 images at 64 64 examples we used are at 32 32 resolution. The learnertries to predict which objects (parallelogram, triangle, or el-lipse) are present, and 1 or 2 objects can be present, yield-ing 9 possible classifications. Bottom: Small-ImageNetimages at full of the tiny-images dataset that contains 50,000 trainingexamples (from which we extracted 10,000 as validationdata) and 10,000 test examples. There are 10 classes cor-responding to the main object in each image: airplane, au-tomobile, bird, cat, deer, dog, frog, horse, ship, or classes are balanced.

8 Each image is in color, but isjust32 32pixels in size, so the input is a vector of32 32 3 = 3072real which is a set of tiny 37 37 gray levelimages dataset computed from the higher-resolution andlarger set , with la-bels from the WordNet noun hierarchy. We have used90,000 examples for training , 10,000 for the validation set,and 10,000 for testing. There are 10 balanced classes: rep-tiles, vehicles, birds, mammals, fish, furniture, instruments,tools, flowers and fruits Figure 1 (bottom) shows randomlychosen Experimental SettingWe optimized feedforward neural networks with one tofive hidden layers, with one thousand hidden units perlayer, and with a softmax logistic regression for the out-put layer. The cost function is the negative log-likelihood logP(y|x), where(x, y)is the (input image, target class)pair. The neural networks were optimized with stochasticback-propagation on mini-batches of size ten, , the av-eragegof logP(y|x) was computed over 10 consecutive 251 Xavier Glorot, Yoshua Bengiotraining pairs(x, y)and used to update parameters in thatdirection, with g.

9 The learning rate is a hyper-parameter that is optimized based on validation set errorafter a large number of updates (5 million).We varied the type of non-linear activation function in thehidden layers: the sigmoid1/(1 +e x), the hyperbolictangenttanh(x), and a newly proposed activation func-tion (Bergstra et al., 2009) called the softsign,x/(1 +|x|).The softsign is similar to the hyperbolic tangent (its rangeis -1 to 1) but its tails are quadratic polynomials ratherthan exponentials, , it approaches its asymptotes the comparisons, we search for the best hyper-parameters (learning rate and depth) separately for eachmodel. Note that the best depth was always five forShapeset-3 2, except for the sigmoid, for which it initialized the biases to be 0 and the weightsWijateach layer with the following commonly used heuristic:Wij U[ 1 n,1 n],(1)whereU[ a, a]is the uniform distribution in the interval( a, a)andnis the size of the previous layer (the numberof columns ofW).

10 3 Effect of Activation Functions andSaturation During TrainingTwo things we want to avoid and that can be revealed fromthe evolution of activations is excessive saturation of acti-vation functions on one hand (then gradients will not prop-agate well), and overly linear units (they will not computesomething interesting). Experiments with the SigmoidThe sigmoid non-linearity has been already shown to slowdown learning because of its none-zero mean that inducesimportant singular values in the Hessian (LeCun et al.,1998b). In this section we will see another symptomaticbehavior due to this activation function in deep want to study possible saturation, by looking at the evo-lution of activations during training , and the figures in thissection show results on theShapeset-3 2data, but sim-ilar behavior is observed with the other datasets. Figure 2shows the evolution of the activation values (after the non-linearity) at each hidden layer during training of a deep ar-chitecture with sigmoid activation functions.


Related search queries