Log inStart free
LESSON 5.15 · 6 STAGES · 3 CONTROLS · 3 CHECKSPRO · PREVIEW

Dropout

Watch random units switch off in training and all return at test time.


Pro lesson. Stage 1 is free to watch. Pro opens all 6 stages, 3 controls and 3 checks, in this lesson and every other.

Go Pro · $8.25/mo
EXPLAINER · 5.15 · DROPOUT BAYx 0.23 · ŷ 0.44 · TARGET 0.46
01
Stage 1 of 6 · Full network
Training input x = 0.23 feeds 8 hidden units. Their contributions add up to the output 0.44; the target is 0.46.
Explain it simply

One training input goes into eight hidden units, and each sends a contribution. The steps add them up to the output. Trained with dropout, every unit takes a small step the same way. So any few of them still point toward the target.

An input node, a column of 8 hidden unit cells and a staircase of their contributions. The staircase ends at the output 0.44; the target is 0.46.

input, units, pointsweights, p, scalelossoutputdropped unit
00.20.40.6+0.10+0.05+0.07+0.04+0.11+0.05+0.03+0.04c −0.05target 0.46ŷ 0.440.23x0.95910.38420.52230.2554−0.96450.27160.2077−0.3188the network, one training inputhidden unitsŷ = c + Σ vᵢhᵢ = −0.047 + 0.484 = 0.43700.20.40.6+0.10+0.05+0.07+0.04+0.11+0.05+0.03+0.04c −0.05target 0.46ŷ 0.440.23x0.95910.38420.52230.2554−0.96450.27160.2077−0.3188the network, one training inputhidden unitsŷ = c + Σ vᵢhᵢ = −0.047 + 0.484 = 0.437
Toy: 1-8-1 tanh MLP · 12 noisy points · Adam, 3000 steps
STAGE 1 / 6
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
y^=c+∑ivi hi,hi=tanh⁡(wi x+bi)\sy{y}{out}{\hat y} = \sy{c}{param}{c} + \sum_i \sy{v}{param}{v_i}\,\sy{h}{data}{h_i},\quad \sy{h}{data}{h_i} = \tanh(\sy{w}{param}{w_i}\,\sy{x}{data}{x} + \sy{b}{param}{b_i})
y^=−0.047+0.104+0.048+0.071+0.035+0.114+0.048+0.027+0.037=0.437\hat y = -0.047 + 0.104 + 0.048 + 0.071 + 0.035 + 0.114 + 0.048 + 0.027 + 0.037 = 0.437

The output is the bias plus each contribution v times h.

Common mix-ups

MYTHDropout stays on when the trained network makes predictions.

The fix, and 1 more mix-up with the diagram to show them, come with Pro.

Predict, then reveal
3 CHECKS · PRO
Q01At p = 0, which loss rises late in training?

Make your guess, then test it in the diagram. All 3 checks come with Pro.

PRO LESSON · YOU WATCHED STAGE 1 OF 6
Unlock the full explainer
  • 5 more stages and 3 live controls
  • 2 mix-up cards and 3 predict-then-reveal checks
  • Watch it as a narrated video, in three voices
  • Every Pro lesson and capstone · 656 in total

$99 a year, or $15 a month. Cancel any time.