Compound Batch Normalization for Long-tailed Image Classification

Lechao Cheng, Chaowei Fang, Dingwen Zhang, Guanbin Li, Gang Huang · DOI

TL;DR

This paper introduces Compound Batch Normalization (CBN), a novel approach that models feature distributions using multiple Gaussian components to better handle imbalanced datasets. To overcome the limitations of standard batch normalization in long-tailed scenarios, they also propose a dual-path learning framework with split normalization to ensure tail classes are adequately represented.

What Problem Does This Paper Address?

Deep learning models often struggle with "long-tailed" datasets, where a few classes (head classes) have abundant data, while many others (tail classes) have very little. This imbalance severely hinders model performance on tail classes. Existing solutions like data re-sampling or re-weighting often negatively impact head class performance or increase model complexity. A critical, yet often overlooked, issue is how data imbalance affects feature normalization layers (like Batch Normalization). Standard Batch Normalization uses a single Gaussian distribution to model feature statistics, which is dominated by head classes and fails to capture the nuances of tail classes, leading to internal covariate shifts that are detrimental to tail class learning.

Methods

The core innovation is Compound Batch Normalization (CBN). Instead of a single mean and variance, CBN models the feature distribution using a mixture of multiple Gaussian distributions. This allows for a more comprehensive representation of the feature space, reducing the dominance of head classes. To estimate the parameters of these multiple Gaussians, they employ a moving average-based Expectation-Maximization (EM) algorithm.

However, the EM algorithm can get stuck in local minima, leading to Gaussian components that still favor head classes. To address this, they introduce a dual-path learning framework. This framework uses two branches:

  1. Main Branch: Employs the proposed CBN for feature normalization.
  2. Auxiliary Branch: Uses Split Batch Normalization, which divides classes into subsets and applies normalization independently. This diversification helps the Gaussian components better fit samples from less-frequent classes.

The two branches are trained with a stop-gradient based consistency constraint to maximize the similarity between their predictions, encouraging robust feature learning.

Datasets

The paper evaluates their method on several standard long-tailed image classification datasets:

  • CIFAR10-LT / CIFAR100-LT: Variants of CIFAR datasets with imbalanced class distributions, tested with imbalance ratios (ρ) of 100, 50, and 10.
  • ImageNet-LT: A subset of ImageNet with 1000 categories and varying class frequencies.
  • Places-LT: A long-tailed version of the Places dataset with 365 classes.
  • iNaturalist2018: A challenging dataset with a very large number of fine-grained classes (8142 species) exhibiting a natural long-tailed distribution.

Key Insights and Ideas

  • Feature Normalization is Key: The paper highlights that data imbalance isn't just a problem for the classifier or loss function; it significantly impacts feature normalization layers, which are crucial for deep network training.
  • Multi-Modal Features: Real-world feature distributions are often not single-modal. Using a mixture of Gaussians (CBN) is a more accurate way to model these complex distributions, especially in imbalanced settings.
  • Diversification is Crucial: The EM algorithm alone can still be biased. The dual-path framework with split normalization is essential for actively diversifying the learned Gaussian components to cover tail classes.
  • Orthogonal Approach: CBN is presented as a method that can be combined with existing re-sampling and re-weighting techniques, offering a complementary way to tackle long-tailed problems.

Key Results

The proposed Compound Batch Normalization (CBN) with the dual-path learning framework consistently outperforms existing state-of-the-art methods across various long-tailed datasets.

  • On CIFAR10-LT with ρ=100, their method achieves 91.8% top-1 accuracy, a significant improvement over the baseline (81.87%) and other methods.
  • On CIFAR100-LT with ρ=100, they reach 53.3% top-1 accuracy, outperforming the best prior work (52.0%).
  • Similar gains are observed on ImageNet-LT, Places-LT, and the highly challenging iNaturalist2018 dataset, demonstrating the method's generalization capabilities.
  • Ablation studies show that both the compound normalization (CBN) and the split normalization (SBN) contribute to performance gains, with the full dual-path learning framework yielding the best results.
  • The method introduces a subtle increase in memory and training time, but the inference time difference is minimal.

Limitations and Future Work

  • EM Algorithm Sensitivity: The paper acknowledges that the EM algorithm for estimating Gaussian mixture parameters can be sensitive to initialization and prone to local minima. While their dual-path framework mitigates this, it's an inherent challenge of mixture modeling.
  • Number of Mixtures (M): The optimal number of Gaussian mixtures (M) needs to be determined. Experiments suggest that M=4 is effective, and larger values don't always yield continuous gains, indicating a trade-off between model complexity and performance.
  • Future Work: The authors suggest that their approach offers a novel perspective on addressing imbalance at the feature level, inspiring future research in this area. The method's ability to handle extremely unbalanced fine-grained data with a large number of classes is also highlighted as a promising direction.

Summary updated

BibTeX
@inproceedings{cheng2022compound,
  author = {Lechao Cheng and Chaowei Fang and Dingwen Zhang and Guanbin Li and Gang Huang},
  title = {{Compound Batch Normalization for Long-tailed Image Classification}},
  booktitle = {ACM Multimedia},
  year = {2022},
  doi = {10.1145/3503161.3547805},
}
Figure