Synthetic Oversampling: Theory and A Practical Approach Using LLMs to Address Data Imbalance

Ryumei Nakada, Yichen Xu, Lexin Li, Linjun Zhang
6/5/2024
stat.MLcs.LG

No official code found. Best implementation: Xyc-arch/OPAL-OversamPling-with-Artificial-LLM-generated-data (2 stars, last commit 2024-05-23).

Abstract

Imbalanced classification and spurious correlation are common challenges in data science and machine learning. Both issues are linked to data imbalance, with certain groups of data samples significantly underrepresented, which in turn would compromise the accuracy, robustness and generalizability of the learned models. Recent advances have proposed leveraging the flexibility and generative capabilities of large language models (LLMs), typically built on transformer architectures, to generate synthetic samples and to augment the observed data. In the context of imbalanced data, LLMs are used to oversample underrepresented groups and have shown promising improvements. However, there is a clear lack of theoretical understanding of such synthetic data approaches. In this article, we develop novel theoretical foundations to systematically study the roles of synthetic samples in addressing imbalanced classification and spurious correlation. Specifically, we first explicitly quantify the benefits of synthetic oversampling. Next, we analyze the scaling dynamics in synthetic data augmentation, and derive the corresponding scaling law. Finally, we demonstrate the capacity of transformer models to generate high-quality synthetic samples. We further conduct extensive numerical experiments to validate the efficacy of the LLM-based synthetic oversampling and augmentation.

View on arXivView PDF

Code Implementations(1)

The code about "Synthetic Oversampling: Theory and A Practical Approach Using LLMs to Address Data Imbalance" with GPT-4 API, the arxiv version uses GReaT frameworks with GPT-2 instead.

22PythonMay 22, 20242 years ago

Similar Papers

Cite this paper

@article{nakada2024synthetic,
  title  = {Synthetic Oversampling: Theory and A Practical Approach Using LLMs to Address Data Imbalance},
  author = {Ryumei Nakada and Yichen Xu and Lexin Li and Linjun Zhang},
  year   = {2024},
  eprint = {2406.03628},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2406.03628v2}
}

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/2406.03628.svg)](https://codeofpaper.com/paper/2406.03628)

Discussion