NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Understanding and Improving Group Normalization

Agus Gunawan, Xu Yin, Kang ZhangarXiv 2022

Abstract

Various normalization layers have been proposed to help the training of neural networks. Group Normalization (GN) is one of the effective and attractive studies that achieved significant performances in the visual recognition task. Despite the great success achieved, GN still has several issues that may negatively impact neural network training. In this paper, we introduce an analysis framework and discuss the working principles of GN in affecting the training process of the neural network. From experimental results, we conclude the real cause of GN's inferior performance against Batch normalization (BN): 1) unstable training performance, 2) more sensitive to distortion, whether it comes from external noise or perturbations introduced by the regularization. In addition, we found that GN can only help the neural network training in some specific period, unlike BN, which helps the network throughout the training. To solve these issues, we propose a new normalization layer built on top of GN, by incorporating the advantages of BN. Experimental results on the image classification task demonstrated that the proposed normalization layer outperforms the official GN to improve recognition accuracy regardless of the batch sizes and stabilize the network training.

Introduction

In the world of deep learning, normalization layers are the unsung heroes that keep training stable and fast. Batch Normalization (BN) is the gold standard, but it has a fatal flaw: it breaks down when the batch size is small. Group Normalization (GN) was proposed as a batch-independent alternative, but researchers noticed a recurring problem: GN almost always performs worse than BN when batch sizes are large.

Previous theories suggested this was due to a lack of "regularization" (a noise-filtering effect) in GN. We argue that this explanation is incomplete. We set out to find the real root causes of GN's inferiority and build a more robust architecture that bridges the gap between batch-dependent and batch-independent normalization.

Methods

We first developed an analysis framework to "stress test" normalization layers using two sophisticated metrics: Loss Landscape (visualizing optimization surface smoothness) and Gradient Predictiveness (measuring gradient stability between steps).

Based on our findings, we propose a new hybrid layer called GNPlus. This method adaptively combines GN and BN outputs using a learnable parameter ($\lambda$) controlled by a sigmoid function $S(\lambda)$. This allows the network to automatically decide how much to trust the GN output versus the BN output at different stages of training. We explored three primary configurations: GNPlusGNFirst, GNPlusBNFirst, and GNPlusParallel.

Proposed hybrid normalization architectures: GNPlusGNFirst, GNPlusBNFirst, and GNPlusParallel.

In the GNPlusGNFirst variant, the input $x$ is first normalized via GN to produce $\hat{y}$, which is then passed through a BN calculation to produce $\tilde{y}$. The final output $y$ is a weighted combination of these two, scaled by $\gamma$ and shifted by $\beta$.

Key Insights and Analysis

Our analysis revealed several critical weaknesses in standard GN:

  1. The Early Training Hurdle: GN can actually hinder a network during the very beginning of training. In early stages, feature statistics change so rapidly that GN’s estimates become unreliable, making it perform worse than a network with no normalization at all.
  2. Noise Sensitivity: GN is incredibly fragile when faced with distortion. Adding even tiny amounts of Gaussian noise to the output of a GN layer can cause gradient vanishing, effectively killing the training process. BN, by contrast, is much more robust.
  3. The Regularization Paradox: While adding L2 regularization (weight decay) usually helps models generalize, we found it actually makes GN’s loss landscape more jagged and unstable, hurting performance.
Impact of L2-Regularization on GN vs. BN validation accuracy.

As shown in the table above, while BN maintains its performance under L2-Regularization, GN suffers a significant drop in validation accuracy (from 80.36% to 78.34%), highlighting its sensitivity to the perturbations introduced by standard regularization techniques.

Experimental Results

We evaluated our method on standard image classification benchmarks including CIFAR-10, CIFAR-100, and SVHN. The proposed GNPlusGNFirst variant consistently outperformed standard GN:

  • Higher Accuracy: On CIFAR-100, the hybrid method achieved a mean validation accuracy of 75.39%, compared to 71.43% for standard GN.
  • Superior Stability: On the SVHN dataset, the hybrid method showed much lower variance in performance across different batch sizes (0.44 vs. 4.22 for GN), proving it is far less sensitive to hardware configurations.
  • Smoother Optimization: Visualization of the loss landscapes confirmed that our method creates a significantly smoother path for the model to learn, preventing the "stuttering" seen in vanilla GN training.

Conclusion

By stacking GN and BN, models can leverage BN’s stability when batch sizes are sufficient, while relying on GN’s batch-independence when they aren't. While our empirical results are strong, future work will focus on addressing edge cases of gradient explosion in very small batch sizes on specific datasets and expanding testing to massive benchmarks like ImageNet. We also aim to conduct further theoretical studies to mathematically define why BN stabilizes the optimization process so much more effectively than GN.

Summary updated

BibTeX
@misc{gunawan2022understanding,
  author = {Agus Gunawan and Xu Yin and Kang Zhang},
  title = {{Understanding and Improving Group Normalization}},
  year = {2022},
  eprint = {2207.01972},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2207.01972},
}
Figure