Balanced Product of Calibrated Experts for Long-Tailed Recognition

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

Abstract

Long-tailed recognition remains a significant challenge as models naturally bias toward frequent "head" classes at the expense of rare "tail" classes. This paper presents Balanced Product of Experts (BalPoE), a framework that leverages an ensemble of experts, each intentionally biased toward different segments of the label distribution. By ensuring these experts are well-calibrated via mixup and mathematically balancing their collective bias, BalPoE achieves state-of-the-art performance and significantly improved calibration across major benchmarks like CIFAR-100-LT and iNaturalist 2018.

Introduction

In real-world scenarios, data distributions are typically long-tailed. Standard deep learning models trained on such data often exhibit high accuracy on common classes but fail on rare ones. While single-model solutions like Logit Adjustment (LA) exist, recent research has shifted toward multi-expert ensembles to improve generalization. However, these ensembles often lack theoretical guarantees for bias correction and suffer from poor calibration, which invalidates the mathematical assumptions of logit adjustment.

Methodology: Balanced Product of Experts

BalPoE addresses these issues by extending logit adjustment to a multi-expert setting with a focus on Fisher consistency and calibration.

Parameterizing Expert Bias

The core idea is to train multiple experts, each with a specific target distribution. By introducing a parameter $\lambda$ (visualized as $\tau$ in the figures), the authors can shift an expert's focus. For instance, one expert might favor the head classes, while another is biased toward the tail.

Figure 2: Visualization of different class priors used to bias experts. By varying the target distribution, experts specialize in different segments of the long-tailed distribution.

Fisher Consistency and Logit Averaging

The authors prove that if individual experts are calibrated, the ensemble's bias is the arithmetic mean of the individual experts' biases. By designing the ensemble such that the average bias $\bar{\lambda}$ is zero, the model becomes Fisher-consistent for minimizing the Balanced Error Rate (BER). This provides a solid theoretical foundation for simply averaging logits from diverse experts.

The Role of Calibration and Mixup

Theoretical consistency relies on the "calibration assumption"—that the model's predicted probabilities reflect true likelihoods. Since deep networks are typically overconfident, BalPoE employs mixup during training. Mixup not only improves calibration but does so without altering the underlying class priors, making it uniquely compatible with the logit adjustment framework.

Experimental Results

The framework was evaluated on three major benchmarks: CIFAR-100-LT, ImageNet-LT, and iNaturalist 2018.

State-of-the-Art Performance

BalPoE consistently outperformed existing multi-expert methods. On CIFAR-100-LT (Imbalance Ratio 100), it achieved 52.0% accuracy, a 2.2% improvement over the previous best, SADE. Similar gains were observed on iNaturalist 2018, reaching 75.0% accuracy.

Figure 1: (a) Comparison of BalPoE against other state-of-the-art methods. (b-d) Reliability diagrams showing the dramatic reduction in Expected Calibration Error (ECE) achieved by BalPoE compared to Balanced Softmax (BS) and SADE.

Calibration Improvements

A key highlight is the reduction in Expected Calibration Error (ECE). As shown in Figure 1, standard Balanced Softmax exhibits an ECE of 23.1%, whereas BalPoE reduces this to just 4.1%. This confirms that the combination of mixup and balanced logit adjustment successfully satisfies the calibration requirements for unbiased learning.

Conclusion and Future Work

BalPoE demonstrates that a theoretically grounded approach to ensemble bias and calibration can yield significant gains in long-tailed recognition. While the computational cost of multiple experts remains a factor, the method sets a new standard for robustness and accuracy. Future work may explore extending this framework to multi-label classification and addressing potential domain shifts between training and test distributions.

Summary updated

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