[Paper Review] Combination of multiple Deep Learning architectures for Offensive Language Detection in Tweets
This paper presents a hybrid deep learning model combining bidirectional LSTMs, 1D convolutions, and feedforward networks for offensive language detection in tweets. Using transfer learning and Bayesian optimization, the model achieves a macro F1-score of 0.76 on Task A, 0.68 on Task B, and 0.54 on Task C, demonstrating strong performance on imbalanced social media text classification despite challenges from label noise and class imbalance.
This report contains the details regarding our submission to the OffensEval 2019 (SemEval 2019 - Task 6). The competition was based on the Offensive Language Identification Dataset. We first discuss the details of the classifier implemented and the type of input data used and pre-processing performed. We then move onto critically evaluating our performance. We have achieved a macro-average F1-score of 0.76, 0.68, 0.54, respectively for Task a, Task b, and Task c, which we believe reflects on the level of sophistication of the models implemented. Finally, we will be discussing the difficulties encountered and possible improvements for the future.
Motivation & Objective
- To develop a robust deep learning model for classifying offensive language in social media text, particularly in the context of highly imbalanced datasets.
- To investigate the effectiveness of combining multiple neural network architectures—specifically Bi-LSTM, CNN, and feedforward networks—for tweet-level offensive language detection.
- To evaluate the impact of transfer learning and hyperparameter optimization via Bayesian optimization on model performance across multiple subtasks of the OffensEval 2019 challenge.
- To address the challenges posed by label noise and class imbalance in real-world offensive language datasets.
Proposed method
- The model employs a shared encoder head using a bidirectional LSTM with 256 units, followed by a 1D convolutional layer with 64 filters and ReLU activation.
- Max-pooling and average-pooling operations are applied independently to the CNN output and concatenated to form a unified representation.
- The concatenated features are passed through a two-layer feedforward neural network with 10 and 1 neurons, respectively, using ReLU and softmax activation.
- Word embeddings are trained end-to-end using FastText on the full training corpus, with character-level n-gram representations to improve out-of-vocabulary token handling.
- Bayesian optimization is used to tune hyperparameters, including learning rate (0.001) and weight decay (set to 0 due to existing dropout regularization).
- Transfer learning is applied by reusing the shared encoder across three subtasks (A, B, and C), with task-specific head networks added for each.
Experimental results
Research questions
- RQ1How does combining multiple deep learning architectures—Bi-LSTM, CNN, and feedforward networks—improve offensive language detection performance on Twitter data compared to single-architecture models?
- RQ2To what extent can transfer learning improve performance on low-resource subtasks (B and C) with limited labeled examples?
- RQ3How effective is Bayesian optimization in finding optimal hyperparameters for a complex deep learning model in the context of offensive language detection?
- RQ4Can a custom loss function approximating the macro F1 score outperform standard binary cross-entropy during training, despite the non-differentiability of F1?
- RQ5How do data preprocessing choices optimized for a fast baseline model (e.g., random forest) affect the performance of deeper neural networks?
Key findings
- The final model achieved a macro F1-score of 0.76 on Task A, 0.68 on Task B, and 0.54 on Task C, outperforming validation metrics, which suggests potential overfitting in the validation split.
- The model performed better on the official test set than on the validation set, indicating that the validation set may not be representative due to its small size.
- Despite expectations, a random forest baseline outperformed initial CNN models, likely due to data preprocessing being optimized for the random forest rather than deep learning models.
- The use of transfer learning significantly improved performance on Tasks B and C, which have fewer labeled examples, by reusing shared representations from the main encoder.
- Weight decay was found to be unnecessary due to existing dropout regularization, and was therefore set to zero after Bayesian optimization.
- The attempt to design a surrogate loss function approximating macro F1 did not improve performance and led to worse results than standard binary cross-entropy loss.
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.