Training · Regularization

Dropout: Improving neural networks by preventing co-adaptation of feature detectors

Switch off half the network at random on every training example, and it overfits far less.

At test time you run the full network once with each hidden unit's outgoing weights halved, which for a one-hidden-layer classifier with hidden units computes the renormalized geometric mean of all subnetworks.

Explaining the paperImproving neural networks by preventing co-adaptation of feature detectorsHinton, Srivastava, Krizhevsky, Sutskever, Salakhutdinov · University of Toronto · arXiv preprint, July 2012 · arXiv:1207.0580 ↗
Listen34 min narrated explainer0:00 / 34:26

The paper's standard MNIST handwritten-digit network has 2,400 hidden units, which gives 22400 distinct subnetworks when each unit is kept or dropped by a coin flip. Over 3,000 passes through 60,000 training images, training runs 180 million forward passes, drawing a fresh subnetwork each time and almost certainly never drawing the same one twice.

In July 2012, Geoffrey Hinton, Nitish Srivastava, Alex Krizhevsky, Ilya Sutskever and Ruslan Salakhutdinov at the University of Toronto posted an 18-page preprint (six pages of main argument, one page of references, and eleven pages of appendices) reporting new records on speech and object recognition using a change that takes one line of code. During training, before a hidden layer passes its numbers to the next layer, flip a fair coin for each unit and set the losers to zero. Five months later, three of the same authors carried this mechanism directly into AlexNet, and for the next decade dropout sat inside almost every deep network trained on limited data.

Why large networks overfit and co-adapt

A feedforward neural network transforms an input vector, such as the 784 pixel intensities of a 28×28 grayscale image, through layers of hidden units before producing a prediction. Each hidden unit computes a weighted sum of its inputs, adds a scalar bias, and applies a nonlinear function to emit one number (a feature activation). Training adjusts all weights and biases by backpropagation, computing how much each weight would lower the training loss (a number measuring prediction error, where lower is better) and nudging it downhill over thousands of examples.

When a network has far more tunable weights than the training set constrains, many different weight settings classify the training examples almost perfectly while making different predictions on unseen test inputs. Almost all of those settings score worse on held-out data than on the training set. That train-to-test gap is overfitting. Shrinking the network reduces overfitting, yet it also cuts the representational capacity you need for hard tasks, which Appendix H of this same paper demonstrates directly on ImageNet: a larger network with extra fully-connected layers fails badly without dropout and wins by over six percentage points with it.

Hinton and colleagues open with a specific hypothesis for why an overparameterized network settles on brittle solutions:

"the feature detectors have been tuned to work well together on the training data but not on the test data."

Backpropagation computes the gradient on unit 4 given what every other unit is currently outputting, and the loss depends only on the final sum. If unit 3 systematically overshoots on the training set, unit 4 can learn a large negative weight whose main job is to subtract unit 3's overshoot. Neither unit computes a sensible feature on its own, yet the pair balances out on the training data. When a test example shifts the inputs slightly, the cancellation fails. The paper calls this fragile partnership a co-adaptation: a feature detector that is useful only in the presence of specific other feature detectors.

Randomly switching off half the hidden units on each training case breaks that bargain. If unit 4 exists mainly to cancel unit 3, then on half the training examples unit 3 is absent and unit 4's large correction becomes an uncompensated error that spikes the loss. Over many random masks, the weights that survive are those that help across the combinatorially large variety of random committees each unit lands in.

To see co-adaptation with exact numbers instead of hand-waving, consider a one-dimensional regression task small enough to solve in closed form: fit a smooth curve over using five fixed hidden features feeding a single linear output unit. Four of the five features come in two near-duplicate pairs, beside and beside , plus itself. Because the pairs are almost collinear, ordinary least squares fits the target to ten decimal places by assigning huge opposing weights: and on the first pair, and and on the second. In Figure 1 below, watch both the fitted curves and the mean squared error (MSE, the average squared vertical distance from the target, where lower is better) as you click units to disable them.

Figure 1 · co-adaptation, and what dropout does to it
Five fixed hidden features fit to the amber target two ways: ordinary least squares (violet) and the exact 50% dropout objective (teal). Click any unit column or button below to remove units and compare the two mean squared errors. Holding the five hidden features fixed allows an exact closed-form solution for the output weights; in neural network training both the hidden features and output weights are learned.

With all five units active, both fits hug the amber target (MSE 0.000 without dropout, 0.028 with dropout). Click u3 to switch it off and the violet curve shoots off the chart: unit 4 keeps adding its share with nothing left to cancel it, sending the error from 0.000 to 43 on a target that never leaves . Click Both of one pair to drop u3 and u4 together and the violet error drops back to 0.155, confirming that the pair had mostly been cancelling itself. Click One from each pair (removing u1 and u3) and the violet error hits 87.8 while the teal dropout fit stays at 0.181, a 486-fold gap, because dropout spread small positive weights (0.165 to 0.282) across all five features instead of pairing large opposing ones.

Those teal weights were solved without any random sampling because for a linear output unit, averaging squared error over all random masks has an exact closed form. The reason comes from a basic probability identity: for any random prediction and target , the expected squared error splits into the squared error of the mean prediction plus the variance of around that mean. Keeping each unit independently with probability using a 0/1 coin flip injects independent variance from each feature proportional to the square of its weight. Writing for the training weights and for the scaled test-time weights gives:

(1)

The first term on the right of (1) is the ordinary mean-network squared error. The second term is a weighted L2 penalty (ridge regression): each weight pays a quadratic tax scaled by , the mean squared activity of its own feature, multiplied by . At that prefactor equals 1, so large cancelling pairs like and pay a massive penalty () whereas five weights around 0.22 pay almost nothing. Equation (1) does not appear in the 2012 preprint; the exact linear-regression form was published in the 2014 journal paper (Srivastava et al., 2014), and Wager, Wang and Liang (2013) proved the general first-order version for generalized linear models. Inside nonlinear hidden layers no closed form exists, so whether dropout acts mainly as an adaptive penalty there remains open.

