Robust Long-Tailed Learning via Label-Aware Bounded CVaR

Hong Zhu, Runpeng Yu, Xing Tang, Yifei Wang, Yuan Fang, Yisen WangarXiv 2023

Abstract

Data in real-world classification problems are always imbalanced or long-tailed, wherein the majority classes have most of the samples that dominate the model training. In such settings, naive models tend to have poor performance on minority classes. Previously, a variety of loss modifications have been proposed to address the long-tailed learning problem, while these methods either treat the samples in the same class indiscriminately or lack a theoretical guarantee. In this paper, we propose two novel approaches based on CVaR (Conditional Value at Risk) to improve the performance of long-tailed learning with a solid theoretical ground. Specifically, we firstly introduce a Label-Aware Bounded CVaR (LAB-CVaR) loss to overcome the pessimistic result of the original CVaR, and further design the optimal weight bounds for LAB-CVaR theoretically. Based on LAB-CVaR, we additionally propose a LAB-CVaR with logit adjustment (LAB-CVaR-logit) loss to stabilize the optimization process, where we also offer theoretical support. Extensive experiments on real-world datasets with long-tailed label distributions verify the superiority of our proposed methods.

Introduction

In real-world machine learning applications, datasets are rarely balanced. Instead, they often follow a "long-tailed" distribution where a few majority classes contain the bulk of the data, while many minority classes have very few samples. Standard training via Empirical Risk Minimization (ERM) typically fails in these scenarios because the model optimizes for average global error, effectively ignoring the rare classes that contribute little to the overall loss.

Existing solutions generally fall into two categories: class-level re-weighting and sample-level re-weighting. Class-level methods assign higher importance to rare classes but treat all samples within a class as equally difficult. Sample-level methods focus on individual "hard" examples but often lack theoretical guarantees and can suffer from mathematical "pessimism," where the optimization eventually collapses back into standard ERM behavior.

Methodology

Label-Aware Bounded CVaR (LAB-CVaR)

To bridge the gap between class-level and sample-level approaches, we utilize Conditional Value at Risk (CVaR), a risk measure from finance that focuses on the "tail" or the most difficult samples of a distribution.

Standard CVaR focuses on the worst $\alpha$ fraction of samples. However, in classification tasks, this often leads to the same results as standard training—a phenomenon we call the "pessimism" of CVaR. We overcome this by introducing Label-Aware Bounded CVaR (LAB-CVaR). This method sets label-specific upper and lower bounds ($\alpha_j$ and $\beta_j$) for the weights assigned to samples of class $j$. By deriving optimal bounds based on class sample sizes, we ensure the model focuses on the most informative samples across the entire distribution.

LAB-CVaR-logit for Stability

Extreme re-weighting can lead to high-variance gradients, making the training process unstable. To mitigate this, we propose LAB-CVaR-logit, which integrates Logit Adjustment into the LAB-CVaR framework. By shifting the model's output (logits) based on class weights, we effectively "smooth" the optimization process. We provide theoretical proof that this adjustment acts as a stabilizer, reducing the influence of massive weights on gradients and leading to steadier convergence.

Empirical Evaluation

We evaluated our methods on four standard benchmarks modified to have long-tailed distributions (with an imbalance ratio of 100:1): Imbalanced IMDB Review, CIFAR10-LT, CIFAR100-LT, and Tiny ImageNet-LT.

Error rates across Many, Medium, and Few class categories for CIFAR10, CIFAR100, and Tiny ImageNet.

As shown in the experimental results, LAB-CVaR-logit consistently outperforms state-of-the-art baselines like LDAM and Focal Loss.

Key Findings:

  • Minority Class Protection: The performance gains are most significant in the "Few" group (classes with the fewest samples), where our method drastically reduces error rates compared to ERM.
  • Robustness to Imbalance: As the imbalance ratio increases, the performance gap between LAB-CVaR-logit and other methods widens, demonstrating its effectiveness in extreme scenarios.
  • Sample-Level Nuance: Unlike simple class-weighting, LAB-CVaR allows the model to distinguish between "easy" and "hard" samples within the same class, ensuring that rare classes receive attention without over-fitting to noise.

Conclusion

This work introduces a theoretically grounded framework for long-tailed learning. By combining label-aware weight bounds with logit adjustments, LAB-CVaR-logit provides a robust and stable solution for imbalanced classification. Future work may explore more end-to-end, dynamically adaptive versions of these bounds to further exploit fine-grained differences between individual data points.

Summary updated

BibTeX
@misc{zhu2023robust,
  author = {Hong Zhu and Runpeng Yu and Xing Tang and Yifei Wang and Yuan Fang and Yisen Wang},
  title = {{Robust Long-Tailed Learning via Label-Aware Bounded CVaR}},
  year = {2023},
  eprint = {2308.15405},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2308.15405},
}
Figure