High-Performance Large-Scale Image Recognition Without Normalization

Andrew Brock, Soham De, Samuel L. Smith, Karen Simonyan

Introduction

Batch Normalization (BN) has been a cornerstone of deep learning for years, enabling the training of exceptionally deep networks by stabilizing hidden activations. However, BN is often described as a "necessary evil" due to several significant drawbacks: it is computationally expensive, introduces discrepancies between training and inference behaviors, breaks the independence between training examples in a minibatch, and performs poorly with small batch sizes.

DeepMind researchers have introduced NFNets (Normalizer-Free ResNets), a new family of image recognition models that achieve state-of-the-art accuracy on ImageNet without using Batch Normalization. By introducing Adaptive Gradient Clipping (AGC), they stabilized training at large batch sizes, creating models that are significantly faster to train than previous gold standards like EfficientNet.

The Normalizer-Free Framework

NFNets build upon the Normalizer-Free ResNet framework, which utilizes Scaled Weight Standardization to prevent mean-shift in activations and SkipInit to downscale residual branches. While these techniques help, previous unnormalized networks remained unstable when subjected to large learning rates or strong data augmentation.

Adaptive Gradient Clipping (AGC)

The primary innovation in NFNets is Adaptive Gradient Clipping. Unlike standard gradient clipping, which scales the entire gradient based on its total norm, AGC clips gradients based on the unit-wise ratio of gradient norms to parameter norms. This prevents unstable "explosions" during training by ensuring that gradient updates are proportional to the current weight values.

Stability of NF-ResNets with AGC at large batch sizes

As shown in the figure above, standard NF-ResNets (orange) become highly unstable at larger batch sizes, while the addition of AGC (green) maintains stability and accuracy comparable to BatchNorm-based models (blue) across a wide range of batch sizes up to 4096.

Architecture and Training Strategy

The NFNet architecture is optimized for modern hardware (TPUs and GPUs). Key modifications to the standard ResNet bottleneck include:

  1. GELU Activations: Replacing ReLU for smoother gradients.
  2. Modified Bottlenecks: Adding a second $3 \times 3$ grouped convolution to the bottleneck.
  3. Scaling Patterns: Adjusting width and depth scaling to favor stages that maximize accuracy gains relative to compute cost.

To compensate for the loss of BN's implicit regularization, the authors employed a rigorous suite of data augmentations, including Dropout, Stochastic Depth, MixUp, CutMix, and RandAugment.

Key Results

NFNets redefine the Pareto frontier for speed and accuracy in image recognition. The NFNet-F1 variant matches the accuracy of EfficientNet-B7 while being approximately 8.7× faster to train.

ImageNet Top-1 Accuracy vs. Training Latency

The figure above illustrates that NFNets (red line) consistently outperform other state-of-the-art architectures like EfficientNet, BoTNet, and LambdaNet in terms of the trade-off between ImageNet Top-1 accuracy and training latency on TPUv3 hardware. The largest variant, NFNet-F5, achieved a top-1 accuracy of 86.0% on ImageNet without auxiliary data. With the addition of Sharpness-Aware Minimization (SAM), this was further pushed to 86.5%.

Discussion: Beyond FLOPs

A critical insight from this work is that theoretical FLOP counts are often a poor proxy for real-world training speed. While architectures like EfficientNet have low FLOP counts, they suffer from low "compute density" on modern accelerators. NFNets are designed to be "hardware-friendly," prioritizing actual wall-clock training time over theoretical operation counts.

Furthermore, the researchers found that BN-free models excel in transfer learning. When pre-trained on the massive JFT-300M dataset and fine-tuned on ImageNet, NFNets achieved a top-1 accuracy of 89.2%. This suggests that BN's implicit regularization may actually hinder a model's ability to learn from extremely large-scale datasets.

Conclusion

NFNets demonstrate that Batch Normalization is not a requirement for high-performance deep learning. Through the use of Adaptive Gradient Clipping and hardware-aware architectural design, it is possible to build models that are both more stable at scale and significantly faster to train than their normalized counterparts. Future work may involve applying these principles to other domains such as object detection and semantic segmentation, or using Neural Architecture Search to further optimize normalizer-free structures.

Summary updated

BibTeX
@inproceedings{brock2021high,
  author = {Andrew Brock and Soham De and Samuel L. Smith and Karen Simonyan},
  title = {{High-Performance Large-Scale Image Recognition Without Normalization}},
  booktitle = {International Conference on Machine Learning},
  year = {2021},
  url = {https://openreview.net/forum?id=Mnvu4wm9eWf},
}
Figure