DL Regularization interview question

Deep LearningDL Regularizationbasic

What does dropout do while a neural network is being trained?

  1. AIt permanently deletes the neurons with the smallest weights after training so the final network is smaller.
  2. BIt removes a random subset of training examples from each mini-batch so the model sees less data per step.
  3. CIt randomly sets a fraction of a layer's activations to zero on each forward pass, with a new random mask.
  4. DIt shrinks every weight toward zero by a fixed fraction after each update so that no weight can grow large.
Show the answer and explanation

Correct answer: C, It randomly sets a fraction of a layer's activations to zero on each forward pass, with a new random mask.

Explanation DL Regularization

Dropout (Srivastava et al., 2014) randomly zeroes a fraction of a layer's activations during training. A new random mask is drawn on every forward pass, so each step trains a slightly different "thinned" network. Units cannot rely on specific partners being present, which reduces co-adaptation and overfitting.

Why the other descriptions are wrong:

  • Permanently deleting low-weight neurons after training is pruning, a compression technique.
  • Dropping training examples from a batch just shrinks the batch; dropout acts on activations, not on rows of data.
  • Shrinking all weights by a fixed fraction each step is weight decay.

Dropout is only active in training mode; at inference the full network is used.

Interview tip: say "randomly zero activations during training, new mask every step, off at inference", then expect a follow-up on how the activations are scaled.

Practice it as a quiz

Answer this and the other free questions with instant grading, streaks and weak-topic tracking, or unlock all 4,000 questions.

More Deep Learning questions

  1. What does a 2-D convolutional layer compute at each output position?
  2. In a vanilla recurrent neural network, what is the hidden state?
  3. What is the core idea of an attention mechanism in a neural network?
  4. Which statement best defines transfer learning?
  5. Two system outputs are scored against a single reference in the table. Which interpretation of the scores is correct?