[Paper Review] Bidirectional Recurrent Models for Offensive Tweet Classification
This paper proposes bidirectional recurrent neural network architectures—primarily bidirectional LSTMs and GRUs—for classifying offensive tweets into three subtasks: offensive/not offensive, targeted/untargeted, and target type (individual/organization/other). Despite exploring more complex models with CNNs and split-merge architectures, the simplest bidirectional LSTM achieved the best performance, highlighting that model complexity does not guarantee improved results on this dataset.
In this paper we propose four deep recurrent architectures to tackle the task of offensive tweet detection as well as further classification into targeting and subject of said targeting. Our architectures are based on LSTMs and GRUs, we present a simple bidirectional LSTM as a baseline system and then further increase the complexity of the models by adding convolutional layers and implementing a split-process-merge architecture with LSTM and GRU as processors. Multiple pre-processing techniques were also investigated. The validation F1-score results from each model are presented for the three subtasks as well as the final F1-score performance on the private competition test set. It was found that model complexity did not necessarily yield better results. Our best-performing model was also the simplest, a bidirectional LSTM; closely followed by a two-branch bidirectional LSTM and GRU architecture.
Motivation & Objective
- To develop deep learning models for offensive language detection and classification in social media, specifically tweets.
- To investigate whether increased model complexity improves performance on offensive tweet classification tasks.
- To explore the impact of extensive text preprocessing on model generalization and performance.
- To address class imbalance in offensive language datasets through weighted loss functions.
- To evaluate the effectiveness of various RNN architectures—including biLSTM, biGRU, and hybrid models—on multi-level classification of offensive content.
Proposed method
- Employed bidirectional LSTMs and GRUs as core sequence modeling components for capturing contextual tweet semantics.
- Designed a split-process-merge architecture combining bidirectional LSTM and GRU branches to process sequences in parallel and merge representations.
- Integrated convolutional layers (CNN) before or after RNNs to extract local n-gram features from word embeddings.
- Applied extensive text preprocessing: removal of URLs, user mentions, HTML entities, hashtags, punctuation, numbers, and stop words; lowercasing; non-ASCII character handling; apostrophe expansion; and word length normalization.
- Used SymSpell for fast word segmentation and spelling correction with edit distance ≤2.
- Applied class-weighted cross-entropy loss to mitigate class imbalance, especially in Tasks B and C.
Experimental results
Research questions
- RQ1Does increasing model complexity (e.g., adding CNNs or hybrid architectures) lead to better performance in offensive tweet classification?
- RQ2How effective are bidirectional RNNs (LSTM/GRU) compared to simpler or more complex architectures on this specific NLP task?
- RQ3To what extent does aggressive text preprocessing improve model performance on low-resource offensive language detection?
- RQ4How does class imbalance affect model training and evaluation, and can it be effectively mitigated?
- RQ5Can a simpler model like a standalone bidirectional LSTM outperform more complex models in this context?
Key findings
- The simplest model, a standalone bidirectional LSTM, achieved the highest validation F1-score of 0.7382 on Task A (offensive/not offensive), outperforming more complex architectures.
- The two-branch bidirectional LSTM and GRU model (biGRU ⊕ biLSTM) achieved the second-best performance, with a validation F1-score of 0.7285 on Task A.
- Model complexity did not consistently improve performance; for example, the CNN-biLSTM model scored only 0.6346 F1 on Task A, significantly lower than the baseline biLSTM.
- On the private test set, the best-performing biLSTM model achieved F1-scores of 0.77 (Task A), 0.64 (Task B), and 0.52 (Task C), indicating strong generalization despite data limitations.
- Class imbalance severely impacted model performance, particularly in Tasks B and C, but was mitigated through class-weighted loss functions, preventing over-prediction of the majority class.
- F1-score showed high instability during training, often oscillating and not correlating well with accuracy or loss, suggesting challenges in model convergence and hyperparameter tuning.
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.