Skip to main content
QUICK REVIEW

[Paper Review] Removing Batch Normalization Boosts Adversarial Training

Haotao Wang, Aston Zhang|arXiv (Cornell University)|Jul 4, 2022
Adversarial Robustness in Machine LearningComputer Science6 citations
TL;DR

This paper proposes NoFrost, a normalizer-free robust training method that removes batch normalization (BN) layers in adversarial training to better handle the mixture of clean and adversarial data distributions. By leveraging normalizer-free networks like NF-ResNet, NoFrost achieves 74.06% clean accuracy and 23.56% PGD robustness on ImageNet with ResNet50—significantly outperforming BN-based methods that suffer up to 16.78% clean accuracy drop.

ABSTRACT

Adversarial training (AT) defends deep neural networks against adversarial attacks. One challenge that limits its practical application is the performance degradation on clean samples. A major bottleneck identified by previous works is the widely used batch normalization (BN), which struggles to model the different statistics of clean and adversarial training samples in AT. Although the dominant approach is to extend BN to capture this mixture of distribution, we propose to completely eliminate this bottleneck by removing all BN layers in AT. Our normalizer-free robust training (NoFrost) method extends recent advances in normalizer-free networks to AT for its unexplored advantage on handling the mixture distribution challenge. We show that NoFrost achieves adversarial robustness with only a minor sacrifice on clean sample accuracy. On ImageNet with ResNet50, NoFrost achieves $74.06\%$ clean accuracy, which drops merely $2.00\%$ from standard training. In contrast, BN-based AT obtains $59.28\%$ clean accuracy, suffering a significant $16.78\%$ drop from standard training. In addition, NoFrost achieves a $23.56\%$ adversarial robustness against PGD attack, which improves the $13.57\%$ robustness in BN-based AT. We observe better model smoothness and larger decision margins from NoFrost, which make the models less sensitive to input perturbations and thus more robust. Moreover, when incorporating more data augmentations into NoFrost, it achieves comprehensive robustness against multiple distribution shifts. Code and pre-trained models are public at https://github.com/amazon-research/normalizer-free-robust-training.

Motivation & Objective

  • Address the performance degradation on clean images in adversarial training, a key bottleneck limiting real-world deployment.
  • Identify batch normalization (BN) as a major cause of the clean accuracy–adversarial robustness trade-off due to its inability to model mixed distributions of clean and adversarial samples.
  • Explore an alternative to extending BN (e.g., mixture BN) by completely removing BN layers to resolve the distribution mixture challenge.
  • Demonstrate that normalizer-free networks offer unexplored advantages in handling heterogeneous data distributions for robust training.
  • Extend the method to achieve comprehensive robustness against multiple distribution shifts, including natural corruptions and adversarial attacks.

Proposed method

  • Propose NoFrost, a normalizer-free robust training framework that eliminates all batch normalization layers in adversarial training.
  • Adopt NF-ResNet, a ResNet variant without normalization layers, as the backbone to avoid statistics-based normalization that fails on mixed distributions.
  • Train the model jointly on clean images, FGSM/PGD adversarial examples, and data augmentations like DeepAugment and texture-debiased augmentation (TDA).
  • Use weight decay and stochastic depth to stabilize training in the absence of normalization layers.
  • Enable joint learning of multiple heterogeneous data distributions (clean, adversarial, corrupted, stylized) within a single model.
  • Leverage model smoothness and larger decision margins as underlying mechanisms for improved robustness.

Experimental results

Research questions

  • RQ1Can removing batch normalization layers significantly improve the clean accuracy–adversarial robustness trade-off in adversarial training?
  • RQ2Does normalizer-free training better handle the mixture of distributions from clean and adversarial samples than BN or mixture BN?
  • RQ3Can normalizer-free networks achieve superior robustness while maintaining high clean accuracy on ImageNet?
  • RQ4Can NoFrost be extended to achieve comprehensive robustness against multiple distribution shifts beyond adversarial attacks?
  • RQ5What are the underlying mechanisms (e.g., smoothness, decision margins) that explain the improved robustness in NoFrost?

Key findings

  • NoFrost achieves 74.06% clean accuracy on ImageNet with ResNet50, a mere 2.00% drop from standard training, compared to 59.28% (16.78% drop) with BN-based adversarial training.
  • NoFrost attains 23.56% adversarial robustness against PGD attack, a substantial improvement over the 13.57% robustness of BN-based AT.
  • On the APGD-CE attack, NoFrost achieves 11.96% higher robustness and 0.42% higher clean accuracy than MBNAT, a state-of-the-art BN-based method.
  • NoFrost outperforms TRADES-FAT by 12.15% in clean accuracy and 7.25% in robustness against APGD-CE attack.
  • The extended NoFrost* jointly trained on clean, adversarial, DeepAugment, and TDA data achieves state-of-the-art performance on OOD benchmarks, including 16.30% higher PGD robustness than DeepAugment on ResNet26.
  • NoFrost exhibits better model smoothness and larger decision margins, which contribute to reduced sensitivity to input perturbations and enhanced robustness.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.