DeepLLM Quiz
Deep Learning

Dropout: training a network by randomly switching units off

10 questions on random node deletion, keep probabilities, implicit model averaging, noisy training, Monte Carlo dropout, weight rescaling and co-adaptation.

  • 10 questions
  • Stopwatch
  • Instant feedback

Shown publicly with your score. Don’t use your full real name.

Sample questions

Play now ↑

Answers stay hidden. Start the quiz to play them.

  1. Sample 1

    A network has 20 nodes to which dropout can be applied. About how many different thinned networks are possible?

    • 40
    • 400
    • About one million, two to the power of 20

How it works

  • One question per screen. An answer is final once sent.
  • You see right away whether you were right, with a short explanation.
  • The stopwatch runs: on equal scores, the faster player ranks first.
  • Only your best attempt counts, so replaying is never risky.

About this quiz

Imagine a football team in which every player has learned to rely on one particular teammate: the striker always expects the same pass from the same winger. The team works beautifully until that winger is absent, and then it collapses. A coach who wants a robust team might randomly bench players during practice, so that everyone learns to be useful in many different line-ups. Dropout applies this coaching trick to neural networks. During training, units are switched off at random, and the surviving network has to cope without them.

This quiz explains how that simple procedure turns out to be one of the most effective regularisers. You will see what exactly is dropped and what is not, how the random mask is applied, and which keep probabilities are typical. You will count the number of different thinned networks that a modest network contains, and see why training only ever visits a tiny fraction of them. You will compare dropout with a conventional ensemble, whose members are trained independently, and see why the thinned networks of dropout are different: they share all their weights with each other and with the full network.

The second half is about using a network trained this way. The noise that makes it work also makes the loss curve jumpy, which changes how you check that training is going well. At prediction time, there are two ways of combining the many networks: sample a few masks and average, or use the whole network with the weights scaled down to compensate. The quiz asks how the scaling works, with a small calculation, and how many samples are usually enough. It finishes with two explanations of why dropout helps, one from the Bayesian viewpoint and one in terms of units learning to rely on each other.

Typical misunderstandings include applying dropout to the outputs, forgetting to switch it off or rescale at prediction time, and assuming that a noisy training curve signals a bug. Some also believe dropout trains many separate networks, when in fact it trains one network under many different masks. Dropout also shows how much a regulariser can gain from randomness. Instead of adding a fixed penalty to the objective, it perturbs the network itself, and the perturbation is different at each step. The same spirit appears in other tricks, from adding noise to inputs to shuffling data, and recognising the family resemblance helps you reason about new techniques. It is also a reminder to keep a close eye on how a model is used at prediction time, because the network that was trained is not quite the network that is served.

The quiz suits learners who have met regularisation and want to understand a technique they have probably used, and practitioners tuning keep probabilities. It requires only counting and simple arithmetic. There are 10 questions, each with an explanation, and it takes about four minutes.

Questions and answers

›How long does the quiz take?

About 3 to 4 minutes for 10 questions, at roughly 20 seconds each. Every answer is followed by an explanation, including the arithmetic when a question needs it.

›What is dropout?

It is a regularisation method in which nodes of a network, together with their connections, are deleted at random during training. A fresh random choice is made each time a data point is presented, so the network that processes it is a thinned version of the full one. It is cheap to apply, widely used and very effective in practice.

›Which nodes are dropped, and with what probability?

Dropout is applied to hidden nodes and input nodes, but not to the outputs. A dropped node's output is set to zero by multiplying its activation by a mask value of zero, while a kept node has a mask value of one. A keep probability around one half has been found to work well for hidden nodes, and a higher value, around four fifths, is typical for inputs.

›How is dropout related to ensembles?

It can be seen as an implicit way of averaging over a huge number of models without training them one by one. For a network with M droppable nodes there are two to the power of M thinned networks. Unlike a conventional ensemble, they are not independent, since they all share parameters with the full network and with each other.

›Why is training with dropout noisier?

Each update is based on a different thinned network, so the individual parameter updates are very noisy and the error function itself is intrinsically noisy. Training can take longer, and it becomes harder to check that the optimiser is working just by looking for a steadily falling error, so other checks, such as validation performance, matter more.

›How does a dropout network make predictions?

In principle, by averaging the predictions over all masks, which is impossible to do exactly. One practical method is to sample a small number of masks and average their outputs, which is called Monte Carlo dropout. Another is to use the full network and scale the weights to compensate for the units that were missing during training.

›What are the explanations for why dropout works?

One is the Bayesian view: a full treatment would average predictions over all possible networks, which is too costly, and dropout approximates that average by giving each network an equal weight. The other concerns co-adaptation, in which units become over-specialised and rely on specific partners. With dropout, each unit must be useful in many contexts.

›Is there a simple case where the effect of dropout can be written down?

Yes. For a simple linear regression model trained by least squares, dropout turns out to be equivalent to a modified form of quadratic regularisation. This shows that, in at least one setting, the random deletion of units has the same effect as a penalty on the size of the weights.

More quizzes