Is ChatGPT the ultimate Data Augmentation Algorithm?

Frédéric Piedboeuf, Philippe LanglaisEMNLP 2023

Abstract

In the aftermath of GPT-3.5, commonly known as ChatGPT, researchers have attempted to assess its capacity for lowering annotation costs, either by doing zero-shot learning, generating new data, or replacing human annotators. Some studies have also investigated its use for data augmentation (DA), but only in limited contexts, which still leaves the question of how ChatGPT performs compared to state-of-the-art algorithms. In this paper, we use ChatGPT to create new data both with paraphrasing and with zero-shot generation, and compare it to seven other algorithms. We show that while ChatGPT performs exceptionally well on some simpler data, it overall does not perform better than the other algorithms, yet demands a much larger implication from the practitioner due to the ChatGPT often refusing to answer due to sensitive content in the datasets.

Introduction

Data Augmentation (DA) has become a cornerstone of modern NLP, particularly when dealing with small datasets. By creating artificial training examples, researchers can improve model robustness and performance without the prohibitive cost of manual labeling. With the rise of Large Language Models (LLMs) like ChatGPT, there is a growing trend toward using these models for DA. However, it remains unclear whether ChatGPT actually outperforms established "state-of-the-art" DA techniques or if its popularity is merely a byproduct of its accessibility. This study evaluates ChatGPT against seven other DA algorithms across various settings and datasets.

Methodology

The study compares nine DA techniques categorized into four groups:

  1. Word-level methods: EDA (Easy Data Augmentation) and AEDA (random punctuation insertion).
  2. Paraphrasing methods: Back-Translation (BT) and a fine-tuned T5 model.
  3. Generative methods: CBERT, CBART, and CGPT (based on GPT-2).
  4. ChatGPT (GPT-3.5): Evaluated as ChatGPT-Par (paraphrasing existing sentences) and ChatGPT-Desc (zero-shot generation based on task descriptions).

Performance was measured across five benchmarks: SST-2 (sentiment), FakeNews, Irony/IronyB (irony detection), and TREC6 (question categorization). Two training regimes were tested: few-shot (10/20 samples) and medium-sized (500/1000 samples).

Experimental Results

Few-Shot Learning Performance

In the extreme low-data regime (10/20 samples), ChatGPT-Desc demonstrated remarkable performance on specific tasks. Notably, on the SST-2 sentiment dataset, it achieved 78.6% accuracy compared to the 56.4% baseline. However, this success was not universal. When averaged across all datasets, ChatGPT-Desc was only marginally superior to traditional methods like CBART.

Table showing results for few-shot learning (10/20 samples) across different DA methods and datasets.

Medium-Sized Dataset Performance

For larger training sets (500/1000 samples), the advantage of zero-shot generation (ChatGPT-Desc) diminished. In this context, ChatGPT-Par (paraphrasing) proved more effective than other generative models like BART or T5. Traditional methods like Back-Translation (BT) remained highly competitive, often matching or exceeding ChatGPT's performance on several benchmarks.

Table showing results for medium-sized datasets (500/1000 samples) across different DA methods and datasets.

Discussion: The "Hidden Cost" and Dataset Health

The results suggest that ChatGPT is not a "silver bullet." Several factors complicate its use as a DA tool:

  • Content Filtering: A significant hurdle was ChatGPT’s safety filter. It frequently refused to process content from the FakeNews and Irony datasets due to "sensitive" keywords. This necessitated manual intervention and cleaning, increasing the practitioner's workload compared to local, unfiltered models.
  • Dataset Health: ChatGPT struggles with "unhealthy" datasets—those with ambiguous labels or inconsistent annotations (e.g., TREC6). If a task is not clearly defined, prompting becomes difficult, and the generated data quality suffers.
  • Performance Plateaus: While ChatGPT produces high-quality text, increasing the volume of synthetic data often leads to a performance plateau, suggesting a lack of the diversity needed to further improve the classifier.

Conclusion

While ChatGPT excels in clean, well-defined tasks like sentiment analysis, it does not consistently outperform traditional DA algorithms across the board. Its high maintenance requirements due to content filtering and its sensitivity to dataset quality mean that practitioners should carefully weigh its use against more stable, local alternatives like Back-Translation or CBART.

Summary updated

BibTeX
@inproceedings{piedboeuf2023is,
  author = {Frédéric Piedboeuf and Philippe Langlais},
  title = {{Is ChatGPT the ultimate Data Augmentation Algorithm?}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2023},
  url = {https://openreview.net/forum?id=0isMLQIUpQ},
}
Figure