Why is standard test-time weight scaling in dropout only an exact ensemble average for a single linear layer, and how does Monte Carlo (MC) dropout use dropout at inference time to estimate predictive uncertainty?
Deep learning, Regularisation
Level L4 Advanced. Length Medium. Nature Th Theoretical.
What's being asked
Whether you understand the non-linearity gap of standard dropout inference and how stochastic forward passes turn dropout into approximate Bayesian inference.
Key idea
Inverted dropout uses a random Bernoulli mask (each unit kept with probability ) to form so that , making the expected linear pre-activation equal ; however, for a non-linear activation or multi-layer composition, . MC dropout keeps dropout active at test time for forward passes, averaging outputs and using their spread to measure epistemic uncertainty.
Steps
- Where weight scaling is exact: for a single linear layer, linearity of expectation gives , so one deterministic pass equals the average of the sub-networks' pre-activations. For softmax regression it is also exact for the normalised geometric mean of the sub-network predictions.
- Where it becomes an approximation: across hidden non-linearities such as ReLU or , (Jensen’s inequality / covariance between units), so a single deterministic pass only approximates the sub-network average.
- MC dropout procedure: leave dropout masks turned on at test time, run the same input through the network times (say ) with independent masks , and collect predictions .
- Uncertainty estimation: use the sample mean as the prediction and the sample variance (for regression) or predictive entropy minus expected entropy (mutual information, for classification) as epistemic uncertainty.
Common mistakes
- Claiming standard dropout inference produces the exact arithmetic average of all sub-networks in a deep non-linear network.
- Confusing MC dropout’s epistemic uncertainty (disagreement across masks, reduced by more data) with aleatoric noise in the data.
How long your answer should be
Half a page; 4 minutes.
Last checked on 4 December 2026.
Read this
Previous in Deep learning: Excluding the weights and gradients themselves, how much optimiser-state memory per parameter (in fp32) do plain SGD, SGD with momentum and Adam require, and why can SGD with momentum still beat Adam on test accuracy in image classification benchmarks?
Next in Deep learning: For a quadratic loss with symmetric positive definite Hessian (whose largest eigenvalue is ), started at with gradient descent step size , how do you show that stopping after iterations acts approximately like L2 regularisation with penalty ?