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

Yu Meng, Jiaxin Huang, Yu Zhang, Jiawei Han

TL;DR

SuperGen is a novel framework that achieves high-performance zero-shot language understanding by using a generative language model to synthesize its own training data. By combining class-conditioned text generation with robust regularization techniques, it significantly outperforms traditional zero-shot prompting and even matches the performance of strong few-shot methods that use human-labeled examples.

What Problem Does This Paper Address?

While Pretrained Language Models (PLMs) like BERT and GPT have revolutionized NLP, they typically require a significant amount of task-specific labeled data to perform well. In "zero-shot" settings—where no labeled data is available—researchers often rely on prompting, where a task is described in natural language (e.g., "Is this movie review positive or negative?").

However, zero-shot prompting is notoriously brittle. Models often struggle to interpret complex prompts, and their performance is highly sensitive to the exact wording used. More recent "instruction tuning" approaches solve this by training on thousands of different tasks, but they require massive datasets and gargantuan model sizes. The authors of this paper ask: Can we achieve robust zero-shot performance using moderately sized models without needing any human-annotated data at all?

Methods

The authors propose SuperGen (Supervision Generation), a two-stage pipeline that leverages the complementary strengths of different PLM architectures:

The SuperGen framework pipeline.
  1. Data Generation (The Teacher): A unidirectional PLM (like GPT or CTRL) acts as the generator. Given a label-descriptive prompt (e.g., "Rating: 5.0" for a positive sentiment), the model generates synthetic text corresponding to that label. For sequence-pair tasks like Natural Language Inference (NLI), the model is given a "premise" sampled from a raw text corpus and asked to generate a "hypothesis" that follows a specific relationship (entailment, neutral, or contradiction).
  2. Quality Selection: Not all generated data is good. SuperGen filters the synthetic samples by keeping only those with the highest average log-generation probability, ensuring the training set is representative of the target classes.
  3. Classifier Training (The Student): A bidirectional PLM (like RoBERTa or COCO-LM) is then fine-tuned on this synthetic dataset.
  4. Robust Regularization: To handle the inherent noise in synthetic data, the authors apply two key techniques:
  5. Label Smoothing: Prevents the model from becoming overconfident in potentially noisy synthetic labels.
  6. Temporal Ensembling: A semi-supervised technique that regularizes the model by encouraging it to remain consistent with its own predictions from previous training steps, effectively filtering out "noisy" samples during the fine-tuning process.

Datasets

The framework was evaluated on seven classification tasks from the GLUE (General Language Understanding Evaluation) benchmark:

  • Sentiment: SST-2
  • Paraphrase/Similarity: MRPC, QQP
  • Inference (NLI): MNLI, QNLI, RTE
  • Linguistic Acceptability: CoLA

The generator used raw text from a pretraining corpus (like Wikipedia) as a starting point for sequence-pair generation.

Key Insights and Ideas

  • Generators vs. Predictors: Unidirectional models are better at generating data than predicting labels in a zero-shot setting. By using them to create a training set, we can "distill" their generative knowledge into a specialized classifier that is much more stable than a prompted model.
  • Regularization is the "Secret Sauce": Synthetic data is inevitably noisy (e.g., a model might generate a negative-sounding sentence for a "positive" prompt). The paper shows that without label smoothing and temporal ensembling, the classifier would overfit to this noise, leading to poor generalization.
  • Task-Specific Sampling: For tasks like NLI, the authors found it beneficial to reward or penalize token repetition during generation. For example, encouraging the model to repeat words from the premise helps generate better "entailment" pairs.

Key Results

SuperGen demonstrates a massive leap over standard zero-shot methods:

  • Average Performance: Across seven GLUE tasks, SuperGen achieved an average score of 69.4, compared to just 50.1 for standard zero-shot prompting.
  • Beating Few-Shot: Remarkably, SuperGen outperformed several strong few-shot approaches that had access to 32 human-labeled samples per class (which averaged between 63.6 and 67.3).
Accuracy vs. amount of generated training data on MNLI-m and SST-2.
  • Specific Highlights: As shown in the performance curves above, generating more synthetic data reliably improves accuracy up to a saturation point. Ultimately, SuperGen achieved 72.3/73.8 on MNLI (m/mm) and 92.8 on SST-2, scores that were previously thought to require significant manual supervision.

Limitations and Future Work

  • The Hyperparameter Trap: A true zero-shot setting assumes no validation set. While SuperGen is more stable than prompting, choosing the "best" hyperparameters (like learning rate) without any labeled data remains a fundamental challenge in the field.
  • Complex Distributions: For tasks like CoLA (identifying grammatically incorrect sentences), the model struggled because the "incorrect" distribution is much harder for a PLM to synthesize naturally than the "correct" one.
  • Scaling Up: The authors suggest that using even larger generator models (like GPT-3 or beyond) could further improve the quality of the synthetic training data. They also see potential in hybrid "few-shot + synthetic" settings to maximize performance when a handful of human labels are available.

Summary updated

BibTeX
@inproceedings{meng2022generating,
  author = {Yu Meng and Jiaxin Huang and Yu Zhang and Jiawei Han},
  title = {{Generating Training Data with Language Models: Towards Zero-Shot Language Understanding}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2022},
  url = {https://openreview.net/forum?id=4G1Sfp_1sz7},
}
Figure