# Group Normalization

Yuxin Wu, Kaiming He · arXiv · 2018-3-22

- **Problem** Batch Normalization's error rises sharply when the batch per GPU shrinks, which limits training with small batches in detection, segmentation and video.
- **Method** Splits each sample's channels into groups and standardizes the features within each group, so the statistics never cross the batch, while keeping trainable per-channel scale and shift.
- **Results** At 2 images per GPU on ImageNet, GN reaches 24.1 validation error against 34.7 for BN (ResNet-50).

## Why batch statistics limit BN

Batch Normalization estimates a mean and variance for each channel from the mini-batch and uses them to standardize activations, a step that has made very deep networks trainable. The same batch dependence creates the problem this study addresses, because the estimates are only as accurate as the batch that produced them.

When the batch per worker becomes small, the estimates turn noisy and the model error rises sharply. Figure 1 shows this for a ResNet-50 trained on 8 GPUs as the number of images per GPU falls. The authors note that BN in practice needs a large batch, for example 32 per worker, which also limits how large a model can fit in memory.

The cost falls hardest on dense prediction and video. Fast/er and Mask R-CNN run with one or two images per worker because their inputs are high resolution, and BN is frozen into a linear layer in those systems. In 3D video models, spatial-temporal features make the temporal length and the batch size compete for memory, so the design has to trade one against the other.

## Normalizing within channel groups

GN keeps the per-sample idea of LN but pools over fewer channels. The channels of each sample are split into G groups, and the features in each group are standardized together. The motivation comes from classical descriptors such as SIFT and HOG, whose channels are already organized into groups and normalized group by group.

Every member of this normalizer family computes a standardized value by subtracting a mean from the feature and dividing by a standard deviation, where the index i = (iN, iC, iH, iW) addresses one entry of an N, C, H, W tensor: \\\[\\hat{x}\_i=\\frac{x\_i-\\mu\_i}{\\sigma\_i}\\\] The mean and standard deviation are taken over a set S\_i of m entries, and epsilon is a small constant added inside the square root: \\\[\\mu\_i=\\frac{1}{m}\\sum\_{k\\in S\_i}x\_k,\\qquad \\sigma\_i=\\sqrt{\\frac{1}{m}\\sum\_{k\\in S\_i}(x\_k-\\mu\_i)^2+\\epsilon}\\\]

The normalizers differ only in how S\_i is chosen. BN pools each channel over the batch and spatial axes, LN pools each sample over all channels and positions, and IN pools each sample and each channel over spatial positions only. GN defines S\_i as the entries that come from the same sample and the same group of channels: \\\[S\_i=\\{k\\mid k\_N=i\_N,\\ \\lfloor k\_C/(C/G)\\rfloor=\\lfloor i\_C/(C/G)\\rfloor\\}\\\] G is a pre-defined hyper-parameter whose default is 32, and C/G is the number of channels in each group.

For one sample, the statistics therefore run over the spatial axes and the C/G channels of one group.

Because S\_i stays inside one sample, the statistics depend only on the input being normalized, and no batch dimension enters the computation. After standardization, each channel receives a trainable scale gamma and shift beta: \\\[y\_i=\\gamma\\hat{x}\_i+\\beta\\\] gamma and beta are learned during training and the group count is fixed beforehand, so at run time the layer needs only its input.

The two extreme settings of G recover the other normalizers. With G = 1, every channel of a sample forms one group and the layer becomes LN; with G = C, each group holds one channel and the layer becomes IN. The authors describe GN as less restricted than LN, since each group keeps its own distribution rather than sharing one across all channels, and as keeping the channel dependence that IN ignores.

The implementation needs only a choice of axes for the moments. The input is reshaped to N, G, C/G, H, W, the mean and variance are computed over axes 2, 3 and 4, the result is standardized, reshaped back, and then scaled by gamma and shifted by beta.

## ImageNet at a batch size of 32

All comparisons use ResNet-50 on ImageNet, with 1000 classes, 1.28M training images and 50,000 validation images. Training runs on 8 GPUs with 32 images per GPU, the regime where BN is known to work. BN is the baseline, and each other normalizer replaces BN with the same hyper-parameters. GN uses G = 32, and the reported value is the median validation error over the final 5 epochs.

