Introduction
Real-world datasets often exhibit a "long-tail" distribution, where a few major classes possess abundant samples while many minor classes have very few. Standard deep learning models, particularly Convolutional Neural Networks (ConvNets), typically struggle with these imbalanced distributions. While traditional machine learning wisdom suggests that models under-fit rare classes, recent research reveals a different reality for deep learning: ConvNets tend to severely over-fit minor classes.
The Deep Learning Paradox
A key observation in this work is the performance gap between training and testing on minor classes. Unlike logistic regression, which under-fits rare classes, ConvNets are powerful enough to achieve nearly 100% training accuracy even on the most infrequent categories. However, this high training performance fails to translate to test accuracy, indicating a significant generalization failure rather than a simple lack of capacity or bias.
Identifying Feature Deviation
The authors identify "feature deviation" as the primary cause of this generalization gap. By analyzing feature spaces through t-SNE visualizations and Euclidean distance metrics, they demonstrate that test features for minor classes often drift away from the regions occupied by training features. This shift pushes test instances into areas of low decision value, leading to misclassification by the final layer. Interestingly, common remedies like over-sampling can exacerbate this deviation by further encouraging the model to memorize specific training instances of rare classes.
Class-Dependent Temperatures (CDT)
To address this, the paper proposes Class-Dependent Temperatures (CDT), a modification to the standard cross-entropy loss. CDT introduces a class-specific temperature $a_c$ into the softmax layer during training, where $a_c$ is inversely proportional to class size: $a_c = (N_{max} / N_c)^\gamma$.
By dividing the decision values of minor classes by a larger temperature during training, the model is forced to produce much larger decision values to minimize the loss. This creates a "safety margin" or buffer. During inference, these temperatures are removed. The enlarged decision boundaries ensure that even if test features deviate from the training distribution, they are more likely to remain within the correct classification zone.
Experimental Results
The CDT approach was evaluated on several benchmarks, including long-tailed versions of CIFAR-10/100, Tiny-ImageNet, and the large-scale iNaturalist 2018 dataset.
- State-of-the-Art Performance: On Long-Tailed CIFAR-10 (imbalance ratio 100), CDT achieved 79.4% accuracy, a significant improvement over the 71.1% of Empirical Risk Minimization (ERM).
- Large-Scale Success: On the challenging iNaturalist dataset, which contains over 8,000 species, CDT reached a Top-1 accuracy of 69.5%, outperforming more complex architectural modifications.
- Synergy: CDT also showed strong synergy with other techniques like Deferred Re-Weighting (DRW), reaching 81.2% on CIFAR-10 with an imbalance ratio of 200.
Conclusion
CDT offers a robust, compensatory strategy for imbalanced learning. Rather than attempting the difficult task of eliminating feature deviation, it prepares the classifier to be resilient to it. While future work may focus on reducing the deviation itself, CDT provides a state-of-the-art baseline for handling long-tailed data in deep learning applications.
Summary updated