TL;DR
This paper introduces dropout as a training method. On each training case, every hidden unit is left out of the network with probability one half. A unit cannot count on any particular neighbour being present, so it has to learn features that help on their own. The authors report that this cuts overfitting on small training sets and sets new records on several speech and object recognition benchmarks.
They also change two things around it. The weights are limited by a per-unit norm bound instead of a penalty, and at test time a single "mean network" with halved outgoing weights replaces averaging over the thinned networks.
Where you'll see it: the paper that introduced dropout. Most later uses of dropout in fully connected and convolutional networks trace back to it.
The problem
A large feedforward network trained on a small dataset fits the training set very well and then does badly on held-out data. The paper calls this overfitting. Many different weight settings can fit the training data almost perfectly, and most of them make poor predictions on new inputs, because the hidden units have been tuned to work together on the training examples and not on the world.
The standard fix at the time was to train many separate networks and average them, which is what Ensemble Learning does. That works, but it costs a full training run per network, and it costs that much again at test time. Before this paper, the usual ways to shrink the gap were data augmentation, convolutional architectures with built-in spatial structure, generative pre-training, and penalties on weight size such as L2 Regularization. Each helped, but none gave a cheap way to average a very large number of networks.
Key idea
The paper's insight is that a single network can act like a huge ensemble if its units are randomly switched on and off. The sketch below shows one training case.
flowchart LR A["Training case"] --> B["Draw a random mask: each hidden unit kept with probability 0.5"] B --> C["Forward pass through the thinned network"] C --> D["Backpropagate and update the shared weights"] D --> E["Next training case: a new mask"] E --> B F["Test time"] --> G["Mean network: all units on, outgoing weights halved"]
Each mask defines a different sub-network. Because the weights are shared, the whole run trains an enormous set of networks that all use the same parameters. The mean network at test time is a cheap way to read off their combined prediction. The picture is the same as Bagging, with each model trained on one case and tied to all the others through shared weights.
The method
Training with dropout
For a hidden layer, let be the layer's activations before dropout and its nonlinearity. Following the paper, is the probability of keeping a unit, so in the main experiments. For each hidden unit on each training case, draw an independent mask bit
where the Bernoulli distribution is the one in the coin-flip model. The unit's output is then
so a unit with sends nothing to the next layer on that case. Gradients are computed by Backpropagation through the thinned network, and the update is ordinary Stochastic Gradient Descent on mini-batches. The masks are the only new ingredient. Dropout is also applied to the input pixels in some experiments, with a keep probability of 0.8.
The norm constraint
The paper does not use a penalty on the squared length of the whole weight vector, which is what L2 Regularization does. Instead, for each hidden unit with incoming weight vector , it imposes an upper bound on the L2 norm:
After an update that breaks the bound, the unit's incoming weights are rescaled by division so the norm equals again. The appendix states the bound on the squared length and picks it by cross-validation: a maximum squared length of 15 for MNIST, which is . Because the constraint is enforced directly, weights cannot grow large whatever the size of the proposed update. That lets the method start with a large learning rate and decay it, which the authors found gave a much more thorough search of weight space than starting small.
Test time: the mean network
At test time nothing is dropped. Each unit's outgoing weights are multiplied by , which is one half in the paper. For a network with one hidden layer and a Softmax output, the authors show that this mean network gives the geometric mean of the label distributions predicted by all thinned networks for hidden units, renormalised so the probabilities sum to one. The argument is that a geometric mean over a set of distributions is a sensible way to combine them, and the mean network computes it in one pass.
Two consequences follow from the paper:
- If the thinned networks do not all agree, the mean network assigns a higher log probability to the correct label than the average of the individual networks' log probabilities. This is a Jensen-type inequality on the log.
- For regression with linear outputs, the squared error of the mean network is never worse than the average squared error of the thinned networks.
The exact geometric-mean result is for one hidden layer. The paper says only that, in practice, the mean network gives performance very similar to averaging over a large number of dropout networks, and it uses the same halving rule in its deeper networks.
Training schedule
The appendix gives the MNIST schedule in full. Stochastic gradient descent uses mini-batches of 100 and a cross-entropy objective, with a learning rate that starts at 10 and is multiplied by 0.998 after each epoch, and is also scaled by . The momentum coefficient, which the appendix writes as although it is not the keep probability, ramps linearly from 0.5 to 0.99 over the first 500 epochs and then stays there. The appendix text says "epochs" and defines the ramp length as in its update formula, which indexes the step by without saying whether counts epochs or updates; the text's "epochs" is the clearer statement. Weights start from a normal distribution with standard deviation 0.01, no weight decay is used, and training runs for 3000 epochs. See Momentum for what that term does. The authors say a high starting learning rate with decay gave a significant boost over a constant rate.
Results
The paper reports results on five datasets. The numbers below are as stated in the paper. In a few places the main text and the appendices describe the setup differently, and those are flagged.
MNIST handwritten digits. The best published feedforward result without pre-training, transformed training data, or weight sharing was 160 test errors out of 10,000. A net with 50% dropout on all hidden layers and separate norm constraints per unit reduced this to about 130 errors. Also dropping a random 20% of the input pixels reduced it to about 110.
Generative pre-training followed by fine-tuning. A publicly available deep belief net fine-tuned with standard backpropagation made 118 errors. Fine-tuned with 50% dropout on hidden units, it made 92. For a deep Boltzmann machine pre-trained five times, standard fine-tuning gave 103, 97, 94, 93 and 88 errors, a mean of 95. With dropout the same five runs gave 83, 79, 78, 78 and 77, a mean of 79. The authors describe 79 as a record for methods that use no prior knowledge or enhanced training data. The appendix summary of the same experiment says usual fine-tuning gives "about 94" errors, while the five listed runs average 95 (the 94 is the median of the five, which may be what was meant); the dropout mean of 79 agrees in both places.
TIMIT speech. The network had four fully connected hidden layers of 4000 units, 21 input frames and 185 softmax outputs that are merged into 39 phone classes. The paper says 50% dropout significantly improves frame classification error for a variety of architectures. After the class probabilities go through a Viterbi decoder over HMM states, the paper calls the result a "recognition rate" of 22.7% without dropout and 19.7% with dropout. Since the number falls when dropout is added and is called an improvement, these are error percentages, so lower is better. The authors describe 19.7% as a record for methods that use no speaker identity information. The main text uses 21 input frames, while the TIMIT appendix says it tried 15 and 31 frames, so the 21-frame network is not among the variants the appendix lists.
CIFAR-10. The best published error without transformed data was 18.5%. The main text says a convolutional net with three convolutional layers interleaved with three max-pooling layers, followed by one locally connected layer, reached 16.6%, and that adding dropout in the last hidden layer reduced the error to 15.6%. Appendix G describes the two models differently. The model without dropout has three convolutional layers, where only the first pooling layer is max-pooling and the other two are average-pooling, and it feeds a softmax directly with no locally connected layer. The dropout model adds a fourth, locally connected layer with 16 banks of filters, and that is where the 50% dropout is applied. So the main text puts the locally connected layer in the 16.6% network, and the appendix puts it only in the 15.6% one. The error rates agree in both places; the architecture of the no-dropout model does not.
ImageNet. The 2010 winning entry, an average of six models, had a 47.2% error, and the paper cites 45.7% as the current state of the art. The paper's single network without dropout reached 48.6%. Adding 50% dropout reduced the error to what it calls a record 42.4%. The text says the network has five convolutional layers and two globally connected layers, and puts the dropout in the "sixth hidden layer". Appendix H instead says 50% dropout is used in both of the last two globally connected layers (4096 units each), and that the model without dropout "is similar, but without the two globally-connected layers". So the text and appendix disagree on whether the 48.6% baseline has the two globally connected layers and on whether dropout is applied to one or two of them.
Reuters documents. A feedforward net with two layers of 2000 hidden units trained with backpropagation had 31.05% test error. With 50% dropout it had 29.62%. The Reuters appendix lists a 2000-2000-1000-50 architecture trained for 500 epochs, so "two layers of 2000 hidden units" in the text is a simplification.
Across the tasks, the paper reports that almost every dropout rate it tried improved generalisation. Dropout in all hidden layers worked better than dropout in a single hidden layer, and the authors kept 0.5 throughout. For inputs, keeping more than half of the units was usually better.
Why it mattered
The paper turned dropout from an idea into a default. It needed no extra parameters, little code, and worked across speech, text and vision models. The record ImageNet result and the large CIFAR-10 gain drew attention to it, and the 2012 AlexNet network, which won the ImageNet challenge that year, used dropout in its fully connected layers.
The paper also framed regularisation as model averaging. That view led to the careful analysis in the 2014 JMLR paper by Srivastava and co-authors. The inverted scaling used by modern libraries, where the factor is applied during training so that test time needs no change, is covered in Dropout. The method is also the starting point for later noise-based regularisers and for work that places dropout in transformer blocks. The discussion section of the paper places it beside Bayesian Model Averaging and Mixture of Experts, as a cheap alternative to averaging many models, and notes that the learned version of the keep probability resembles a mixture of experts with combinatorially many experts.
Reading guide
Read the paper in this order, with these prerequisites:
- Introduction and the overfitting argument (first three paragraphs). Needs Feedforward Neural Network for the network picture and Overfitting for the problem.
- The dropout procedure and the mean network (paragraphs on the mask and on test time). Needs Dropout for the intuition, Bernoulli Distribution for the mask, and Ensemble Learning for the averaging idea.
- The norm constraint and training (the paragraph on constraints, and Appendix A.1). Needs Stochastic Gradient Descent, Backpropagation, L2 Regularization for the contrast with a penalty, and Momentum for the schedule.
- MNIST, TIMIT, and the generative pre-training results. Needs Softmax and Cross-Entropy Loss for the output layer and the objective. Relevant to the comparison with Data Augmentation, which the paper mentions as an alternative way to improve MNIST.
- CIFAR-10, ImageNet and Appendices D to G. Needs Convolutional Neural Network for the architecture, and Appendix F gives the CNN background the paper assumes.
- Reuters and the discussion (the paragraphs on keep probabilities, bagging, Bayesian model averaging, and mixture of experts). Needs Bagging, Bayesian Model Averaging, and Mixture of Experts.
Check yourself
QuestionRecall: what does the paper's mean network do at test time?Show answer
It keeps every hidden unit active and multiplies each unit's outgoing weights by the keep probability, which is one half in the paper. This single pass approximates the combined prediction of the exponentially many thinned networks that were trained during the run. For one hidden layer with a softmax output, the authors show it equals their geometric mean, renormalised.
QuestionComputation: a hidden layer has 1000 units and the keep probability is 0.5. How many thinned networks does one hidden layer define, and what is the expected number of active units on a training case?Show answer
One hidden layer defines distinct thinned networks, one for each possible mask. On a training case each unit is kept independently with probability , so the expected number of active units is . The actual count varies around 500 with a standard deviation of .
QuestionWhy: why does the paper use a norm bound on each unit's incoming weights instead of a penalty on the full weight vector?Show answer
A penalty only discourages large weights, so a large enough gradient step can still push them far out. A hard bound on each unit's incoming norm caps the weights no matter how big the update is. That allows a large starting learning rate, which the authors found helped the search of weight space a lot. The constraint is per unit, so one unit's weights cannot grow to dominate the others.
QuestionApplied: a team uses dropout with keep probability 0.5 on a 300-unit hidden layer and sees that test predictions are much worse than training predictions after switching off dropout for evaluation. What is the most likely cause, and what check would you run?Show answer
The likely cause is that the test-time network was not scaled to match training. If dropout is in train mode during inference, predictions are random. If dropout is off but the weights were not scaled by the keep probability, every unit's contribution is about twice as large as in training. Check that the evaluation path uses the mean network with weights multiplied by , or that the framework uses inverted dropout consistently. A quick test is to compare the average activation of the layer on training and test batches; they should match.
Sources
- Hinton, G. E., Srivastava, N., Krizhevsky, A., Sutskever, I., and Salakhutdinov, R. R. (2012). Improving neural networks by preventing co-adaptation of feature detectors. arXiv:1207.0580
- Srivastava, N., Hinton, G., Krizhevsky, A., Sutskever, I., and Salakhutdinov, R. (2014). Dropout: A Simple Way to Prevent Neural Networks from Overfitting. JMLR 15
- Dropout (neural networks) (Wikipedia)