Skip to content
BIASED

Normalization and initialization

Block 1 of 7~1 min

From regularization to scale

The topic Losses and regularization trained a three-layer net and asked how to keep it from fitting its training set too well. A network of thirty layers has the opposite problem first: at the default initialization it does not fit its training set at all. Signal and gradient are each multiplied by a factor every layer; over thirty layers any factor other than one grows or shrinks geometrically. This topic derives initializations that set that factor to one, shows what normalization layers compute, and explains how a residual connection carries signal and gradient through depth.

Notation. Pre-activation zl=Wlhl−1z_l = W_l h_{l-1}, activation hl=φ(zl)h_l=\varphi(z_l); fan-in nl−1n_{l-1}, fan-out nln_l; weight variance vlv_l; adjoint δl=∂L/∂zl\delta_l=\partial L/\partial z_l. For normalization: batch size BB, mean μ\mu, variance σ2\sigma^2, standardized x^\hat x, learned γ,β\gamma,\beta.

Answers are saved on the server and tied to this browser until you sign in.

Go deeper — optional

Code and labs do not count toward the main percentage or the certificate.

  • BatchNorm reduction axesoptional

    NumPy: mean/variance over (N,H,W) per channel; verify standardization. Self-check in the notebook.

    ~15 min · easier on a computer · Normalization and initialization read.

    Self-check in the notebook — not part of mastery or the certificate.