NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

SDA: Improving Text Generation with Self Data Augmentation

Ping Yu, Ruiyi Zhang, Yang Zhao, Yizhe Zhang, Chunyuan Li, Changyou ChenarXiv 2021

Abstract

Data augmentation has been widely used to improve deep neural networks in many research fields, such as computer vision. However, less work has been done in the context of text, partially due to its discrete nature and the complexity of natural languages. In this paper, we propose to improve the standard maximum likelihood estimation (MLE) paradigm by incorporating a self-imitation-learning phase for automatic data augmentation. Unlike most existing sentence-level augmentation strategies, which are only applied to specific models, our method is more general and could be easily adapted to any MLE-based training procedure. In addition, our framework allows task-specific evaluation metrics to be designed to flexibly control the generated sentences, for example, in terms of controlling vocabulary usage and avoiding nontrivial repetitions. Extensive experimental results demonstrate the superiority of our method on two synthetic and several standard real datasets, significantly improving related baselines.

Introduction

Deep learning models for text generation are notoriously "data-hungry." While data augmentation is a staple in computer vision (e.g., flipping or cropping images), it is much harder in Natural Language Processing (NLP). Because language is discrete, changing even a single word can completely flip a sentence's meaning or render it ungrammatical.

Existing text augmentation methods often rely on simple word-level swaps or are "model-specific," meaning they can't be easily plugged into different architectures. Furthermore, standard Maximum Likelihood Estimation (MLE) training often leads to models that either memorize the training data or produce repetitive, low-quality "hallucinations." The authors propose Self Data Augmentation (SDA), a novel framework that improves text generation by allowing a model to "imitate" its own highest-quality outputs.

Methodology

The SDA framework employs a two-stage training process:

  1. MLE Training Stage: The generator model is trained using standard maximum likelihood until convergence.
  2. Self Data Augmentation (SDA) Stage: This stage introduces a buffer ($D_B$) that stores the "top-k" best sentences generated by the model, ranked by a user-defined Reference Metric (e.g., BLEU score).

Training then alternates between two sub-steps:

  • Imitating Training Data: A discriminator is trained to distinguish between real training data and generated data, while the generator is updated to "fool" the discriminator (standard GAN-style RL).
  • Imitating Self-Augmented Data: The discriminator is trained to distinguish between high-quality generated data in the buffer and current generated data. This forces the generator to consistently produce text that matches its own best previous outputs.

Theoretically, this is framed as Inverse Reinforcement Learning (IRL) with Self-Enhancement, introducing a "Self-guided regularizer" to bake specific goals—like avoiding repetition—directly into the reward function.

Key Insights: Generalization vs. Memorization

A critical challenge in text generation is the "memorization trap," where models simply regurgitate training data. SDA encourages the model to explore the linguistic space more effectively. By using a buffer of self-augmented data, the authors effectively enlarge the training set with high-quality examples that are already within the model's reach, making the learning process smoother and more stable than pure Reinforcement Learning (RL).

Generalization vs. Memorization on COCO dataset.

As shown in the figure above, SDA-enhanced models (red markers) maintain a better balance between training and testing performance compared to standard RL approaches, indicating superior generalization and reduced memorization.

Experimental Results

The researchers evaluated SDA on several benchmarks, including synthetic datasets, COCO Image-Caption, EMNLP2017 WMT, and the Yelp Review Dataset.

Quantitative Performance

On the COCO dataset, the SDA-enhanced model achieved significant gains across all BLEU metrics. For instance, LeakRNN+SDA reached a BLEU-4 score of 0.738, significantly outperforming the base LeakRNN (0.594) and standard RL approaches.

BLEU scores on the COCO dataset for various models.

Human Evaluation and Style Transfer

In blind tests, human judges rated SDA-generated text significantly higher (3.11/5) than text from base models (2.97). Furthermore, when applied to sentiment style transfer, SDA achieved 89.9% accuracy, outperforming several specialized state-of-the-art models.

Conclusion and Future Work

SDA provides a model-agnostic, sentence-level augmentation strategy that improves both quality and diversity. While it introduces some computational overhead due to discriminator training and buffer management, its ability to steer models using task-specific metrics is a major advantage. Future work may involve scaling SDA to large Transformer-based models to mitigate tendencies toward hallucination.

Summary updated

BibTeX
@misc{yu2021sda,
  author = {Ping Yu and Ruiyi Zhang and Yang Zhao and Yizhe Zhang and Chunyuan Li and Changyou Chen},
  title = {{SDA: Improving Text Generation with Self Data Augmentation}},
  year = {2021},
  eprint = {2101.03236},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2101.03236},
}
Figure