Pre-norm vs post-norm - what's the difference and why did everyone move to pre-norm? And why RMSNorm?
Type it the way you would explain it to an interviewer. A few sentences is enough; you can't break anything.
Model answer: the part to lead with
Post-norm (original 2017 transformer): x = Norm(x + Sublayer(x)) - normalization sits on the residual path, after the add. Pre-norm (GPT-2 onward, essentially all modern LLMs): x = x + Sublayer(Norm(x)) - normalization is inside the branch, and the residual path is a pure identity.
Full worked answer with diagram
Post-norm (original 2017 transformer): x = Norm(x + Sublayer(x)) - normalization sits on the residual path, after the add. Pre-norm (GPT-2 onward, essentially all modern LLMs): x = x + Sublayer(Norm(x)) - normalization is inside the branch, and the residual path is a pure identity.
Why it matters: with post-norm, the gradient from the loss to early layers must pass through every LayerNorm on the trunk, and each norm rescales gradients in ways that compound with depth - deep post-norm transformers are notoriously hard to train, requiring careful learning-rate warmup and still prone to divergence. With pre-norm, there is an unobstructed identity path from the loss to every layer - gradients reach early layers unattenuated, warmup requirements shrink, and training is stable at 80-100+ layers. Since a frontier training run can cost tens to hundreds of millions of dollars, stability wins over everything: pre-norm became universal.
Going further: follow-up territory
The honest nuance: post-norm, when you can train it, sometimes achieves slightly better final quality - pre-norm's identity path means later layers can behave more like an ensemble of shallow paths, arguably wasting some depth. This motivated hybrids (e.g. "peri-norm"/double-norm arrangements, or Gemma-style normalizing both the branch input and output), but plain pre-norm remains the default.
RMSNorm vs LayerNorm: LayerNorm subtracts the mean, divides by standard deviation, then applies learned gain and bias. RMSNorm drops mean-centring and the bias - just divide by the root-mean-square of the vector and apply a learned gain: x / RMS(x) · g. Ablations (from the RMSNorm paper onward, confirmed at scale by Llama-family models) show the mean-centring isn't needed; RMSNorm is cheaper (fewer reductions, fewer params, one fewer memory-bound op) and equally stable. At thousands of norm invocations per forward pass, the savings are real.
Worth sketching. Draw both residual paths and the difference is immediate: one has a norm sitting on the trunk.
flowchart LR
A["post-norm: x"] --> B["sublayer"]
B --> C["add"]
A --> C
C --> N["norm on the trunk<br/>every gradient passes through it"]
P["pre-norm: x"] --> Q1["norm"]
Q1 --> R["sublayer"]
R --> S["add"]
P -->|"identity path, untouched"| S
What a good answer covers
- Post-norm (original 2017 transformer)
- Pre-norm (GPT-2 onward, essentially all modern LLMs)
- Why it matters: with post-norm, the gradient from the loss to early layers must pass through every…
- With pre-norm, there is an unobstructed identity path from the loss to every layer - gradients reach…
- Since a frontier training run can cost tens to hundreds of millions of dollars, stability wins over everything
Key terms: Post-norm · Pre-norm · RMSNorm
Interviewer follow-ups to expect
Why does warmup interact with post-norm?
What does normalizing do to the loss landscape geometry?
Where else in modern architectures do norms appear besides the two block positions (QK-norm, final norm)?
Worked answer from AI-Engineer-Interview-Questions by Om (MIT), reformatted for LLM Prep · answer text last updated 6 November 2026 · scoring and review schedule by LLM Prep