Layer normalization
Normalization computed within each individual sample, across its features, instead of across the batch. Presented by Ba, Kiros and Hinton in 2016 and the thing that made the transformer trainable.
The difference from batch normalization is decisive for sequences: because the statistics depend only on the current sample, the method works equally well with a batch size of one, with varying sequence lengths and at inference — no running averages need to be stored, and behaviour is identical during training and use. Placement turned out to matter too. The original transformer put normalization after each sub-block (post-LN) and required careful learning rate warmup; modern models put it before (pre-LN), which trains stably without tricks. RMSNorm is the simplification used by Llama and most newer models.