Abstract
Real-world datasets often exhibit a long-tailed distribution where a few "head" classes dominate many "tail" classes. This imbalance leads to biased decision boundaries that favor majority classes. We present Head-to-Tail Fusion (H2T), a simple yet effective data augmentation strategy that enriches tail-class features by fusing them with diverse feature maps from head classes. H2T calibrates biased boundaries and improves tail-class recognition across multiple benchmarks, including CIFAR100-LT, ImageNet-LT, and iNaturalist 2018, without requiring additional data or complex architectural modifications.
Introduction
In deep learning, the assumption of balanced class distributions rarely holds for real-world data. Instead, data typically follows a "long-tailed" distribution. Standard training on such data results in models that are heavily biased toward "head" classes (majority) at the expense of "tail" classes (minority).
Geometrically, this bias manifests as a "head squeeze" effect: the decision boundary between a head and a tail class is pushed toward the tail class due to the lack of sample diversity in the latter. This results in a restricted feature space for tail classes, leading to poor generalization at test time.
Methodology
The proposed Head-to-Tail Fusion (H2T) is a "plug-and-play" module designed to calibrate these biased boundaries by "borrowing" semantic diversity from head classes.
Two-Stage Training Framework
The authors employ a decoupled training strategy:
- Stage I (Feature Extraction): The model is trained using standard cross-entropy loss to learn a robust feature representation.
- Stage II (Classifier Adjustment): The backbone is frozen, and the classifier is fine-tuned using the H2T module to balance the decision boundaries.
The H2T Mechanism
H2T enriches tail-class features by fusing them with head-class feature maps. Specifically, given a tail-class feature map and a head-class feature map, the algorithm replaces a random percentage of channels in the tail feature with corresponding channels from the head feature. This process, termed "semantic grafting," allows the model to simulate unseen tail-class variations (e.g., different lighting or backgrounds) that are well-represented in head-class data.
Results and Discussion
H2T was evaluated on four major long-tailed benchmarks: CIFAR100-LT, ImageNet-LT, iNaturalist 2018, and Places-LT.
Performance Gains
- CIFAR100-LT: H2T consistently improved baselines by over 2%, outperforming specialized methods like MisLAS and GCL.
- iNaturalist 2018: The method achieved a state-of-the-art top-1 accuracy of 71.81% for single-model ResNet-50 architectures.
- Compatibility: H2T is highly compatible with multi-expert models (e.g., RIDE), providing an additional performance boost when integrated.
The Head-Tail Seesaw
A key insight from the study is the "Head-Tail Seesaw" trade-off. While H2T significantly improves tail-class accuracy by expanding their territory in the embedding space, it can lead to a slight decrease in head-class performance. This occurs because the decision boundary is shifted away from the tail, encroaching slightly on the head class's original region.
Conclusion
Head-to-Tail Fusion (H2T) offers a computationally efficient and effective way to address class imbalance in long-tailed visual recognition. By leveraging the diversity of head classes to augment tail-class features, H2T successfully calibrates biased decision boundaries. Its simplicity and strong performance across diverse datasets make it a valuable tool for real-world computer vision applications.
Summary updated