Batch Normalization Increases Adversarial Vulnerability and Decreases Adversarial Transferability: A Non-Robust Feature Perspective

Philipp Benz, Chaoning Zhang, In So Kweon

Abstract

Batch normalization (BN) has been widely used in modern deep neural networks (DNNs) due to improved convergence. BN is observed to increase the model accuracy while at the cost of adversarial robustness. There is an increasing interest in the ML community to understand the impact of BN on DNNs, especially related to the model robustness. This work attempts to understand the impact of BN on DNNs from a non-robust feature perspective. Straightforwardly, the improved accuracy can be attributed to the better utilization of useful features. It remains unclear whether BN mainly favors learning robust features (RFs) or non-robust features (NRFs). Our work presents empirical evidence that supports that BN shifts a model towards being more dependent on NRFs. To facilitate the analysis of such a feature robustness shift, we propose a framework for disentangling robust usefulness into robustness and usefulness. Extensive analysis under the proposed framework yields valuable insight on the DNN behavior regarding robustness, e.g. DNNs first mainly learn RFs and then NRFs. The insight that RFs transfer better than NRFs, further inspires simple techniques to strengthen transfer-based black-box attacks.

Introduction

While Batch Normalization (BN) is the "secret sauce" for training deep networks quickly and accurately, it comes with a hidden security cost. This paper reveals that BN shifts models to rely on "non-robust features" (NRFs)—patterns that are highly predictive but incredibly brittle—making them more vulnerable to adversarial attacks and less effective as substitutes for black-box transfers.

Conceptual framework illustrating how standard training with BN shifts a model towards higher usefulness but lower robustness by prioritizing non-robust features (NR).

The authors investigate this phenomenon using the lens of Robust Features (RFs) vs. Non-Robust Features (NRFs). Robust features are patterns (like the shape of an ear) that remain recognizable even under noise. Non-robust features are high-frequency patterns that are highly predictive but vanish or change completely with slight pixel shifts. The core question is: Does BN help us learn "better" features, or does it just make the model over-dependent on these brittle, non-robust ones?

Methodology: Disentangling Robustness and Usefulness

The authors propose a framework to disentangle a feature's usefulness (how much it helps accuracy) from its robustness (how resistant it is to perturbation).

  1. Local Input Gradient Similarity (LIGS): They introduce LIGS to measure the cosine similarity between the gradient of the loss at a clean image and a slightly perturbed version. High LIGS indicates a locally linear, "smooth" loss landscape, suggesting a reliance on robust features.
  2. Feature Disentanglement: Using specialized datasets (based on prior work by Ilyas et al.), they create versions containing primarily robust features ($\hat{D}_R$) or non-robust features ($\hat{D}_{NR}$).
  3. Comparative Analysis: They systematically compare models with and without BN across standard benchmarks like ImageNet, CIFAR-10, and SVHN to see how normalization affects the LIGS score and adversarial accuracy.

Key Insights and Empirical Results

The study yields several critical findings regarding the impact of normalization on model behavior:

  • The Learning Order: Models naturally learn robust features first and non-robust features later. BN acts as an accelerator for learning those "hard-to-reach" non-robust features.
  • BN as a "Brittle Feature" Enabler: Without BN, models struggle to converge on datasets containing only non-robust features. This suggests BN is essential for exploiting these fragile patterns to maximize accuracy.
  • Normalization is the Culprit: It’s not just Batch Norm; Layer, Instance, and Group Normalization all decrease "pure" robustness (LIGS) compared to models with no normalization.
Training dynamics showing that while BN (orange dashed) boosts clean accuracy, it leads to a significant drop in robust accuracy and LIGS compared to training without BN (blue dashed).

On ImageNet, a ResNet18 with BN achieved ~70.5% clean accuracy but only ~0.14% accuracy under a standard PGD attack. In contrast, the version without BN had lower clean accuracy (66.5%) but significantly higher robust accuracy (~1.24%). As shown in the training curves, adding BN causes a sharp drop in the LIGS metric, confirming a shift toward non-robust features.

Conclusion

The authors demonstrate that BN increases adversarial vulnerability by encouraging the model to over-index on non-robust features. This also decreases adversarial transferability, as attacks exploiting model-specific NRFs fail to generalize across different architectures. Future research could focus on developing normalization techniques that stabilize training without sacrificing robustness, perhaps by handling robust and non-robust features through separate branches.

Summary updated

BibTeX
@inproceedings{benz2020batch,
  author = {Philipp Benz and Chaoning Zhang and In So Kweon},
  title = {{Batch Normalization Increases Adversarial Vulnerability and Decreases Adversarial Transferability: A Non-Robust Feature Perspective}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2020},
  url = {https://openreview.net/forum?id=eN4hwsnvS4Zd},
}
Figure