LayerNorm versus RMSNorm, and pre-norm versus post-norm

EasyConcept10 minRERSMLE

The question

What is the difference between LayerNorm and RMSNorm? And why do most recent large language models put normalization before each sublayer (pre-norm) rather than after the residual add (post-norm)?

What the interviewer is looking for

  • Correct formulas for both norms
  • Knows RMSNorm drops mean centering and the bias, saving compute
  • Explains that pre-norm keeps a clean residual path, which makes deep models train more stably
  • Mentions the final norm before the output head in pre-norm models

Your answer

Saved in this browser only. Nobody else sees it.

Why this question

Written by BlogLLM in the style of a publicly reported Mistral AI question type: Mixture of experts, parallelism, normalization and optimizers.

Reported in: supacv.com, datainterview.com

Practice question written by BlogLLM based on publicly reported interview formats. Not an official Mistral AI question.