Want To Reduce Labeling Cost? GPT-3 Can Help

Shuohang Wang, Yang Liu, Yichong Xu, Chenguang Zhu, Michael Zeng

Abstract

Data annotation is a time-consuming and labor-intensive process for many NLP tasks. Although there exist various methods to produce pseudo data labels, they are often task-specific and require a decent amount of labeled data to start with. Recently, the immense language model GPT-3 with 175 billion parameters has achieved tremendous improvement across many few-shot learning tasks. In this paper, we explore ways to leverage GPT-3 as a low-cost data labeler to train other models. We find that, to make the downstream model achieve the same performance on a variety of NLU and NLG tasks, it costs 50% to 96% less to use labels from GPT-3 than using labels from humans. Furthermore, we propose a novel framework of combining pseudo labels from GPT-3 with human labels, which leads to even better performance with limited labeling budget. These results present a cost-effective data labeling methodology that is generalizable to many practical applications.

Introduction

In Natural Language Processing (NLP), high-quality labeled data is essential but often prohibitively expensive and slow to collect. While large-scale models like GPT-3 demonstrate impressive few-shot capabilities, their size and operational costs make them impractical for many high-throughput production environments. This research addresses a critical question: can we leverage the power of massive models to build smaller, efficient "in-house" models without the high cost of human annotation?

Methods

The researchers investigated three primary strategies for data labeling under a fixed budget:

  1. Pure GPT-3 Labeling: Utilizing n-shot prompting to have GPT-3 generate labels for unannotated data.
  2. Random Mixing: A hybrid approach where the budget is split between GPT-3 and human labelers.
  3. Active Labeling: A novel framework that uses GPT-3’s internal confidence scores (logits) to rank examples. Human labelers are then assigned only the "hard" (low-confidence) cases, while GPT-3 handles the "easy" ones.
Comparison of labeling frameworks: (a) Human, (b) GPT-3, (c) Random Mixing, and (d) Active Labeling.

The resulting labels were used to fine-tune standard "student" models: RoBERTa-large for Natural Language Understanding (NLU) and PEGASUS-large for Natural Language Generation (NLG).

Datasets and Evaluation

The methodology was tested across nine diverse NLP tasks to ensure broad applicability:

  • NLU Tasks: Sentiment analysis (SST-2), question type classification (TREC), textual entailment (CB, RTE), and topic classification (AGNews, DBPedia).
  • NLG Tasks: Summarization (Gigaword, XSum) and question generation (SQuAD).

Key Insights

  • Student Surpasses Teacher: Interestingly, smaller models trained on GPT-3's labels often outperformed the raw few-shot GPT-3 model. This suggests that the fine-tuning process acts as a regularizer, effectively smoothing out noise in the teacher's predictions.
  • Economic Asymmetry: The cost difference is stark. For instance, in sentiment analysis, GPT-3 labels cost approximately $0.002 each, compared to $0.11 for human crowd-sourcing. This 50x cost reduction allows for significantly larger training sets within the same budget.
  • Confidence as a Proxy: GPT-3’s internal probability scores proved to be a reliable indicator of accuracy, validating the Active Labeling strategy of prioritizing human intervention for low-confidence samples.

Results

The experimental results demonstrate significant efficiency gains. To achieve performance parity with human-labeled data, using GPT-3 labels reduced costs by 96% for SST-2 and 93.8% for Gigaword. Across all evaluated tasks, cost savings ranged from 50% to 96%.

Performance (ROUGE-L or Accuracy) vs. Cost ($) across nine NLU and NLG tasks.

In low-budget scenarios, models trained with GPT-3 labels consistently outperformed those relying solely on the limited human labels affordable at that price point. Furthermore, GPT-3's high-speed labeling capabilities can drastically shorten development cycles.

Conclusion

While GPT-3 is a powerful tool for reducing labeling costs, the authors note it is not yet a replacement for humans in high-stakes domains like toxic language detection, where nuanced human values are paramount. Future research will explore using GPT-3 for synthetic data augmentation to further enhance performance in data-scarce environments.

Summary updated

BibTeX
@inproceedings{wang2021want,
  author = {Shuohang Wang and Yang Liu and Yichong Xu and Chenguang Zhu and Michael Zeng},
  title = {{Want To Reduce Labeling Cost? GPT-3 Can Help}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2021},
  doi = {10.18653/v1/2021.findings-emnlp.354},
}
Figure