Abstract
Data augmentation (DA) is a critical technique for improving model performance in low-resource scenarios. However, in Natural Language Processing (NLP), existing methods often struggle with a trade-off between the diversity of generated samples and their semantic quality. This paper introduces EPiDA (Easy Plug-in Data Augmentation), a lightweight framework that balances these factors using an entropy-based selection mechanism. By filtering candidate samples through Relative Entropy Maximization (REM) and Conditional Entropy Minimization (CEM), EPiDA identifies samples that are both informative and semantically consistent. Our evaluation across five classification tasks shows that EPiDA consistently outperforms standard augmentation techniques and even outperforms complex, model-heavy alternatives.
Introduction
In the realm of machine learning, data augmentation is a standard practice to mitigate data scarcity. While simple transformations like flipping or cropping are effective in Computer Vision, NLP faces unique challenges. A minor change, such as deleting the word "not," can completely invert the sentiment of a sentence, leading to "noisy" data that degrades classifier performance.
Current NLP augmentation strategies generally fall into two categories: rule-based methods (e.g., Easy Data Augmentation or EDA) and model-based methods (e.g., Back-translation or GPT-based generation). Rule-based methods are computationally efficient and provide high diversity but often produce low-quality, nonsensical text. Conversely, model-based methods generate high-quality text but are computationally expensive and may lack the diversity needed to challenge the model. EPiDA addresses this "diversity-quality" trade-off by acting as an intelligent filter that selects the best samples from any existing augmentation tool.
The EPiDA Framework
EPiDA is designed as a "plug-in" module that can be integrated with any existing text classifier and augmentation algorithm. The core component is the Sample Evaluation And Selection (SEAS) module, which evaluates candidate samples generated by a base DA tool.
The SEAS module employs two primary scoring mechanisms based on information theory:
- Relative Entropy Maximization (REM): This metric focuses on diversity. It selects "hard" samples—those that significantly differ from the original training distribution. By maximizing relative entropy, the framework identifies samples that force the classifier to learn more robust decision boundaries.
- Conditional Entropy Minimization (CEM): This metric ensures quality and semantic consistency. It filters out candidates that have lost their original meaning during augmentation. By minimizing conditional entropy, EPiDA ensures that the augmented sample still strongly supports the original label according to the current state of the classifier.
The workflow begins with an input sentence, which is processed by a standard DA tool to create a pool of candidates. These candidates are then scored by the SEAS module using feedback from the classifier. Finally, the top $m$ samples—those that optimally balance being "hard to learn" yet "semantically correct"—are selected for training.
Experimental Setup
To demonstrate the generalizability of EPiDA, the authors evaluated it across five distinct text classification tasks:
- TREC: Question type classification.
- AGNews: Topic classification for news articles.
- Tweets Sentiment Analysis: Identifying positive, negative, or neutral sentiment.
- Tweets Irony Classification: Detecting irony in short social media posts.
- Tweets Offense Detection: Identifying offensive language.
The framework was tested using various base classifiers, including CNNs and transformer-based models like BERT and XLNet, to ensure its effectiveness across different architectures.
Results and Discussion
The experimental results highlight the efficiency and effectiveness of the EPiDA framework. Notably, EPiDA consistently outperformed state-of-the-art (SOTA) methods, even when using simple rule-based tools like EDA as the underlying generator.
As shown in the performance table, the combination of REM and CEM (REM+CEM) yields the best results. For instance, in a low-data setting (10% of the Sentiment dataset), EPiDA improved the F1 score from 0.560 (standard EDA) to 0.639. Furthermore, EPiDA achieved lower perplexity (PPL) scores compared to other methods, indicating that the selected samples are more readable and human-like.
Key Insights
- Selection over Generation: The success of EPiDA suggests that the quality of the selection process is just as important as the generation process. Intelligent filtering can elevate simple augmentation techniques to SOTA performance.
- Dynamic Feedback: By utilizing the classifier's own entropy as feedback, EPiDA creates a dynamic training loop where the difficulty of augmented data scales with the model's proficiency.
- Computational Efficiency: Unlike methods that rely on large language models for generation, EPiDA is lightweight and accessible, making it suitable for environments with limited hardware resources.
Conclusion
EPiDA provides a robust and easy-to-implement solution for text data augmentation. By mathematically balancing diversity and quality, it overcomes the limitations of traditional rule-based and model-based methods. While currently focused on classification, future work may explore adapting this entropy-based selection for more complex generative tasks like summarization or translation. The framework's dependency on the base DA tool remains a limitation; however, its ability to maximize the utility of existing tools makes it a valuable asset for NLP practitioners.
Summary updated