Normalizing Batch Normalization for Long-Tailed Recognition

Yuxiang Bao, Guoliang Kang, Linlin Yang, Xiaoyue Duan, Bo Zhao +1 more
1/6/2025
cs.CV

Official code: yuxiangbao/NBN (19 stars, last commit 2025-01-08).

Abstract

In real-world scenarios, the number of training samples across classes usually subjects to a long-tailed distribution. The conventionally trained network may achieve unexpected inferior performance on the rare class compared to the frequent class. Most previous works attempt to rectify the network bias from the data-level or from the classifier-level. Differently, in this paper, we identify that the bias towards the frequent class may be encoded into features, i.e., the rare-specific features which play a key role in discriminating the rare class are much weaker than the frequent-specific features. Based on such an observation, we introduce a simple yet effective approach, normalizing the parameters of Batch Normalization (BN) layer to explicitly rectify the feature bias. To achieve this end, we represent the Weight/Bias parameters of a BN layer as a vector, normalize it into a unit one and multiply the unit vector by a scalar learnable parameter. Through decoupling the direction and magnitude of parameters in BN layer to learn, the Weight/Bias exhibits a more balanced distribution and thus the strength of features becomes more even. Extensive experiments on various long-tailed recognition benchmarks (i.e., CIFAR-10/100-LT, ImageNet-LT and iNaturalist 2018) show that our method outperforms previous state-of-the-arts remarkably. The code and checkpoints are available at https://github.com/yuxiangbao/NBN.

View on arXivView PDF

Code Implementations(1)

yuxiangbao/NBNOfficial100%

[IEEE TIP 2024] Normalizing Batch Normalization for Long-Tailed Recognition

190Shell, PythonJan 5, 20251 years ago

Similar Papers

Cite this paper

@article{bao2025normalizing,
  title  = {Normalizing Batch Normalization for Long-Tailed Recognition},
  author = {Yuxiang Bao and Guoliang Kang and Linlin Yang and Xiaoyue Duan and Bo Zhao and Baochang Zhang},
  year   = {2025},
  eprint = {2501.03122},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2501.03122v1}
}

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

Discussion