The 2012 preprint offers no quantitative measurement of co-adaptation. Appendix A.3 displays 100 randomly chosen first-layer weight filters from a 784-500-500 network trained on MNIST without generative pretraining (initializing layers one at a time on unlabeled images before supervised training), points out that the dropout filters resemble localized pen strokes while standard backpropagation produces mottled patterns, and states: "This confirms that dropout indeed forces the discriminative model to learn good features which are less co-adapted." No sparsity count, interpretability score, or multi-seed comparison accompanies that figure. Two years later, Section 7.1 of the JMLR journal paper softens the claim before showing its own filter plot ("We hypothesize that for each hidden unit, dropout prevents co-adaptation by making the presence of other hidden units unreliable") and concludes only that dropout "does break up co-adaptations, which is probably the main reason" for the gain. Co-adaptation is the authors' hypothesis for what dropout changes inside hidden layers; the paper's exact mathematical claim arrives in the test-time ensemble section below.

How dropout works during training

Dropout zeroes units, not individual weights. Each hidden neuron draws one binary random variable from a Bernoulli distribution (a weighted coin flip that lands 1 with keep probability and 0 with drop probability ), and setting that unit to 0 disables all of its incoming and outgoing connections together for that example. Zeroing individual weight entries instead is a later method called DropConnect (Wan et al., 2013). The mask multiplies each unit's output after the nonlinear activation function rather than before it: for a logistic sigmoid unit , zeroing the pre-activation sum would still emit , whereas multiplying the post-nonlinearity activation by 0 guarantees silence for any nonlinearity. A fresh mask is drawn "on each presentation of each training case", so a minibatch of 100 images runs 100 distinct thinned networks in parallel rather than sharing one mask across the batch.

The 2012 preprint states all three rules purely in prose and prints no masking equation. Using the layer notation introduced in the 2014 JMLR paper (with for keep probability), one forward step from layer to layer is:

(2)

In (2), is the vector of post-nonlinearity activations at layer , is element-wise multiplication, is the masked activation vector, and is the pre-activation input to layer before its own nonlinearity. Across the paper's fully-connected networks, every hidden layer uses (50% dropout) and the visible input layer uses (20% dropout). The final output layer is never dropped because a classifier needs all class scores (called logits) to compute the softmax probabilities and loss. Convolutional layers also receive no dropout, for parameter-sharing reasons covered with Figure 6.

Watch out for the symbol when cross-referencing papers and code. In arXiv:1207.0580, always means momentum (, , ), and dropout probabilities appear only in prose as "0.5", "50%" and "20%". The 2014 JMLR paper reuses for the keep probability, while PyTorch uses for the drop probability. Those conventions look identical at 0.5 and collide at the input layer: this paper's "20% dropout for visible units" is in JMLR 2014 and Dropout(0.2) in PyTorch, which is why this page reserves for keep probability everywhere.

Backpropagation needs no special calculus. Because is an ordinary multiplication by a known 0 or 1, its local derivative is itself, provided the backward pass reuses the exact mask sampled on the forward pass. Writing for the gradient of the loss with respect to :

(3)

When , unit sent nothing forward, so nothing flows back through it: its incoming weight row , its bias , and its outgoing weight column all receive zero gradient on that training example. In the paper's 784-1200-1200-10 MNIST network (784 input pixels, two hidden layers of 1,200 units, 10 digit classes), using cross-entropy loss (the negative log probability assigned to the true label, where lower is better), one training case runs as follows:

# One training case through 784-1200-1200-10 (paper convention, Eqs. (2)-(3))
x  = pixels                        # [784] flattened 28x28 grayscale image
r0 = bernoulli(0.8, 784)           # [784] keep 80% of pixels (20% dropout)
x  = x * r0                        # [784] Eq. (2) applied to visible units

h1 = f(W1 @ x + b1)                # [1200] W1:[1200,784], b1:[1200]
r1 = bernoulli(0.5, 1200)          # [1200] keep 50% of hidden layer 1
h1 = h1 * r1                       # [1200] Eq. (2) after nonlinearity f

h2 = f(W2 @ h1 + b2)               # [1200] W2:[1200,1200], b2:[1200]
r2 = bernoulli(0.5, 1200)          # [1200] fresh mask, independent of r1
h2 = h2 * r2                       # [1200] Eq. (2)

z    = W3 @ h2 + b3                # [10] logits, W3:[10,1200]; never dropped
loss = cross_entropy(z, label)     # scalar; -log(softmax(z)[label])

# Backward pass reuses the exact masks r0, r1, r2 (Eq. (3)).
# When r1[j] == 0, unit j gets zero gradient, so W1[j,:], b1[j], and W2[:,j]
# all sit out this example. After averaging gradients over a minibatch of 100,
# update weights with momentum (9) and project each unit's weights via (8).

Even though every example skips half the units, weight updates almost never stall. In a minibatch of 100 examples with independent masks, the chance that any single hidden unit is dropped on all 100 examples is . On average, each hidden unit participates in 50 examples per minibatch, so virtually every weight receives a gradient update on every step.

Figure 2 isolates one layer of ten hidden units whose individual contributions sum to 2.00 when all ten are on. Press Play or Next case to watch fresh masks scatter the single-case outputs around the teal mean-network line, and drag the drop-probability slider from 0 to 0.9 while watching two readouts at the bottom: the output spread (standard deviation) and the mask Shannon entropy in bits (how unpredictable each 10-bit mask draw is, maxing out at 1 bit per unit when every coin is 50/50).

Figure 2 · a different network on every case
0.50
Ten hidden units with unequal contributions summing to 2.00 feed one linear output. Each training case draws a fresh mask, scattering outputs (amber dots) whose running average converges onto the mean network's scaled output (teal line). Drag the drop probability toward 0 and the scatter collapses to one static network; drag it to 0.9 and almost no signal survives. Both output spread and mask entropy peak at 0.50.

At , every one of the masks has equal probability , maximizing mask entropy at 10.0 of 10 bits. The standard deviation of the layer's output across masks, (where is unit 's active contribution), also reaches its maximum at because peaks at . Push drop probability to 0 and diversity vanishes into one ordinary network; push it near 1 and too few units survive to represent the input. The paper arrives at 0.5 empirically: "more extreme probabilities tend to be worse, which is why we have used 0.5 throughout this paper." For visible input units it notes the opposite, that "it is often better to retain more than 50% of the inputs," matching the 20% pixel drop (): raw pixels carry unique information from the image that other pixels cannot replace.

