179 questions
No questions match those filters.
← All questions
LLM FoundationsMedium· Transformer Architecture· Normalization· Gradient Flow
What does the original 2017 transformer do differently regarding normalization, and what problem does that cause?
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 plansThe original 2017 transformer utilized post-norm, which places the normalization layer after the residual addition. This design forces the gradient back-propagating to early layers to pass through LayerNorm at every single layer. Because LayerNorm rescales by the inverse standard deviation—a quantity that is highly volatile during the early stages of training—this process corrupts the effective step size at early layers, necessitating careful warmup to prevent model divergence.