Batch normalization (BatchNorm) normalizes activations using the mean and variance computed across an entire training batch for each feature, rather than across the feature dimension within a single example the way layer normalization does. This batch-wide statistic computation makes BatchNorm's behavior dependent on batch size and composition, and requires maintaining separate running statistics for use at inference time when batch composition differs from training, complications that layer normalization's per-example computation largely avoids.