[Paper Review] Can We Achieve More with Less? Exploring Data Augmentation for Toxic Comment Classification
This paper investigates whether data augmentation techniques—specifically Easy Data Augmentation (EDA) and Backtranslation—can improve toxic comment classification performance on small datasets. Using the Wikipedia Toxic Comments dataset, it demonstrates that combining these methods with logistic regression or SVM significantly boosts F1 and recall scores, while Bi-LSTM benefits most from backtranslation alone due to its ability to preserve semantic structure.
This paper tackles one of the greatest limitations in Machine Learning: Data Scarcity. Specifically, we explore whether high accuracy classifiers can be built from small datasets, utilizing a combination of data augmentation techniques and machine learning algorithms. In this paper, we experiment with Easy Data Augmentation (EDA) and Backtranslation, as well as with three popular learning algorithms, Logistic Regression, Support Vector Machine (SVM), and Bidirectional Long Short-Term Memory Network (Bi-LSTM). For our experimentation, we utilize the Wikipedia Toxic Comments dataset so that in the process of exploring the benefits of data augmentation, we can develop a model to detect and classify toxic speech in comments to help fight back against cyberbullying and online harassment. Ultimately, we found that data augmentation techniques can be used to significantly boost the performance of classifiers and are an excellent strategy to combat lack of data in NLP problems.
Motivation & Objective
- To address data scarcity in NLP by evaluating data augmentation techniques on small labeled datasets.
- To develop a robust, low-resource toxic comment classifier to combat cyberbullying and reduce annotator burden.
- To investigate how different machine learning models interact with various data augmentation strategies.
- To analyze the impact of intermediary languages in backtranslation on model generalization and performance.
- To provide interpretable insights into feature importance and error patterns in augmented models.
Proposed method
- Preprocessing the Wikipedia Toxic Comments dataset by removing special characters, correcting spelling, and normalizing text to reduce vocabulary size.
- Splitting the dataset into training (small 5% subset) and test sets, with the full training set used as an oracle for performance comparison.
- Applying Easy Data Augmentation (EDA) via synonym replacement, random insertion, deletion, and synonym replacement with word embeddings.
- Implementing Backtranslation by translating comments into four diverse languages (Spanish, French, Hindi, German) and back to English to generate semantically similar but varied training examples.
- Training and evaluating three models—Logistic Regression, SVM, and Bi-LSTM—on both baseline and augmented data to compare performance gains.
- Using feature importance analysis and error case studies to interpret model behavior and identify misclassification patterns due to context or polysemy.
Experimental results
Research questions
- RQ1Can data augmentation techniques like EDA and backtranslation significantly improve classifier performance on small, low-resource datasets for toxic comment classification?
- RQ2How does the choice of machine learning model (e.g., logistic regression vs. Bi-LSTM) affect the effectiveness of different data augmentation strategies?
- RQ3Does the choice of intermediary language in backtranslation influence the quality and generalization of augmented data?
- RQ4To what extent do augmented data improve F1 and recall scores, and which models benefit most from which augmentation method?
- RQ5What are the primary sources of error in augmented models, and how do contextual ambiguity and word polysemy affect classification?
Key findings
- Backtranslation combined with EDA provided the largest performance gains for logistic regression and SVM, significantly improving F1 and recall scores.
- Bi-LSTM models showed the greatest improvement when using backtranslation alone, as it preserved sentence-level semantics better than EDA.
- Spanish and Hindi were the most effective intermediary languages for backtranslation, likely due to linguistic diversity and colloquial nuances introducing useful generalization.
- Vocabulary size increased substantially after backtranslation (up to 41,167 tokens with all languages), indicating effective data expansion and diversity.
- Feature importance analysis revealed that words like 'you' and 'wasted' were misclassified as toxic due to co-occurrence with toxic terms or polysemy, highlighting context-dependent errors.
- The performance gains from data augmentation diminished with more expressive models like Bi-LSTM, suggesting that model capacity and augmentation strategy must be aligned.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.