Table 1 gives validation error (%) of 23.6 for BN, 25.3 for LN, 28.4 for IN and 24.1 for GN. Relative to BN, LN is 1.7 points higher, IN is 4.8 points higher and GN is 0.5 points higher. The authors read the LN result as showing that normalizing over all channels is still workable for a convolutional network. A filter-level variant, WN, reached 28.2 in an extra run.

Figure 4 plots training and validation error for the four normalizers over training. GN's training error is lower than BN's, which the authors take as evidence that GN eases optimization. GN's validation error is nevertheless 0.5 points higher. The authors attribute this to the batch-statistics noise of BN acting as a regularizer that GN does not have, and they did not test that explanation separately.

They suggest a suitable regularizer could improve GN.

## Holding accuracy as the batch shrinks

The batch per GPU is varied over 32, 16, 8, 4 and 2 images, always with 8 GPUs, and BN statistics stay within each GPU rather than being synchronized. The learning rate follows a linear scaling rule, 0.1 for batch size 32 and 0.1N/32 for batch size N, while the number of epochs and other hyper-parameters stay the same.

Table 2 shows BN's validation error rising from 23.6 at 32 to 24.8 at 8, 27.3 at 4 and 34.7 at 2, while GN stays between 24.0 and 24.2 across all five settings. The GN minus BN difference is 0.5, 0.5, -0.8, -3.1 and -10.6 points at batch sizes 32, 16, 8, 4 and 2. GN is slightly behind at 32 and 16 and ahead at 8, 4 and 2. At batch size 2, GN's validation error is 24.1 against BN's 34.7, a gap of 10.6 percentage points.

The authors read this as batch statistics becoming overly stochastic and inaccurate when they come from 4 or 2 images. With one image per statistic the variation across the batch disappears, and BN then behaves like IN during training. IN reaches 28.4 at batch size 2, better than BN's 34.7 at that size. The authors also argue that GN's robustness removes the batch constraint, which could allow memory use of 16x or more.

## Batch Renorm at batch size 4

Batch Renormalization (BR) targets the same small-batch problem by adding two extra parameters, r and d in the original BR work, that bound the estimated mean and variance of BN. The authors tuned these bounds for ResNet-50 and found that r\_max = 1.5 and d\_max = 0.5 worked best.

At batch size 4, BR reaches a validation error of 26.3%, against 27.3% for BN and 24.2% for GN, which leaves BR 2.1 points behind GN.

## Group count and channels per group

Table 3 varies the number of groups with 32 images per GPU. G = 32 gives the lowest validation error at 24.1, and the other group counts from 64 down to 2 lie between 24.4 and 24.7. With G = 1, which is LN, the validation error is 25.3, higher than every setting with G above 1.

When the channel count per group is fixed instead, G changes across layers. The best value is 16 channels per group at 24.2, while one channel per group, which is IN, gives 28.4. Even two channels per group reach 25.6 against IN's 28.4, which the authors read as evidence that grouping channels matters for normalization.

## ResNet-101 at two batch sizes

With ResNet-101 on ImageNet at batch size 32, BN has 22.0% validation error and GN has 22.4%, so GN is 0.4 points worse.

At batch size 2, GN reaches 23.0% while BN reaches 31.9%, a difference the authors state as 8.9 points in GN's favor. The authors describe the batch-2 GN result as still stable given the very small batch.

## Feature distributions in VGG-16

BN and GN give qualitatively similar distributions, and both differ from the variant with no normalization. The authors say the same pattern holds for the other convolutional layers.

The validation error is 29.2 with no normalization, 28.0 with BN and 27.6 with GN, so GN is 0.4 points lower than BN. The authors suggest VGG-16 benefits less from BN's regularization, which makes GN's lower training error more useful in this case.

## Detection with a C4 backbone

Detection and segmentation models are fine-tuned from the ImageNet-pretrained models with Mask R-CNN on COCO, using 1 image per GPU on 8 GPUs, with train2017 for training and val2017 for evaluation. BN is frozen as BN\* in this setting. A variant that fine-tunes BN was tried and was about 6 AP worse at batch size 2, so it was left out.

With the C4 backbone, BN\* reaches 37.7 box AP, 57.9 AP50 and 40.9 AP75, with mask AP of 32.8, 54.3 and 34.7. GN reaches 38.8, 59.2 and 42.2 for boxes and 33.6, 55.9 and 35.4 for masks.

