A convolutional layer outputs a tensor of shape (batch size, channels, height, width). Over which axes are the mean and variance computed, how many distinct pairs are computed per batch, and how many learnable scale and shift parameters exist (assuming one pair per channel) for (a) batch normalisation, (b) layer normalisation, (c) instance normalisation and (d) group normalisation with groups?
Deep learning, Normalisation
Level L3 Intermediate. Length Medium. Nature Mat Mathematical.
What's being asked
Whether you know the exact normalisation axes of BN, LN, IN and GN on 4-D CNN feature maps and why GN avoids BN’s small-batch failure.
Key idea
All four normalise with per-channel parameters, but differ in which axes pool over: BN pools ( stats); LN pools ( stats); IN pools ( stats); GN splits into groups of channels and pools ( stats).
Steps
- Batch norm (BN): normalise over (each channel across batch and space). Number of pairs , each averaged over values; learnable params .
- Layer norm (LN): normalise over (each sample independently across all channels and pixels). Number of pairs , each over values; learnable params (note: PyTorch’s LayerNorm over dimensions uses parameters if element-wise affine scaling is chosen).
- Instance norm (IN): normalise over (each sample and channel separately). Number of pairs , each over values; learnable params .
- Group norm (GN, ): reshape into and normalise over . Number of pairs , each over values; learnable params .
- Batch-size effect: LN, IN and GN never pool over , so unlike BN their statistics remain accurate when or (common in object detection and segmentation).
Common mistakes
- Computing BN statistics over the batch axis only, instead of pooling across for each channel of a convolutional feature map.
- Forgetting that GN reduces to LN when and to IN when .
How long your answer should be
Half a page; 4–5 minutes (a compact table works well).
Last checked on 4 December 2026.
Read this
- Wu and He, Group normalization: Figure 2 and the surrounding text define BN, LN, IN and GN by the axes they pool over, and explain why GN works with small batches.
- Batch normalisation (Dive into Deep Learning): Batch norm statistics for fully connected and convolutional layers, shown with shapes.
- NPTEL: Deep Learning (IIT Kharagpur, Prof. Prabir Kumar Biswas): Week 10, Lecture: Layer, Instance, Group Normalization, which contrasts the axes over which each normalisation computes its statistics.
Previous in Deep learning: What are the per-parameter update rules for AdaGrad and RMSProp, why does AdaGrad’s effective step size decay towards zero in deep learning, and for a constant gradient with base learning rate , decay rate and stability constant , what are the effective learning rates after steps under AdaGrad versus RMSProp (at steady state)?
Next in Deep learning: For binary classification with logit and target , evaluating naively can overflow or take . How do you derive the numerically stable form , and what value does it give at ?