FoundationsChecking saved investigationReading browser-local route memory before showing a continuation.

Foundation Lab

Dropout: Stochastic Regularization

Classic regularizer that prevents co-adaptation of features

Concept 52 of 100OptimizationPhase 10
#52DropoutOptimization
key equation\tilde{h} = h \odot m, \quad m \sim \text{Bernoulli}(1-p)

Selected Foundation Object

Keep the equation fixed; move through the evidence.

Concept 52 of 100DropoutOptimization / Phase 10: Mathematical foundations & information geometry
Current question

Dropout injects noise proportional to activation magnitude—implicitly favors robust features

\tilde{h} = h \odot m, \quad m \sim \text{Bernoulli}(1-p)
PredictionCommit before the demo.

Ask what should change when the equation is manipulated, then let the visualization test that expectation.

EvidenceCompare local witness and source.

Use the runnable panel, the key equation, and canonical papers as separate forms of evidence for the same object.

InvariantName what survives notation changes.

The useful learning product is the reusable mechanism you can carry into another model, paper, or engineering tradeoff.

Next moveContinue through the atlas.

Use prerequisites, dependents, and semantic links to repair the next gap without leaving the object behind.

Why It Matters for Modern Models

  • Classic regularizer that prevents co-adaptation of features
  • Foundation for understanding stochastic regularization (also: droppath, stochastic depth)
  • Modern LLMs often use minimal dropout—understanding when it helps/hurts is practical knowledge

What Tutorials Skip

What is still poorly explained in textbooks and papers:

  • Dropout injects noise proportional to activation magnitude—implicitly favors robust features
  • Different dropout rates per layer: higher dropout in final layers often helps
  • At large scale with lots of data, dropout can hurt: the ensemble benefit is dominated by data diversity

Interactive Visualization

Core Math (Optional Deep Dive)

If you want intuition first, start with the key equation and the visualization. Come back here for the full walkthrough.

Key Equation
h~=hm,mBernoulli(1p)\tilde{h} = h \odot m, \quad m \sim \text{Bernoulli}(1-p)

Dropout randomly zeros activations during training:

h~=hm,miBernoulli(1p)\tilde{h} = h \odot m, \quad m_i \sim \text{Bernoulli}(1-p)

At test time, scale by keep probability:

htest=(1p)hh_{\text{test}} = (1-p) \cdot h

Or use inverted dropout (scale during training):

h~=hm1p\tilde{h} = \frac{h \odot m}{1-p}

Dropout approximates ensemble averaging over 2n2^n sub-networks.

Canonical Papers

Dropout: A Simple Way to Prevent Neural Networks from Overfitting

Srivastava et al.2014JMLR
Read paper →

Connections

Next Moves

Choose the next question to carry this object forward.