Abstract
Detecting offensive language on social media is complicated by the rapid evolution of entity-specific insults and creative linguistic alterations. This paper introduces a semi-supervised approach to automatically expand training datasets for Arabic offensive language detection. By identifying "persistently offensive" users—those who frequently target specific entities with insults—the researchers leveraged the consistency of user stances to auto-label new training data. This "retargeting" method significantly improved model performance, particularly for Support Vector Machines (SVM), which achieved a 79% relative improvement in detecting targeted attacks.
Introduction: The Challenge of Entity-Specific Attacks
Standard offensive language classifiers often struggle with entity-specific attacks. While generic models can identify common profanity, they frequently miss "malicious alterations" (e.g., creative misspellings of names) or innocuous words used in derogatory contexts. For instance, in Arabic, a model might miss a pun like "Alkhanzeera" (a derogatory play on Aljazeera). Because these insults are highly specific and evolve quickly, manual annotation is often too slow to be effective.
Methodology: Blind Relevance Feedback for Dataset Expansion
The researchers proposed a semi-supervised method inspired by Blind Relevance Feedback in information retrieval. The process involves four key stages:
- Target Selection: Identifying high-profile accounts (politicians, celebrities, news agencies) that are frequent targets of abuse.
- User Profiling: Using a baseline classifier to identify "offensive users"—those whose replies to a target are classified as offensive at a high frequency (e.g., >50%) or high raw count.
- Automatic Labeling: Assuming a persistence of stance, all other replies from these identified users to the same target are automatically labeled as offensive, even if they were initially missed by the baseline model.
- Model Retraining: The augmented dataset is used to retrain classifiers, specifically a character n-gram SVM and a fastText deep-learning model.
Data and Evaluation
The study utilized the SemEval 2020 Arabic offensive language shared task corpus (10,000 tweets) for baseline training. To evaluate the expansion method, the authors collected 660,000 new replies to 25 targets and manually annotated a gold-standard test set of 2,500 tweets (100 per target).
Key Results and Discussion
The retargeting approach yielded substantial improvements across both models. The SVM model, which initially suffered from very low recall, saw a massive 79% relative improvement in F1-measure for target-specific detection. The fastText model, while more robust initially, still achieved a 13% relative improvement.
As shown in the table above, the fastText model generally outperformed the SVM in terms of Recall and F1-measure, though the SVM maintained higher Precision. The expansion method effectively sacrifices some precision to gain a significant boost in recall, allowing the models to identify creative insults that were previously ignored.
Limitations and Future Directions
One primary limitation is the risk of class imbalance; the expansion process can skew the dataset toward offensive examples, potentially leading to over-classification. Additionally, the method struggled with targets who have vocal supporters; for example, insults directed at a target's enemies were sometimes misclassified as being directed at the target itself. Future work will explore transformer-based models like BERT to further refine detection accuracy and linguistic representation.
Summary updated