arXiv · 2205.10210
Test-time Batch Normalization
Abstract
Deep neural networks often suffer the data distribution shift between training and testing, and the batch statistics are observed to reflect the shift. In this paper, targeting of alleviating distribution shift in test time, we revisit the batch normalization (BN) in the training process and reveals two key insights benefiting test-time optimization: $(i)$ preserving the same gradient backpropagation form as training, and $(ii)$ using dataset-level statistics for robust optimization and inference. Based on the two insights, we propose a novel test-time BN layer design, GpreBN, which is optimized during testing by minimizing Entropy loss. We verify the effectiveness of our method on two typical settings with distribution shift, i.e., domain generalization and robustness tasks. Our GpreBN significantly improves the test-time performance and achieves the state of the art results.
Explore related subjects
Keep this discovery
Tao Yang, Shenglong Zhou, Yuwang Wang, Yan Lu, Nanning Zheng. 2022-05-20. Test-time Batch Normalization. https://arxiv.org/abs/2205.10210
Cite the original work for its findings. Save a collection to share your selection of sources.