Skip to main content
QUICK REVIEW

[Paper Review] Synthetically generated text for supervised text analysis

Andrew Halterman|arXiv (Cornell University)|Mar 28, 2023
Hate Speech and Cyberbullying DetectionComputer Science5 citations
TL;DR

This paper proposes using large language models to generate synthetic text for supervised text analysis in political science, addressing high annotation costs, rare class retrieval issues, and copyright constraints. It demonstrates that synthetic text can train effective classifiers—such as for event detection and populism detection—with minimal human labeling, though performance lags slightly behind real data, which can be mitigated by an adversarial hyperparameter tuning technique.

ABSTRACT

Supervised text models are a valuable tool for political scientists but present several obstacles to their use, including the expense of hand-labeling documents, the difficulty of retrieving rare relevant documents for annotation, and copyright and privacy concerns involved in sharing annotated documents. This article proposes a partial solution to these three issues, in the form of controlled generation of synthetic text with large language models. I provide a conceptual overview of text generation, guidance on when researchers should prefer different techniques for generating synthetic text, a discussion of ethics, and a simple technique for improving the quality of synthetic text. I demonstrate the usefulness of synthetic text with three applications: generating synthetic tweets describing the fighting in Ukraine, synthetic news articles describing specified political events for training an event detection system, and a multilingual corpus of populist manifesto statements for training a sentence-level populism classifier.

Motivation & Objective

  • To address the high cost and logistical challenges of human-annotated text in supervised text analysis for political science.
  • To overcome difficulties in retrieving rare event classes for annotation by generating synthetic examples with desired content.
  • To reduce copyright and privacy barriers by replacing real documents with synthetic alternatives in training and sharing.
  • To improve the quality and realism of synthetic text through a novel adversarial hyperparameter tuning technique.
  • To demonstrate that synthetic text can effectively train zero-shot and few-shot classifiers, even when performance is slightly below real data.

Proposed method

  • Using large language models (e.g., GPT-2, GPT-3) to generate synthetic text with controlled content and style based on prompts or fine-tuned parameters.
  • Applying a novel adversarial technique to optimize hyperparameters for generating synthetic text that is difficult to distinguish from real text.
  • Employing a two-stage approach: first generating synthetic data, then training standard classifiers (e.g., bag-of-words) on it for interpretability and speed.
  • Using existing labeled data to prompt or adapt language models, enabling data augmentation through synthetic example generation.
  • Evaluating synthetic text quality via human evaluation and model performance on downstream tasks to guide improvement.
  • Applying prompt engineering and conditional generation to ensure factual consistency and relevance in synthetic outputs.

Experimental results

Research questions

  • RQ1Can synthetic text generated by large language models effectively replace real annotated data in training supervised text classifiers?
  • RQ2To what extent does synthetic text reduce annotation costs and improve retrieval of rare event classes?
  • RQ3How can the quality of synthetic text be measured and improved to minimize performance degradation compared to real data?
  • RQ4In what ways can synthetic text support zero-shot or few-shot learning in political text analysis?
  • RQ5What ethical and methodological tradeoffs arise when using synthetic text in place of real data?

Key findings

  • Synthetic tweets describing the war in Ukraine were generated that were difficult for human evaluators to distinguish from real tweets, demonstrating high realism.
  • Synthetic news articles successfully trained an event detection model, showing that synthetic data can address retrieval and copyright issues.
  • A multilingual corpus of synthetic populist manifesto statements enabled training a sentence-level populism classifier with no human-annotated data, achieving meaningful performance.
  • The performance of models trained on synthetic data was slightly lower than those trained on real data, but this gap was reduced through adversarial hyperparameter tuning.
  • The use of synthetic text allowed researchers to bypass copyright restrictions and privacy concerns while still enabling model training and evaluation.
  • The study found that some populist parties' manifestos contain little populist language, challenging assumptions about manifestos as primary sources for studying populism.

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.