The LN variant is 1.9 box AP below GN and 0.8 below BN\*, which the authors connect to LN's weaker representational power.

## Box head and FPN backbone

With a Feature Pyramid Network (FPN) backbone, the box head is replaced from two fully connected layers to four convolutions followed by one fully connected layer, 4conv1fc. With this head, BN\* reaches 38.6 box AP, on par with the 38.5 of the two-layer head using the same pre-trained model.

Adding GN to every convolution of the box head, with the BN\* backbone, raises box AP from 38.6 to 39.5. The authors take this as showing that much of GN's detection gain comes from normalization in the head. Applying BN to the box head is about 9 AP worse than applying GN there. The authors attribute the failure to RoIs sampled from one image not being i.i.d., which they say degrades BN's batch statistics.

Replacing the BN\* backbone with GN as well raises box AP from 39.5 to 40.0, a gain of 0.5 that the authors read as GN helping transfer features.

Table 6 applies GN to the backbone, box head and mask head. The ResNet-50 model reaches 40.3 box AP and 35.7 mask AP, against 38.6 and 34.5 for the default Detectron baseline BN\*. Longer training reaches 40.8 box AP and 36.1 mask AP for ResNet-50 with GN. The ResNet-101 model reaches 41.8 and 36.8 with GN, and 42.3 and 37.2 with longer training, against 40.9 and 36.4 for BN\*.

The authors found GN was not fully trained by the default schedule, so they raised the iterations from 180k to 270k. BN\* did not benefit from that, and the ResNet-50 GN model ends 2.2 box AP and 1.6 mask AP above BN\*.

## Training Mask R-CNN from scratch

GN makes it possible to train a Mask R-CNN with FPN from random initialization. The ResNet-101 GN model trained for 270k iterations reaches 41.0 box AP and 36.4 mask AP. The authors call these the best from-scratch COCO results reported to date.

Table 7 lists 39.5 box AP and 35.2 mask AP for ResNet-50 with GN from scratch. The BN reference of 34.5 box AP comes from a concurrent work that uses BN synchronized across GPUs and does not freeze it. The authors also note a specialized backbone reaches 36.3 box AP in that concurrent work.

The BN number therefore comes from a different setup and is not a controlled comparison with the GN runs. For from-scratch training the StopGrad that freezes the first layers in Detectron was turned off.

## Kinetics video classification

The video experiments use an Inflated 3D (I3D) network built on ResNet-50, pre-trained from ImageNet. For BN and GN the normalization statistics extend from (H,W) to (T,H,W), where T is the temporal axis. The 32-frame clips are sampled with a frame interval of 2 and run at 8 or 4 clips per GPU; the 64-frame clips are sampled continuously, use about 2x the memory, and run at 4 clips per GPU.

With 32-frame clips at batch size 8, GN is 0.3 lower in top-1 and 0.1 lower in top-5 than BN (73.0 / 90.6 against 73.3 / 90.7). At 4 clips per GPU, GN reaches 72.8 / 90.6 and BN reaches 72.1 / 90.0. BN's top-1 drops 1.2 from batch size 8 to 4, while GN's stays close to its earlier value.

Figure 7 plots the validation error curves for the two normalizers at 8 and 4 clips per GPU. BN's curves separate when the batch shrinks, and GN's curves stay close together.

With 64-frame clips at 4 clips per GPU, BN reaches 73.3 / 90.8 and GN reaches 74.5 / 91.7. Against the 32-frame BN result at batch size 4, the longer clip adds 1.2 top-1 for BN, a gain the authors say the smaller batch hid. For GN, the 64-frame clip adds 1.7 top-1 and 1.1 top-5 at the same batch size, so GN makes use of the longer temporal length.

## Limits of the evidence

Batch-size robustness is shown for ResNet-50 on ImageNet with 8 GPUs and batch sizes from 32 down to 2 images per GPU. At typical batch sizes GN does not match BN exactly: it is 0.5 points behind on ImageNet at batch size 32, 0.4 points behind on ResNet-101 at batch size 32, and 0.3 top-1 behind at batch size 8 on Kinetics.

The authors' explanation for GN's gap, a loss of BN's regularization, was not tested in a separate experiment. The Kinetics comparison covers one I3D setting built on ResNet-50, and the COCO fine-tuning uses one image per GPU with frozen BN as the only BN baseline.

