A Unified Perspective for Loss-Oriented Imbalanced Learning via Localization

Zitai Wang, Qianqian Xu, Zhiyong Yang, Zhikang Xu, Linchao Zhang, Xiaochun Cao, Qingming Huang

TL;DR

This paper tackles the challenge of imbalanced datasets in machine learning by proposing a novel "localized" analysis of existing loss-oriented methods. By moving from global to class-specific properties, they provide a unified theoretical framework that explains why certain adjustments work and leads to a more principled and effective learning algorithm.

What Problem Does This Paper Address?

Real-world datasets are often imbalanced, meaning some classes have many more examples than others. Standard machine learning algorithms, like Empirical Risk Minimization (ERM), tend to favor these majority classes, leading to poor performance on minority classes. While techniques like re-weighting and logit-adjustment in the loss function have been developed to combat this, existing theoretical analyses are often too coarse-grained. They use "global" properties that apply to the entire dataset, failing to capture the nuanced, class-specific behavior that these adjustment techniques aim to influence. This fragmentation makes it hard to understand why these methods work and how to best combine them.

Methods

The core innovation of this paper lies in introducing "localized" versions of key theoretical properties:

  • Localized Calibration: Instead of assuming a model is calibrated globally, they analyze calibration on a per-class basis. This is crucial because minority classes often remain poorly calibrated even when the overall model appears to be.
  • Localized Lipschitz Continuity: Similarly, they analyze the Lipschitz continuity of the loss function not globally, but for each class. This allows for a more fine-grained understanding of how class-dependent terms affect generalization.

These localized properties are then used to derive new theoretical insights into:

  • Consistency: Ensuring that minimizing the modified loss function leads to optimizing the true, balanced risk. They show how localized calibration validates both additive and multiplicative logit-adjustment terms.
  • Generalization: Providing a sharper, data-dependent generalization bound that directly accounts for class-specific properties.

Based on these insights, they propose a principled learning algorithm that strategically combines these techniques.

Datasets

The authors evaluate their proposed method on several standard imbalanced learning benchmarks:

  • CIFAR-10 LT and CIFAR-100 LT: These datasets are commonly used for imbalanced learning research, with varying degrees of imbalance (imbalance ratios of 10 and 100).
  • ImageNet-LT and iNaturalist: These are larger-scale datasets that present more challenging long-tailed distributions.

They use standard training protocols for these datasets, including training ResNets from scratch and fine-tuning pre-trained Vision Transformers (ViTs).

Key Insights and Ideas

  • The "Global" vs. "Local" Divide: The most significant insight is that global properties are insufficient for understanding imbalanced learning. The true behavior and impact of loss modifications are class-specific, and local analysis is key to unlocking their full potential.
  • Minority Classes Remain Poorly Calibrated: Even with techniques like mixup, which improve overall calibration, minority classes often exhibit persistent poor calibration. This highlights the need for localized calibration analysis.
  • Unified Theory for Loss Adjustments: By localizing calibration and Lipschitz continuity, the paper provides a unified theoretical framework that explains the roles of re-weighting and both additive and multiplicative logit-adjustment terms.
  • Incompatibility of Multiplicative Adjustment with DRW: A surprising finding is that multiplicative logit-adjustment terms can be incompatible with deferred re-weighting (DRW) schemes, potentially leading to looser generalization bounds. This suggests careful consideration when combining these techniques.
  • Importance of Training Protocols: The effectiveness of class-dependent terms can be significantly influenced by the training protocol, underscoring the need for well-designed training strategies.

Key Results

  • Improved Generalization Bounds: The localized analysis leads to sharper generalization bounds compared to previous coarse-grained approaches.
  • Principled Learning Algorithm: The theoretical insights are translated into a practical learning algorithm (CVS loss) that demonstrates superior performance.
  • State-of-the-Art Performance: The proposed method achieves competitive or state-of-the-art results on various imbalanced datasets (CIFAR, ImageNet-LT, iNaturalist) across different model architectures (ResNets, ViTs). For instance, on CIFAR-100 LT (p=100), their method (CVS+ADRW) achieves balanced accuracies of 44.4% (protocol a), 48.3% (protocol b), and 54.6% (protocol c), outperforming previous methods.
  • Validation of Theoretical Insights: Extensive experiments validate the theoretical findings, particularly the effectiveness of localized analysis and the proposed algorithm's components.

Limitations and Future Work

  • Computational Cost of Slope Estimation: While generally acceptable, the memory cost of slope estimation can be high on large-scale datasets. The authors suggest reducing parallelization for memory-constrained scenarios.
  • Hyperparameter Tuning: While the proposed method offers a more principled approach, hyperparameter tuning is still necessary. The authors suggest a two-stage strategy to manage this burden.
  • Integration with Other Techniques: The authors suggest future work could explore integrating their algorithm with other orthogonal techniques like multi-expert systems and hard-sample exploration.
  • Broader Applications: They also propose exploring the potential of their method in other tasks beyond classification, such as segmentation and retrieval.

Summary updated

BibTeX
@article{wang2023unified,
  author = {Zitai Wang and Qianqian Xu and Zhiyong Yang and Zhikang Xu and Linchao Zhang and Xiaochun Cao and Qingming Huang},
  title = {{A Unified Perspective for Loss-Oriented Imbalanced Learning via Localization}},
  journal = {IEEE Trans. Pattern Anal. Mach. Intell.},
  year = {2023},
  url = {https://openreview.net/forum?id=fvkFakKR90},
}
Figure