Balanced Product of Experts for Long-Tailed Recognition

Emanuel Sanchez Aimar, Arvi Jonnarth, Michael Felsberg, Marco Kuhlmann · DOI

TL;DR

This paper introduces "Balanced Product of Experts" (BalPoE), a novel ensemble method designed to tackle the significant challenge of long-tailed data distributions in real-world recognition tasks. By analytically extending logit adjustment to ensembles and ensuring expert calibration (crucially, with Mixup), BalPoE achieves state-of-the-art performance and improved fairness on challenging long-tailed datasets.

What Problem Does This Paper Address?

Many real-world datasets, unlike typical benchmark datasets, exhibit a "long-tailed" distribution of labels. This means a few classes (the "head") have abundant data, while many others (the "tail") have very few examples. This imbalance severely hinders deep learning models, as they tend to overfit to the head classes and generalize poorly to the tail. Furthermore, when the distribution of data at test time differs from the training distribution (a "distribution shift"), performance degrades further. Existing methods often struggle to balance performance across all classes, leading to biased predictions and potential fairness issues.

Methods

The core of this work is the Balanced Product of Experts (BalPoE). It builds upon the concept of logit adjustment, a technique that modifies model outputs to account for label distribution shifts. The authors extend this to an ensemble of experts, where each expert is trained with a specific "target distribution" parameterized by a bias term ($\lambda$).

Key methodological contributions include:

  • Analytical Extension of Logit Adjustment: The paper provides a theoretical framework for combining multiple logit-adjusted experts. They prove that their ensemble, when properly configured, is Fisher-consistent for minimizing the balanced error rate, meaning it's theoretically sound for achieving unbiased predictions.
  • BalPoE Formulation: The ensemble's prediction is formed by averaging the log-probabilities of individual experts. This "product of experts" approach allows for diverse specialization.
  • Calibration Requirement: A crucial insight is that for the theoretical guarantees of unbiasedness to hold, the individual experts must be calibrated. This means their predicted confidence should accurately reflect the true probability of correctness.
  • Mixup for Calibration: The authors demonstrate that standard training methods often result in uncalibrated experts. They propose using Mixup, a data augmentation technique, to effectively calibrate these experts, leading to a "Balanced Product of Calibrated Experts." This is a key practical contribution, as Mixup doesn't alter the underlying class distribution, which is vital for logit adjustment.

Datasets

The paper evaluates BalPoE on three standard long-tailed datasets:

  • CIFAR-100-LT: A long-tailed version of CIFAR-100, with varying imbalance ratios (IR) of 10, 50, and 100.
  • ImageNet-LT: A long-tailed version of ImageNet, with an imbalance ratio of 256.
  • iNaturalist 2018: A large-scale species classification dataset with a natural imbalance ratio of 500.

Key Insights and Ideas

  • Calibration is Key for Unbiased Ensembles: The theoretical analysis highlights that simply combining diverse experts isn't enough. For logit-adjusted ensembles to be truly unbiased, the individual experts must be well-calibrated. This is a critical finding that bridges theory and practice.
  • Mixup as a Practical Calibration Tool: The paper shows that Mixup, a seemingly simple data augmentation, is surprisingly effective at calibrating experts within a logit-adjusted framework. This provides a straightforward and effective solution to a core problem.
  • Expert Specialization: The ensemble approach allows for experts to specialize in different parts of the label distribution (e.g., head vs. tail classes), leading to a more robust overall prediction.
  • BalPoE Generalizes Previous Work: The proposed framework is shown to encompass and generalize several prior methods for handling long-tailed data, including balanced softmax and other logit adjustment techniques.

Key Results

  • State-of-the-Art Performance: BalPoE achieves new state-of-the-art results on CIFAR-100-LT, ImageNet-LT, and iNaturalist 2018 across various imbalance ratios.
  • Improved Accuracy on Tail Classes: The method significantly improves performance on medium- and few-shot classes, effectively mitigating the head-tail trade-off. For instance, on CIFAR-100-LT (IR=100), they gain +2.2 accuracy points over the previous SOTA.
  • Enhanced Calibration: Reliability plots and ECE/MCE metrics demonstrate that BalPoE, especially when trained with Mixup, achieves significantly better calibration compared to baseline methods and even uncalibrated versions of BalPoE.
  • Scalability: The performance generally improves with an increasing number of experts, suggesting the method scales well.

Limitations and Future Work

  • Assumption of Distribution Shift: The theoretical framework assumes that the class-conditional distributions ($p(x|y)$) remain invariant between training and testing. This assumption might be violated in real-world scenarios with significant domain shifts.
  • Prior Estimation: The prior class distribution ($p(y)$) is estimated from training data, which can be suboptimal for very few-shot classes. The authors suggest exploring methods like using the "effective number of samples" for better prior estimation.
  • Single-Label Classification: The current work focuses on single-label classification. Extending BalPoE to multi-label classification and other vision tasks like object detection is suggested as future work.
  • Computational Cost: Using multiple experts increases computational cost, which is a common trade-off in ensemble methods.

Summary updated

BibTeX
@inproceedings{aimar2023balanced,
  author = {Emanuel Sanchez Aimar and Arvi Jonnarth and Michael Felsberg and Marco Kuhlmann},
  title = {{Balanced Product of Experts for Long-Tailed Recognition}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2023},
  doi = {10.1109/cvpr52729.2023.01912},
}
Figure