Skip to main content
QUICK REVIEW

[Paper Review] Improving Short Text Classification With Augmented Data Using GPT-3

Salvador Balkus, Donghui Yan|arXiv (Cornell University)|May 23, 2022
Topic ModelingComputer Science6 citations
TL;DR

This study proposes using GPT-3 to generate synthetic training examples for improving short text classification on small datasets. By augmenting a small labeled dataset with GPT-3-generated examples, the GPT-3 Classification Endpoint achieved a 31% accuracy increase (from 0.58 to 0.76), outperforming both baseline and optimized few-shot prompting with the Completion Endpoint.

ABSTRACT

GPT-3 is a large-scale natural language model developed by OpenAI that can perform many different tasks, including topic classification. Although researchers claim that it requires only a small number of in-context examples to learn a task, in practice GPT-3 requires these training examples to be either of exceptional quality or a higher quantity than easily created by hand. To address this issue, this study teaches GPT-3 to classify whether a question is related to data science by augmenting a small training set with additional examples generated by GPT-3 itself. This study compares two classifiers: the GPT-3 Classification Endpoint with augmented examples, and the GPT-3 Completion Endpoint with an optimal training set chosen using a genetic algorithm. We find that while the augmented Completion Endpoint achieves upwards of 80 percent validation accuracy, using the augmented Classification Endpoint yields more consistent accuracy on unseen examples. In this way, giving large-scale machine learning models like GPT-3 the ability to propose their own additional training examples can result in improved classification performance.

Motivation & Objective

  • To address the challenge of limited labeled data in short text classification, especially for niche domains like data science questions.
  • To evaluate whether GPT-3 can improve its own performance by generating synthetic training examples for data augmentation.
  • To compare two data augmentation strategies: generating more examples for the Classification Endpoint and optimizing example selection for the Completion Endpoint.
  • To assess the robustness and generalization of GPT-3-based classifiers on unseen, real-world short text data.
  • To determine whether self-generated data can effectively enhance model performance when high-quality or large-scale datasets are unavailable.

Proposed method

  • Used the GPT-3 Completion Endpoint with a prompt containing few-shot example-label pairs to classify short text, optimizing input examples using a genetic algorithm.
  • Generated 1,000 synthetic training examples using GPT-3’s text generation capabilities to expand the original small dataset for the Classification Endpoint.
  • Employed a genetic algorithm to iteratively select the most effective subset of training examples for the Completion Endpoint, aiming to improve few-shot generalization.
  • Trained and evaluated two models: one using the augmented Classification Endpoint and another using the optimized Completion Endpoint on the same test set.
  • Evaluated performance using validation and test accuracy on a real-world dataset of student questions from the Big Data Club at UMass Dartmouth.
  • Used human-annotated labels for questions to define the true topic (e.g., 'Data', 'Other') and assess model predictions.

Experimental results

Research questions

  • RQ1Can GPT-3 generate high-quality synthetic training examples that improve classification performance on small short text datasets?
  • RQ2Does data augmentation via GPT-3-generated examples lead to more consistent performance on unseen test data compared to few-shot prompting with optimized examples?
  • RQ3How does the performance of the GPT-3 Classification Endpoint compare to the Completion Endpoint when using augmented training data?
  • RQ4What is the impact of data quality and labeling subjectivity on model generalization in short text classification tasks?
  • RQ5Can genetic algorithm-based example selection improve few-shot learning performance with the Completion Endpoint, or does it lead to overfitting on validation data?

Key findings

  • Augmenting the training set with 1,000 GPT-3-generated examples increased the GPT-3 Classification Endpoint’s accuracy from a baseline of 0.58 to 0.76, representing a 31% relative improvement.
  • The Completion Endpoint with genetic algorithm-optimized examples achieved 85% validation accuracy but only 67% test accuracy, indicating overfitting to the validation set.
  • The Classification Endpoint with augmented data showed more consistent performance on unseen test examples compared to the Completion Endpoint with optimized examples.
  • GPT-3 struggled most with questions that had ambiguous or subjective labels, such as those about club meetings or interface customization, which were frequently misclassified.
  • The study found that self-generated data augmentation is more effective than example optimization for few-shot learning when using GPT-3’s classification-specific endpoint.
  • The results suggest that coupling GPT-3 with data augmentation enables practical deployment of NLP models even with small, real-world datasets, especially when using the Classification Endpoint.

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.