Categories

Advanced

Stability, Initialization and Regularization

What keeps a deep network stable: weight initialization (Xavier/Glorot and He), batch and layer normalization, and dropout.

  • 4 resources
  • ~28 min read
  1. Weight Initialization: Xavier/Glorot and He

    Weight initialization sets the starting scale of the matrix W before training begins. Xavier/Glorot, from 2010, splits the variance between inputs and outputs and suits sigmoid and tanh; He, from 2015, doubles it for ReLU, which zeroes half the activations. A poor choice stalls or breaks learning.

    • 8 min
  2. Batch Normalization

    Batch normalization is a technique that normalises each layer's activations using the mean and variance of the mini-batch, then rescales them with two learnable parameters, gamma and beta. Introduced in 2015, it enables higher learning rates, speeds up training and stabilises deep neural networks during optimisation.

    • 6 min
  3. Layer Normalization and Variants

    Layer normalization stabilizes training by normalizing each example on its own, using the mean and standard deviation of its own activations. Unlike batch normalization, it does not depend on the batch size, which is why transformers adopted it. RMSNorm is its lighter, most widely used variant today in large language models.

    • 6 min
  4. Dropout and Its Mathematical Interpretation

    Dropout is a regularization technique that switches neurons off at random during training, with retention probability p, and divides the surviving activations by p to preserve their scale. At inference the full network runs without dropping anything. Mathematically it amounts to averaging a huge ensemble of subnetworks that share weights.

    • 8 min