Introduction
Data Augmentation (DA) has long been a cornerstone of performance in Computer Vision, yet it remains a challenge in Natural Language Processing (NLP). Unlike images, where simple geometric transformations preserve labels, text is fragile; swapping a single word can render a sentence ungrammatical or invert its meaning entirely. In "Learning to Generate Examples for Semantic Processing Tasks," researchers from the University of Rome Tor Vergata and Amazon introduce DATS (Data Augmentation based on Task-specific Similarity). This framework leverages generative models to synthesize high-quality, diverse training data, specifically targeting the "low-resource" scenarios where labeled data is scarce.
The Challenge of NLP Data Augmentation
Modern NLP relies on data-hungry Transformer architectures. When training sets are limited to 10 or 50 examples per category, these models often fail to generalize. Existing DA techniques typically fall into two categories, both of which suffer from a fundamental trade-off between diversity and label consistency:
- Text Editing (e.g., EDA): Methods like random word swapping or deletion often break syntax or accidentally flip labels (e.g., changing "not bad" to "not good").
- Back-Translation (BT): Translating text to a pivot language and back preserves meaning but often produces results too similar to the original to provide a meaningful new signal to the model.
The DATS Framework
DATS addresses these limitations by using a task-oriented similarity function to train a generative model (BART) to produce new examples. The pipeline consists of four key stages:
- Task-Specific Embeddings: A standard classifier is trained on the small available dataset to project sentences into a vector space where proximity is defined by the specific task (e.g., sentiment) rather than general semantics.
- Smart Pairing: For each training example, the system identifies its $n$ most similar neighbors of the same class within the task-specific space.
- Generative Training: A sequence-to-sequence model (BART) is fine-tuned to generate one example given another from the same class. This teaches the model the lexical and structural variations allowed within that category.
- Augmentation: The trained generator creates a fleet of synthetic examples which are then used to augment the original training set for the final classifier.
Experimental Evaluation
The authors evaluated DATS across four distinct benchmarks: Question Classification (TREC), Sentiment Analysis (SST-5), Intent Classification (SNIPS), and Natural Language Inference (SNLI). The framework was tested across various resource levels, from ultra-low ($q=10$ examples per class) to full datasets.
Results and Discussion
DATS consistently outperformed traditional rule-based and translation-based augmentation methods. The most significant gains were observed in the ultra-low-resource settings. For instance, on the SNIPS intent classification task, DATS improved accuracy from 81.92% to 91.74%, a nearly 10-point jump.
Qualitative analysis (as seen in Table 2) reveals that while Back-Translation makes minor surface-level changes (e.g., "colorful" to "colourful"), DATS generates entirely new sentences that capture the core sentiment or intent using different structures and vocabulary. This diversity is key to the model's improved generalization.
Conclusion
DATS demonstrates that generative models, when conditioned on task-specific similarity, can overcome the traditional hurdles of NLP data augmentation. By moving beyond simple word-swapping to intelligent synthesis, DATS provides a robust path forward for training powerful NLP models in data-constrained environments. Future work may explore applying this framework to more complex tasks like Question Answering or utilizing even larger generative architectures.
Summary updated