Layer normalization (LayerNorm) normalizes activations across the feature dimension for each individual training example independently, computing a separate mean and variance per example rather than across the batch the way batch normalization does. This per-example normalization makes LayerNorm's behavior independent of batch size and consistent between training and inference, which is part of why LayerNorm, rather than batch normalization, became the standard normalization choice in Transformer architectures, where batch composition can vary and sequence-level processing does not map as naturally onto batch normalization's batch-wide statistics.