Abstract: Deep Convolutional Neural Networks (DCNNs) are hard and time-consuming to train. Normalization is one of the effective solutions. Among previous normalization methods, Batch Normalization (BN) performs well at medium and large batch sizes and is with good generalizability to multiple vision tasks, while its performance degrades significantly at small batch sizes. In this paper, we find that BN saturates at extreme large batch sizes, i.e., 128 images per worker, i.e., GPU, as well and propose that the degradation/saturation of BN at small/extreme large batch sizes is caused by noisy/confused statistic calculation. Hence without adding new trainable parameters, using multiple-layer or multi-iteration information, or introducing extra computation, Batch Group Normalization (BGN) is proposed to solve the noisy/confused statistic calculation of BN at small/extreme large batch sizes with introducing the channel, height and width dimension to compensate. The group technique in Group Normalization (GN) is used and a hyper-parameter G is used to control the number of feature instances used for statistic calculation, hence to offer neither noisy nor confused statistic for different batch sizes. We empirically demonstrate that BGN consistently outperforms BN, Instance Normalization (IN), Layer Normalization (LN), GN, and Positional Normalization (PN), across a wide spectrum of vision tasks, including image classification, Neural Architecture Search (NAS), adversarial learning, Few Shot Learning (FSL) and Unsupervised Domain Adaptation (UDA), indicating its good performance, robust stability to batch size and wide generalizability.
Introduction
Normalization layers are essential components of modern Deep Convolutional Neural Networks (DCNNs), ensuring stable gradients and faster convergence. However, the industry standard, Batch Normalization (BN), faces a significant limitation: it performs optimally only at medium batch sizes. At small batch sizes (e.g., 2 images per GPU), BN's statistics become "noisy" due to insufficient samples, leading to poor generalization. Conversely, this research identifies that BN also saturates at extremely large batch sizes (e.g., 128 images per worker), where statistics become "confused"—incorporating too much diverse information that washes out representative gradients. While alternatives like Group Normalization (GN) or Layer Normalization (LN) offer more stability, they often underperform BN at its peak. Batch Group Normalization (BGN) bridges this gap, providing a robust method that excels across the entire spectrum of batch sizes.
Methods
BGN introduces a hybrid approach that combines the strengths of Batch Normalization and Group Normalization by adaptively grouping feature instances across channel, height, and width dimensions.
The BGN Mechanism
- Dimension Merging: BGN merges the channel ($C$), height ($H$), and width ($W$) dimensions of a feature map into a single dimension, $D$.
- Feature Grouping: This dimension $D$ is divided into $G$ groups.
- Statistic Calculation: Mean and variance are calculated across both the mini-batch ($N$) and the specific feature group.
- Adaptive Control: The hyperparameter $G$ acts as a control knob. For small batch sizes, a small $G$ combines more feature instances to prevent "noisy" statistics. For large batch sizes, a large $G$ splits the dimension into smaller pieces to prevent "confused" statistics.
Crucially, BGN is parameter-efficient, requiring no additional trainable parameters beyond the standard scale ($\gamma$) and shift ($\beta$) parameters used in BN.
Experimental Results
The authors validated BGN across ImageNet, CIFAR-10, miniImageNet, and Office-31. The quantitative improvements are most striking at the extremes of batch size:
- ImageNet (Batch Size 2): Training ResNet-50 with BN yields a Top-1 accuracy of 66.51%. BGN improves this to 76.10%, a 9.5% gain that brings small-batch performance close to large-batch standards.
- ImageNet (Batch Size 128): BGN achieves 77.01% Top-1 accuracy, outperforming BN's 76.83% and proving it avoids the saturation issues identified in the study.
- Robustness and Generalization: In adversarial training on CIFAR-10, BGN achieved a robust accuracy of 49.64%, surpassing BN (48.79%) and GN (44.38%). It also showed superior stability in Neural Architecture Search (NAS) and Unsupervised Domain Adaptation (UDA) tasks.
Conclusion
Batch Group Normalization (BGN) effectively addresses the "noisy vs. confused" statistic problem inherent in standard Batch Normalization. By using spatial and channel dimensions to compensate for batch size variations, BGN provides a universal normalization layer that is stable and high-performing across diverse vision tasks. Future work may explore the integration of BGN with non-linear normalization or multi-layer information fusion to further enhance DCNN performance.
Summary updated