Solving the long-tailed distribution problem by exploiting the synergies and balance of different techniques
Ziheng Wang, Toni Lassila, Sharib Ali
TL;DR
The paper tackles long-tail recognition by integrating three techniques—Supervised Contrastive Learning (SCL), Rare-Class Sample Generator (RSG), and Label-Distribution-Aware Margin Loss (LDAM)—in a single end-to-end framework. It analyzes how SCL tightens intra-class clusters and, when combined with RSG's tail-space augmentation and LDAM's larger tail margins, yields balanced gains across head and tail classes. The authors formalize a joint loss L_total = α L_SCL + λ L_LDAM + η L_CESC + μ L_MV and show that RSG can be applied before the last ResNet block while LDAM modulates margins inversely with class frequency. Across CIFAR-10/100-LT, mini-ImageNet-LT, and ImageNet-LT, the approach achieves improved tail accuracy with minimal sacrifice to head-class performance, supported by ICD analyses that reveal expanded tail feature spaces without degrading overall class cohesion. The work demonstrates the practical value of synergistic, end-to-end long-tail learning for real-world imbalanced data scenarios, while acknowledging the computational cost of hyperparameter search for loss weights.
Abstract
In real-world data, long-tailed data distribution is common, making it challenging for models trained on empirical risk minimisation to learn and classify tail classes effectively. While many studies have sought to improve long tail recognition by altering the data distribution in the feature space and adjusting model decision boundaries, research on the synergy and corrective approach among various methods is limited. Our study delves into three long-tail recognition techniques: Supervised Contrastive Learning (SCL), Rare-Class Sample Generator (RSG), and Label-Distribution-Aware Margin Loss (LDAM). SCL enhances intra-class clusters based on feature similarity and promotes clear inter-class separability but tends to favour dominant classes only. When RSG is integrated into the model, we observed that the intra-class features further cluster towards the class centre, which demonstrates a synergistic effect together with SCL's principle of enhancing intra-class clustering. RSG generates new tail features and compensates for the tail feature space squeezed by SCL. Similarly, LDAM is known to introduce a larger margin specifically for tail classes; we demonstrate that LDAM further bolsters the model's performance on tail classes when combined with the more explicit decision boundaries achieved by SCL and RSG. Furthermore, SCL can compensate for the dominant class accuracy sacrificed by RSG and LDAM. Our research emphasises the synergy and balance among the three techniques, with each amplifying the strengths of the others and mitigating their shortcomings. Our experiment on long-tailed distribution datasets, using an end-to-end architecture, yields competitive results by enhancing tail class accuracy without compromising dominant class performance, achieving a balanced improvement across all classes.
