Skip to main content
QUICK REVIEW

[论文解读] AugGPT: Leveraging ChatGPT for Text Data Augmentation

Haixing Dai, Zhengliang Liu|arXiv (Cornell University)|Feb 25, 2023
Topic Modeling被引用 99
一句话总结

AugGPT 使用 ChatGPT 为每个输入句子生成六个语义相关的增广变体,与 BERT 结合后可提升小样本文本分类的性能。该方法在多个数据集上优于现有的增广基线。

ABSTRACT

Text data augmentation is an effective strategy for overcoming the challenge of limited sample sizes in many natural language processing (NLP) tasks. This challenge is especially prominent in the few-shot learning scenario, where the data in the target domain is generally much scarcer and of lowered quality. A natural and widely-used strategy to mitigate such challenges is to perform data augmentation to better capture the data invariance and increase the sample size. However, current text data augmentation methods either can't ensure the correct labeling of the generated data (lacking faithfulness) or can't ensure sufficient diversity in the generated data (lacking compactness), or both. Inspired by the recent success of large language models, especially the development of ChatGPT, which demonstrated improved language comprehension abilities, in this work, we propose a text data augmentation approach based on ChatGPT (named AugGPT). AugGPT rephrases each sentence in the training samples into multiple conceptually similar but semantically different samples. The augmented samples can then be used in downstream model training. Experiment results on few-shot learning text classification tasks show the superior performance of the proposed AugGPT approach over state-of-the-art text data augmentation methods in terms of testing accuracy and distribution of the augmented samples.

研究动机与目标

  • Motivate data augmentation to address small labeled datasets in NLP, especially in few-shot learning.
  • Propose a ChatGPT-based augmentation pipeline to produce faithful and diverse samples.
  • Show that augmenting with ChatGPT improves downstream classifier accuracy across multiple domains.
  • Investigate faithfulness and compactness of augmented samples.

提出的方法

  • AugGPT augments each input sentence with six paraphrase-like variants generated by ChatGPT.
  • Fine-tune a BERT-based classifier on the base (larger) dataset, then train with augmented novel data (D_n_aug).
  • ChatGPT augmentation is powered by GPT-3/ChatGPT with RLHF, including SFT, Reward Modeling, and PPO-based RL (PPO-ptx).
  • The objective function combines cross-entropy loss with a contrastive loss to pull same-class representations together and push different-class representations apart.
  • Equation-driven components: L_CE = cross-entropy loss; L_CL = contrastive loss; L = L_CE + lambda L_CL.
  • Baseline comparisons include a broad set of traditional and contextual augmentation methods.
Figure 1: The framework of AugGPT. a (top panel): First, we apply ChatGPT for data augmentation. We input samples of all classes into ChatGPT and prompt ChatGPT to generate samples that preserves semantic consistency with existing labelled instance. b (bottom panel): In the next step, we train a BER
Figure 1: The framework of AugGPT. a (top panel): First, we apply ChatGPT for data augmentation. We input samples of all classes into ChatGPT and prompt ChatGPT to generate samples that preserves semantic consistency with existing labelled instance. b (bottom panel): In the next step, we train a BER

实验结果

研究问题

  • RQ1Can ChatGPT-generated augmentations preserve semantic labels (faithfulness) while increasing diversity (compactness)?
  • RQ2Do augmentations improve few-shot text classification accuracy compared to traditional methods?
  • RQ3How does AugGPT perform across general-domain and biomedical-domain datasets?
  • RQ4What is the impact of combining augmentation with contrastive learning on representation quality?

主要发现

Data AugmentationAmazon (BERT)Amazon (BERT+C)Symptoms (BERT)Symptoms (BERT+C)PubMed20K (BERT)PubMed20K (BERT+C)
原始0.7340.7450.6360.6060.7920.798
BackTranslationAug0.7570.7480.7780.7470.8120.83
ContextualWordAugUsingBert(Insert)0.7610.7500.6970.6770.8020.811
ContextualWordAugUsingBert(Substitute)0.7450.7300.7270.6670.7820.782
ContextualWordAugUsingDistilBERT(Insert)0.7590.7620.7070.7470.7960.796
ContextualWordAugUsingDistilBERT(Substitute)0.7870.7660.6670.6460.7970.800
ContextualWordAugUsingRoBERTa(Insert)0.7750.7680.7580.7070.8150.814
ContextualWordAugUsingRoBERTa(Substitute)0.7450.7300.7270.6670.7820.782
CounterFittedEmbeddingAug0.7540.7410.6670.6260.8050.805
InsertCharAugmentation0.7710.7750.4040.4750.8260.831
InsertWordByGoogleNewsEmbeddings0.8160.7940.6360.6770.7860.784
KeyboardAugmentation0.7640.7660.5450.5050.8090.815
OCRAugmentation0.7750.7820.7680.7780.7890.789
PPDBSynonymAug0.6910.6900.6970.7580.7950.829
SpellingAugmentation0.7270.7360.6970.7070.8080.811
SubstituteCharAugmentation0.7620.7680.5350.5860.8160.821
SubstituteWordByGoogleNewsEmbeddings0.7290.7410.7270.7270.8070.822
SwapCharAugmentation0.7620.7660.4750.4850.7970.801
SwapWordAug0.7710.7660.6870.7270.7980.794
WordNetSynonymAug0.8050.7980.6160.7580.7610.757
ChatGPT (2-shot)0.7530.9800.748---
AugGPT0.8160.8260.8890.8990.8350.835
  • AugGPT achieves higher testing accuracy than state-of-the-art augmentation baselines across Amazon, Symptoms, and PubMed20K datasets.
  • Augmented samples with ChatGPT show improved diversity while maintaining alignment with original labels (faithfulness).
  • In ablation studies, AugGPT outperforms many non-LLM augmentation techniques (e.g., back-translation, contextual word augmentations, synonym-based methods).
  • The method yields sizable gains even in 2-shot ChatGPT settings and when integrated with BERT-based fine-tuning on augmented data.
  • The approach demonstrates strong performance gains in both general-domain and clinical/NLP benchmarks.
Figure 2: Single-turn dialogue and multi-turn dialogues prompt
Figure 2: Single-turn dialogue and multi-turn dialogues prompt

更好的研究,从现在开始

从论文设计到论文写作,大幅缩短您的研究时间。

无需绑定信用卡

本解读由 AI 生成,并经人工编辑审核。