In deep learning, we often assume datasets are balanced. However, real-world data is frequently "long-tailed," where a few "head" classes have thousands of examples, while many "tail" classes have only a handful. This imbalance creates a significant challenge for training robust neural networks.
The Balancing Dilemma
When training on long-tailed data, researchers face a frustrating choice between two sampling strategies:
- Regular Random Sampling (RRS): Data is sampled as it appears in the natural distribution. While this allows the network to learn diverse features from the "head" classes, it virtually ignores the "tail" classes, leading to poor performance on rare categories.
- Class-Balanced Sampling (CBS): The network is forced to see an equal number of samples from every class. While this improves tail-class recognition, it often leads to overfitting on the few available tail images and under-utilizes the diversity of the head classes.
As shown in the training loss curves above, CBS significantly reduces tail class loss but increases head class loss compared to RRS. This "balancing dilemma" suggests that the feature extractor needs the diversity of the whole dataset (RRS), while the classifier needs the fairness of a balanced view (CBS).
Proposed Multi-Task Framework
To resolve this dilemma, researchers from the University of Adelaide and the University of Wollongong proposed a multi-task learning framework. The core idea is to share a single Feature Extractor ($\phi$) across three simultaneous tasks, each with its own "head" or classifier.
The Three-Head Strategy
- Primary Task (CBS): The main classifier is trained using Class-Balanced Sampling to ensure the model is aware of tail classes.
- Auxiliary Task 1 (RRS): A temporary classifier is trained using Regular Random Sampling. This forces the feature extractor to maintain a grounded understanding of the full data diversity, preventing overfitting to tail samples.
- Auxiliary Task 2 (Self-Supervision): A third head predicts image rotation (e.g., 0°, 90°, 180°, 270°). This pretext task acts as a regularizer, helping the extractor learn robust, generalizable structures without requiring additional labels.
Crucially, the auxiliary heads are discarded at test time, resulting in a standard, single-head model that is more accurate without any additional computational overhead during inference.
Experimental Results
The researchers evaluated this approach on major long-tailed benchmarks, including ImageNet-LT and Places-LT. The "simple" multi-task approach outperformed significantly more complex state-of-the-art methods.
- Overall Accuracy: On ImageNet-LT, the full model achieved 39.8% accuracy, a nearly 4% improvement over previous benchmarks like MemoryNet (35.6%).
- Tail Class Performance: On classes with fewer than 20 images, the method achieved 22.5% accuracy, a massive jump from the 0.5% accuracy seen in standard models trained with regular sampling.
- Head Class Preservation: Unlike standard CBS, which often degrades head-class performance, the auxiliary RRS task kept head-class accuracy high (48.5%) while simultaneously boosting the tail.
Conclusion
This research demonstrates that the requirements for feature extraction and classification in long-tailed learning are distinct. By jointly training with multiple sampling strategies, the network can learn high-quality features from the entire dataset while maintaining a fair classifier. This "embarrassingly simple" approach provides a powerful, computationally efficient solution for real-world data imbalances.
Summary updated