Encoding Robustness to Image Style via Adversarial Feature Perturbations

Manli Shu, Zuxuan Wu, Micah Goldblum, Tom Goldstein
9/18/2020
cs.CVcs.LG

Official code: azshue/AdvBN (9 stars, Python, last commit 2021-10-25).

Abstract

Adversarial training is the industry standard for producing models that are robust to small adversarial perturbations. However, machine learning practitioners need models that are robust to other kinds of changes that occur naturally, such as changes in the style or illumination of input images.

Show full abstract

Such changes in input distribution have been effectively modeled as shifts in the mean and variance of deep image features. We adapt adversarial training by directly perturbing feature statistics, rather than image pixels, to produce models that are robust to various unseen distributional shifts. We explore the relationship between these perturbations and distributional shifts by visualizing adversarial features. Our proposed method, Adversarial Batch Normalization (AdvBN), is a single network layer that generates worst-case feature perturbations during training. By fine-tuning neural networks on adversarial feature distributions, we observe improved robustness of networks to various unseen distributional shifts, including style variations and image corruptions. In addition, we show that our proposed adversarial feature perturbation can be complementary to existing image space data augmentation methods, leading to improved performance. The source code and pre-trained models are released at \url{https://github.com/azshue/AdvBN}.

View on arXivView PDF

Code Implementations(1)

azshue/AdvBNOfficial100%

Official PyTorch implementation of the NeurIPS 2021 paper: Encoding Robustness to Image Style via Adversarial Feature Perturbations.

92Python, ShellOct 25, 20215 years ago

Similar Papers

Cite this paper

@article{shu2020encoding,
  title  = {Encoding Robustness to Image Style via Adversarial Feature Perturbations},
  author = {Manli Shu and Zuxuan Wu and Micah Goldblum and Tom Goldstein},
  year   = {2020},
  eprint = {2009.08965},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2009.08965}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2009.08965.svg)](https://codeofpaper.com/paper/2009.08965)

Discussion