For linear regression with inverted dropout on the inputs (keep probability ), why does the expected squared loss equal the ordinary squared loss plus an adaptive L2 penalty? What is the closed-form solution, and what does the penalty say about how dropout regularises?
Deep learning, Training and regularisation
Level L5 Expert. Length Long. Nature Mat Mathematical.
What's being asked
Whether you can marginalise (average out) the dropout noise with a bias–variance split, and read the result as data-dependent ridge regression.
Key idea
With and masks : . This is ridge regression (least squares plus a squared-weight penalty), with a per-weight penalty proportional to that feature's second moment.
Steps
- Write the noisy prediction: , with independent .
- Mean: . Variance: .
- Use (squared bias plus variance) to get .
- Sum over the data matrix (one row per example): , where , so .
- Closed form: setting the gradient to zero gives . Check the limits: gives least squares, and smaller gives stronger shrinkage.
- Interpret: this is ridge regression after rescaling each feature to unit second moment. The penalty on scales with how much feature varies, so the method is invariant to feature scale, and rare features (e.g. sparse words) are penalised little. For GLMs (generalised linear models) such as logistic regression the same holds approximately: a second-order expansion adds a curvature weight per example, where is the predicted probability (Wager, Wang and Liang, 2013).
Common mistakes
- Forgetting the scaling. This gives a mean of and a different penalty (, with shrunk predictions).
- Writing the penalty as plain . The point is that it is weighted by .
- Claiming the equivalence is exact for deep networks. There it is only a local, approximate picture.
How long your answer should be
About a page; 8–10 minutes.
Last checked on 4 December 2026.
Read this
Previous in Deep learning: Consider an overparameterised linear model with , and , trained to minimise by gradient descent from . How do you prove that if gradient descent converges to an interpolating solution, it must converge to the unique minimum--norm interpolator , and what changes if ?
Next in Deep learning: In a DDPM, why is the reverse-time conditional tractable when conditioned on even though is not, and how do you derive its mean and variance by completing the square in Bayes’ rule?