179 questions
No questions match those filters.
Why do modern LLMs use RMSNorm and pre-normalization in...
This is one of the questions in the full AI/ML interview bank. Pro unlocks all 1789 questions; Premium includes the same bank plus the highest daily Practice limit.
See plansTwo separate decisions, both driven by training stability at depth.
Pre-norm vs post-norm: the original Transformer normalized after each sub-layer’s residual addition. That’s fine at moderate depth, but in very deep stacks it makes gradients unstable — the residual stream itself keeps getting rescaled. Pre-norm normalizes the input to each sub-layer instead, leaving the residual path untouched, so gradients have a clean, unimpeded route through the whole network. This is close to a prerequisite for training networks tens of layers deep without careful learning-rate warmup babysitting.
RMSNorm vs LayerNorm: LayerNorm normalizes by subtracting the mean and dividing by the standard deviation. RMSNorm skips the mean- subtraction step entirely, normalizing only by the root-mean-square. In practice this loses little to nothing in stability while being cheaper to compute — a meaningful saving when you’re doing it millions of times across a training run.