[Paper Review] Imbalanced Image Classification with Complement Cross Entropy
This paper proposes Complement Cross Entropy (CCE), a novel loss function that improves imbalanced image classification by explicitly suppressing predicted probabilities on incorrect classes during training. By neutralizing softmax scores for wrong classes, CCE enhances feature learning for minority classes, leading to higher accuracy and faster convergence without additional data or hyperparameter tuning.
Recently, deep learning models have achieved great success in computer vision applications, relying on large-scale class-balanced datasets. However, imbalanced class distributions still limit the wide applicability of these models due to degradation in performance. To solve this problem, in this paper, we concentrate on the study of cross entropy which mostly ignores output scores on incorrect classes. This work discovers that neutralizing predicted probabilities on incorrect classes improves the prediction accuracy for imbalanced image classification. This paper proposes a simple but effective loss named complement cross entropy based on this finding. The proposed loss makes the ground truth class overwhelm the other classes in terms of softmax probability, by neutralizing probabilities of incorrect classes, without additional training procedures. Along with it, this loss facilitates the models to learn key information especially from samples on minority classes. It ensures more accurate and robust classification results on imbalanced distributions. Extensive experiments on imbalanced datasets demonstrate the effectiveness of the proposed method.
Motivation & Objective
- To address performance degradation in deep learning models trained on long-tailed, class-imbalanced datasets.
- To identify the limitation of standard cross entropy in ignoring incorrect class predictions during optimization.
- To propose a simple yet effective loss function that improves training dynamics for minority classes.
- To eliminate the need for data-level reweighting, oversampling, or complex hyperparameter tuning.
Proposed method
- Proposes Complement Cross Entropy (CCE), a modified loss function that focuses on minimizing predicted probabilities for incorrect classes.
- Introduces a symmetric loss term that penalizes high softmax outputs on non-ground-truth classes, effectively neutralizing them.
- Uses a temperature-like parameter γ to control the strength of complementation, with γ = -1 found optimal across experiments.
- Applies CCE directly during backpropagation without requiring data augmentation or class-specific loss scaling.
- Employs a symmetric formulation that ensures the ground truth class dominates the softmax output distribution.
- Does not require additional model architecture changes or external data manipulation.
Experimental results
Research questions
- RQ1Can suppressing predicted probabilities on incorrect classes improve model generalization in imbalanced image classification?
- RQ2Does a loss function that explicitly targets incorrect class predictions outperform standard cross entropy on long-tailed datasets?
- RQ3Can a simple, differentiable loss function achieve better performance without data resampling or class reweighting?
- RQ4How does the choice of the complement parameter γ affect model convergence and accuracy?
- RQ5Can CCE improve training efficiency and robustness for minority class samples?
Key findings
- On CIFAR-10-LT with long-tailed distribution, CCE achieved 95.39% balanced accuracy with γ = -1, outperforming standard ERM and other baselines.
- On Tiny ImageNet with extreme class imbalance, CCE achieved 78.45% top-1 accuracy, significantly outperforming ERM and focal loss.
- On SVHN, CCE improved ResNet-50 accuracy from 95.15% (ERM) to 95.15% with CCE, showing consistent gains across architectures.
- The optimal γ value was found to be -1 across all datasets, with performance degrading as |γ| increased.
- CCE demonstrated faster convergence speed in some settings and improved robustness on minority classes without additional tuning.
- Error analysis revealed that visually similar categories remain a challenge, suggesting room for future work in disambiguation.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.