What is AI dropout?
Dropout is a regularisation method that temporarily switches off a random share of a neural network's neurons at each training step, preventing reliance on individual neurons and reducing overfitting.
It differs from weight decay in method: weight decay adds a term to the loss penalising large weights, while dropout randomly changes the network's structure at each step. Both are forms of regularisation and can be used together.
- Topic
- Machine learning, models and training
- Also known as
- Dropout regularisation
- Origin
- 2014
How AI dropout works
- At each training step every neuron in the layer is zeroed with a set probability; with a rate of 0.1 about one in ten neurons switches off.
- Outputs of the remaining neurons are multiplied by 1 / (1 − 0.1), about 1.11, to keep the total signal.
- A different sub-network trains at each step, so the result resembles an average of many small networks.
- At inference dropout is off and all neurons are used, so the same input always gives the same result.
In more detail
Inverted dropout and the original scaling
Scaling surviving activations up by the inverse of the keep probability during training is specifically called inverted dropout, which modern frameworks (PyTorch, TensorFlow) use by default. In contrast, the original 2014 formulation kept activations unscaled during training and multiplied weights by the keep probability at test time; inverted dropout eliminates any scaling arithmetic at inference.
Breaking co-adaptation and Monte Carlo dropout
Dropout works by breaking co-adaptation, situations where neurons only perform well when specific neighbouring neurons fire together, forcing each unit to learn individually useful features. Leaving dropout enabled deliberately at inference across multiple forward passes (Monte Carlo Dropout) estimates epistemic uncertainty for high-stakes triage.
Dropout variants and LLM pre-training
In Transformers, dropout can be applied separately to attention weights, residual connections and feed-forward layers, whereas convolutional networks often use SpatialDropout or DropBlock to drop contiguous feature regions instead of correlated adjacent pixels. Modern large-scale LLM pre-training frequently sets dropout to 0.0 because massive single-epoch corpora already prevent memorisation and FlashAttention runs faster without dropout masks.
Variance shift with batch normalisation
Applying standard dropout immediately before a Batch Normalisation layer can degrade performance because dropout alters activation variance between training and inference, creating a 'variance shift' that clashes with BatchNorm's running statistics. LayerNorm and RMSNorm used in modern language models compute statistics per token and do not suffer from this issue.
Commonly confused terms
| Term | How it differs |
|---|---|
| DropPath (stochastic depth) | DropPath (Stochastic Depth) drops entire residual branches or layers per sample in deep networks or Vision Transformers, whereas standard dropout zeroes individual neuron activations inside a layer. |
Why AI dropout matters for on-premises AI
For models trained or fine-tuned in-house on small datasets, dropout is a cheap way to reduce overfitting; in LoRA fine-tuning a small dropout rate is often applied to adapter layers. In large language model pre-training the data is so large that dropout is often off. A common mistake is running a model in production without switching to inference mode, which makes answers vary randomly on every call.
A bank trains a text classifier on a few thousand labelled customer complaints; when validation performance lags far behind training performance it adds dropout to the layers and the gap closes.
Common questions
Does dropout run at inference?
Normally not. It is on in training and off at inference, with all neurons used. Some uncertainty estimation methods deliberately leave it on.
How is the dropout rate chosen?
Values between 0.1 and 0.5 are usually tried and picked by validation data. Little data calls for higher rates, very large models for lower ones.
Related terms
Sources
In the glossary: Glossary, A to D