Skip to content
StackDecode
AI & ML Atlas
Neural NetworkstechniqueInteractive simulation

Dropout Regularisation

Randomly switches off neurons during training so the network cannot rely on any one.

The idea

On each training step every neuron is dropped with probability p. The network must produce the right answer with a random subset, so neurons cannot co-adapt and each learns more robust features. At test time all neurons are used (with outputs scaled, or equivalently the kept ones scaled by 1/(1 − p) during training). It acts like averaging a huge ensemble of thinned networks.

Watch it run

This is a real computation, not a drawing. Pause, step, change the settings, or try new random data.

  • active
  • dropped

Training step 1: each hidden neuron is switched off at random with probability 0.4. The network trains as a thinner version of itself.

step:
1
dropped:
6
1/8

At test time every neuron is on, with weights scaled to match: like averaging many thinned networks.

Step by step

  1. 1Choose a drop probability p.
  2. 2For each training step generate a random mask.
  3. 3Multiply the activations by the mask and scale by 1/(1 − p).
  4. 4At inference use the full network with no dropout.

Where it is used

Fully connected layers and anywhere overfitting is a risk.

Watch out for

Slows convergence; less useful with batch norm or very large datasets.

Related