Abstract
Class imbalance is a pervasive challenge in deep learning, where minority classes are often overshadowed by majority ones, leading to poor generalization. While the research community has historically favored specialized loss functions and complex resampling strategies, this paper demonstrates that a "back-to-basics" approach—optimizing standard training components—can achieve state-of-the-art performance. By refining batch size, data augmentation, and label smoothing, and introducing targeted modifications like Asymmetric Sharpness-Aware Minimization (SAM-A), the authors provide a robust framework that outperforms specialized methods across diverse image and tabular datasets.
Introduction
In real-world applications ranging from credit card fraud detection to rare disease diagnosis, datasets are rarely balanced. Standard deep learning pipelines, typically optimized for balanced benchmarks like ImageNet, tend to overfit the majority classes, causing performance on critical minority samples to crater.
To address this, researchers have developed various "ad hoc" solutions, including specialized loss functions (e.g., Focal Loss), complex resampling (e.g., SMOTE), or multi-stage training procedures. This paper argues that such complexity is often unnecessary. Instead, the authors show that a systematic refinement of the standard training building blocks—coupled with self-supervised learning and improved regularization—is more effective and easier to implement.
Methodology
The authors propose a refined training routine that focuses on four key areas:
- Tuning Standard Components: A systematic analysis of the impact of batch size, model depth, and data augmentation on imbalanced data.
- Joint Self-Supervised Learning (Joint-SSL): Rather than relying solely on supervised labels, the authors integrate a self-supervised loss (specifically VICReg) into the training process. This encourages the model to learn robust feature representations that are less biased by imbalanced class labels.
- SAM-Asymmetric (SAM-A): Sharpness-Aware Minimization (SAM) is typically used to find "flat" minima to improve generalization. The authors modified this into SAM-A, which specifically targets the flatness (and thus the decision margins) of minority classes, preventing the model from creating overly tight decision boundaries around rare samples.
- Class-conditional Label Smoothing: Instead of uniform label smoothing, the authors apply higher levels of smoothing to minority classes to combat their inherent tendency to overfit.
Experimental Setup
The study evaluated these methods across three distinct domains to ensure broad applicability:
- Standard Image Benchmarks: CIFAR-10, CIFAR-100, CINIC-10, and Tiny-ImageNet, artificially imbalanced using exponential distributions.
- Real-World Image Datasets: SIIM-ISIC Melanoma Classification, APTOS 2019 Blindness Detection, and EuroSAT remote sensing data.
- Tabular Datasets: Otto Group Product Classification, Forest Covertype, and the Adult census dataset.
Key Insights and Analysis
The Power of Small Batches
Contrary to the industry trend of using massive batches for speed, the authors found that small batch sizes act as a powerful regularizer in imbalanced settings. Smaller batches significantly improved accuracy for minority classes by preventing the gradient from being dominated by majority class samples in every step.
The Deeper-is-Better Fallacy
On balanced datasets, increasing model depth usually improves performance. However, on imbalanced data, large architectures like ResNet-152 often overfit catastrophically. The authors observed that a ResNet-50 could outperform its deeper counterparts when data for certain classes was scarce.
Augmentation and Neural Collapse
The study revealed that modern augmentation strategies (like TrivialAugment) often fail on imbalanced data, whereas older, more rigid strategies like AutoAugment are more robust. Furthermore, the authors used the "Neural Collapse" framework to demonstrate that successful imbalance methods work primarily by acting as better regularizers, preventing features from clustering too tightly around class means.
Results
The results suggest that a well-tuned "simplified" routine can consistently beat specialized state-of-the-art (SOTA) methods:
- Superior Performance: The combination of Joint-SSL and SAM-A outperformed specialized methods like LDAM-DRW and MiSLAS across nearly all image benchmarks.
- Error Reduction: On CIFAR-100, the proposed approach reduced error on the 20 smallest classes by 5.4% to 6.8% compared to standard baselines.
- Tabular Dominance: In the tabular domain, a properly tuned Multi-Layer Perceptron (MLP) outperformed both XGBoost and modern "Deep Tabular" architectures like FT-Transformer.
Conclusion and Future Work
This research highlights a significant "benchmark blindness" in the community, noting that performance on web-scraped benchmarks like CIFAR has a low correlation with performance on real-world medical or remote sensing data. While the paper simplifies the training process for images, it acknowledges that advanced augmentation and SSL are less mature for tabular data. Future work may involve applying these regularization and Neural Collapse insights to Large Language Models (LLMs), where certain tokens or concepts are naturally infrequent.
Summary updated