Abstract
In most real-world scenarios, labeled training datasets are highly class-imbalanced, where deep neural networks suffer from generalizing to a balanced testing criterion. In this paper, we explore a novel yet simple way to alleviate this issue by augmenting less-frequent classes via translating samples (e.g., images) from more-frequent classes. This simple approach enables a classifier to learn more generalizable features of minority classes, by transferring and leveraging the diversity of the majority information. Our experimental results on a variety of class-imbalanced datasets show that the proposed method improves the generalization on minority classes significantly compared to other existing re-sampling or re-weighting methods. The performance of our method even surpasses those of previous state-of-the-art methods for the imbalanced classification.
Introduction
In the real world, data is rarely distributed evenly. Most datasets are "long-tailed," meaning a few classes have thousands of examples (the majority), while many others have only a handful (the minority). Standard Deep Neural Networks (DNNs) struggle with this; they tend to become biased toward majority classes, leading to poor performance on the rare but often critical minority classes.
Common fixes include re-weighting (making minority errors "cost" more) or re-sampling (showing the model minority samples more often). However, re-sampling often leads to severe overfitting because the model just sees the same few minority images repeatedly. The fundamental challenge is: how do we provide the model with new, diverse information about minority classes when we lack sufficient real examples?
The M2m Framework
The authors propose Major-to-minor Translation (M2m). Instead of duplicating existing minority samples, M2m creates synthetic ones by taking a "seed" from a majority class and modifying it until a pre-trained classifier thinks it belongs to a minority class.
Key Components
- Optimization-based Translation: Given a majority sample $x_0$ (e.g., a "Cat"), the method adds a small perturbation $\delta$ to create $x^*$ such that a fixed, pre-trained classifier $g$ predicts $x^*$ as a minority class (e.g., "Lynx"). This is similar to creating an adversarial example, but here, the "attack" is used to generate useful training data.
- Regularization: To ensure the synthetic sample doesn't lose all its original structure, the objective includes a regularization term that prevents the model from becoming too confident in the original class during the translation process.
- Sample Rejection Criterion: Not all translations are high quality. The authors use a probabilistic rejection step. If a generated sample is deemed unreliable (based on class sizes and classifier confidence), it is discarded and replaced with a standard over-sampled minority image.
- Optimal Seed Sampling: A specific distribution is used for choosing which majority class to use as a seed, ensuring that classes with more samples are used more frequently to maximize the diversity of the generated data.
Experimental Evaluation
The researchers evaluated M2m across a wide range of benchmarks, demonstrating its versatility across different domains:
- Synthetic Long-Tailed: CIFAR-LT-10 and CIFAR-LT-100.
- Naturally Imbalanced Images: CelebA-5 (face attributes) and SUN397 (scene recognition).
- Non-Image Data: Twitter (part-of-speech tagging) and Reuters (text categorization), proving the method works beyond computer vision.
- Large-Scale: ImageNet-LT.
Results and Visualizations
M2m consistently outperformed state-of-the-art baselines across all datasets. On CIFAR-10-LT with a 100:1 imbalance ratio, M2m achieved a balanced accuracy (bACC) of 78.3%, compared to 71.5% for SMOTE. On the Reuters dataset (710:1 imbalance), M2m improved bACC by 17.1% over standard training.
Key Insights
- Diversity is King: Majority classes contain a wealth of diverse features (backgrounds, lighting, angles). By translating these into minority classes, M2m transfers that diversity, preventing the model from memorizing the few available minority samples.
- Adversarial Perturbations as Features: While adversarial examples are usually seen as bugs, this paper treats them as "generalizable features." A small tweak that turns a "Dog" into a "Wolf" in the eyes of a classifier captures essential visual differences.
- Orthogonality: M2m is orthogonal to loss-based methods. When combined with margin-based losses like LDAM, it pushes performance even higher, suggesting it solves a different part of the imbalance problem than loss-function tweaks do.
Conclusion
M2m offers a simple yet powerful strategy for imbalanced learning. While it introduces some computational overhead due to the optimization loop and requires a pre-trained classifier, the gains in generalization are significant. Future work may explore using more advanced generative frameworks like CycleGAN for the translation step to produce even more realistic minority samples.
Summary updated