From SMOTE to Mixup for Deep Imbalanced Classification

Wei-Chao Cheng, Tan-Ha Mai, Hsuan-Tien Lin
8/29/2023
cs.LGcs.AI

Official code: ntucllab/imbalanced-DL (58 stars, BSD-2-Clause, last commit 2025-07-23).

Abstract

Given imbalanced data, it is hard to train a good classifier using deep learning because of the poor generalization of minority classes. Traditionally, the well-known synthetic minority oversampling technique (SMOTE) for data augmentation, a data mining approach for imbalanced learning, has been used to improve this generalization. However, it is unclear whether SMOTE also benefits deep learning. In this work, we study why the original SMOTE is insufficient for deep learning, and enhance SMOTE using soft labels. Connecting the resulting soft SMOTE with Mixup, a modern data augmentation technique, leads to a unified framework that puts traditional and modern data augmentation techniques under the same umbrella. A careful study within this framework shows that Mixup improves generalization by implicitly achieving uneven margins between majority and minority classes. We then propose a novel margin-aware Mixup technique that more explicitly achieves uneven margins. Extensive experimental results demonstrate that our proposed technique yields state-of-the-art performance on deep imbalanced classification while achieving superior performance on extremely imbalanced data. The code is open-sourced in our developed package https://github.com/ntucllab/imbalanced-DL to foster future research in this direction.

View on arXivView PDF

Code Implementations(1)

BSD-2-Clause

A Python Package for Deep Imbalanced Learning

589PythonJun 30, 20211 years agoBSD-2-Clause

Similar Papers

Cite this paper

@article{cheng2023from,
  title  = {From SMOTE to Mixup for Deep Imbalanced Classification},
  author = {Wei-Chao Cheng and Tan-Ha Mai and Hsuan-Tien Lin},
  year   = {2023},
  eprint = {2308.15457},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2308.15457v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2308.15457.svg)](https://codeofpaper.com/paper/2308.15457)

Discussion