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.

研究の動機と目的

  • NLPにおける小規模なラベル付きデータセットへ対処するデータ拡張の動機づけ。特にfew-shot学習で。
  • 忠実で多様なサンプルを生成するChatGPTベースの拡張パイプラインを提案する。
  • ChatGPTによる拡張が複数領域で下流分類器の精度を向上させることを示す。
  • 拡張サンプルの忠実性と圧縮性を調査する。

提案手法

  • ChatGPTが生成する6つのパラフレーズ様 variants で各入力文を拡張する。
  • 基盤データセットでBERTベースの分類器をファインチューニングし、拡張データ(D_n_aug)で学習する。
  • ChatGPT拡張はRLHFを用いるGPT-3/ChatGPTで、SFT、報酬モデリング、PPOベースのRL(PPO-ptx)を含む。
  • 目的関数はクロスエントロピー損失とコントラスト損失を組み合わせ、同じクラスの表現を引き寄せ、異なるクラスの表現を引き離す。
  • 式に基づく成分:L_CE = クロスエントロピー損失;L_CL = コントラスト損失;L = L_CE + lambda L_CL。
  • ベースライン比較には従来および文脈拡張法の幅広いセットを含む。
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

実験結果

リサーチクエスチョン

  • RQ1ChatGPT生成の拡張はセマンティックラベルを保持(忠実性)しつつ多様性(圧縮性)を高めることができるか?
  • RQ2拡張は従来手法と比較して少数ショットのテキスト分類精度を改善するか?
  • RQ3AugGPTは一般領域および生物医学領域データセットでどう機能するか?
  • RQ4拡張とコントラスト学習を組み合わせると表現品質にどのような影響があるか?

主な発見

データ拡張Amazon (BERT)Amazon (BERT+C)Symptoms (BERT)Symptoms (BERT+C)PubMed20K (BERT)PubMed20K (BERT+C)
生データ0.7340.7450.6360.6060.7920.798
バック翻訳拡張0.7570.7480.7780.7470.8120.83
Bertを用いた文脈語拡張(挿入)0.7610.7500.6970.6770.8020.811
Bertを用いた文脈語拡張(置換)0.7450.7300.7270.6670.7820.782
DistilBERTを用いた文脈語拡張(挿入)0.7590.7620.7070.7470.7960.796
DistilBERTを用いた文脈語拡張(置換)0.7870.7660.6670.6460.7970.800
RoBERTaを用いた文脈語拡張(挿入)0.7750.7680.7580.7070.8150.814
RoBERTaを用いた文脈語拡張(置換)0.7450.7300.7270.6670.7820.782
CounterFittedEmbedding拡張0.7540.7410.6670.6260.8050.805
InsertChar拡張0.7710.7750.4040.4750.8260.831
Googleニュース埋め込みを用いた語の挿入0.8160.7940.6360.6770.7860.784
Keyboard拡張0.7640.7660.5450.5050.8090.815
OCR拡張0.7750.7820.7680.7780.7890.789
PPDB同義語拡張0.6910.6900.6970.7580.7950.829
スペリング拡張0.7270.7360.6970.7070.8080.811
SubstituteChar拡張0.7620.7680.5350.5860.8160.821
SubstituteWordをGoogleニュース埋め込みで拡張0.7290.7410.7270.7270.8070.822
SwapChar拡張0.7620.7660.4750.4850.7970.801
SwapWord拡張0.7710.7660.6870.7270.7980.794
WordNet同義語拡張0.8050.7980.6160.7580.7610.757
ChatGPT(2ショット)0.7530.9800.748---
AugGPT0.8160.8260.8890.8990.8350.835
  • AugGPTはAmazon、Symptoms、PubMed20Kのデータセット全体で最先端の拡張ベースラインよりも高い検証精度を達成。
  • ChatGPTによる拡張サンプルは多様性を改善しつつ元のラベルとの整合性(忠実性)を維持。
  • アブレーション研究では、AugGPTは多くの非LLM拡張技術(例:バック翻訳、文脈的語の拡張、同義語ベース手法)を上回る。
  • この手法は2ショットのChatGPT設定でも、拡張データでのBERTベースファインチューニングと組み合わせても sizable gains を生み出す。
  • 一般領域および臨床/NLPベンチマークの両方で強い性能向上を示す。
Figure 2: Single-turn dialogue and multi-turn dialogues prompt
Figure 2: Single-turn dialogue and multi-turn dialogues prompt

より良い研究を、今すぐ始めましょう

論文設計から論文執筆まで、研究時間を劇的に削減しましょう。

クレジットカード登録不要

このレビューはAIが作成し、人間の編集者が確認しました。