Procrustean Training for Imbalanced Deep Learning
The Challenge of Imbalanced Data
Deep neural networks are notoriously sensitive to data imbalance. In real-world scenarios, datasets often follow a long-tailed distribution where a few "major" classes have abundant samples, while many "minor" classes are poorly represented. Standard training procedures typically fail on these minor classes, leading to poor generalization.
The authors of this paper identify a specific training dynamic they call the "Procrustean" struggle. Early in training, the model tends to "under-fit" minor classes by lazily classifying them as major classes. This is evidenced by a high classification ratio for major classes and near-zero accuracy for minor classes in the initial epochs. To correct these errors later, the model generates massive gradients for minor class features, pushing them violently across decision boundaries. This late-stage over-correction causes "feature deviation," where the features learned during training do not align well with those seen at test time, ultimately leading to over-fitting.
Major Feature Weakening (MFW)
To address this, the researchers propose Major Feature Weakening (MFW). The core idea is to "equalize" training progress by intentionally hampering the learning of major classes, forcing the network to distribute its attention more evenly across all classes from the very beginning.
MFW operates through a selective feature mixing process:
- Feature Mixing: Within a mini-batch, intermediate features of major class instances are mixed with features from random instances using convex interpolation.
- Selective Weakening: Unlike standard Mixup, MFW does not mix labels. It retains the original label but "blurs" the feature representation of the major class.
- Class-Dependent Weighting: The intensity of weakening is controlled by a sigmoid-based function. Major classes undergo significant weakening (up to 50% mixing), while minor classes remain untouched.
By making major classes harder to learn, MFW prevents the early dominance of common features. This leads to a more balanced "gradient gap" between classes and ensures that discriminative features for rare classes are developed at a similar pace to those of common classes.
Experimental Evaluation
The effectiveness of MFW was evaluated across several standard and large-scale benchmarks, including CIFAR-10/100 (long-tailed and step-imbalanced), Tiny-ImageNet, and the massive iNaturalist 2018 dataset.
Key findings include:
- Superior Performance: MFW achieved state-of-the-art results across most benchmarks. Notably, on CIFAR-10 with a 100:1 step imbalance, accuracy improved from 65.8% to 80.1%.
- Scalability: On the challenging iNaturalist dataset, MFW combined with Deferred Re-Weighting reached 69.6% Top-1 accuracy, outperforming more complex specialized architectures.
- Reduced Feature Deviation: t-SNE visualizations confirmed that MFW keeps training and testing features for minor classes more tightly clustered compared to standard training.
Conclusion
Procrustean training via Major Feature Weakening offers a simple yet powerful approach to imbalanced learning. By recognizing that late-stage over-fitting is often a consequence of early-stage under-fitting, MFW intervenes in the training dynamics to ensure a more equitable learning process. While it requires some hyperparameter tuning for specific imbalance shapes, its robustness across architectures and datasets makes it a compelling tool for real-world deep learning applications.
Summary updated