Hyper-parameters tuned for BN may not suit GN-based models, and the authors leave GN for RNN, LSTM and GAN settings to future work. The BR comparison uses bounds tuned only for ResNet-50 at batch size 4.

## Paper info

- **Authors**: Yuxin Wu, Kaiming He
- **Venue**: arXiv · Preprint
- **First published**: 2018-3-22
- **Added**: 2026-10-18
- **Updated**: 2018-6-11
- **Version**: v3
- **arXiv**: 1803.08494
- **Category**: cs.CV · cs.LG
- **Original paper terms**: [arXiv non-exclusive 1.0](https://arxiv.org/licenses/nonexclusive-distrib/1.0/)
- **What we show**: Paper info and commentary

[Original paper ↗](https://arxiv.org/abs/1803.08494v3) · [PDF ↗](https://arxiv.org/pdf/1803.08494v3)

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

## Quote from the paper

Yuxin Wu, Kaiming He (2018). Group Normalization. arXiv:1803.08494v3. https://arxiv.org/abs/1803.08494v3

**BibTeX**

```
@misc{wu2018group,
  title = {{Group Normalization}},
  author = {Yuxin Wu and Kaiming He},
  year = {2018},
  eprint = {1803.08494},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1803.08494v3}
}
```

## Other paper commentary

- [Layer Normalization](https://refivu.com/en/papers/2f67f179-7720-4b69-8cac-e7157bee38ae-layer-normalization.md)
- [Root Mean Square Layer Normalization](https://refivu.com/en/papers/97c61522-5940-4a28-ad7d-4126a3ce8c01-root-mean-square-layer-normalization.md)
- [Expectile Regularization for Fast and Accurate Training of Neural Optimal Transport](https://refivu.com/en/papers/eed71a11-0424-45c6-8f8e-e7d5e94053d5-expectile-regularization-for-fast-and-accurate-training-of.md)
- [Observational Scaling Laws and the Predictability of Langauge Model Performance](https://refivu.com/en/papers/97beb965-1477-4864-b69f-e363cc2d64d9-observational-scaling-laws-and-the-predictability-of.md)
- [Nearly Tight Almost Sure Convergence Rates for the Last iterate of SGD](https://refivu.com/en/papers/c26b6eb1-221b-422a-af69-6be099d9f639-nearly-tight-almost-sure-convergence-rates-for-the.md)
- [Test-Time Symmetrization: Scaling Laws for Model-Agnostic Learning under Structure](https://refivu.com/en/papers/35508263-ceb8-4986-b891-b2c7cc6399fe-test-time-symmetrization-scaling-laws-for-model-agnostic.md)
- [LoRA: Low-Rank Adaptation of Large Language Models](https://refivu.com/en/papers/fec4f8e4-2771-4948-a986-0295db47b321-lora-low-rank-adaptation-of-large-language-models.md)

## Terms in this paper

- [ImageNet](https://refivu.com/en/terms/5eadad128667-imagenet)
- [Object detection](https://refivu.com/en/terms/113bfdb14049-object-detection)
- [COCO](https://refivu.com/en/terms/41f3215c4f4a-coco)
- [Top-1 accuracy](https://refivu.com/en/terms/653c0b9eaa58-top-1-accuracy)
- [Mask R-CNN](https://refivu.com/en/terms/6da881f24c0c-mask-r-cnn)
- [Resnet-101](https://refivu.com/en/terms/e1917778abec-resnet-101)
- [average precision (AP)](https://refivu.com/en/terms/5ded7cefa324-average-precision-ap)
- [Batch Normalization (BN)](https://refivu.com/en/terms/466eb6623905-batch-normalization-bn)
- [weight normalization](https://refivu.com/en/terms/4e6290a43b03-weight-normalization)
- [feature pyramid network (FPN)](https://refivu.com/en/terms/27a35b8f0d43-feature-pyramid-network-fpn)
- [group normalization](https://refivu.com/en/terms/511e11b5ba5a-group-normalization)
- [Group Normalization (GN)](https://refivu.com/en/terms/084af25ed620-group-normalization-gn)
- [video recognition](https://refivu.com/en/terms/a3dae92daae3-video-recognition)

---

AI-written text can contain mistakes. [Refivu](https://refivu.com/en/papers/73ea525c-b90c-43b2-b656-bb21666ab914-group-normalization)
