Breaking Long-Tailed Learning Bottlenecks: A Controllable Paradigm with Hypernetwork-Generated Diverse Experts

Zhe Zhao, Haibin Wen, Zikang Wang, Pengkun Wang, Fanfu Wang, Song Lai, Qingfu Zhang, Yang WangNeurIPS 2024

TL;DR

This paper introduces a novel "Preference-Controlled Long-Tailed Learning" (PRL) paradigm that tackles the challenge of distribution shifts in long-tailed datasets. By using hypernetworks to generate diverse "expert" models, PRL can adapt to unseen test distributions and, crucially, allow users to control the trade-off between performance on common (head) and rare (tail) classes.

What Problem Does This Paper Address?

Many real-world datasets exhibit a "long-tailed" distribution, meaning a few classes have abundant data (head classes), while most classes have very little data (tail classes). This imbalance makes standard machine learning models perform poorly on the tail classes. Existing methods often struggle with two key issues: 1) they assume training and testing distributions are similar, failing when test distributions shift, and 2) they offer a fixed performance trade-off between head and tail classes, which may not suit diverse user needs. For example, in medical imaging, prioritizing rare disease detection might require accepting more false positives, a preference not easily accommodated by current methods.

Methods

The core of PRL is a hypernetwork-generated diverse expert system.

  • Diverse Experts: Instead of training a single model, PRL trains multiple "expert" models. These experts share a common feature extractor but have different classifier heads.
  • Hypernetwork: A hypernetwork is employed to dynamically generate the parameters for these classifier heads. It takes random noise as input and outputs the weights for each expert's classifier. This allows for the generation of a diverse set of experts that can collectively cover a wide range of potential data distributions.
  • Pareto Optimality: The training objective aims to optimize a set of solutions that approximate the Pareto front, meaning it seeks to find models that offer good performance across various potential distribution scenarios, rather than a single best solution.
  • Preference Control: At inference time, users can specify a "preference vector" that dictates the desired trade-off between head and tail class performance. This vector is fed into the hypernetwork, which then generates a specific set of expert weights tailored to that preference. This allows for flexible adaptation without retraining.

Datasets

The authors evaluated their method on four standard long-tailed datasets:

  • CIFAR100-LT: A long-tailed version of CIFAR100 with varying imbalance ratios (IR=10, 50, 100).
  • ImageNet-LT: A long-tailed subset of ImageNet with a high imbalance ratio (up to 256).
  • iNaturalist 2018: A real-world dataset with a natural long-tailed distribution and high imbalance (up to 500).
  • Places365-LT: A long-tailed version of Places365 with an imbalance ratio of approximately 50.

Key Insights and Ideas

  • Controllable Trade-offs are Crucial: The paper highlights that a fixed head-tail performance trade-off is insufficient for real-world applications. Users often have specific needs that require flexible control.
  • Hypernetworks as Expert Generators: Using hypernetworks to generate diverse expert models is a powerful way to create a flexible system that can adapt to unseen distributions and user preferences.
  • Pareto Front Approximation for Robustness: By aiming to approximate the Pareto front, the method learns a set of solutions that are inherently more robust to distribution shifts.
  • Inference-Time Adaptation: The ability to adjust performance preferences at inference time without retraining is a significant practical advantage.

Key Results

  • Superior Performance: PRL consistently achieved the highest Top-1 accuracy across all tested datasets and various unknown test class distributions, outperforming state-of-the-art methods like LSC and BalPoE.
  • Robustness to Distribution Shift: The method demonstrated strong performance even under challenging "backward-LT" distributions, where test distributions are significantly different from training. For example, on CIFAR100-LT (IR100), PRL achieved accuracies up to 44.1% in backward settings, surpassing others.
  • Effective Preference Control: Table 4 shows that by adjusting the preference vector, PRL could effectively prioritize performance on many-shot (head) or few-shot (tail) classes. For instance, with R=(1.0, 2.7), the model excelled on many-shot classes, while R=(1.9, 1.1) improved few-shot performance at a slight cost to many-shot classes.

Limitations and Future Work

  • Training Stability: The paper acknowledges that the introduction of hypernetworks, while increasing parameter count, may affect training stability. Further research is needed for more efficient training and stable controllability.
  • Computational Cost: While the paper argues that the computational complexity increase is minimal, the hypernetwork does add trainable parameters.
  • Future Work: The authors suggest further research into more efficient training and stable controllability of the hypernetwork-based approach.

Summary updated

BibTeX
@inproceedings{zhao2024breaking,
  author = {Zhe Zhao and Haibin Wen and Zikang Wang and Pengkun Wang and Fanfu Wang and Song Lai and Qingfu Zhang and Yang Wang},
  title = {{Breaking Long-Tailed Learning Bottlenecks: A Controllable Paradigm with Hypernetwork-Generated Diverse Experts}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=JPnEQFaV9H},
}
Figure