What it does
While training, dropout sets each value to zero with probability p and scales the survivors by 1/(1 − p), so the expected sum stays the same. Each update therefore trains a slightly different thinned network, which discourages units from depending on one another and reduces overfitting. At inference dropout does nothing: the full network is used and the layer passes values through unchanged. Exported graphs often still contain the node, or have it removed entirely.
Formula
training: mi ~ Bernoulli(1 − p), yi = mi · xi / (1 − p)inference: y = xShapes and parameters
- Shapes
- Any shape in, the same shape out (plus an optional mask).
- Parameters
- None. The ratio p is a training setting.
- Used for
- Large dense layers of classic CNNs (the voice command model drops 25% and 50%), text classifiers, and transformers during pretraining.
In WeightSpace
Read-only in WeightSpace today, and inactive while models run: every edit you compare uses the full network.