Skip to main content
QUICK REVIEW

[Paper Review] Guiding Generative Language Models for Data Augmentation in Few-Shot Text Classification

Aleksandra Edwards, Asahi Ushio|arXiv (Cornell University)|Nov 17, 2021
Topic ModelingComputer Science5 citations
TL;DR

This paper proposes guiding GPT-2 for data augmentation in few-shot text classification by strategically selecting seed examples to improve generated data quality and classifier performance. It demonstrates that expert-informed seed selection significantly outperforms random or heuristic-based methods, especially in specialized domains like safeguarding reports, leading to consistent gains over baselines and improved efficiency in resource-intensive generation tasks.

ABSTRACT

Data augmentation techniques are widely used for enhancing the performance of machine learning models by tackling class imbalance issues and data sparsity. State-of-the-art generative language models have been shown to provide significant gains across different NLP tasks. However, their applicability to data augmentation for text classification tasks in few-shot settings have not been fully explored, especially for specialised domains. In this paper, we leverage GPT-2 (Radford A et al, 2019) for generating artificial training instances in order to improve classification performance. Our aim is to analyse the impact the selection process of seed training examples have over the quality of GPT-generated samples and consequently the classifier performance. We perform experiments with several seed selection strategies that, among others, exploit class hierarchical structures and domain expert selection. Our results show that fine-tuning GPT-2 in a handful of label instances leads to consistent classification improvements and outperform competitive baselines. Finally, we show that guiding this process through domain expert selection can lead to further improvements, which opens up interesting research avenues for combining generative models and active learning.

Motivation & Objective

  • To address data sparsity and class imbalance in few-shot text classification, especially in specialized domains requiring expert annotation.
  • To investigate how seed selection strategies influence the quality of GPT-2-generated training instances and downstream classifier performance.
  • To evaluate the effectiveness of human-in-the-loop seed selection, hierarchical structure exploitation, and noun frequency-based selection in improving data augmentation.
  • To demonstrate that label-preserving fine-tuning of GPT-2 on few labeled examples can outperform full-dataset fine-tuning.
  • To explore the synergy between active learning and generative models for efficient and high-quality data augmentation in low-resource, expert-dependent domains.

Proposed method

  • Fine-tune GPT-2 per class using only a handful of labeled instances to preserve class information during text generation.
  • Implement a human-in-the-loop seed selection process where domain experts select representative, class-indicative training examples for prompting.
  • Develop a seed selection strategy based on the expert-generated hierarchical structure of the dataset to improve top-level class classification.
  • Apply a noun frequency-based method to select seeds with high lexical richness, assuming such terms are more indicative of class identity.
  • Use the selected seeds as prompts to generate synthetic training data, then fine-tune a classifier on the augmented dataset.
  • Compare performance across random seed selection, heuristic-based strategies, and expert-guided selection on sentence- and passage-level classification tasks.

Experimental results

Research questions

  • RQ1How does the quality of generated training data vary based on different seed selection strategies in few-shot text classification?
  • RQ2Can expert-informed seed selection lead to better classifier performance than random or heuristic-based seed selection in specialized domains?
  • RQ3Does fine-tuning GPT-2 on only a few labeled examples per class yield better performance than fine-tuning on the entire dataset?
  • RQ4How do seed selection strategies affect the efficiency and effectiveness of data augmentation when using resource-intensive generative models?
  • RQ5To what extent can combining active learning with generative models improve data augmentation in low-resource, expert-dependent domains?

Key findings

  • The human-in-the-loop seed selection strategy significantly outperformed all other seed selection methods and baselines for both sentence- and passage-level classification tasks.
  • Fine-tuning GPT-2 on only a few labeled instances per class led to consistent performance improvements and outperformed models fine-tuned on the entire dataset.
  • Seed selection based on expert-generated class hierarchies improved classification performance for top-level classes, particularly in structured, thematic domains.
  • Noun frequency-based seed selection showed measurable benefits, though not as strong as expert-guided selection, indicating lexical richness as a useful proxy for class-indicative content.
  • Random seed selection was sufficient for general-domain datasets like 20 Newsgroups, but ineffective for specialized domains such as safeguarding reports, highlighting domain dependency.
  • The study confirms that expert knowledge integration into text generation pipelines enhances data augmentation quality and efficiency, especially in high-stakes, low-resource domains.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.