Skip to main content
QUICK REVIEW

[Paper Review] Synthetic Data Generation with Large Language Models for Text Classification: Potential and Limitations

Zhuoyan Li, Hangxiao Zhu|arXiv (Cornell University)|Oct 11, 2023
Topic ModelingComputer Science6 citations
TL;DR

This study investigates the effectiveness of large language models (LLMs) in generating synthetic data for text classification, finding that model performance on synthetic data declines significantly with increasing task and instance subjectivity. Guiding LLMs with few real-world examples improves performance, but high-subjectivity tasks like sarcasm detection remain challenging due to limited data diversity and nuanced human interpretation.

ABSTRACT

The collection and curation of high-quality training data is crucial for developing text classification models with superior performance, but it is often associated with significant costs and time investment. Researchers have recently explored using large language models (LLMs) to generate synthetic datasets as an alternative approach. However, the effectiveness of the LLM-generated synthetic data in supporting model training is inconsistent across different classification tasks. To better understand factors that moderate the effectiveness of the LLM-generated synthetic data, in this study, we look into how the performance of models trained on these synthetic data may vary with the subjectivity of classification. Our results indicate that subjectivity, at both the task level and instance level, is negatively associated with the performance of the model trained on synthetic data. We conclude by discussing the implications of our work on the potential and limitations of leveraging LLM for synthetic data generation.

Motivation & Objective

  • To evaluate the effectiveness of LLM-generated synthetic data in training text classification models compared to real-world data.
  • To investigate how task-level and instance-level subjectivity moderate the performance of models trained on synthetic data.
  • To compare zero-shot and few-shot prompting strategies in synthetic data generation for improving model generalization.
  • To understand why LLM-generated data underperforms on highly subjective classification tasks despite high-quality generation capabilities.
  • To explore implications for synthetic data generation in low-resource or zero-shot learning scenarios.

Proposed method

  • Utilized GPT-3.5-Turbo to generate synthetic text instances for 10 diverse text classification tasks using both zero-shot and few-shot prompting.
  • Applied zero-shot prompting by directly instructing the LLM to generate instances with specific labels without examples.
  • Applied few-shot prompting by providing a few real-world labeled examples to guide the LLM in generating more contextually accurate synthetic data.
  • Trained text classification models on both synthetic and real-world datasets to compare performance across tasks.
  • Measured model performance using standard metrics (e.g., F1-score) and correlated results with task-level and instance-level subjectivity scores.
  • Collected human-annotated subjectivity scores for instances to quantify subjectivity at the instance level, using crowd workers to assess label agreement.

Experimental results

Research questions

  • RQ1How does task-level subjectivity affect the performance of text classification models trained on LLM-generated synthetic data?
  • RQ2How does instance-level subjectivity (i.e., human annotation disagreement) correlate with model performance on synthetic data?
  • RQ3Does few-shot prompting improve the quality and effectiveness of LLM-generated synthetic data compared to zero-shot prompting?
  • RQ4Are there specific types of classification tasks where synthetic data performs comparably to real-world data?
  • RQ5What are the limitations of LLMs in capturing nuanced, subjective language patterns such as sarcasm or humor?

Key findings

  • Models trained on LLM-generated synthetic data performed significantly worse than those trained on real-world data across most tasks, especially on high-subjectivity tasks like sarcasm and humor detection.
  • Few-shot prompting improved model performance on synthetic data compared to zero-shot prompting, indicating that even a small number of real examples enhances data quality and model generalization.
  • On low-subjectivity tasks such as news topic classification and spam detection, models trained on synthetic data achieved performance close to that of models trained on real data.
  • Within the same task, models trained on synthetic data showed higher performance on instances with lower subjectivity, where human annotators exhibited higher agreement.
  • The Financial Phrasebank and Sarcasm datasets showed minimal variation in performance across subjectivity levels, likely due to domain-specific terminology and lack of domain knowledge in zero-shot generation.
  • The study found a strong negative correlation between task/instance subjectivity and model performance on synthetic data, suggesting subjectivity as a key moderating factor in synthetic data effectiveness.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.