How the mean network averages models

Once training ends, the shared weights parameterize thinned subnetworks. Running all of them at test time is impossible, and even sampling a few dozen random masks per test image multiplies serving latency. The paper evaluates exactly one network:

"we use the ‘mean network’ that contains all of the hidden units but with their outgoing weights halved to compensate for the fact that twice as many of them are active."

Scaling first fixes signal magnitude. During training, a downstream unit received , whose expected value over the Bernoulli() mask is . Turning every unit back on doubles that sum when , so multiplying outgoing weights by restores the training-time scale. Biases are left untouched because a bias term is never masked and enters every training forward pass at full strength. Notice one omission in the paper's own text: although MNIST training drops 20% of the input pixels (), arXiv:1207.0580 only writes "their outgoing weights halved" and never mentions the multiplier on anywhere in its 18 pages. The test pass below includes it explicitly:

# Test-time mean network: all units on, outgoing weights scaled (Eq. (4))
h1 = f((0.8 * W1) @ x + b1)        # [1200] W1 scaled by input keep prob 0.8
h2 = f((0.5 * W2) @ h1 + b2)       # [1200] W2 scaled by hidden keep prob 0.5
z  = (0.5 * W3) @ h2 + b3          # [10]   W3 scaled by 0.5; biases untouched
probs = softmax(z)                 # [10]   class probabilities (Eq. (5))

# Biases b1, b2, b3 are never scaled because a bias is present under every mask.
# Note: arXiv:1207.0580 only states the two 0.5 halvings; the 0.8 factor on W1
# required by its 20% pixel dropout never appears in the text.

Before looking at the equations for why this single pass equals an ensemble, compare two ways of combining class probabilities from two models. Suppose subnetwork A predicts over two classes and subnetwork B predicts . Their ordinary arithmetic average is , which sums to 1. Their raw geometric mean multiplies corresponding probabilities and takes the square root, giving . That vector sums to only because the two models disagreed. Dividing by renormalizes it back to , multiplying every entry by , which adds nats to the log-probability of both classes compared with the average of the two models' log-probabilities.

For a one-hidden-layer classifier with hidden units and a softmax output, the calculation is direct. Softmax turns a vector of raw class logits into positive probabilities via . Under any binary mask , the logit for class is linear in the mask bits , so averaging uniformly over all masks replaces every by its mean :

(4)

In (4), the hidden activations are already computed before the mask is applied, so the hidden nonlinearity does not interfere with averaging over . The bias has no factor and stays unscaled, while every picks up a factor of . Running the mean network therefore produces the exact arithmetic mean logit across all subnetworks.

Feeding into the softmax exponentiates that average, turning a sum of logs into a product of probabilities. Each individual subnetwork's own softmax denominator depends only on and not on class , so it factors out of both the numerator and denominator and cancels cleanly:

(5)

In (5), is the raw geometric mean probability for class , and is the total mass left after taking the geometric mean. Unlike an arithmetic average, where one confident subnetwork can vote up a class on its own, a geometric mean acts like a veto: if any sizable fraction of subnetworks assigns near-zero probability to class , the product collapses. By the arithmetic-geometric mean inequality, is at most the arithmetic average of for every class, and since those arithmetic averages sum to 1, we have with equality only when every subnetwork predicts the exact same distribution. The 2012 paper omits one word when it says the mean network is "exactly equivalent to taking the geometric mean": a raw geometric mean does not sum to 1, so the mean network computes the renormalized geometric mean .

Dividing by immediately produces the paper's log-probability theorem, which it cites from Hinton's 2002 paper on products of experts. Take logs on both sides of and subtract the average log-probability of the individual subnetworks:

(6)

Two properties fall out of (6). First, whenever subnetworks disagree (), is strictly positive, matching the paper's hedge ("Assuming the dropout networks do not all make identical predictions"). Second, has no index , so the mean network gains the exact same additive boost in log-probability on every class, right or wrong. It lowers expected cross-entropy loss uniformly without ever changing the relative ranking of classes compared with the unnormalized geometric mean.

Figure 3 lets you verify equations (4) through (6) on a live 4-hidden-unit network whose subnetworks predict across three digit classes. Leave the mode on One hidden layer and drag the output-weight scale slider from 0 to 3.00 to control how strongly the 16 subnetworks disagree, watching the gap between the renormalized geometric mean and the single halved-weight mean network stay at 0.00000000 while all three per-class log-probability gains stay locked to .

Figure 3 · the mean network equals the renormalized geometric mean
1.00
Four hidden units produce 16 dropout subnetworks over three digit classes (top strip). For each class, the bars compare the plain arithmetic average of the 16, their renormalized geometric mean, and the single mean network with halved outgoing weights. Under One hidden layer, the last two agree to nine decimal places across the full slider range, Z measures the surviving geometric mass, and is identical for all three classes. Drag the weight scale to 0 and all 16 subnetworks agree, sending Z to 1 and the gain to 0.

For regression with a linear output unit (no softmax), no exponentiation occurs, so the mean network outputs the literal arithmetic average of all subnetworks. Comparing the average squared error of each subnetwork's prediction against the target with the squared error of yields the ambiguity decomposition (Krogh & Vedelsby, 1995):

(7)

Because the mask bits are independent, the variance across masks simplifies to (one quarter of the sum of squared unit contributions at ). Since variance cannot be negative, the mean network's squared error is never worse than the average subnetwork's. Here the paper drops the hedge it wrote one sentence earlier for classification, stating that the squared error is "always better" even though equality holds whenever (every subnetwork outputs the same value).

Where the exactness runs out

Equation (4) worked for one reason: the class logit was affine in the dropout mask. That requires dropout to occur only in the final hidden layer feeding the readout, with zero dropout on the input layer. Place a mask anywhere beneath a nonlinear activation function , and expectation no longer commutes with . A two-number check shows why: using , suppose mask A sends into a second-layer unit () and mask B sends (). Averaging the outputs gives , whereas applying to the average input gives . Halving weights passes the average input through , which differs from averaging the masked subnetworks' outputs.

