Abstract
Standard deep learning classifiers struggle with long-tailed, imbalanced datasets because they implicitly estimate probabilities using gradient descent, leading to a bias against minority classes. This paper introduces BAPE (BAyes classifier by Point Estimation), a method that explicitly models feature distributions to build a Bayes optimal classifier without gradient descent. By mitigating gradient imbalance and including a zero-cost distribution adjustment technique, BAPE achieves state-of-the-art results on major long-tailed visual recognition benchmarks, particularly improving performance on rare tail classes.
Introduction
In real-world applications, data distributions are often long-tailed, where a few "head" classes possess abundant samples while many "tail" classes have very few. Standard deep learning models, typically trained to minimize Softmax cross-entropy loss, implicitly estimate class posterior probabilities via gradient descent. This paradigm is prone to "gradient imbalance," where gradients from majority classes overwhelm minority ones, leading to "minority collapse." While techniques like re-sampling or logit adjustment offer partial remedies, they remain tethered to the implicit gradient-descent framework. BAPE addresses this root cause by shifting to an explicit Bayesian modeling approach.
Methodology
BAPE moves away from implicitly learning a classifier via gradients to explicitly modeling the data distribution and calculating classifier parameters directly.
- Feature Space Modeling: BAPE models the distribution of data in the network's feature space, assuming that features for each class follow a von Mises-Fisher (vMF) distribution on a unit hypersphere.
- Point Estimation: Instead of backpropagation, BAPE calculates vMF parameters (mean direction and concentration) using Maximum A Posteriori (MAP) point estimation. This process only requires computing the first sample moment across batches, effectively bypassing gradient imbalance.
- Stability Mechanisms: To handle early training instability, BAPE utilizes a conjugate prior initialized as a simplex equiangular tight frame (ETF) and is co-trained with a standard Logit Adjustment (LA) classifier to stabilize the shared feature backbone.
- Distribution Adjustment (DA): A post-hoc technique adjusts learned class frequency parameters to match the test set's distribution (typically balanced) at zero additional computational cost during inference.
Experimental Results
BAPE was evaluated on standard long-tailed benchmarks including CIFAR-10/100-LT, ImageNet-LT, and iNaturalist 2018.
As shown in the table above, BAPE consistently outperforms state-of-the-art baselines. For instance, on CIFAR-100-LT with an imbalance factor of 100, BAPE achieved 52.5% Top-1 accuracy, surpassing the 50.5% achieved by Logit Adjustment.
A key strength of BAPE is its ability to improve performance on rare classes. On the ImageNet-LT benchmark, BAPE significantly improved accuracy for "Few-shot" classes.
Specifically, for a ResNet-50 trained for 90 epochs, BAPE reached 56.7% overall accuracy compared to 55.1% for Logit Adjustment, with a massive +5.7% gain in the "Few-shot" category.
Key Insights
- Explicit vs. Implicit: Explicit modeling forces the model to learn class geometry rather than just frequency.
- Frequency-Independent Learning: Unlike standard methods where feature norms correlate with frequency, BAPE learns a concentration parameter ($\kappa$) independent of class prevalence.
- Orthogonality: BAPE's approach to classifier estimation is compatible with other representation learning methods, allowing for synergistic integration.
Conclusion
BAPE demonstrates that explicit Bayesian modeling can effectively solve the gradient imbalance problem inherent in long-tailed recognition. By calculating classifier parameters via statistical point estimation, BAPE focuses on the essential geometric features of classes rather than their prevalence. While early training instability requires auxiliary stabilization, BAPE sets a new standard for robust performance on imbalanced real-world data.
Summary updated