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

Revisiting Batch Normalization for Improving Corruption Robustness

Philipp Benz, Chaoning Zhang, Adil Karjauv, In So Kweon

Introduction

Deep neural networks (DNNs) have achieved remarkable success on clean datasets, yet they remain notoriously fragile when faced with "common corruptions" such as fog, snow, or electronic noise. While a self-driving car might identify a pedestrian perfectly in clear weather, its performance can plummet in a rainstorm. This vulnerability is often framed as a domain shift problem. This paper explores a simple yet highly effective "test-time" solution: updating Batch Normalization (BN) statistics using a small batch of unlabeled corrupted images to significantly boost model robustness without any retraining.

The Problem: Fragility to Common Corruptions

The standard approach to addressing corruption is data augmentation—training models on corrupted images. However, this often leads to a "Whac-A-Mole" scenario where a model made robust to Gaussian noise becomes less robust to motion blur or brightness changes. The authors propose that corruption robustness can be better understood as a style shift.

In a standard DNN, BN layers track the mean ($\mu$) and variance ($\sigma^2$) of features during training. At test time, these "frozen" statistics are used to normalize new images. When a model encounters corrupted data, its internal feature distributions shift, rendering the training-time statistics a poor fit for the new "style" of the input.

Proposed Method: BN Statistics Adaptation

Instead of relying on frozen training statistics, the authors propose "rectifying" them at inference time. This process involves four simple steps:

  1. Collect a small batch of unlabeled images from the corrupted environment (e.g., 32 samples).
  2. Calculate the mean and variance of the features for this specific batch.
  3. Replace the training-time statistics with these new, rectified values.
  4. Execute inference as usual.
Conceptual overview of BN rectification: updating statistics allows the model to correctly classify a corrupted image that was previously misidentified.

This technique requires no backpropagation, no labels, and no retraining. It is a purely architectural adjustment that can be applied to almost any pre-trained model.

Key Insights

The Power of Few Samples

A critical finding of this research is that a massive dataset is not required to fix the statistics. The authors demonstrated that as few as 32 samples are sufficient to saturate performance gains, and even 8 samples provide a noticeable boost in accuracy.

Accuracy and Error (CE) vs. Number of Samples: Performance gains saturate quickly, showing that only a small batch of corrupted images is needed for effective adaptation.

Style vs. Content

The authors argue that BN statistics effectively capture the "style" of a domain. By updating these statistics, they "re-style" the network to match the corrupted input while preserving the "content" represented by the learned weights. Interestingly, rectifying BN statistics in the early layers of the network is more effective than in later layers, likely because early layers handle low-level visual styles.

Orthogonality and Consistency

This method is "orthogonal" to existing State-of-the-Art (SOTA) training methods like AugMix. It does not replace them but rather enhances them. The improvement was consistent across nearly all architectures tested, including VGG, ResNet, WideResNet, and DenseNet.

Results

The results are striking given the simplicity of the method. On the ImageNet-C benchmark:

  • Standard Models: Rectifying BN statistics improved the top-1 accuracy of a standard ResNet50 from 39.2% to 48.7%.
  • Robust Models: For a model already optimized with DeepAugment and AugMix, accuracy jumped from 58.1% to 63.3%.

Visualization via t-SNE plots confirms that after BN rectification, feature clusters for different classes become tighter and more separable, explaining the observed accuracy jumps.

Limitations and Future Work

While powerful, the method assumes temporal stability; the corruption must remain relatively stable for a short period to allow for batch-based adaptation. Furthermore, while this technique helps with natural corruptions, it can actually hurt adversarial robustness, suggesting that adversarial attacks and common corruptions represent fundamentally different types of distribution shifts. Future research may focus on balancing average-case corruption robustness with worst-case adversarial defense and developing strategies for real-time implementation in dynamic environments.

Summary updated

BibTeX
@inproceedings{benz2021revisiting,
  author = {Philipp Benz and Chaoning Zhang and Adil Karjauv and In So Kweon},
  title = {{Revisiting Batch Normalization for Improving Corruption Robustness}},
  booktitle = {IEEE/CVF Winter Conference on Applications of Computer Vision},
  year = {2021},
  doi = {10.1109/wacv48630.2021.00054},
}
Figure