The 2012 text scopes its exactness claim carefully to "networks with a single hidden layer of units and a ‘softmax’ output layer." None of the paper's own benchmark models fits that scope: every reported architecture has at least two hidden layers, and the best MNIST models also drop 20% of the input pixels. Switch Figure 3 above to Two hidden layers (which enumerates all masks) and push the output-weight scale to 3.00. The mean network and the renormalized geometric mean separate by 0.0311, and the three per-class log-probability gains split into . The negative third entry means the single-hidden-layer guarantee no longer holds automatically once layers stack.

Two years later, Srivastava et al. (2014) dropped "exactly equivalent" and renamed weight scaling an "approximate averaging method". In Section 7.5 (Figure 11) of that journal paper, they measured how close the approximation is on MNIST by sampling random dropout subnetworks per test image and averaging their predictions directly (Monte-Carlo model averaging). Around samples, Monte-Carlo averaging catches up to single-pass weight scaling and thereafter stays slightly better but well within one standard deviation, so one scaled forward pass buys almost the entire ensemble gain at one-fiftieth the inference cost.

Why dropout needed max-norm weight caps

When training deep networks from scratch with dropout, Appendix A.1 pairs random masking with three companion optimization settings: a per-unit hard cap on weight length instead of weight decay, an initial learning rate of 10.0, and momentum ramped to 0.99. Standard neural network regularization adds an L2 penalty to the loss, where is the Euclidean length (L2 norm) of the weights, producing a restoring term that nudges every weight toward zero at each step. Appendix A.1 rejects that approach flatly ("No weight decay is used") and enforces a hard geometric constraint on each hidden unit's incoming weight vector individually:

"we set an upper bound on the L2 norm of the incoming weight vector for each individual hidden unit. If a weight-update violates this constraint, we renormalize the weights of the hidden unit by division. Using a constraint rather than a penalty prevents weights from growing very large no matter how large the proposed weight-update is."

After each minibatch update, every hidden unit whose incoming squared length exceeds is projected radially back onto the sphere of squared radius 15:

(8)

Appendix A.1 specifies a "maximum squared length of " and finds best by cross-validation, so the cap on the Euclidean norm itself is , not 15. Treating 15 as an un-squared norm expands the allowed ball by a factor of 3.87 (squared length 225). For confirmation, the 2014 JMLR paper writes the same projection in un-squared units and sets on MNIST and on speech (TIMIT) and street-view digits (SVHN), bracketing .

Plug in real numbers from the MNIST setup to see when the cap activates. Each first-layer hidden unit has 784 incoming weights initialized from a zero-mean Gaussian . Its initial expected squared length is , giving an initial L2 norm of about 0.28, roughly fourteen times below the 3.873 ceiling. Early in training, the projection factor in (8) is 1 and the constraint sits idle. Once large updates push a unit's incoming squared length to, say, 24 (norm ), equation (8) multiplies every weight in by , placing back at exactly 15.00 before the next forward pass.

Hard projection differs from a soft L2 penalty whenever a gradient update is large. A penalty pulls inward in proportion to how far out a weight currently sits, so one huge gradient step can still launch weights far away or cause exploding oscillations; a projection enforces the ceiling at the end of every step unconditionally. The same separation between gradient updates and weight magnitude control reappears years later in decoupled weight decay (AdamW).

That hard ceiling is what lets the from-scratch MNIST runs start at an unusually high learning rate of (applied to the average gradient over each 100-example minibatch, 600 updates per epoch). After each epoch, the learning rate is multiplied by . Over 3,000 epochs (1.8 million weight updates), , a 406-fold reduction with a half-life of about 346 epochs. Starting at learning rate 10 lets each unit's incoming vector sweep rapidly around the sphere of radius 3.873 to explore weight space before the decaying step size lets it settle. Keep the scope of this recipe straight: Appendix A.2 does not use learning rate 10 or the max-norm cap when fine-tuning pretrained models for the headline 79-error MNIST record, instead keeping a constant learning rate of 1.0 with no weight constraint for 1,000 epochs so large updates do not erase the pretrained features.

Figure 4 compares max-norm projection against an L2 penalty () for a single 2D incoming weight vector descending with minibatch noise toward an unconstrained minimum outside the circle. At the default learning rate of 10.00, toggle to L2 penalty, then drag the learning rate down and scrub the 60 steps.

Figure 4 · what a constraint bounds that a penalty does not
10.00
One hidden unit's 2D incoming weight vector descending with minibatch noise toward a minimum outside the allowed ball. Under Max-norm, the squared length stays at 15.00 after every step from learning rate 0.02 to 20, sweeping along the sphere boundary instead of diverging. Under an L2 penalty (), squared length settles wherever curvature and noise balance (44 at the lowest rate, over 130 at middling rates) and blows up past learning rate 1.2. The paper's rate of 10.00 is the default.

At the paper's rate of 10.00, the L2 penalty reaches squared length 11,800 on step 1 and leaves the canvas by step 3, while max-norm stays at 15.00 after every step at every rate up to 20. Even at small learning rates where the L2 penalty stays finite, the resulting weight length lands at 44 or 136 depending on the curvature of the loss and the noise, whereas max-norm holds the exact ceiling you specified.

How momentum averages across subnetworks

Ordinary stochastic gradient descent (SGD) already receives noisy gradients because each minibatch samples only 100 images out of 60,000. Adding dropout injects a second source of variance: every minibatch evaluates gradients across 100 different random subnetworks. To keep learning steady, Appendix A.1 ramps momentum from up to over the first epochs and holds it at 0.99 thereafter, writing the update rule as:

(9)

