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

Removing Batch Normalization Boosts Adversarial Training

Haotao Wang, Aston Zhang, Shuai Zheng, Xingjian Shi, Mu Li, Zhangyang Wang

Executive Summary

Adversarial training (AT) is a leading defense against adversarial attacks, but it has long suffered from a severe "robustness-accuracy trade-off"—making a model secure against attacks significantly degrades its performance on standard, unperturbed images. This paper identifies Batch Normalization (BN) as the primary culprit behind this degradation. By proposing NoFrost (Normalizer-Free Robust Training), the authors demonstrate that completely removing BN layers and utilizing Normalizer-Free architectures achieves state-of-the-art adversarial robustness with minimal loss in clean accuracy.

The Mixture Distribution Challenge

Deep neural networks are notoriously fragile. A tiny, imperceptible tweak to an image can completely fool a state-of-the-art classifier. While training on these malicious examples (Adversarial Training) is an effective defense, it usually causes a massive drop in accuracy on "clean" images.

The authors pinpoint the root cause of this trade-off: the mixture distribution challenge. In adversarial training, a single training batch contains both clean and adversarial images. These two types of data possess fundamentally different statistical properties, such as distinct means and variances.

The mixture distribution challenge: clean (green) and adversarial (red) samples have significantly different feature statistics, making it hard for BN to normalize them together.

Batch Normalization relies on calculating batch-wide statistics. When forced to process this heterogeneous mixture, BN struggles to model the divergent distributions effectively. Previous workarounds, like Mixture BN (MBN), attempted to use separate normalization paths for clean and adversarial data. However, these methods require an "oracle" at test time to tell the model which path to use—an unrealistic requirement for real-world deployment.

The Solution: NoFrost

Rather than attempting to patch or bypass Batch Normalization, the authors propose a refreshingly simple solution: eliminate it entirely.

NoFrost leverages recent advances in Normalizer-Free (NF) networks. These architectures use alternative techniques—such as scaled weight standardization and adaptive gradient clipping—to stabilize training without relying on batch-wide statistics. By applying NF architectures to adversarial training, NoFrost bypasses the mixture distribution problem altogether.

Additionally, the authors introduce NoFrost*, an extended version that incorporates multiple robust data augmentations (like DeepAugment and texture-debiased augmentation). This variant is designed to defend against both adversarial attacks and natural "out-of-distribution" (OOD) shifts, such as motion blur, weather artifacts, or artistic renditions, evaluated on datasets like ImageNet-C, ImageNet-R, and ImageNet-Sketch.

Key Insights

  • BN is the Bottleneck: The inability of BN to handle heterogeneous data distributions is a fundamental flaw in traditional adversarial training pipelines.
  • Simplicity Wins: While prior methods added architectural complexity (e.g., parallel BN paths), simply removing the problematic component and adopting modern NF architectures yields superior results.
  • Improved Model Geometry: NoFrost does more than just improve top-line metrics; it fundamentally changes the model's internal landscape. It leads to larger decision margins and better model smoothness, meaning the model is less "jittery" and more confident in its predictions even when inputs are slightly perturbed.
  • Handling Heterogeneity: Traditional BN-based models often fail when combining diverse data augmentations. NoFrost handles this diversity gracefully, enabling comprehensive robustness across various distribution shifts.

Key Results

Extensive evaluations on ImageNet demonstrate that NoFrost achieves a breakthrough in the accuracy-robustness trade-off. Using a ResNet50 backbone, NoFrost delivers:

  • Clean Accuracy: ~74% (only a minor drop from standard non-robust training).
  • Adversarial Robustness: ~24% against PGD attacks.

By comparison, standard BN-based adversarial training suffers a massive drop, managing only around 59% clean accuracy.

Trade-off curves showing NoFrost (green dot) consistently outperforming the Pareto frontier of MBNAT across various attacks.

NoFrost significantly outperforms other popular adversarial training methods, such as TRADES and FAT, in both clean accuracy and robustness against a wide battery of white-box and black-box attacks.

Limitations and Future Work

The primary limitation of NoFrost is its incompatibility with certain existing test-time adaptation methods. Many of these techniques specifically rely on updating BN statistics on the fly to improve robustness against distribution shifts. Because NoFrost removes these layers entirely, those specific techniques cannot be directly applied.

Future work will need to focus on developing new test-time adaptation strategies tailored specifically for normalizer-free networks. Additionally, further tuning of the adversarial loss hyperparameters could potentially unlock even greater performance gains.

Summary updated

BibTeX
@inproceedings{wang2022removing,
  author = {Haotao Wang and Aston Zhang and Shuai Zheng and Xingjian Shi and Mu Li and Zhangyang Wang},
  title = {{Removing Batch Normalization Boosts Adversarial Training}},
  booktitle = {International Conference on Machine Learning},
  year = {2022},
  url = {https://openreview.net/forum?id=JOeEeCNWX84},
}
Figure