AEDA: An Easier Data Augmentation Technique for Text Classification

Akbar Karimi, Leonardo Rossi, Andrea PratiEMNLP 2021

Introduction

In Natural Language Processing (NLP), the performance of deep learning models is heavily dependent on the availability of large-scale labeled datasets. Data Augmentation (DA) has emerged as a critical strategy to synthesize training examples and improve model generalization. While techniques like Easy Data Augmentation (EDA)—which involves synonym replacement, word swapping, and deletion—are popular, they often suffer from "label shift." For instance, deleting a negation or swapping key subjects can fundamentally alter a sentence's meaning, introducing noise that misleads the model.

To address these limitations, this paper introduces AEDA (An Easier Data Augmentation), a simple yet highly effective technique that preserves the semantic integrity of the original text while providing robust performance gains.

The AEDA Method

Unlike previous methods that manipulate existing words, AEDA relies solely on random punctuation insertion. The process is defined by three simple steps:

  1. Insertion Count: A random number $n$ is chosen, where $1 \leq n \leq \frac{1}{3}$ of the sentence length.
  2. Position Selection: $n$ random positions within the sentence are selected.
  3. Punctuation Selection: Marks are randomly chosen from a set of six: . , ? ; ! : and inserted into the selected positions.

By only adding punctuation, AEDA ensures that the original word order remains intact. This preserves 100% of the semantic information while shifting the absolute positions of words, forcing neural networks to learn features that are independent of fixed sequence positions.

Experimental Evaluation

The researchers evaluated AEDA against EDA and unaugmented baselines across five benchmarks: SST-2, CR, SUBJ, TREC, and PC. These datasets cover sentiment analysis, subjectivity, and topical classification. Testing was conducted using both Convolutional Neural Networks (CNNs) and Recurrent Neural Networks (RNNs).

Figure 6: Accuracy vs Percentage of data on the TREC dataset, comparing AEDA, EDA, and the original baseline.

As shown in the TREC dataset results (Figure 6), AEDA consistently outperforms both the original baseline and EDA, particularly when training data is scarce. At just 1% of the training data, AEDA provides a substantial accuracy boost, demonstrating its effectiveness in low-resource scenarios.

Key Findings and Results

  • Superiority Over EDA: AEDA outperformed EDA across all five datasets. The authors attribute this to information preservation; whereas EDA's deletion can remove class-defining words, AEDA keeps the original message intact.
  • Impact of Data Size: The technique is most potent when training data is limited. With only 500 training samples, AEDA yielded an average absolute improvement of 3.2% over the baseline.
  • Augmentation Density: The study found that even a small number of augmentations can lead to significant gains. As illustrated in Figure 5, the improvement is particularly pronounced for smaller datasets (e.g., 500 samples) as the number of augmentations increases.
Figure 5: Improvement (%) relative to the number of augmentations across different training set sizes.
  • Transformer Performance: While AEDA's primary gains were observed in RNNs and CNNs, it also provided a "finishing touch" to large pre-trained models like BERT, showing a +0.76% improvement on the TREC dataset.

Conclusion

AEDA offers a "computationally free" and resource-independent method for text augmentation. By focusing on punctuation rather than word manipulation, it avoids the pitfalls of semantic drift while effectively regularizing models against overfitting. Its simplicity and consistent performance across various architectures make it a compelling alternative to more complex augmentation strategies.

Summary updated

BibTeX
@inproceedings{karimi2021aeda,
  author = {Akbar Karimi and Leonardo Rossi and Andrea Prati},
  title = {{AEDA: An Easier Data Augmentation Technique for Text Classification}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2021},
  doi = {10.18653/v1/2021.findings-emnlp.234},
}
Figure