← Latest papers
📊 statistics

Large Language Models for Imbalanced Classification: Diversity makes the difference

This paper proposes a novel large language model-based oversampling method that enhances the diversity and realism of synthetic minority samples through a conditional generation strategy, a new permutation-based fine-tuning approach, and interpolation, thereby significantly outperforming existing state-of-the-art techniques in imbalanced classification tasks.

Original authors: Dang Nguyen, Sunil Gupta, Kien Do, Thin Nguyen, Taylor Braund, Alexis Whitton, Svetha Venkatesh

Published 2026-06-09
📖 6 min read🧠 Deep dive

Original authors: Dang Nguyen, Sunil Gupta, Kien Do, Thin Nguyen, Taylor Braund, Alexis Whitton, Svetha Venkatesh

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

The Problem: The "Rare Disease" Classroom

Imagine a teacher trying to teach a class about two types of students: "Regular Students" (who make up 90% of the class) and "Rare Students" (who make up only 10%).

If the teacher only looks at the 90% majority, they will learn everything about the "Regular Students" but will know almost nothing about the "Rare Students." When a test comes, the teacher will likely guess that everyone is a "Regular Student" because that's what they've seen most often. They fail to recognize the unique traits of the minority group.

In data science, this is called Imbalanced Classification. The goal is to teach the computer to recognize the rare group just as well as the common group.

The Old Solution: The "Copy-Paste" Mistake

To fix this, data scientists usually try to create more examples of the "Rare Students" so the class is balanced.

  • The Old Way (SMOTE): Imagine taking two real "Rare Students," measuring them, and drawing a new student right in the middle of them. It's like making a photocopy of a photocopy.
  • The Problem: If the data has categories (like "Job Title" or "Education Level"), you can't just draw a line between "Doctor" and "Teacher" to get a new job. You have to turn those words into numbers first, which often loses important details. It's like trying to describe a painting using only a spreadsheet.

The New Idea: The "AI Storyteller"

Recently, scientists started using Large Language Models (LLMs)—the same kind of AI that writes essays or chats with you—to generate these missing "Rare Students." Instead of turning words into numbers, the AI reads the data as a story (e.g., "John is a Doctor, works 40 hours, and earns $200k").

However, the paper found a major flaw in how these AI storytellers were being used:
They were too repetitive. If you asked the AI, "Tell me a story about a Rare Student," and it gave you the exact same story 1,000 times, it wouldn't help the teacher learn anything new. The AI was just repeating the same few patterns, creating a "hall of mirrors" instead of a diverse classroom.

The Solution: ImbLLM (The "Diverse Storyteller")

The authors propose a new method called ImbLLM. They fixed the AI's storytelling habits with three clever tricks to ensure the new "students" are diverse and realistic.

1. The "Specific Prompt" Trick (Sampling)

  • Old Way: The AI was asked, "Tell me a story about a Rare Student." It would pick the most likely words and repeat the same story over and over.
  • ImbLLM Way: The authors tell the AI, "Tell me a story about a Rare Student who also has a specific feature, like a specific job or income."
  • The Analogy: Instead of asking a chef, "Make me a dessert," and getting the same chocolate cake every time, you say, "Make me a dessert, but this one must have strawberries." Then, next time, you say, "Make me a dessert, but this one must have lemons." This forces the AI to explore different flavors (features) rather than sticking to one safe recipe.

2. The "Front-Row Seat" Trick (Permutation)

  • Old Way: When training the AI, the researchers would shuffle the order of the story. Sometimes the "Rare Student" label was at the end of the sentence. Because of how these AI models work (they read left-to-right), the AI would forget the "Rare" label by the time it got to the end, losing the connection between the label and the features.
  • ImbLLM Way: They keep the "Rare Student" label at the very beginning of the sentence, like a title, and only shuffle the rest of the details.
  • The Analogy: Imagine a detective trying to solve a case. If the clue "The suspect is a Doctor" is buried at the bottom of a long report, the detective might miss it. ImbLLM puts the clue in big, bold letters at the top of the page so the AI never forgets who it is supposed to be describing.

3. The "Practice Run" Trick (Fine-Tuning & Interpolation)

  • Old Way: The AI was trained on both the common students and the rare students. This confused the AI; it kept trying to make the "Rare Students" look like the "Common Students." Also, some methods tried to check if the new stories were "real" using a weak test, which often failed.
  • ImbLLM Way: They trained the AI only on the "Rare Students" (and some mathematically blended versions of them).
  • The Analogy: Instead of teaching a basketball player by showing them both NBA stars and toddlers, you only show them NBA stars. You want them to learn the specific moves of the pros.
  • The "Interpolation" Bonus: Since there are very few "Rare Students" to learn from, the AI might not know all the possible variations. The authors created "practice students" by taking two real rare students and mathematically blending their continuous traits (like age or salary) to create a new, slightly different student. This fills in the gaps, ensuring the AI learns the full range of possibilities, not just the ones it saw in the training data.

The Results: A Better Classroom

The authors tested this new method on 10 different real-world datasets (like medical records or credit card data).

  • Performance: ImbLLM beat 8 other top methods. It was the best in 5 cases and second-best in 3 others.
  • Quality: The fake "Rare Students" created by ImbLLM were not only realistic (they looked like real data) but also diverse (they covered many different types of rare scenarios).
  • Why it matters: Because the AI learned from a diverse set of examples, the final classifier (the "teacher") became much better at spotting the rare cases it had previously ignored.

Summary

The paper argues that simply using AI to generate data isn't enough; you have to teach the AI how to be creative and focused. By forcing the AI to look at specific features, keeping the main goal in clear view, and training it exclusively on the rare examples, they created a method that solves the "imbalanced data" problem much better than previous attempts.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →