Skip to main content
QUICK REVIEW

[Paper Review] Towards an Adversarially Robust Normalization Approach

Muhammad Awais, Fahad Shamshad|arXiv (Cornell University)|Jun 19, 2020
Adversarial Robustness in Machine LearningComputer Science46 references18 citations
TL;DR

This paper proposes RobustNorm, an adversarially robust alternative to BatchNorm that replaces train-time estimated population statistics with inference-time batch statistics to mitigate distribution shift caused by adversarial noise. Experiments show RobustNorm significantly improves adversarial robustness across ResNet, VGG, and ImageNet models while preserving BatchNorm's training benefits.

ABSTRACT

Batch Normalization (BatchNorm) is effective for improving the performance and accelerating the training of deep neural networks. However, it has also shown to be a cause of adversarial vulnerability, i.e., networks without it are more robust to adversarial attacks. In this paper, we investigate how BatchNorm causes this vulnerability and proposed new normalization that is robust to adversarial attacks. We first observe that adversarial images tend to shift the distribution of BatchNorm input, and this shift makes train-time estimated population statistics inaccurate. We hypothesize that these inaccurate statistics make models with BatchNorm more vulnerable to adversarial attacks. We prove our hypothesis by replacing train-time estimated statistics with statistics calculated from the inference-time batch. We found that the adversarial vulnerability of BatchNorm disappears if we use these statistics. However, without estimated batch statistics, we can not use BatchNorm in the practice if large batches of input are not available. To mitigate this, we propose Robust Normalization (RobustNorm); an adversarially robust version of BatchNorm. We experimentally show that models trained with RobustNorm perform better in adversarial settings while retaining all the benefits of BatchNorm. Code is available at \url{https://github.com/awaisrauf/RobustNorm}.

Motivation & Objective

  • To investigate why BatchNorm increases adversarial vulnerability in deep neural networks.
  • To identify the root cause of this vulnerability as inaccurate population statistics due to distribution shift from adversarial inputs.
  • To develop a normalization method that maintains BatchNorm’s training advantages while improving robustness to adversarial attacks.
  • To validate the proposed method across diverse architectures and datasets, including ImageNet.

Proposed method

  • The authors hypothesize that adversarial inputs shift the input distribution, making train-time estimated BatchNorm statistics inaccurate and thus increasing vulnerability.
  • They validate this by replacing train-time statistics with statistics computed from the current inference-time batch, which improves robustness.
  • To address the impracticality of relying solely on inference-time statistics (especially with small batches), they propose RobustNorm—a hybrid normalization that dynamically adapts statistics during training and inference.
  • RobustNorm uses a weighted combination of population statistics and current batch statistics, with a learnable or fixed hyperparameter controlling the balance.
  • The method is designed to be backward-compatible with existing deep learning frameworks and seamlessly replace BatchNorm layers.
  • They evaluate RobustNorm across multiple architectures (ResNet, VGG) and datasets (CIFAR-10, ImageNet), comparing against BatchNorm and variants with fixed population means.

Experimental results

Research questions

  • RQ1Why does BatchNorm increase adversarial vulnerability in deep neural networks?
  • RQ2How does distribution shift from adversarial inputs affect the accuracy of BatchNorm’s estimated population statistics?
  • RQ3Can replacing train-time estimated statistics with inference-time batch statistics improve adversarial robustness?
  • RQ4Can a new normalization method be designed that maintains BatchNorm’s training benefits while achieving superior robustness?
  • RQ5How does RobustNorm generalize across different network architectures and datasets, including large-scale ImageNet?

Key findings

  • RobustNorm achieves 78.71% adversarial accuracy under FGSM attack on ResNet38 with BIM noise, compared to 18.77% for standard BatchNorm, a 59.94 percentage point improvement.
  • On ResNet50, RobustNorm achieves 76.58% FGSM robust accuracy versus 51.14% for BatchNorm, a 25.44 percentage point gain.
  • On VGG16, RobustNorm achieves 83.56% FGSM robust accuracy, compared to 63.60% for BatchNorm, a 19.96 percentage point improvement.
  • On ImageNet with ResNet18, RobustNorm achieves 28.5% robust accuracy under FGSM, compared to 12.5% for BatchNorm, a 16 percentage point gain.
  • RobustNorm maintains or improves clean accuracy while significantly boosting robustness across all evaluated attacks (FGSM, BIM, MIM, CW, PGD).
  • The ablation variant using fixed population mean (RobustNorm w/ μₚ) further improves robustness, suggesting that stable statistics are key to 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.