Up nextNext guide
Stochastic Gradient Descent with Momentum
Fundamentals
Fundamentals GUIDE
Dropout is a regularization trick that randomly switches off a fraction of neurons during each training step, forcing the network to build redundant, robust representations.
Listen to this guideAI-narrated · ~2 min
It became one of the most influential techniques for fighting overfitting in deep learning.
Introduced by Hinton's group around 2012, dropout addresses a key weakness of large networks: neurons can co-adapt, learning to fix each other's mistakes in ways that only work on the training data. On every forward pass during training, dropout randomly sets each neuron's output to zero with some probability p (often 0.5 in dense layers). Because any neuron might vanish, the network cannot lean on fragile partnerships and must spread useful information across many units. This acts like training a huge ensemble of thinned networks that share weights. At test time dropout is turned off and the full network is used, with activations scaled so the expected output matches training. The result is typically better generalization at the cost of slightly longer training.
Adding a Dropout layer with p around 0.5 between dense layers of an image or text classifier in PyTorch or Keras
Transformer models applying dropout to attention weights and feed-forward activations during pretraining
Monte Carlo dropout, where dropout stays on at inference to produce uncertainty estimates for medical or safety-critical predictions
Stochastic depth (DropPath) randomly skipping residual blocks to regularize very deep networks like ResNets and vision transformers
In convolutional vision networks, batch normalization has largely displaced standard dropout, but variants thrive elsewhere: transformers apply dropout to attention and feed-forward layers, and DropPath (stochastic depth) drops whole residual blocks. Monte Carlo dropout, which keeps dropout active at inference, is used to estimate model uncertainty. Expect stochastic regularization to remain a flexible toolkit, adapted per architecture rather than a single fixed recipe.
Free newsletter
Three verified AI stories every weekday morning, written in plain English. Free forever, no ads.
One email each weekday. Unsubscribe in one click. We never sell or share your address.
Test yourself
Instant feedback on every answer, and a shareable certificate with a verifiable ID once you pass a course.
Support free AI education. AI Understanding is a 501(c)(3) nonprofit — no ads, no paywall, ever. Make a donation
Dropout is a regularization trick that randomly switches off a fraction of neurons during each training step, forcing the network to build redundant, robust representations. It became one of the most influential techniques for fighting overfitting in deep learning.
Dropout randomly zeroes each neuron with probability p during training, so a different thinned sub-network is used each step.
By randomly removing units, dropout stops neurons from forming fragile partnerships that only work on training data, improving robustness.
At inference the full network runs with dropout disabled, and activations are scaled so expected outputs match the training distribution.
With p = 0.5 each neuron has a 50 percent chance of being zeroed, so on average about half are dropped per forward pass.
Sampling a different sub-network each step approximates averaging over an exponential number of shared-weight networks, a form of cheap ensembling.
Keep learning
More guides picked for this topic
Up nextNext guide
Stochastic Gradient Descent with Momentum
Fundamentals