[Paper Review] Using GPT-2 to Create Synthetic Data to Improve the Prediction Performance of NLP Machine Learning Classification Models
This paper proposes using fine-tuned GPT-2 to generate synthetic text data for improving NLP text classification models. By fine-tuning GPT-2 on a Yelp pizza review dataset and combining the synthetic reviews with real data, the study demonstrates a significant improvement in model accuracy and precision over baseline models trained only on real data.
Classification Models use input data to predict the likelihood that the subsequent input data will fall into predetermined categories. To perform effective classifications, these models require large datasets for training. It is becoming common practice to utilize synthetic data to boost the performance of Machine Learning Models. It is reported that Shell is using synthetic data to build models to detect problems that rarely occur; for example Shell created synthetic data to help models to identify deteriorating oil lines. It is common practice for Machine Learning Practitioners to generate synthetic data by rotating, flipping, and cropping images to increase the volume of image data to train Convolutional Neural Networks. The purpose of this paper is to explore creating and utilizing synthetic NLP data to improve the performance of Natural Language Processing Machine Learning Classification Models. In this paper I used a Yelp pizza restaurant reviews dataset and transfer learning to fine-tune a pre-trained GPT-2 Transformer Model to generate synthetic pizza reviews data. I then combined this synthetic data with the original genuine data to create a new joint dataset. The new combined model significantly outperformed the original model in accuracy and precision.
Motivation & Objective
- To investigate whether synthetic text data generated by GPT-2 can improve the performance of NLP classification models.
- To evaluate the effectiveness of synthetic data augmentation in low-resource or imbalanced NLP classification scenarios.
- To demonstrate a practical method for generating diverse, realistic synthetic text using transfer learning with GPT-2.
- To compare model performance between real-only data and combined real-synthetic datasets in a text classification task.
Proposed method
- Fine-tune a pre-trained GPT-2 language model on a real Yelp pizza review dataset to adapt it to generate domain-specific synthetic reviews.
- Use the fine-tuned GPT-2 model to generate a large volume of synthetic, human-like reviews for data augmentation.
- Combine the synthetic reviews with the original real reviews to form a joint training dataset.
- Retrain a downstream text classification model on the combined real-synthetic dataset using standard NLP training procedures.
- Evaluate model performance using standard metrics such as accuracy and precision on a held-out test set.
Experimental results
Research questions
- RQ1Can synthetic text data generated by GPT-2 improve the prediction performance of NLP classification models?
- RQ2How does the performance of a model trained on real and synthetic data compare to one trained only on real data?
- RQ3To what extent does data augmentation via GPT-2-generated text enhance model generalization and robustness?
- RQ4What is the impact of synthetic data on precision and recall in text classification tasks?
Key findings
- The model trained on the combined real-synthetic dataset achieved significantly higher accuracy than the baseline model trained only on real data.
- The joint model demonstrated improved precision, indicating better classification reliability on the test set.
- The synthetic data effectively increased the diversity and volume of training examples without introducing noise or distributional shifts.
- The results suggest that GPT-2 can generate plausible, task-relevant text that enhances downstream model performance.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.