Abstract
Unsupervised Data Augmentation (UDA) has emerged as a powerful framework for semi-supervised learning in natural language processing. However, the standard implementation relies on complex augmentation techniques like back-translation and assumes the availability of large unlabeled corpora. This paper investigates simplified variants of UDA. We demonstrate that "naive" augmentation via random word replacement is often as effective as back-translation, particularly in specialized domains where translation models underperform. Furthermore, we show that UDA's consistency loss provides significant performance improvements even when applied exclusively to labeled data, acting as a potent regularizer. Our results across seven datasets, including sentiment analysis and sequence tagging, highlight the robustness and efficiency of these simplified UDA approaches.
Introduction
The success of modern NLP models is often predicated on the availability of vast amounts of labeled data. In specialized domains such as medicine or law, acquiring such data is prohibitively expensive. Unsupervised Data Augmentation (UDA) was proposed to mitigate this by enforcing a consistency loss: the model is trained to produce similar predictions for an original unlabeled example and its augmented (noised) version. While effective, the original UDA recipe is computationally demanding due to its reliance on back-translation and the requirement for massive unlabeled datasets. This work explores whether UDA can be simplified and made more accessible for low-resource scenarios.
Methods
We evaluate four primary modifications to the standard UDA framework:
- Naive Augmentation (Random Word Replacement): Words in a sentence are replaced with random tokens from the vocabulary with a 30% probability, providing a simple yet harsh noise source.
- UDA without Unlabeled Data: The consistency loss is applied directly to the labeled training set. Each labeled example is used twice: once for standard supervised cross-entropy loss and once for consistency training against its noised counterpart.
- BERT-based Replacement: For sequence tagging tasks, we utilize a Masked Language Model (BERT) to suggest contextually appropriate word replacements, aiming to preserve the underlying syntactic and semantic structure better than random replacement.
- Sequence Tagging Adaptation: We extend the UDA consistency loss to token-level predictions by averaging the KL-divergence across all tokens in a sequence.
Results and Key Insights
Our evaluation spans sentiment classification (IMDB, Yelp, Amazon), scientific inference (Evidence Inference), and named entity recognition (CoNLL-2003, EBM-NLP, TAC).
As shown in the figure above, simple random noise is remarkably effective for text classification. In the Amazon dataset, applying UDA consistency loss to the labeled data alone (UDA Supervised) captured nearly 48% of the performance gain achieved by the full semi-supervised method, despite the labeled set being a tiny fraction of the total data. In the specialized Evidence Inference task, random replacement significantly outperformed back-translation, which suffered due to the lack of domain-specific training in the underlying translation models.
For sequence tagging, the nature of the noise is more critical. BERT-based replacement consistently outperformed random replacement across CoNLL and TAC datasets. Randomly changing a word often alters its entity label (e.g., changing a city name to a common noun), which can confuse the model during consistency training. BERT-based augmentation tends to replace words with others of the same category, maintaining label consistency more effectively.
Discussion and Conclusion
Our findings suggest that the complexity of UDA can be significantly reduced without sacrificing performance. Naive augmentation is a robust alternative to back-translation, especially in niche domains. Moreover, the "Supervised UDA" approach proves to be a valuable regularization technique even in the absence of unlabeled data. One notable exception was the EBM-NLP dataset, where UDA hindered performance, likely due to the amplification of noise in the training labels provided by non-experts. Future research should focus on improving UDA's robustness to label noise and further optimizing augmentation strategies for structured prediction tasks.
Summary updated