Exploring Weight Balancing on Long-Tailed Recognition Problem

Naoya Hasegawa, Issei Sato

TL;DR

This paper provides a theoretical and empirical "post-mortem" of Weight Balancing (WB), a simple but highly effective technique for long-tailed recognition. By identifying that WB works by suppressing the "cone effect" and performing implicit logit adjustment, the authors propose a simplified one-stage training method that actually outperforms the original two-stage approach.

What Problem Does This Paper Address?

In the real world, data rarely follows a neat, uniform distribution. Instead, it is usually "long-tailed"—a few "head" classes have thousands of samples, while many "tail" classes have only a handful. Standard deep learning models trained on such data become heavily biased toward the head classes, leading to poor performance on the majority of categories (the tail).

Recently, a method called Weight Balancing (WB) gained traction because it outperformed complex state-of-the-art techniques using just simple components: weight decay, MaxNorm regularization, and two-stage training. However, the community lacked a fundamental understanding of why it worked so well. This paper sets out to peel back the layers of WB to understand its mechanics and explore whether it can be further optimized and simplified.

Methods: Deconstructing Weight Balancing

The authors decompose WB into five core components: Weight Decay (WD), MaxNorm, Cross-Entropy (CE) loss, Class-Balanced (CB) loss, and two-stage learning. They analyze these through two theoretical lenses:

  1. Neural Collapse (NC): The tendency of features to cluster into a specific geometric structure (a simplex equiangular tight frame) at the end of training.
  2. The Cone Effect: A phenomenon where features from different classes cluster too closely together in a narrow "cone," making them difficult for a classifier to distinguish.

Based on their analysis, they propose a simplified one-stage method. Instead of the traditional two-stage approach (training the whole model, then freezing the feature extractor to tune the classifier), they utilize:

  • Fixed ETF Classifier: Fixing the linear layer weights to an Equiangular Tight Frame (ETF) from the start of training.
  • Feature Regularization (FR): Explicitly regularizing features to improve their separability.
  • Multiplicative Logit Adjustment (LA): A post-hoc adjustment of weight norms to account for class imbalance.

Key Insights and Ideas

Effect of Weight Decay on feature separability across different loss functions on CIFAR10-LT.
  • Weight Decay is the Secret Sauce: The authors found that WD does much more than simply prevent overfitting. It actively suppresses the "cone effect" by degrading inter-class cosine similarities. This increases the Fisher’s Discriminant Ratio (FDR), making features significantly more linearly separable.
  • Batch Norm's Hidden Role: WD reduces the scaling parameters in Batch Normalization layers. This seemingly small change has a massive positive effect on feature learning dynamics, preventing features from collapsing into indistinguishable clusters.
  • Implicit Logit Adjustment: The second stage of WB (using Class-Balanced loss) is essentially a "stealth" version of Logit Adjustment. It increases the norm of the classifier's weights for tail classes, which compensates for the lack of training samples.
  • Two Stages are Optional: The study proves that the benefits of two-stage training can be captured entirely in a single stage if you use a fixed ETF classifier and proper feature regularization.

Key Results

The proposed simplified method consistently outperformed the original Weight Balancing and other established baselines across diverse datasets (including CIFAR10/100-LT, ImageNet-LT, and tabular data like Helena):

  • CIFAR100-LT: The simplified one-stage method (WD&FR&ETF + Mult LA) achieved 53.0% average accuracy, compared to 50.6% for the original WB.
  • ImageNet-LT: The new method reached 53.2% accuracy, surpassing WB’s 52.2%.
  • Feature Separability: In all tests, the proposed method significantly increased the FDR (often by an order of magnitude), confirming that the features were much easier for the classifier to distinguish.
  • Generality: The method also succeeded on the Helena tabular dataset, demonstrating that these insights into weight dynamics are fundamental to neural networks broadly, not just specific to convolutional architectures.

Limitations and Future Work

The authors acknowledge that their experiments primarily focused on standard architectures like MLPs, ResNets, and ResNeXt. While the theory is grounded in general deep learning principles, its effectiveness on newer architectures like Vision Transformers (ViT) remains an open question for future research. Additionally, while the method simplifies the training pipeline, finding the optimal hyperparameters for the post-hoc Logit Adjustment still requires a validation set.

Summary updated

BibTeX
@inproceedings{hasegawa2024exploring,
  author = {Naoya Hasegawa and Issei Sato},
  title = {{Exploring Weight Balancing on Long-Tailed Recognition Problem}},
  booktitle = {International Conference on Learning Representations},
  year = {2024},
  url = {https://openreview.net/forum?id=JsnR0YO4Fq},
}
Figure