[Paper Review] MSE Loss with Outlying Label for Imbalanced Classification
This paper proposes a novel loss function combining mean squared error (MSE) loss with outlying class labels to address class imbalance in deep learning. By reweighting labels based on class frequency to create 'outlying' margins for rare classes, the method equalizes backpropagation across classes and improves feature space separation, achieving state-of-the-art performance on imbalanced image classification and semantic segmentation benchmarks with only loss and label modifications.
In this paper, we propose mean squared error (MSE) loss with outlying label for class imbalanced classification. Cross entropy (CE) loss, which is widely used for image recognition, is learned so that the probability value of true class is closer to one by back propagation. However, for imbalanced datasets, the learning is insufficient for the classes with a small number of samples. Therefore, we propose a novel classification method using the MSE loss that can be learned the relationships of all classes no matter which image is input. Unlike CE loss, MSE loss is possible to equalize the number of back propagation for all classes and to learn the feature space considering the relationships between classes as metric learning. Furthermore, instead of the usual one-hot teacher label, we use a novel teacher label that takes the number of class samples into account. This induces the outlying label which depends on the number of samples in each class, and the class with a small number of samples has outlying margin in a feature space. It is possible to create the feature space for separating high-difficulty classes and low-difficulty classes. By the experiments on imbalanced classification and semantic segmentation, we confirmed that the proposed method was much improved in comparison with standard CE loss and conventional methods, even though only the loss and teacher labels were changed.
Motivation & Objective
- Address the poor generalization of deep networks on imbalanced datasets, especially for minority classes.
- Overcome the bias in backpropagation caused by class imbalance in standard cross-entropy loss.
- Improve feature space learning by modeling inter-class relationships as metric learning.
- Develop a loss function that enhances learning for low-resource classes without data re-sampling or complex architectures.
- Demonstrate effectiveness across both image classification and semantic segmentation tasks with minimal modification to existing training pipelines.
Proposed method
- Replace standard one-hot teacher labels with outlying labels that scale based on class sample frequency.
- Define outlying labels such that classes with fewer samples are assigned larger margin values in feature space.
- Use MSE loss to minimize the L2 distance between network predictions and outlying labels, enabling balanced backpropagation across all classes.
- Introduce a hyperparameter α to control the degree of outlying margin, allowing tuning of separation between high- and low-frequency classes.
- Train models using only the modified loss and labels, without changing network architecture or data augmentation.
- Apply the method to both image classification and semantic segmentation, using t-SNE visualization to analyze learned feature spaces.
Experimental results
Research questions
- RQ1Can MSE loss with outlying labels improve classification accuracy on imbalanced datasets compared to standard cross-entropy loss?
- RQ2Does the proposed method create a more discriminative feature space that separates high-difficulty (rare) classes from low-difficulty (common) classes?
- RQ3How does the hyperparameter α, controlling the outlying margin, affect performance across different datasets and class imbalance levels?
- RQ4Can the proposed loss function achieve state-of-the-art results in semantic segmentation with long-tailed class distributions?
- RQ5Is the improvement due to better feature space organization or simply increased loss for minority classes?
Key findings
- On long-tailed CIFAR-100, the proposed method achieved 52.41% top-1 accuracy, a 1.43% improvement over weighted CE loss.
- In semantic segmentation on CamVid, the method achieved 72.69% mIoU, a 5.2% improvement over weighted CE loss and a 2.94% improvement over Dice loss.
- The optimal α value was found to be 6 on CamVid, with mIoU peaking at 72.69% and declining for α > 6, indicating sensitivity to hyperparameter tuning.
- t-SNE visualization confirmed that increasing α enhanced separation between rare classes (e.g., 'Bicyclist') and common classes, improving feature discriminability.
- The method outperformed Focal Loss and other conventional losses in both classification and segmentation tasks, demonstrating robustness across domains.
- The improvement was achieved solely by modifying the loss function and teacher labels, without changing network architecture or data sampling strategies.
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.