Generating Training Data with Language Models: Towards Zero-Shot Language Understanding

Yu Meng, Jiaxin Huang, Yu Zhang, Jiawei Han
2/9/2022
cs.CLcs.LG

Official code: yumeng5/SuperGen (70 stars, Python, Apache-2.0, last commit 2022-09-18).

Abstract

Pretrained language models (PLMs) have demonstrated remarkable performance in various natural language processing tasks: Unidirectional PLMs (e.g., GPT) are well known for their superior text generation capabilities; bidirectional PLMs (e.g., BERT) have been the prominent choice for natural language understanding (NLU) tasks. While both types of models have achieved promising few-shot learning performance, their potential for zero-shot learning has been underexplored.

Show full abstract

In this paper, we present a simple approach that uses both types of PLMs for fully zero-shot learning of NLU tasks without requiring any task-specific data: A unidirectional PLM generates class-conditioned texts guided by prompts, which are used as the training data for fine-tuning a bidirectional PLM. With quality training data selected based on the generation probability and regularization techniques (label smoothing and temporal ensembling) applied to the fine-tuning stage for better generalization and stability, our approach demonstrates strong performance across seven classification tasks of the GLUE benchmark (e.g., 72.3/73.8 on MNLI-m/mm and 92.8 on SST-2), significantly outperforming zero-shot prompting methods and achieving even comparable results to strong few-shot approaches using 32 training samples per class.

View on arXivView PDF

Code Implementations(1)

yumeng5/SuperGenOfficial100%
Apache-2.0

[NeurIPS 2022] Generating Training Data with Language Models: Towards Zero-Shot Language Understanding

7014Python, ShellFeb 10, 20224 years agoApache-2.0
natural-language-processingnatural-language-understandingpretrained-language-modeltext-classificationtext-generation+1 more

Similar Papers

Cite this paper

@article{meng2022generating,
  title  = {Generating Training Data with Language Models: Towards Zero-Shot Language Understanding},
  author = {Yu Meng and Jiaxin Huang and Yu Zhang and Jiawei Han},
  year   = {2022},
  eprint = {2202.04538},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2202.04538}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2202.04538.svg)](https://codeofpaper.com/paper/2202.04538)

Discussion