Long-Tailed Learning as Multi-Objective Optimization

Weiqi Li, Fan Lyu, Fanhua Shang, Liang Wan, Wei Feng

In deep learning, real-world datasets often exhibit a "long-tailed" distribution where a few "head" classes possess the majority of samples, while numerous "tail" classes are represented by only a few examples. Standard training objectives typically favor the head classes, leading to poor generalization on the tail. A recent study from AAAI-24, "Long-Tailed Learning as Multi-Objective Optimization," proposes a novel framework to address this imbalance by reframing the training process as a balancing act between competing class-group objectives.

The Seesaw Dilemma in Long-Tailed Learning

The primary challenge in long-tailed recognition is the seesaw dilemma: efforts to improve performance on rare classes often inadvertently degrade performance on common ones. Traditional methods like reweighting or resampling frequently result in either undercompensation (where head classes continue to dominate) or overcompensation (where the model overfits the tail at the expense of the head).

Conceptual illustration of undercompensation, overcompensation, and ideal compensation in parameter and loss spaces.

As illustrated in Figure 2, the goal is to find an "ideal compensation" update direction that improves performance across all class groups simultaneously, moving the model toward the Pareto front in the loss space.

Methodology: Balancing Gradients via MOO

The authors propose a two-stage strategy to achieve this ideal balance:

  1. Multi-Objective Optimization (MOO) Formulation: Instead of a single global loss, the losses of different class groups are treated as separate objectives. The optimization objective is to find a Pareto descent direction—a single update vector that minimizes all group losses without detriment to any single one.
  2. Gradient-Balancing Grouping (GBG): To manage the computational complexity of MOO with thousands of classes, the authors employ spectral clustering to group classes based on the similarity of their gradient directions. This ensures that classes with similar "optimization habits" are optimized together.
  3. Group-level MOO and Sampler: Using the Multi-Gradient Descent Algorithm (MGDA), the model calculates optimal weights for each group's gradient. A Group-Aware Completion (GAC) Sampler ensures that every mini-batch contains sufficient representation from all groups to provide stable gradient estimates.

Empirical Insights into Gradient Imbalance

The motivation for this approach stems from the observation of gradient imbalance during standard training. In typical Cross-Entropy (CE) training, head classes dominate the gradient updates both in terms of magnitude and direction.

Gradient similarity and normalization across epochs for standard CE and CE with resampling.

Figure 5 demonstrates that while resampling can help balance the gradient magnitudes (normalization), it often fails to align the gradient directions effectively, leading to the aforementioned overcompensation. The proposed GBG method seeks to explicitly manage these directional conflicts.

Experimental Results

The GBG method was evaluated on several benchmark datasets, including CIFAR-LT, ImageNet-LT, and iNaturalist 2018. The results indicate that treating long-tailed learning as a MOO problem yields significant gains:

  • ImageNet-LT: The method achieved 57.6% top-1 accuracy using a ResNet-50 backbone, outperforming previous state-of-the-art methods like BCL by 1.2%.
  • iNaturalist 2018: On this naturally long-tailed large-scale dataset, the model reached 71.9% accuracy.
  • Balanced Improvement: Unlike many existing techniques, GBG improves performance across "Many," "Medium," and "Few" sample categories simultaneously, effectively resolving the seesaw dilemma.

Conclusion and Future Directions

By reframing long-tailed learning through the lens of Multi-Objective Optimization, this work provides a theoretically grounded approach to balancing head and tail performance. While the current implementation uses static grouping, future work may explore dynamic grouping to adapt to changing gradient landscapes during training. Additionally, automating the selection of the optimal number of groups remains an open research question.

Paper Citation: Li, W., Lyu, F., Shang, F., Wan, L., & Feng, W. (2024). Long-Tailed Learning as Multi-Objective Optimization. Proceedings of the AAAI Conference on Artificial Intelligence (AAAI-24).

Summary updated

BibTeX
@inproceedings{li2024long,
  author = {Weiqi Li and Fan Lyu and Fanhua Shang and Liang Wan and Wei Feng},
  title = {{Long-Tailed Learning as Multi-Objective Optimization}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2024},
  doi = {10.1609/aaai.v38i4.28103},
}
Figure