Abstract
In this paper, we investigate data augmentation for text generation, which we call GenAug. Text generation and language modeling are important tasks within natural language processing, and are especially challenging for low-data regimes. We propose and evaluate various augmentation methods, including some that incorporate external knowledge, for finetuning GPT-2 on a subset of Yelp Reviews. We also examine the relationship between the amount of augmentation and the quality of the generated text. We utilize several metrics that evaluate important aspects of the generated text including its diversity and fluency. Our experiments demonstrate that insertion of character-level synthetic noise and keyword replacement with hypernyms are effective augmentation methods, and that the quality of generations improves to a peak at approximately three times the amount of original data.
Introduction
Large-scale pretrained language models like GPT-2 have revolutionized natural language processing. However, adapting these models to specific domains—such as medical notes or technical manuals—remains difficult when in-domain data is scarce. This "low-data regime" necessitates effective data augmentation. While techniques like random word swapping are common in text classification, they often fail in generative tasks because they disrupt the grammatical and logical flow required for fluent text production.
Methodology
The researchers introduced GenAug, a framework evaluating several augmentation strategies for text generators:
- Synthetic Noise: Character-level perturbations (typos, swaps, deletions) in input prompts.
- WordNet-based Keyword Replacement: Replacing keywords with synonyms, hyponyms (more specific), or hypernyms (more general).
- Semantic Text Exchange (STE): Context-aware entity replacement using masked language models.
- Random Trio: Standard classification-based word-level insertion, deletion, and swapping.
Experiments were conducted on the Yelp Low-Resource (YLR) dataset, a 50,000-example subset (1%) of the full Yelp Reviews corpus.
Key Results and Discussion
The study revealed that generative models benefit from different augmentation types than classifiers. Specifically, Synthetic Noise and WN-Hypernyms emerged as the most effective methods, consistently outperforming the "Gold" baseline (finetuning on original data only).
Fluency and Diversity
Synthetic noise acted as a powerful regularizer. Counter-intuitively, training on noisy data led to more fluent outputs and fewer misspellings in the final generations. This is reflected in the SLOR (fluency) scores, where Synthetic Noise significantly outperformed the baseline, indicating more human-like, readable text.
Furthermore, diversity improved as well. Lower Self-BLEU (SBLEU) scores indicate higher diversity, and the best-performing methods successfully reduced repetitive, generic phrasing, allowing the model to produce more varied content.
The "3x" Sweet Spot
A critical finding was the relationship between data volume and quality. Performance across almost all metrics improved as the dataset grew to three times (3x) its original size. Beyond this point (4x), the model began to overfit to the specific patterns of the augmentations, leading to a decline in generation quality.
Conclusion
GenAug demonstrates that simple character-level noise and hypernym replacement are superior to complex semantic exchanges or destructive word-level swaps for text generation. These methods enhance both fluency and diversity in low-data scenarios. Future work will explore linguistic compositionality and richer lexical resources to further refine generative data augmentation.
Summary updated