Abstract
Deep learning models often struggle with class imbalance, where majority classes dominate the training process at the expense of rare minority classes. While Mixup regularization improves generalization on balanced data, its linear interpolation of labels fails to account for class scarcity. We introduce Remix (Rebalanced Mixup), a technique that disentangles feature and label mixing factors. By disproportionately favoring minority classes in the label space, Remix effectively pushes decision boundaries toward majority classes, significantly enhancing performance on long-tailed datasets like iNaturalist 2018.
The Challenge of Class Imbalance
In real-world scenarios, data distributions are frequently "long-tailed," meaning a few classes have many samples while most have very few. Standard Empirical Risk Minimization (ERM) tends to bias models toward majority classes. Existing data augmentation techniques like Mixup—which creates synthetic samples by interpolating pairs of images and their labels—help models generalize but perform poorly under imbalance. This is because Mixup uses the same mixing factor ($\lambda$) for both features and labels, failing to recognize the higher relative "value" of a minority class sample.
Methods: Disentangling Mixup
The core innovation of Remix is the disentanglement of mixing factors. While features are blended using a factor $\lambda_x$ sampled from a Beta distribution, the label mixing factor $\lambda_y$ is determined by a separate rebalancing logic.
Remix monitors the ratio of samples between the two classes being mixed. If the ratio exceeds a hyperparameter $\kappa$ (indicating a significant imbalance) and the mixed image contains a sufficient amount of minority features (defined by a threshold $\tau$), Remix assigns the label entirely to the minority class. This "greedy" assignment for minority classes forces the model to be more sensitive to rare features.
Mechanism: Boundary Shifting
The primary benefit of Remix is its ability to manipulate decision boundaries. By favoring minority labels in mixed samples, the model learns to push the decision boundary toward the majority classes, providing a robust "safety margin" for rare classes.
As shown in the visualization above, adjusting the threshold $\tau$ allows for fine-grained control over how much the boundary shifts. At $\tau=1$, the model is most aggressive in protecting the minority class space. This mechanism allows Remix to be highly versatile, as it can be integrated into other mixing variants like Manifold Mixup or CutMix.
Experimental Results
Remix was evaluated across several benchmarks, including imbalanced versions of CIFAR-10/100 and the real-world iNaturalist 2018 dataset.
- CIFAR-100 (Long-tail): Remix achieved 41.94% accuracy, outperforming standard Mixup (40.83%). When combined with Deferred Re-weighting (DRW), accuracy jumped to 46.77%, a 4% improvement over previous state-of-the-art methods.
- iNaturalist 2018: On this massive dataset of 8,142 species, Remix (with DRS) achieved a Top-1 error of 29.26%, a substantial improvement over the ERM baseline (40.19%) and standard Mixup (39.69%).
Conclusion
Remix provides a simple yet powerful modification to the Mixup framework specifically designed for imbalanced data. By breaking the linear constraint between feature and label mixing, it allows researchers to specifically address data distribution issues without changing underlying model architectures. Future work will focus on automating hyperparameter tuning for $\kappa$ and $\tau$ across complex multi-class scenarios.
Summary updated