Large Language Models for Imbalanced Classification: Diversity makes the difference
Dang Nguyen, Sunil Gupta, Kien Do, Thin Nguyen, Taylor Braund, Alexis Whitton, Svetha Venkatesh
TL;DR
This work tackles imbalanced classification on tabular data by leveraging large language models to generate diverse minority samples. It introduces ImbLLM, which combines (i) sampling conditioned on both minority labels and feature-value pairs, (ii) a fixed-Y permutation to enhance token interactions, and (iii) fine-tuning on minority samples plus interpolated samples to broaden variability. The authors prove, via entropy-based analysis, that their design yields higher distribution diversity and demonstrate state-of-the-art or near-state-of-the-art performance across 10 real-world datasets against eight baselines, with improved sample quality and coverage. The approach provides a principled, scalable path to robust minority-tone data augmentation in tabular domains, reducing reliance on verification steps and improving generalization to unseen data.
Abstract
Oversampling is one of the most widely used approaches for addressing imbalanced classification. The core idea is to generate additional minority samples to rebalance the dataset. Most existing methods, such as SMOTE, require converting categorical variables into numerical vectors, which often leads to information loss. Recently, large language model (LLM)-based methods have been introduced to overcome this limitation. However, current LLM-based approaches typically generate minority samples with limited diversity, reducing robustness and generalizability in downstream classification tasks. To address this gap, we propose a novel LLM-based oversampling method designed to enhance diversity. First, we introduce a sampling strategy that conditions synthetic sample generation on both minority labels and features. Second, we develop a new permutation strategy for fine-tuning pre-trained LLMs. Third, we fine-tune the LLM not only on minority samples but also on interpolated samples to further enrich variability. Extensive experiments on 10 tabular datasets demonstrate that our method significantly outperforms eight SOTA baselines. The generated synthetic samples are both realistic and diverse. Moreover, we provide theoretical analysis through an entropy-based perspective, proving that our method encourages diversity in the generated samples.
