EDA: Easy Data Augmentation Techniques for Boosting Performance on Text Classification Tasks
Jason WeiKai Zou
Proposes four simple text data augmentation techniques—synonym replacement, random insertion, random swap, and random deletion—that improve classification performance and allow models trained on half the data to match full-dataset accuracy.
Text classification models typically require large volumes of labeled training data to achieve high accuracy, yet collecting and labeling this data is often expensive and time-consuming. While other machine learning fields routinely use data augmentation to generate synthetic training examples, natural language processing lacks standardized, easy-to-use augmentation techniques because simple language transformation rules are difficult to generalize.
The article evaluates whether a set of simple, universal text-editing operations—termed Easy Data Augmentation (EDA)—can improve text classification accuracy and reduce overfitting without requiring external datasets or complex deep learning models.
The authors conducted an empirical study evaluating four lightweight operations: synonym replacement, random word insertion, random word swap, and random word deletion. They tested these techniques on five benchmark text classification datasets spanning sentiment analysis, subjectivity, and question categorization, using two standard neural network architectures (recurrent and convolutional neural networks). To measure performance across varying resource levels, the authors trained models using full datasets as well as reduced training subsets ranging from 1% to 100% of available data (specifically focusing on subsets of 500, 2,000, and 5,000 samples).
The evaluation revealed several key findings. First, EDA demonstrated substantial gains for small datasets: models trained on only 500 samples achieved an average accuracy gain of 3.0 percentage points across the benchmark tasks. Second, when using EDA, models trained on just 50% of the available training data matched the average accuracy (88.6%) achieved by baseline models using 100% of the data. Third, while all four operations contributed to performance gains, modifying approximately 10% of the words in a sentence proved to be the optimal parameter across tasks. Latent space visual analysis confirmed that these modest transformations effectively preserve the original class labels of the sentences.
These findings indicate that organizations can significantly cut data collection and labeling costs for text classification initiatives. Because EDA relies solely on basic word manipulations and standard lexical dictionaries, teams can implement data augmentation with minimal computational overhead and zero need to train auxiliary language models. When full datasets are readily available, however, performance improvements from EDA become marginal (an average increase of 0.8%).
For practical application in low-resource settings (such as 500 to 2,000 training examples), practitioners should generate 8 to 16 augmented sentences per original text while altering about 5% to 10% of the words. For larger datasets, practitioners should limit generation to 4 augmented sentences per example to avoid unnecessary compute overhead.
The primary limitation of the study is that EDA offers minimal performance lift when massive training datasets are available or when using modern large, pre-trained language models. Decision-makers can have high confidence in applying EDA as a lightweight, low-cost baseline to boost model robustness in data-constrained text classification scenarios.
- Paper: mixup: Beyond Empirical Risk Minimization, Hongyi Zhang et al. (2017). Reading Mixup beforehand is essential because it establishes the foundational concept of interpolating training examples and labels that inspires several subsequent data augmentation strategies.
- Paper: Improved Regularization of Convolutional Neural Networks with Cutout, Terrance Devries et al. (2017). Exploring the Cutout regularization method first provides vital context on how random occlusion improves model generalization before examining broader text augmentation techniques.
- Paper: CutMix: Regularization Strategy to Train Strong Classifiers With Localizable Features, Sangdoo Yun et al. (2019). Understanding CutMix provides necessary background on combining regional dropout with label mixing in image classification, paving the way for textual data augmentation paradigms.
- Paper: Unsupervised Data Augmentation for Consistency Training, Qizhe Xie et al. (2020). This paper directly builds on the source by leveraging advanced data augmentation techniques within consistency training frameworks to achieve state-of-the-art semi-supervised learning results.
- Paper: Training Generative Adversarial Networks with Limited Data, Tero Karras et al. (2020). This work extends the source's data augmentation philosophy by introducing stochastic discriminator augmentation to stabilize generative adversarial networks when training data is scarce.
- Paper: The Many Faces of Robustness: A Critical Analysis of Out-of-Distribution Generalization, Dan Hendrycks et al. (2021). This research continues the exploration of data augmentation by critically analyzing its role in out-of-distribution generalization and introducing advanced representation-level perturbation methods.
