Not All LLM-Generated Data Are Equal: Rethinking Data Weighting in Text Classification

Hsun-Yu Kuo, Yin-Hsiang Liao, Yu-Chieh Chao, Wei-Yun Ma, Pu-Jen Cheng

Introduction

Large Language Models (LLMs) are highly capable of generating synthetic training data to alleviate data scarcity in niche domains. However, this synthetic data often suffers from distribution shifts, bias, and redundancy compared to real-world data. Naively training a model on massive, unfiltered LLM-generated datasets can lead to "model collapse" or performance that is worse than training on just a few hundred real-world examples.

Previous solutions have relied on human-intensive filtering to discard bad data or computationally expensive meta-learning algorithms. To address this more efficiently, the authors introduce two novel weighted-loss functions—Importance Loss (IMP-Loss) and Dynamic Importance Loss (DIMP-Loss). By using a tiny fraction of real-world data to evaluate the quality and diversity of synthetic samples, these methods allow smaller models (like BERT) to effectively learn from synthetic data and even outperform the very LLMs that generated it.

Methodology: Weighting Synthetic Data

Instead of discarding data, the authors propose a "weighted-loss" approach where every synthetic data point is assigned a weight based on two critical factors:

  1. Quality Checker: Evaluates how likely a synthetic sample is to have come from the real-world distribution.
  2. Diversity Checker: Measures how much "new" information a sample provides, penalizing redundancy.

These checkers are highly data-efficient, requiring only a small sliver of real-world data (approximately 200–400 samples) to function effectively. The authors introduce two specific implementations:

  • IMP-Loss (Importance Loss): A static approach where weights are calculated once before training begins. It uses a model trained on a small real-world set as the quality judge, and a model trained on the synthetic set to identify redundant (low-diversity) samples.
  • DIMP-Loss (Dynamic Importance Loss): A more sophisticated, "online" approach where the diversity weight changes dynamically during training. If the model has already learned a specific type of data, similar samples are down-weighted in the next step. This forces the model to focus on more challenging, informative examples as training progresses.

Experiments and Key Results

The researchers evaluated their methods across three distinct text classification benchmarks: Financial Phrasebank (sentiment analysis), Tweet Irony (irony detection), and MRPC (semantic equivalence). For each task, they used GPT-3.5-turbo to generate large synthetic datasets (up to 10,000 samples) to compare against the original real-world data.

Performance comparison across datasets and methods

Key Findings

  • Superior Accuracy: DIMP-Loss consistently achieved the highest accuracy. On the Financial dataset using GPT-3.5 generated data, DIMP-Loss reached 82.67% accuracy, significantly outperforming standard Cross-Entropy (77.39%) and Focal Loss (79.29%).
  • Surpassing the "Teacher": Models trained with DIMP-Loss on synthetic data actually outperformed the few-shot performance of the LLM (GPT-3.5) that generated the data. This suggests that intelligent weighting can extract more underlying signal from synthetic data than is present in the LLM's direct predictions.
  • The Necessity of Diversity: Weighting by quality alone is insufficient. Without the "Diversity Checker," performance drops significantly because the model tends to overfit on high-quality but highly redundant samples.
  • Efficiency and Robustness: DIMP-Loss proved to be roughly 7x faster to train than meta-learning baselines like SunGen, adding only negligible overhead to standard training time. Furthermore, in experiments where synthetic data was intentionally corrupted with swapped labels or duplicates, DIMP-Loss maintained high performance while standard methods failed.

Limitations and Future Work

While highly effective for text classification, the authors acknowledge that it remains to be seen how these weighting strategies translate to more complex generative tasks like summarization or open-ended Q&A. Additionally, the mathematical foundation assumes the LLM can at least roughly approximate the real-world input distribution; if the generated text is entirely disconnected from the target domain, the weighting mechanism may struggle to find an alignment.

Future work will explore extending these methods to LLM pre-training and other NLP tasks, investigating whether "importance weighting" can help mitigate the risks of training future models on the internet's increasingly synthetic content.

Summary updated

BibTeX
@inproceedings{kuo2025not,
  author = {Hsun-Yu Kuo and Yin-Hsiang Liao and Yu-Chieh Chao and Wei-Yun Ma and Pu-Jen Cheng},
  title = {{Not All LLM-Generated Data Are Equal: Rethinking Data Weighting in Text Classification}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=oI5tZaWkF9},
}
Figure