CrossNorm and SelfNorm for Generalization under Distribution Shifts

Zhiqiang Tang, Yunhe Gao, Yi Zhu, Zhi Zhang, Mu Li +1 more
2/4/2021
cs.CVcs.LG

Official code: amazon-science/crossnorm-selfnorm (127 stars, Python, Apache-2.0, last commit 2021-09-10).

Abstract

Traditional normalization techniques (e.g., Batch Normalization and Instance Normalization) generally and simplistically assume that training and test data follow the same distribution. As distribution shifts are inevitable in real-world applications, well-trained models with previous normalization methods can perform badly in new environments.

Show full abstract

Can we develop new normalization methods to improve generalization robustness under distribution shifts? In this paper, we answer the question by proposing CrossNorm and SelfNorm. CrossNorm exchanges channel-wise mean and variance between feature maps to enlarge training distribution, while SelfNorm uses attention to recalibrate the statistics to bridge gaps between training and test distributions. CrossNorm and SelfNorm can complement each other, though exploring different directions in statistics usage. Extensive experiments on different fields (vision and language), tasks (classification and segmentation), settings (supervised and semi-supervised), and distribution shift types (synthetic and natural) show the effectiveness. Code is available at https://github.com/amazon-research/crossnorm-selfnorm

View on arXivView PDF

Code Implementations(1)

Apache-2.0

CrossNorm and SelfNorm for Generalization under Distribution Shifts, ICCV 2021

1277Python, ShellAug 13, 20215 years agoApache-2.0
computer-visiondomain-adaptationdomain-generalizationiccv-2021model-robustness+2 more

Similar Papers

Cite this paper

@article{tang2021crossnorm,
  title  = {CrossNorm and SelfNorm for Generalization under Distribution Shifts},
  author = {Zhiqiang Tang and Yunhe Gao and Yi Zhu and Zhi Zhang and Mu Li and Dimitris Metaxas},
  year   = {2021},
  eprint = {2102.02811},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2102.02811}
}

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/2102.02811.svg)](https://codeofpaper.com/paper/2102.02811)

Discussion