Which axes get normalized: BatchNorm, LayerNorm, InstanceNorm, GroupNorm, RMSNorm

Every normalization layer subtracts a mean and divides by a standard deviation (RMSNorm skips the mean). They differ only in which numbers share one mean. The block is a batch of activations, one small cube per number: N examples, C channels, and each channel’s H×W feature map unrolled into one column. The grid beside it shows the same numbers the way a convolutional network holds them, one little H×W map per example and channel. Click a cell in either to light up the cells it is normalized with; drag to turn the block.

An activation tensor with the cells sharing one set of statistics highlighted A block of small cubes, one per number, with arrows along three edges: channels run across, examples in the batch run back, and each H by W feature map, unrolled, runs up. A grid beside it shows the same numbers as N rows of C small H by W maps. The cells that are averaged together with the chosen cell are solid blue; the rest are faint. BatchNorm lights one channel across every example and position; LayerNorm one example across every channel and position; InstanceNorm one example and one channel; GroupNorm one example and a group of channels.
The same tensor as an N by C grid of H by W maps
groups batch size N 4