Abstract
Deep neural networks frequently suffer from performance degradation when the training data is long-tailed because several majority classes dominate the training, resulting in a biased model. Recent studies have made a great effort in solving this issue by obtaining good representations from data space, but few of them pay attention to the influence of feature norm on the predicted results. In this paper, we therefore address the long-tailed problem from feature space and thereby propose the feature-balanced loss. Specifically, we encourage larger feature norms of tail classes by giving them relatively stronger stimuli. Moreover, the stimuli intensity is gradually increased in the way of curriculum learning, which improves the generalization of the tail classes, meanwhile maintaining the performance of the head classes. Extensive experiments on multiple popular long-tailed recognition benchmarks demonstrate that the feature-balanced loss achieves superior performance gains compared with the state-of-the-art methods.
Introduction
In real-world scenarios, datasets often exhibit a "long-tailed" distribution where a few "head" classes have abundant samples, while many "tail" classes have very few. Standard deep learning models trained on such data become heavily biased toward the head classes, leading to poor generalization on rare ones. While existing solutions often involve re-sampling or re-weighting, this research identifies a specific structural issue in the feature space: the "feature norm" (the magnitude of the representation vector) for tail classes tends to be much smaller than for head classes, leading to blurry decision boundaries.
Feature-Balanced Loss (FBL)
The authors propose Feature-Balanced Loss (FBL) to address this imbalance. The core idea is to modify the predicted logits by adding a penalty term inversely proportional to the feature norm ($\|f\|$). The modified logit for a class $j$ is defined as:
$$z_j^b = z_j - \alpha \frac{\lambda_j}{\|f\|}$$
Where $\lambda_j$ is a stimulus intensity based on class frequency (higher for tail classes). Because this term is subtracted, the model is incentivized to increase the feature norm of tail classes to minimize the overall loss. Larger norms lead to clearer margins and better separability in the embedding space.
Curriculum Learning Schedule
Instead of applying this stimulus at full strength from the start, FBL uses a parabolic curriculum learning schedule. The strength parameter $\alpha$ starts at zero and increases as training progresses. This allows the network to first learn robust general features from the head classes before gradually shifting its focus to the more difficult tail classes, avoiding the "forgetting" trap where early tail-class focus disrupts overall feature learning.
Experimental Results
FBL was evaluated across five diverse benchmarks, including CIFAR-10/100-LT, ImageNet-LT, Places-LT, and iNaturalist 2018. It consistently outperformed state-of-the-art methods:
- CIFAR-100-LT (IF=100): Achieved 45.22% accuracy, outperforming the previous best by 1.33%.
- iNaturalist 2018: Reached 69.90% accuracy, a significant gain on a large-scale real-world dataset.
- ImageNet-LT: Achieved 50.70% accuracy, surpassing LDAM-DRW by nearly 2%.
Visualizations confirm that as training progresses, the feature norms of tail classes grow to match or exceed those of head classes, validating the effectiveness of the loss function.
Conclusion
Feature-Balanced Loss provides a novel and effective way to handle long-tailed distributions by focusing on the magnitude of feature vectors. By encouraging larger feature norms for tail classes through a curriculum learning approach, FBL achieves superior performance across multiple benchmarks, highlighting the importance of feature space structure in imbalanced learning.
Summary updated