What is dropout in a neural network, why does randomly switching off neurons during training reduce overfitting, and what happens at test time?
Deep learning, Training and regularisation
Level L1 Beginner. Length Short. Nature Th Theoretical.
What's being asked
Whether you understand the intuition behind dropout and the train–test difference before deriving inverted dropout scaling.
Key idea
Dropout is a regularisation technique that randomly sets a fraction of hidden-layer neuron outputs to zero on each training step (with drop probability , say ). Because any teammate neuron might be missing on a given batch, neurons cannot rely on brittle combinations (co-adaptation) and the trained network behaves like an average of many smaller sub-networks.
Steps
- Explain the mechanism during training: for each mini-batch, each hidden unit is independently switched off with probability (and kept with probability ), so a slightly different thinned network is trained on every step.
- Give an everyday analogy for why it stops overfitting: if random players sit out each football practice, teammates learn to pass and defend reliably on their own instead of leaning on one star player's quirks.
- Connect to ensembles: because thousands of random sub-networks share weights and get trained across steps, the final model acts roughly like averaging a huge ensemble of smaller models.
- Explain test time: at inference, all neurons stay turned on (no randomness) so predictions are deterministic and use the full network, with activations or weights scaled so the total signal strength matches training.
Common mistakes
- Leaving dropout turned on during normal test evaluation, which makes predictions noisy and weakens accuracy (only Monte Carlo dropout turns it on deliberately to measure uncertainty).
- Applying dropout to the output layer or dropping most of the raw input pixels, which throws away vital signal rather than just preventing hidden-unit co-adaptation.
- Forgetting to match training and test signal magnitudes (using inverted dropout scaling during training avoids any adjustment at test time).
How long your answer should be
About 2 minutes: training mask, football-practice analogy, ensemble intuition, and test-time behaviour.
Read this
Previous in Deep learning: A neural network is trained on 2000 labelled examples with a batch size of 50. What are an epoch, a batch and an iteration, and how many iterations make up one epoch?
Next in Deep learning: What does batch normalisation do to the values a layer produces, and why does it help training? What are the new values if a feature takes the values and in a mini-batch?