Data Augmentation for Text Classification with EASE

A M. Muntasir Rahman, Wenpeng Yin, Guiling WangICNLSP 2023

Abstract

Data Augmentation (DA) is a critical technique for improving model performance in low-resource settings. However, traditional text DA methods often rely on random noise—such as word swapping or deletion—which can disrupt the contextual coherence required by modern Transformer-based architectures. We introduce EASE (Extract Units, Acquire Labels, Sift, and Employ), a four-step framework designed to generate high-quality, linguistically coherent augmented data. By extracting logical sub-units and utilizing a teacher model for dynamic re-labeling, EASE consistently outperforms existing methods like EDA and AEDA in both accuracy and training efficiency.

Introduction

While Data Augmentation is a standard practice in Computer Vision, its application in Natural Language Processing (NLP) remains challenging. Popular techniques like Easy Data Augmentation (EDA) and AEDA introduce random perturbations to training samples. While effective for older RNN-based models, these methods often "break" the structural integrity that Transformers (e.g., BERT) rely on for understanding context and sentiment. Randomly shuffling words or injecting punctuation can inadvertently flip the sentiment of a sentence or create nonsensical inputs, leading to suboptimal training signals.

The EASE Framework

EASE addresses these limitations by prioritizing linguistic coherence over random noise through a structured four-step pipeline:

  1. Extract Units: Instead of random shuffling, EASE identifies and extracts meaningful sub-components. For long-form text, it extracts individual sentences. For shorter inputs, it extracts "Facts"—coherent units representing distinct logical information.
  2. Acquire Labels: Unlike standard DA methods that assume the augmented snippet retains the original label, EASE employs a pre-trained "teacher" model (e.g., DistilBERT) to generate a fresh label. This ensures that if an extraction changes the sentiment, the label remains accurate.
  3. Sift: An optional filtering phase removes excessively short or low-quality samples to maintain dataset stability.
  4. Employ: The resulting high-quality samples are merged with the original training set for final model training.

Experimental Results

The researchers evaluated EASE against four sentiment classification benchmarks: the Large Movie Review Dataset (IMDB), Sentiment 140 (S140), Financial Phrasebank (FinPB), and Customer Review (CR). Experiments focused on low-resource scenarios, ranging from 10 to 1,000 training samples.

Performance and Stability

EASE demonstrated superior performance across nearly all datasets and model architectures. In extremely low-resource tests (10 samples), EASE significantly outperformed the baseline and competing DA methods. For instance, on the IMDB dataset using BERT-base, EASE reached 64.18% accuracy, compared to 54.75% for EDA.

Table 1: Accuracy comparison across four benchmark datasets. EASE consistently achieves the highest performance.

A key advantage of EASE is its stability. Traditional methods like EDA and AEDA frequently result in "negative impacts," where the augmented data actually degrades model performance. EASE minimizes these occurrences by preserving positional integrity and providing accurate labels.

Figure 1: Percentage improvement over baseline. EASE shows consistent gains, while EDA and AEDA often result in performance drops.

Efficiency

EASE is notably more efficient than its predecessors. Because it extracts existing units rather than generating numerous variations of every sentence, it produces 10–16x fewer augmented samples than EDA or AEDA. This leads to drastically reduced training times. In one trial on the Customer Review dataset, AEDA required over two days of training, whereas EASE achieved better results in just 3.4 hours.

Conclusion

EASE represents a shift in text data augmentation from "more data" to "better data." By focusing on logical coherence and dynamic labeling, it provides a robust solution for training Transformers in low-resource environments. Future work will explore more granular extraction units and alternative label acquisition strategies to further enhance the framework's versatility.

Summary updated

BibTeX
@inproceedings{rahman2023data,
  author = {A M. Muntasir Rahman and Wenpeng Yin and Guiling Wang},
  title = {{Data Augmentation for Text Classification with EASE}},
  booktitle = {ICNLSP},
  year = {2023},
}
Figure