In (9), is the average gradient across the 100-example minibatch, is the learning rate at epoch , and is the momentum coefficient. Multiplying the new gradient by turns into an exponential moving average (EMA) of past scaled gradients whose weights sum to 1, the same averaging structure used for the first moment in Adam (without Adam's warm-up bias correction or second-moment denominator).

That factor keeps the learning rate of 10.0 from turning into a step size of 1,000. In textbook heavy-ball momentum (), a constant gradient accumulates over a geometric series to a steady-state step of . At , , multiplying every step by a hundred. In equation (9), setting cancels the factor of out of both sides:

(10)

Because of (10), raising momentum to 0.99 leaves the steady-state step size equal to and changes only the averaging horizon, which has a time constant of minibatches (100 minibatches at ). The trade-off for a 100-minibatch window is a sluggish cold start: starting from , after 100 minibatches the EMA has reached only of the true gradient size. Drag the momentum slider in Figure 5 from 0 to 0.99 to see the noisy per-minibatch dots smooth into a flat curve while the dashed steady-state line never shifts, and notice why the paper starts momentum at 0.5 before ramping it to 0.99.

Figure 5 · momentum as an averager over stochastic networks
0.99
Amber dots are noisy minibatch gradients drawn from different random subnetworks around a true mean of 1. The teal line plots equation (9) divided by . At momentum 0 it copies every spike; at 0.99 it smooths over roughly 100 minibatches without inflating the steady-state line, yet is still climbing toward 1 after 400 minibatches, explaining why the paper ramps momentum up instead of starting at 0.99.

Appendix A.1's printed schedule for that ramp contains a literal typo that runs backward from its own prose. Directly above the displayed formula, the text states: "The momentum starts off at a value of 0.5 and is increased linearly to 0.99 over the first 500 epochs, after which it stays at 0.99." Below that sentence, with , , and , the preprint prints the left-hand formula instead of the corrected right-hand one:

(11)

Evaluate the printed formula at three points: at it gives ; at it drops to ; and at the second branch jumps discontinuously back to . Swapping and restores the intended ramp from at through at (the sole midpoint where the two formulas agree) to at , meeting 0.99 seamlessly at .

Five benchmarks across vision, speech and text

The paper tests dropout with the same 50% hidden rate across five datasets spanning images, speech, and text classification. Every benchmark metric reported below is an error count or error percentage, so lower is always better. Before reading the numbers, inspect Figure 6 to see which layers receive dropout in each architecture and which comparisons hold the architecture fixed.

Figure 6 · which layers get dropped, and what it bought
Switch tabs across all five benchmarks to see which layers get 50% hidden dropout, 20% input dropout, or none. No convolutional layer in CIFAR-10 or ImageNet uses dropout because sharing one filter across all spatial positions already restricts parameter count and overfitting (Appendix F). The bottom-right badge flags whether the paper's appendices say the baseline and dropout runs share one architecture.

Start with MNIST, a handwritten-digit benchmark of 60,000 training and 10,000 test 28×28 grayscale images across digits 0 through 9, evaluated here by raw error count out of 10,000 test images. The paper trains four fully-connected architectures from scratch for 3,000 epochs (784-800-800-10, 784-1200-1200-10, 784-2000-2000-10, and 784-1200-1200-1200-10). Without generative pretraining, weight-sharing convolutions, or distorted training images, the best previously published standard feedforward network made 160 errors (1.60%). Applying 50% hidden dropout with the max-norm constraint lowers error to about 130; adding 20% input pixel dropout lowers it further to about 110. The preprint never cites the 160-error baseline. Both Simard, Steinkraus and Platt (ICDAR 2003) and Table 1 of the 2014 JMLR dropout paper identify it: a two-layer network with 800 hidden units trained on 50,000 of the 60,000 training images (holding 10,000 for validation), so the 160-to-110 jump compares against an external smaller model rather than the same network without dropout.

The paper's clean, matched MNIST experiment uses generative pretraining, the standard 2012 technique for initializing deep networks by fitting layers one at a time on unlabeled images before supervised fine-tuning. Two pretrained families are tested: a publicly available Deep Belief Net (DBN, 784-500-500-2000, from Hinton & Salakhutdinov, 2006) and five separately pretrained Deep Boltzmann Machines (DBMs, from Salakhutdinov & Hinton, 2009, unrolled into 1784-500-1000-10 where the extra 1,000 inputs are mean-field activations, the expected hidden-unit probabilities computed by an approximate inference pass in the DBM). Each of the six pretrained networks is fine-tuned twice with identical starting weights, constant learning rate 1.0, and no max-norm cap: once with standard backpropagation and once with 50% hidden dropout (plus 20% visible dropout on the DBN). Figure 7 plots all six matched pairs.

Figure 7 · six paired finetuning runs on MNIST
Five pretrained Deep Boltzmann Machines (teal) and one Deep Belief Net (violet), each fine-tuned with standard backpropagation and with 50% dropout from the same initial weights. Every pair improves, and all five DBM dropout runs (83, 79, 78, 78, 77; mean 79) beat all five DBM backpropagation runs (103, 97, 94, 93, 88; mean 95). Hover or tap any point to inspect its pair.

The DBN drops from 118 errors to 92, and the five DBMs drop from 103, 97, 94, 93, 88 errors down to 83, 79, 78, 78, 77 errors, averaging exactly 79 (395 / 5), a record at the time for methods using no spatial prior knowledge or augmented training data. Appendix A.2 writes "usual finetuning gives about 94 errors." Ninety-four is the median of 103, 97, 94, 93, 88; their arithmetic mean is 95 (475 / 5), so the true mean-to-mean gain is 16 errors (95 to 79), not 15.

On TIMIT, a clean American English speech corpus of 630 speakers across eight dialects reading ten phonetically rich sentences each, audio is sliced into 25 ms windows advancing 10 ms per frame and converted to log filter-bank energies. The network takes 21 adjacent frames as input through four DBN-pretrained fully-connected layers of 4,000 hidden units to predict 185 Hidden Markov Model (HMM) acoustic states, which are merged into 39 elementary speech sounds (phones) and decoded into the best utterance sequence by the Viterbi algorithm. Fine-tuning the exact same pretrained network with 50% dropout improves test performance from 22.7% to 19.7%. Here the main text makes a naming slip that flips the direction of the metric: it calls 22.7% and 19.7% a "frame recognition rate" / "recognition rate", even though lower is better and Viterbi decoding scores whole utterances by phone, not single frames. The 2014 JMLR paper lists the exact same pair as phone error rate (PER) on the TIMIT core test set. Notice also why the authors hedge their record claim as "a record for methods that do not use any information about speaker identity": Mohamed et al. (ICASSP 2011, Table 1) had already reached 19.6% PER using speaker-adapted (fMLLR) and discriminatively transformed (fBMMI) features.

The two object-recognition benchmarks use convolutional neural networks (CNNs). CIFAR-10 contains 50,000 training and 10,000 test 32×32 color photographs across 10 object categories (airplane, bird, cat, dog, and six others), scored by test classification error percentage. ImageNet ILSVRC-2010 contains roughly 1.3 million training, 50,000 validation, and 150,000 test natural photographs across 1,000 object classes, resized to 256×256, trained on random 224×224 crops with horizontal reflections, evaluated by averaging predictions over 10 test crops (center, four corners, and their mirrors), and scored by top-1 error (the percentage of test images where the model's single highest-probability class is wrong). In both CNNs, each convolutional layer slides a small bank of shared spatial filters across the image, interleaved with pooling layers (3×3 neighborhoods with stride 2 taking the maximum or average) and local response normalization (LRN, which divides each neuron's output by a function of squared activities across adjacent filter banks, with , , on CIFAR-10) using the max-with-zero ReLU activation .

On CIFAR-10, the prior best error without data augmentation was 18.5% (Coates & Ng, 2011); the paper's CNN gets 16.6% without dropout and 15.6% with dropout. On ImageNet ILSVRC-2010, the 2010 competition winner (a six-model average) scored 47.2% top-1 error and the prior best was 45.7% (Sanchez & Perronnin, 2011); the paper's single CNN gets 48.6% without dropout and a record 42.4% with dropout. On both datasets, the appendices describe smaller baseline architectures than the main text implies. On CIFAR-10, the main text implies the 16.6% baseline already includes a fourth locally-connected layer (16 banks of 3×3 unshared filters), whereas Appendix G states the 16.6% baseline has only three convolutional layers, three pooling layers (max, average, average), and a 10-way softmax, and adds the locally-connected fourth layer with 50% dropout only for the 15.6% model ("because dropout imposes a strong regularization on the network, we are able to use more parameters"). On ImageNet, the main text attributes two globally-connected layers to the 48.6% baseline and says dropout was applied only in "the sixth hidden layer"; Appendix H states that 50% dropout is used in both 4,096-unit globally-connected layers (following five convolutional layers starting with 64 banks of 11×11 filters at stride 4 plus a 56×56 subsampled second input path into conv2), and that the 48.6% baseline omits both globally-connected layers entirely because they "create serious overfitting when used without dropout." Neither vision benchmark is an architecture-matched ablation: both show that dropout lets a CNN afford massive non-convolutional upper layers that otherwise hurt test accuracy.

The fifth benchmark, Reuters RCV1-v2, tests text classification on 402,738 newswire stories spanning 50 mutually exclusive topic categories, split evenly into 201,369 training and 201,369 test documents. Each document is represented by a 2,000-element vector of counts for the 2,000 most frequent non-stopwords, compressed via . Training the exact same network twice lowers test error from 31.05% without dropout to 29.62% with 50% dropout. The main text calls the model "2 fully connected layers of 2000 hidden units", whereas Appendix C specifies 2000-2000-1000-50 (2,000 inputs, hidden layers of 2,000 and 1,000, and 50 outputs; Figure 7 in Appendix C also plots 2000-1000-1000-50). Together with TIMIT and the six MNIST fine-tuning pairs, Reuters gives three clean architecture-matched comparisons in the paper, and dropout wins every one of them.

Auditing the paper's four analogies

The paper's Discussion offers four conceptual lenses for dropout: Bayesian model averaging, bagging, naive Bayes, and sexual recombination in evolution. None of the four produced the math in equations (4) through (6); that came from Hinton's 2002 products-of-experts paper on logarithmic opinion pools, which this paper turns into a single halved-weight forward pass. Looking at what survived into the 2014 JMLR paper shows which analogies held up: JMLR drops bagging and naive Bayes completely (neither term appears in the journal text), promotes sexual evolution to the opening of Section 2 ("Motivation"), and devotes Section 6.4 and an experiment to Bayesian model averaging.

Bayesian model averaging weights every model's prediction by its posterior probability given the training data, which for neural networks usually requires slow Markov chain Monte Carlo (MCMC) sampling over weight space. Dropout skips posterior weighting altogether, assigns every one of the thinned subnetworks equal weight in the geometric mean, and relies on shared parameters so training updates all of them simultaneously.

Bagging (Breiman, 1996) trains separate models with independent parameters on random bootstrap resamples of the full dataset and averages their predictions arithmetically; it cuts error by decorrelating unstable learners. The 2012 preprint calls dropout "an extreme form of bagging in which each model is trained on a single case and each parameter of the model is very strongly regularized by sharing it with the corresponding parameter in all the other models." Three mechanics diverge sharply from Breiman's bagging: dropout's members share every weight (maximally correlated), combine geometrically rather than arithmetically, and are almost never trained on more than one example. Even in the smaller 784-800-800-10 MNIST network, masks dwarf the training presentations. Weight sharing compensates: one gradient update to unit updates all subnetworks containing unit at once, so subnetworks never visited during training still benefit from every step touching their units. Warde-Farley et al. (ICLR 2014) untied the weights directly, training 360 independent fixed-mask networks on bootstrap resamples of MNIST and combining them geometrically. That untied ensemble reached 1.66% test error against 1.06% for one dropout-trained network. Section 5 of Warde-Farley et al. still describes dropout as parameter-shared exponential bagging, reading the 1.66% versus 1.06% gap as evidence that parameter sharing is the active ingredient while noting the confound that 360 independent models is tiny beside .

Naive Bayes classifies an input by multiplying class-conditional feature likelihoods together with one class prior. The preprint calls naive Bayes "a familiar and extreme case of dropout" in which "each input feature is trained separately to predict the class label and then the predictive distributions of all the features are multiplied together at test time." Multiplying per-feature posteriors multiplies the class prior once per feature; by Bayes' rule, that matches naive Bayes only when the class prior is uniform across classes.

The fourth analogy draws on Livnat, Papadimitriou, Dushoff and Feldman (PNAS 2008, reference [17]), who argue that sexual recombination breaks up co-adapted gene complexes so selection favors alleles that perform reliably across many genetic backgrounds rather than peak fitness in one fragile combination. Swapping "allele" for "hidden unit" and "genetic background" for "surviving partner units" mirrors the co-adaptation hypothesis closely. The preprint pushes one step past that parallel when it equates brittleness under environmental change to "a phenomenon which is known as ‘overfitting’ in the field of machine learning." Overfitting measures a train-to-test gap under one fixed data distribution (which is what every benchmark in this paper tests), whereas adapting to a changing environment is distribution shift. As a practical citation warning, do not copy the preprint's reference list verbatim: at least four bibliography entries swallow one author's initials into another author's name and drop that author, including [17] (J. D. A. Livnat, dropping Jonathan Dushoff), [3] (L. M. G. D. C. Ciresan), [4] (Y. B. Y. Lecun), [13] (S. J. N. R. A. Jacobs), and [19] (D. D. Lewis, T. G. R. Y. Yang).

Inverted dropout, AlexNet, and limits

Modern libraries like PyTorch and JAX do not scale weights at test time. Instead they use inverted dropout: during training, surviving activations are divided by the keep probability (multiplied by 2 at ), so expected signal magnitude already matches test time and inference code runs the network untouched once masking is switched off (forgetting model.eval() in PyTorch leaves the random mask active at test time and degrades predictions). Reparameterizing this paper's weights as produces identical forward passes mask for mask and an identical test network.

Porting hyperparameters from this 2012 recipe into an inverted-dropout implementation requires rescaling both the learning rate and any weight-norm cap. By the chain rule, , so gradients on are times larger; furthermore, a displacement corresponds to a displacement in . Those two factors of multiply together: at , a nominal step size on inverted weights acts like in the 2012 parameterization, and the per-unit max-norm cap becomes .

Five months after this preprint, Krizhevsky, Sutskever and Hinton published AlexNet (NIPS 2012), citing arXiv:1207.0580 (reference [10]). AlexNet carries forward Appendix H's ReLU activations, local response normalization, 224×224 crops from 256×256 images with horizontal flips, 10-crop test averaging, and 50% dropout in both 4,096-unit fully-connected layers (noting that without dropout the network exhibits substantial overfitting). The two architectures differ in three concrete ways: AlexNet widens conv1 from 64 to 96 kernels of size 11×11, drops Appendix H's 56×56 subsampled second input path into conv2, and reaches 37.5% top-1 error on ILSVRC-2010 compared with 42.4% here.

Over the following decade, dropout shrank and met real limits. Fifty percent was tuned for wide fully-connected layers trained for hundreds or thousands of epochs on tens of thousands of examples. Even inside this paper, convolutional layers used zero dropout because spatial weight sharing already limits overfitting. VGG kept 0.5 dropout only on its first two 4,096-unit fully-connected layers; the Transformer dropped the rate to 0.1 on sub-layer outputs and embedding sums; and BERT used 0.1 throughout. In 2015, Batch Normalization claimed that normalizing activations per minibatch "also acts as a regularizer, in some cases eliminating the need for Dropout" (though its own ImageNet ensemble still retained 5% or 10% dropout). Modern frontier language models pretraining on trillions of tokens see most tokens roughly once, so memorizing repeated training epochs is no longer the binding problem and pretraining dropout is often set to 0. And as Rethinking Generalization (2017) demonstrated, even Inception V3 on ImageNet with both dropout and weight decay turned on still reached 91.18% top-1 training accuracy on completely random labels: dropout improves generalization on real data without removing a deep network's capacity to memorize.

The paper most readers know as "the dropout paper" is a separate publication: "Dropout: A Simple Way to Prevent Neural Networks from Overfitting" (Srivastava, Hinton, Krizhevsky, Sutskever and Salakhutdinov, JMLR 15:1929–1958, 2014). It has Srivastava as first author and adds dropout Restricted Boltzmann Machines, multiplicative Gaussian noise, the marginalized linear-regression objective (1), a dropout-rate sweep, activation sparsity measurements, and an ablation separating dropout from max-norm regularization (Table 9 on MNIST: 1.62% error with L2 alone, 1.35% with max-norm alone, 1.25% with dropout plus L2, and 1.05% with dropout plus max-norm). Its reference list contains no entry for arXiv:1207.0580.

Provenance Verified against primary literatureHow we verify
Hinton (2002)Products of experts and logarithmic opinion pools: the inequality behind equation (6), with the normalizer Z written explicitly.
Srivastava et al. (2014)The JMLR journal paper: inverted-dropout context, Eq. (1) linear regression form, Monte-Carlo vs weight-scaling check (~50 samples), rate sweep, max-norm ablation, and downgrade from "confirms" to "We hypothesize".
Baldi & Sadowski (2013)Analysis of the normalized weighted geometric mean and how weight scaling approximates it in deep nonlinear networks.
Wager, Wang & Liang (2013)Dropout on generalized linear models as a first-order adaptive L2 regularizer (absent from arXiv:1207.0580).
Krogh & Vedelsby (1995)The ambiguity decomposition underlying the regression claim in equation (7).
Simard, Steinkraus & Platt (2003)The uncited 160-error (1.6%) MNIST baseline: an 800-unit two-layer MLP trained on 50,000 of the 60,000 training images with cross-entropy loss and no distortions.
Krizhevsky, Sutskever & Hinton (2012)AlexNet (NIPS 2012), published five months later, citing arXiv:1207.0580 and adapting Appendix H with 96 conv1 kernels and no 56x56 bypass path.
correctionAppendix A.1 prints the momentum ramp with p_i and p_f swapped, running 0.99 down to 0.501 and jumping back to 0.99, opposite its own prose. The max-norm constant l = 15 is a maximum SQUARED length, so the L2 norm cap is √15 ≈ 3.873, not 15. The TIMIT pair the main text calls a 'frame recognition rate' (22.7% to 19.7%) is utterance-level phone error rate (lower is better). Appendix A.2 reports the DBM baseline median (94) instead of its mean (95), and omits the 0.8 test-time scaling on W1 required by 20% input dropout. On ImageNet and CIFAR-10, Appendices G and H state the no-dropout baselines are smaller architectures than the main text describes, and Appendix C gives Reuters as 2000-2000-1000-50 rather than two hidden layers of 2000.

Questions you might still have

?

Why scale weights at test time instead of running 50 or 100 random dropout masks and averaging?
You can run Monte-Carlo averaging at test time, and Srivastava et al. (JMLR 2014, Section 7.5) measured it on MNIST: averaging k randomly sampled subnetworks catches up to single-pass weight scaling around k = 50 samples and stays slightly better but well within one standard deviation after that. Weight scaling achieves nearly the same error in one forward pass instead of fifty, and for a single hidden layer with a softmax output it computes the renormalized geometric mean of all 2^N subnetworks exactly.

?

Is PyTorch Dropout mathematically identical to the 2012 paper?
It defines the same function at test time, with a rescaled optimization path. The 2012 paper leaves training activations unscaled and multiplies outgoing weights by the keep probability q at test time; PyTorch uses inverted dropout, dividing surviving activations by q during training so inference runs untouched. Setting W-prime = qW matches every forward pass mask for mask, but gradients on W-prime are 1/q times larger and a step in W-prime corresponds to a 1/q larger step in W. At q = 0.5, a nominal learning rate eps on inverted weights acts like 4*eps in the 2012 paper, and the max-norm bound ||w||^2 <= 15 becomes ||w-prime||^2 <= 3.75. Also watch the API convention: PyTorch takes the drop probability (Dropout(0.2) for 20% input drop), whereas JMLR 2014 calls keep probability p = 0.8.

?

Why do modern Transformers use 0.1 or 0.0 dropout instead of 0.5?
Fifty percent dropout was tuned for wide fully-connected layers trained for hundreds or thousands of epochs on tens of thousands of examples, where a large network can easily memorize the dataset. Even in 2012, convolutional layers got no dropout because spatial weight sharing already limits overfitting. The Transformer and BERT explainers show dropout dropped to 0.1 on sub-layer outputs, Batch Normalization partly displaced it in vision networks, and large language model pretraining over trillions of tokens often sets dropout to 0 because the model sees most tokens roughly once.

?

Does the paper actually prove dropout prevents co-adaptation?
No. Co-adaptation is the authors' hypothesis for what happens inside nonlinear hidden layers, and the 2012 preprint measures no co-adaptation metric. Its only visual evidence is 100 random first-layer MNIST filters in Appendix A.3, and the 2014 JMLR paper downgrades "This confirms" to "We hypothesize". For a linear readout layer, equation (1) proves the dropout objective equals an adaptive L2 penalty, while in deep nonlinear layers competing explanations (approximate ensembling, adaptive regularization, induced sparsity) remain active.

?

Why did Appendix A.1 use a learning rate of 10.0 when normal neural nets diverge above 0.1?
Two companion settings make learning rate 10.0 stable. First, the per-unit max-norm constraint (||w_u||_2^2 <= 15, norm <= 3.873) projects every hidden unit's incoming weight vector back onto the sphere after every minibatch update, so a giant gradient step cannot blow up weight norms. Second, the paper multiplies the gradient by (1 - momentum) inside its momentum rule, keeping the steady-state step equal to -eps*g instead of multiplying it by 100 at momentum 0.99. Pretrained fine-tuning in Appendix A.2 drops both tricks and uses a constant learning rate of 1.0 with no weight cap.

?

How does this 2012 preprint differ from the JMLR 2014 dropout paper?
They are separate papers. arXiv:1207.0580 (July 2012, Hinton first author) is an unrefereed 18-page preprint introducing dropout with from-scratch and pretrained benchmarks. "Dropout: A Simple Way to Prevent Neural Networks from Overfitting" (JMLR 2014, Srivastava first author) redoes most experiments and adds dropout Restricted Boltzmann Machines, multiplicative Gaussian noise, the exact linear-regression penalty form, a dropout-rate sweep, sparsity measurements, Monte-Carlo vs weight-scaling curves, and an ablation separating dropout from max-norm regularization. Its bibliography does not list arXiv:1207.0580.

Footnotes & further reading

  1. The paper: Hinton, Srivastava, Krizhevsky, Sutskever, Salakhutdinov, Improving neural networks by preventing co-adaptation of feature detectors (arXiv:1207.0580, 3 July 2012).
  2. The journal paper, with the rate sweep, max-norm ablation, and Monte-Carlo check: Srivastava, Hinton, Krizhevsky, Sutskever, Salakhutdinov, Dropout: A Simple Way to Prevent Neural Networks from Overfitting, JMLR 15:1929–1958 (2014).
  3. The source of the log-probability guarantee (Section 12.1 on logarithmic opinion pools): Hinton, Training Products of Experts by Minimizing Contrastive Divergence (2002).
  4. What the geometric-mean identity becomes in deep nonlinear networks: Baldi & Sadowski, Understanding Dropout (NIPS 2013).
  5. Dropout on generalized linear models as adaptive L2 regularization: Wager, Wang & Liang, Dropout Training as Adaptive Regularization (NIPS 2013).
  6. Untying the weights to test dropout against literal bagging: Warde-Farley, Goodfellow, Courville & Bengio, An empirical analysis of dropout in piecewise linear networks (ICLR 2014).
  7. The mixability theory behind the evolution analogy: Livnat, Papadimitriou, Dushoff & Feldman, A mixability theory for the role of sex in evolution, PNAS 105(50):19803–19808 (2008). Reference [17] of arXiv:1207.0580 mangles its author list.
  8. The direct descendant of Appendix H: Krizhevsky, Sutskever & Hinton, ImageNet Classification with Deep Convolutional Neural Networks (NIPS 2012), which carries forward 50% dropout in both 4,096-unit fully-connected layers and cites arXiv:1207.0580. Vision successors VGG and ResNet are explained here too.
  9. The 19.6% TIMIT phone error rate that explains the paper's speaker-identity qualifier, using speaker-adapted (fMLLR) and discriminatively transformed (fBMMI) features: Mohamed, Sainath, Dahl, Ramabhadran, Hinton & Picheny, Deep Belief Networks using Discriminative Features for Phone Recognition (ICASSP 2011), Table 1.
  10. Masking individual weights instead of units: Wan, Zeiler, Zhang, LeCun & Fergus, Regularization of Neural Networks using DropConnect (ICML 2013).
  11. The uncited 160-error (1.6%) MNIST baseline: Simard, Steinkraus & Platt, Best Practices for Convolutional Neural Networks Applied to Visual Document Analysis (ICDAR 2003).
  12. Related explainers on regularization and optimization: Batch Normalization, decoupled weight decay (AdamW), Adam, and Rethinking Generalization.