Introduction
In machine learning, "low-data regimes"—scenarios where only a handful of examples per category are available—frequently lead to overfitting and poor generalization. Data Augmentation (DA) is a common strategy to mitigate this by creating synthetic training examples. However, in Natural Language Processing (NLP), simple DA techniques like word swapping often fail because they lack awareness of class labels. For instance, changing "a great movie" to "a bad movie" in a sentiment dataset flips the label, introducing noise that can confuse the model. This paper introduces a unified, model-agnostic approach to conditional DA using pre-trained transformer models, aiming for high-quality, label-preserving data generation.
Methodology
The authors explore three primary transformer architectures for data augmentation:
- Auto-Encoder (AE): Represented by BERT, using the Masked Language Modeling (MLM) objective to fill in blanks within sentences.
- Auto-Regressive (AR): Represented by GPT-2, which predicts the next word in a sequence. A "context" version is used where the model receives the label and the first three words of the original sentence to improve generation quality.
- Seq2Seq: Represented by BART, trained to reconstruct corrupted sentences. Two variants were tested: $BART_{word}$ (masking individual words) and $BART_{span}$ (masking multi-word chunks).
A key innovation is the "Prepend" Trick: instead of complex architectural modifications, class labels are simply prepended to the text sequences (e.g., [Positive] This movie was great) during fine-tuning. This simple conditioning allows the models to effectively learn the relationship between labels and text.
Experimental Setup
The methods were evaluated on three diverse text classification benchmarks:
- SST-2: Sentiment analysis of movie reviews.
- SNIPS: Intent classification for voice assistants.
- TREC: Fine-grained question classification.
To simulate extreme low-resource environments, the datasets were subsampled to just 10 and 50 examples per class.
Results and Analysis
The experimental results demonstrate that Seq2Seq models, specifically BART, offer a superior balance between diversity and semantic fidelity. In the most challenging 10-example-per-class scenario, BART variants consistently outperformed the "No Augmentation" baseline and other transformer-based methods.
As shown in the results table, $BART_{span}$ achieved significant gains, particularly on the TREC dataset, rising from a 48.56% baseline to 67.30%. The study also highlights a critical Fidelity-Diversity Trade-off:
- AE models (BERT) exhibit high "Semantic Fidelity" (label preservation) but lack diversity because they only change a few words.
- AR models (GPT-2) generate diverse text but often fail to preserve the intended label.
- Seq2Seq models (BART) occupy the "sweet spot," balancing the reconstruction capabilities of AE models with the generative diversity of AR models.
The fidelity scores in the table above confirm that GPT-2 based augmentation suffers from significantly lower label preservation compared to BERT and BART variants, explaining its lower overall performance in classification tasks.
Conclusion
This research demonstrates that pre-trained Seq2Seq models like BART are highly effective for conditional data augmentation in low-resource settings. The simplicity of the "prepend" conditioning method makes it easily adaptable to future transformer architectures. However, the authors note "diminishing returns" as the number of training examples increases; once 50 examples per class are available, the benefits of DA often plateau or even decrease. Future work may involve optimizing hyperparameters like masking rates on a per-task basis to further enhance performance.
Summary updated