🔒

Pro Lab

BatchNorm vs LayerNorm

Two normalizations, perpendicular axes. BatchNorm standardises each feature down the batch; LayerNorm each example across its features. Shrink the batch and watch BatchNorm collapse at size 1, the exact reason transformers use LayerNorm.

Start 30 days free → Try 34 free labs No card needed · cancel anytime Already Pro? Log in