TL;DR
Deep learning models struggle with imbalanced datasets, often memorizing majority classes and failing to generalize to minority classes. This paper introduces a novel three-phase training framework and an "Expansive Over-Sampling" (EOS) technique that augments minority class feature embeddings, significantly improving generalization and accuracy on minority classes.
What Problem Does This Paper Address?
Deep learning models, particularly Convolutional Neural Networks (CNNs), are prone to memorizing training data. This is especially problematic with imbalanced datasets, where the vast majority of data belongs to a few classes, while minority classes have very few examples. This memorization leads to a "generalization gap," where the model performs well on the training data but poorly on unseen data, particularly for minority classes. Traditional methods for addressing class imbalance often struggle to bridge this gap effectively or are computationally expensive. This paper aims to quantify this generalization gap in the context of deep learning and propose an efficient method to mitigate it.
Methods
The core of this paper is a novel three-phased CNN training framework designed for imbalanced data:
- End-to-end training on imbalanced data: The CNN is initially trained on the imbalanced dataset to learn initial feature embeddings.
- Data augmentation in the learned embedded space: Instead of augmenting raw images (pixel space), this phase augments the feature embeddings extracted from the CNN. The key innovation here is Expansive Over-Sampling (EOS). EOS identifies minority class samples and their "nearest adversaries" (closest samples from other classes) in the embedding space. It then creates synthetic minority samples by forming convex combinations between these minority samples and their nearest adversaries. This process aims to expand the range of minority class feature embeddings in a direction that makes them more distinguishable.
- Fine-tuning the classifier head: The classifier head of the CNN is then retrained using the augmented, balanced embedding dataset.
The paper also proposes a specific way to measure the generalization gap: by comparing the ranges (maximum and minimum values) of feature embeddings for training and test sets, on a per-class basis. This is a more granular approach than simply comparing overall training and test accuracy.
Datasets
The proposed methods were evaluated on four popular image datasets:
- CIFAR-10: 10 classes, exponentially imbalanced (up to 100:1 ratio).
- SVHN (Street View House Numbers): 10 classes, exponentially imbalanced (up to 100:1 ratio).
- CIFAR-100: 100 classes, exponentially imbalanced (10:1 ratio).
- CelebA: 5 classes (selected based on hair style), imbalanced (up to 40:1 ratio).
Key Insights and Ideas
- Generalization gap is wider for minority classes: The paper empirically demonstrates that the difference in feature embedding ranges between training and test sets is significantly larger for minority classes compared to majority classes. This directly links the generalization problem to class imbalance.
- Augmentation in embedding space is superior to pixel space: Augmenting feature embeddings, rather than raw images, leads to better performance. This is because embeddings capture learned representations, making augmentations more targeted and discriminative.
- "Nearest adversaries" are key for expansion: By using samples from other classes as "adversaries" for augmentation, EOS effectively pushes minority class embeddings into regions that are more distinct from majority classes, directly addressing the generalization gap.
- EOS is computationally efficient: Compared to GAN-based methods or traditional pre-processing techniques, EOS is significantly faster and requires fewer parameters, making it more practical for large-scale applications.
- Feature embedding quality matters: The choice of loss function used to train the initial CNN (e.g., LDAM) significantly impacts the quality of feature embeddings, which in turn affects the performance of the over-sampling technique.
Key Results
- The proposed EOS framework significantly improves accuracy and generalization on minority classes across all tested datasets and baseline algorithms.
- EOS consistently reduces the generalization gap for minority classes, often "flattening" the gap compared to other methods that show a rising gap with increasing imbalance.
- In comparisons with other over-sampling methods (SMOTE, Borderline-SMOTE, Balanced SVM) and GAN-based approaches (GAMO, BAGAN, CGAN), EOS outperforms or matches them, often with substantially lower computational cost. For example, EOS training time is approximately 3 times faster than traditional pre-processing methods.
- The paper shows that the generalization gap is larger for false positives (FPs) than true positives (TPs), reinforcing the idea that aligning feature embedding ranges is crucial for accurate predictions.
Limitations and Future Work
- Sensitivity to hyper-parameters: While EOS generally performs well, its performance can be influenced by hyper-parameters like the number of nearest neighbors (K). The paper suggests that increasing K generally improves performance up to a point.
- Future work directions:
- Designing new measures complementary to the generalization gap to better evaluate embeddings.
- Investigating how to create and utilize more effective embeddings for imbalanced data.
- Modifying the feature extraction process to create unbiased embeddings that enhance over-sampling.
- Combining imbalance-aware representation learning with over-sampling in embedding space for even more robust training.
Summary updated