AI Research Scientist · Deep Network Training Basics
Weight initialization strategies
Weight initialization strategies
Variance-preserving initialization
A choice of initial weight scale such that the variance of activations (forward pass) and gradients (backward pass) stays roughly constant across layers at the start of training, instead of shrinking toward zero or exploding.- Assumes a roughly linear region near zero, so variance scales as (or an average of fan-in and fan-out).
- Keeps signal balanced through symmetric, zero-centered nonlinearities.
- Accounts for ReLU zeroing out about half the pre-activations, so variance scales as to compensate for that lost signal.
- Matches the asymmetric, non-zero-centered shape of ReLU and its variants.
- 1Initialize each block’s output-projection weights with the standard Kaiming/He scale (variance proportional to ).WhyThis keeps a single block’s own output at the right scale in isolation.
- 2Shrink that per-block variance further by a depth-dependent factor, e.g. scale weights by for blocks.WhyWithout shrinking, the residual stream’s variance would grow roughly with the number of added blocks, since each addition contributes independent variance.
- 3Check that the residual stream’s variance after all 24 additions stays close to its value at block 1.WhyThis confirms the scaled-down initialization offsets the accumulation from residual depth.
Recall check from the same lesson
Since GELU is a smooth, non-ReLU activation, you must derive its exact analytic variance formula before you can pick a working initialization scheme for a network that uses it.
Review the explanation
Answer: False. In practice, initialization choice for newer activations is made by matching the activation's general shape to the nearest existing scheme (e.g., Kaiming/He for GELU-like activations, since GELU behaves similarly to ReLU) and verifying empirically, rather than deriving an exact closed-form variance formula for that specific function.
Sources
One sitting · 20–30 minutes
A focused session on your AI Research Scientist interview
LearnBench starts from what you already know — skip what you have, master what you’re missing.
Start now